[[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.cudarc]
default-features = false
features = ["std", "cublas", "cublaslt", "curand", "driver", "nvrtc", "f16", "f8", "cuda-version-from-build-system", "dynamic-linking"]
optional = true
version = "0.18.2"
[dependencies.float8]
features = ["num-traits", "rand_distr"]
version = "0.5.0"
[dependencies.gemm]
features = ["wasm-simd128-enable"]
version = "0.18.2"
[dependencies.half]
features = ["num-traits", "use-intrinsics", "rand_distr"]
version = "2.5.0"
[dependencies.intel-mkl-src]
features = ["mkl-static-lp64-iomp"]
optional = true
version = "0.8.1"
[dependencies.libc]
optional = true
version = "0.2.147"
[dependencies.libm]
version = "0.2.15"
[dependencies.memmap2]
features = ["stable_deref_trait"]
version = "0.9.3"
[dependencies.num-traits]
version = "0.2.15"
[dependencies.num_cpus]
version = "1.15.0"
[dependencies.objc2-foundation]
optional = true
version = "0.3.1"
[dependencies.objc2-metal]
optional = true
version = "0.3.1"
[dependencies.rand]
version = "0.9.0"
[dependencies.rand_distr]
version = "0.5.1"
[dependencies.rayon]
version = "1.7.0"
[dependencies.safetensors]
version = "0.6.0"
[dependencies.thiserror]
version = "1"
[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.7.0"
[[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"]
[features]
accelerate = ["dep:libc", "dep:accelerate-src"]
cuda = ["cudarc", "hanzo-ug?/cuda", "float8/cuda"]
cudnn = ["cuda", "cudarc/cudnn"]
default = []
metal = ["dep:objc2-metal", "dep:objc2-foundation", "hanzo-ug?/metal"]
mkl = ["dep:libc", "dep:intel-mkl-src"]
nccl = ["cuda", "cudarc/nccl"]
ug = ["dep:hanzo-ug"]
[lib]
name = "hanzo_ml"
path = "src/lib.rs"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["science"]
description = "Minimalist ML framework."
edition = "2021"
keywords = ["blas", "tensor", "machine-learning"]
license = "BSD-3-Clause OR Apache-2.0"
name = "hanzo-ml"
readme = "README.md"
repository = "https://github.com/hanzoai/ml"
version = "0.9.2-alpha.2"
[target.'cfg(all(not(target_arch = "wasm32"), not(target_os = "ios")))'.dependencies.hanzo-ug]
optional = true
version = "0.9.2-alpha.2"
[[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"