[[bench]]
harness = false
name = "bench_main"
path = "benches/bench_main.rs"
[dependencies.accelerate-src]
optional = true
version = "0.3.2"
[dependencies.byteorder]
version = "1.4.3"
[dependencies.candle-kernels]
optional = true
version = "0.8.0"
[dependencies.candle-metal-kernels]
optional = true
version = "0.8.0"
[dependencies.cudarc]
default-features = false
features = ["std", "cublas", "cublaslt", "curand", "driver", "nvrtc", "f16", "cuda-version-from-build-system", "dynamic-linking"]
optional = true
version = "0.12.1"
[dependencies.gemm]
features = ["wasm-simd128-enable"]
version = "0.17.0"
[dependencies.half]
features = ["num-traits", "use-intrinsics", "rand_distr"]
version = "2.3.1"
[dependencies.intel-mkl-src]
features = ["mkl-static-lp64-iomp"]
optional = true
version = "0.8.1"
[dependencies.libc]
optional = true
version = "0.2.147"
[dependencies.memmap2]
features = ["stable_deref_trait"]
version = "0.9.3"
[dependencies.metal]
features = ["mps"]
optional = true
version = "0.27.0"
[dependencies.num-traits]
version = "0.2.15"
[dependencies.num_cpus]
version = "1.15.0"
[dependencies.rand]
version = "0.8.5"
[dependencies.rand_distr]
version = "0.4.3"
[dependencies.rayon]
version = "1.7.0"
[dependencies.safetensors]
version = "0.4.1"
[dependencies.thiserror]
version = "1"
[dependencies.ug]
version = "0.0.2"
[dependencies.ug-cuda]
optional = true
version = "0.0.2"
[dependencies.ug-metal]
optional = true
version = "0.0.2"
[dependencies.yoke]
features = ["derive"]
version = "0.7.2"
[dependencies.zip]
default-features = false
version = "1.1.1"
[dev-dependencies.anyhow]
features = ["backtrace"]
version = "1"
[dev-dependencies.clap]
features = ["derive"]
version = "4.2.4"
[dev-dependencies.criterion]
default-features = false
version = "0.5.1"
[[example]]
name = "basics"
path = "examples/basics.rs"
[[example]]
name = "cuda_basics"
path = "examples/cuda_basics.rs"
[[example]]
name = "cuda_sum_benchmark"
path = "examples/cuda_sum_benchmark.rs"
[[example]]
name = "metal_basics"
path = "examples/metal_basics.rs"
required-features = ["metal"]
[features]
accelerate = ["dep:libc", "dep:accelerate-src"]
cuda = ["cudarc", "dep:candle-kernels", "dep:ug-cuda"]
cudnn = ["cuda", "cudarc/cudnn"]
default = []
metal = ["dep:metal", "dep:candle-metal-kernels", "dep:ug-metal"]
mkl = ["dep:libc", "dep:intel-mkl-src"]
[lib]
name = "candle_core"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["science"]
description = "Minimalist ML framework."
edition = "2021"
keywords = ["blas", "tensor", "machine-learning"]
license = "MIT OR Apache-2.0"
name = "candle-core"
readme = "README.md"
repository = "https://github.com/huggingface/candle"
version = "0.8.0"
[[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"