candle-core 0.9.2

Minimalist ML framework.
Documentation
# 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 = "candle-core"
version = "0.9.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minimalist ML framework."
readme = "README.md"
keywords = [
    "blas",
    "tensor",
    "machine-learning",
]
categories = ["science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/huggingface/candle"

[features]
accelerate = [
    "dep:libc",
    "dep:accelerate-src",
]
cuda = [
    "cudarc",
    "dep:candle-kernels",
    "candle-ug?/cuda",
    "float8/cuda",
]
cudnn = [
    "cuda",
    "cudarc/cudnn",
]
default = []
metal = [
    "dep:objc2-metal",
    "dep:objc2-foundation",
    "dep:candle-metal-kernels",
    "candle-ug?/metal",
]
mkl = [
    "dep:libc",
    "dep:intel-mkl-src",
]
nccl = [
    "cuda",
    "cudarc/nccl",
]
ug = ["dep:candle-ug"]

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

[[example]]
name = "basics"
path = "examples/basics.rs"

[[example]]
name = "cuda_basics"
path = "examples/cuda_basics.rs"
required-features = ["cuda"]

[[example]]
name = "cuda_sum_benchmark"
path = "examples/cuda_sum_benchmark.rs"

[[example]]
name = "metal_basics"
path = "examples/metal_basics.rs"
required-features = ["metal"]

[[test]]
name = "bilinear_tests"
path = "tests/bilinear_tests.rs"

[[test]]
name = "conv_tests"
path = "tests/conv_tests.rs"

[[test]]
name = "custom_op_tests"
path = "tests/custom_op_tests.rs"

[[test]]
name = "display_tests"
path = "tests/display_tests.rs"

[[test]]
name = "grad_tests"
path = "tests/grad_tests.rs"

[[test]]
name = "indexing_tests"
path = "tests/indexing_tests.rs"

[[test]]
name = "layout_tests"
path = "tests/layout_tests.rs"

[[test]]
name = "matmul_tests"
path = "tests/matmul_tests.rs"

[[test]]
name = "pool_tests"
path = "tests/pool_tests.rs"

[[test]]
name = "pth_tests"
path = "tests/pth_tests.rs"

[[test]]
name = "quantized_tests"
path = "tests/quantized_tests.rs"

[[test]]
name = "serialization_tests"
path = "tests/serialization_tests.rs"

[[test]]
name = "tensor_tests"
path = "tests/tensor_tests.rs"

[[bench]]
name = "bench_main"
path = "benches/bench_main.rs"
harness = false

[dependencies.accelerate-src]
version = "0.3.2"
optional = true

[dependencies.byteorder]
version = "1.4.3"

[dependencies.candle-kernels]
version = "0.9.2"
optional = true

[dependencies.candle-metal-kernels]
version = "0.9.2"
optional = true

[dependencies.cudarc]
version = "0.19.0"
features = [
    "std",
    "cublas",
    "cublaslt",
    "curand",
    "driver",
    "nvrtc",
    "f16",
    "f8",
    "cuda-version-from-build-system",
    "dynamic-linking",
]
optional = true
default-features = false

[dependencies.float8]
version = "0.6.0"
features = [
    "num-traits",
    "rand_distr",
]

[dependencies.gemm]
version = "0.19.0"
features = ["wasm-simd128-enable"]

[dependencies.half]
version = "2.5.0"
features = [
    "num-traits",
    "use-intrinsics",
    "rand_distr",
]

[dependencies.intel-mkl-src]
version = "0.8.1"
features = ["mkl-static-lp64-iomp"]
optional = true

[dependencies.libc]
version = "0.2.147"
optional = true

[dependencies.libm]
version = "0.2.15"

[dependencies.memmap2]
version = "0.9.3"
features = ["stable_deref_trait"]

[dependencies.num-traits]
version = "0.2.15"

[dependencies.num_cpus]
version = "1.15.0"

[dependencies.objc2-foundation]
version = "0.3.1"
optional = true

[dependencies.objc2-metal]
version = "0.3.1"
optional = true

[dependencies.rand]
version = "0.9.0"

[dependencies.rand_distr]
version = "0.5.1"

[dependencies.rayon]
version = "1.7.0"

[dependencies.safetensors]
version = "0.7.0"

[dependencies.thiserror]
version = "2"

[dependencies.yoke]
version = "0.8.1"
features = ["derive"]

[dependencies.zip]
version = "7.2.0"
default-features = false

[dev-dependencies.anyhow]
version = "1"
features = ["backtrace"]

[dev-dependencies.clap]
version = "4.2.4"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.8"
default-features = false

[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "ios")))'.dependencies.candle-ug]
version = "0.9.2"
optional = true