# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "kalosm" version = "0.3.2" authors = ["Evan Almloff"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A simple interface for pretrained AI models " readme = "README.md" keywords = [ "llm", "llama", "whisper", "ocr", "nlp", ] license = "MIT/Apache-2.0" repository = "https://github.com/floneum/floneum" [package.metadata.docs.rs] features = ["full"] [lib] name = "kalosm" path = "src/lib.rs" [[example]] name = "axum" path = "examples/axum.rs" required-features = ["language"] [[example]] name = "chat" path = "examples/chat.rs" required-features = ["language"] [[example]] name = "chat-constrained" path = "examples/chat-constrained.rs" [[example]] name = "chat-mistral-2" path = "examples/chat-mistral-2.rs" required-features = ["language"] [[example]] name = "chat-tiny-llama" path = "examples/chat-tiny-llama.rs" required-features = ["language"] [[example]] name = "chat-with-character" path = "examples/chat-with-character.rs" required-features = ["language"] [[example]] name = "chunking" path = "examples/chunking.rs" required-features = ["language"] [[example]] name = "constrained" path = "examples/constrained.rs" required-features = ["language"] [[example]] name = "constrained-regex" path = "examples/constrained-regex.rs" required-features = ["language"] [[example]] name = "constrained-rust-types" path = "examples/constrained-rust-types.rs" required-features = ["language"] [[example]] name = "crawl" path = "examples/crawl.rs" required-features = ["language"] [[example]] name = "evaluation" path = "examples/evaluation.rs" required-features = ["language"] [[example]] name = "generate-image" path = "examples/generate-image.rs" required-features = ["language"] [[example]] name = "generate-text" path = "examples/generate-text.rs" required-features = ["language"] [[example]] name = "live-qa" path = "examples/live-qa.rs" required-features = [ "language", "sound", "surrealdb", ] [[example]] name = "llama" path = "examples/llama.rs" required-features = ["language"] [[example]] name = "mistral" path = "examples/mistral.rs" required-features = ["language"] [[example]] name = "mutate" path = "examples/mutate.rs" required-features = ["language"] [[example]] name = "ocr" path = "examples/ocr.rs" required-features = ["vision"] [[example]] name = "phi-3" path = "examples/phi-3.rs" required-features = ["language"] [[example]] name = "prompt-annealing" path = "examples/prompt-annealing.rs" required-features = ["language"] [[example]] name = "rag" path = "examples/rag.rs" required-features = [ "language", "surrealdb", ] [[example]] name = "remote" path = "examples/remote.rs" required-features = ["language"] [[example]] name = "remote-open-ai-compatable" path = "examples/remote-open-ai-compatable.rs" required-features = ["language"] [[example]] name = "resume-chat" path = "examples/resume-chat.rs" required-features = ["language"] [[example]] name = "segment-image" path = "examples/segment-image.rs" required-features = ["vision"] [[example]] name = "self-chat" path = "examples/self-chat.rs" required-features = ["language"] [[example]] name = "semantic-chunk" path = "examples/semantic-chunk.rs" [[example]] name = "semantic-search" path = "examples/semantic-search.rs" required-features = [ "language", "surrealdb", ] [[example]] name = "task" path = "examples/task.rs" required-features = ["language"] [[example]] name = "tools" path = "examples/tools.rs" required-features = ["language"] [[example]] name = "transcribe" path = "examples/transcribe.rs" required-features = ["sound"] [dependencies.anyhow] version = "1.0.75" [dependencies.async-trait] version = "0.1.74" [dependencies.comfy-table] version = "7.1.0" [dependencies.ego-tree] version = "0.6.2" [dependencies.futures-util] version = "0.3.28" [dependencies.hdrhistogram] version = "7.5.4" [dependencies.image] version = "0.24.7" [dependencies.kalosm-common] version = "0.3.0" features = [] [dependencies.kalosm-language] version = "0.3.0" features = [] optional = true [dependencies.kalosm-sound] version = "0.3.0" features = [] optional = true [dependencies.kalosm-streams] version = "0.3.0" features = [] [dependencies.kalosm-vision] version = "0.3.0" features = [] optional = true [dependencies.llm-samplers] version = "=0.0.7" features = [] [dependencies.num-traits] version = "0.2.17" [dependencies.once_cell] version = "1.19.0" [dependencies.rand] version = "0.8.5" [dependencies.serde] version = "1.0.163" features = ["derive"] [dependencies.surrealdb] version = "1.5.4" features = ["kv-rocksdb"] optional = true [dependencies.tokio] version = "1.32.0" features = [ "full", "macros", "rt-multi-thread", ] [dependencies.tracing] version = "0.1.40" features = ["std"] default-features = false [features] cuda = [ "kalosm-language?/cublas", "kalosm-vision?/cublas", "kalosm-sound?/cuda", ] full = [ "language", "vision", "sound", "surrealdb", ] language = ["kalosm-language"] metal = [ "kalosm-language?/metal", "kalosm-vision?/metal", "kalosm-sound?/metal", "kalosm-common/metal", ] mkl = [ "kalosm-language?/mkl", "kalosm-vision?/mkl", "kalosm-sound?/mkl", ] remote = ["kalosm-language?/remote"] sound = ["kalosm-sound"] surrealdb = ["dep:surrealdb"] vision = ["kalosm-vision"]