# 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 = "2024"
rust-version = "1.85"
name = "rllm-model"
version = "0.1.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Model registry, HF config parsing, Llama model implementation, and weight loading for rLLM"
readme = false
license = "Apache-2.0"
resolver = "2"

[features]
candle-backend = [
    "candle-core",
    "candle-nn",
    "candle-transformers",
    "rllm-quant/candle-backend",
    "tokio",
]
cuda = [
    "candle-backend",
    "rllm-kernels/cuda",
    "candle-core/cuda",
    "candle-nn/cuda",
    "candle-transformers/cuda",
    "rllm-quant/cuda",
]
default = ["candle-backend"]

[lib]
name = "rllm_model"
path = "src/lib.rs"

[dependencies.anyhow]
version = "1"

[dependencies.candle-core]
version = "0.9"
optional = true

[dependencies.candle-nn]
version = "0.9"
optional = true

[dependencies.candle-transformers]
version = "0.9"
optional = true

[dependencies.half]
version = "2"

[dependencies.hf-hub]
version = "0.4"
features = [
    "tokio",
    "rustls-tls",
    "ureq",
]
default-features = false

[dependencies.rllm-core]
version = "0.1.1"

[dependencies.rllm-kernels]
version = "0.1.1"

[dependencies.rllm-quant]
version = "0.1.1"
default-features = false

[dependencies.rllm-tensor]
version = "0.1.1"

[dependencies.rllm-tokenizer]
version = "0.1.1"

[dependencies.safetensors]
version = "0.6"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tempfile]
version = "3"
