# 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 = "ebcandle-core" version = "0.7.3" build = 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/ebcandle" [lib] name = "ebcandle_core" path = "src/lib.rs" [[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"] [[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.cudarc] version = "0.12.1" features = [ "std", "cublas", "cublaslt", "curand", "driver", "nvrtc", "f16", "cuda-version-from-build-system", "dynamic-linking", ] optional = true default-features = false [dependencies.ebcandle-kernels] version = "0.7.3" optional = true [dependencies.ebcandle-metal-kernels] version = "0.7.3" optional = true [dependencies.float8] version = "0.1.0" features = [ "num-traits", "rand_distr", ] [dependencies.gemm] version = "0.17.0" features = ["wasm-simd128-enable"] [dependencies.half] version = "2.3.1" 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.memmap2] version = "0.9.3" features = ["stable_deref_trait"] [dependencies.metal] version = "0.27.0" features = ["mps"] optional = true [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] version = "0.0.2" optional = true [dependencies.ug-metal] version = "0.0.2" optional = true [dependencies.yoke] version = "0.7.3" features = ["derive"] [dependencies.zip] version = "1.1.1" default-features = false [dev-dependencies.anyhow] version = "1" features = ["backtrace"] [dev-dependencies.clap] version = "4.2.4" features = ["derive"] [dev-dependencies.criterion] version = "0.5.1" default-features = false [features] accelerate = [ "dep:libc", "dep:accelerate-src", ] cuda = [ "cudarc", "dep:ebcandle-kernels", "float8/cuda", "dep:ug-cuda", ] cudnn = [ "cuda", "cudarc/cudnn", ] default = [] metal = [ "dep:metal", "dep:ebcandle-metal-kernels", "dep:ug-metal", ] mkl = [ "dep:libc", "dep:intel-mkl-src", ]