Files
ml/Cargo.toml

137 lines
4.5 KiB
TOML

[workspace]
# `exclude` holds the crates that cannot BE members: the kernel crates carry their own
# `links=` build scripts, and hanzo-ml-book is not a library. Everything else is a
# member, so `cargo test --workspace` and `cargo clippy --workspace` gate it. hanzo-onnx was
# excluded and therefore never built, tested or linted by CI — 64 op tests behind a lock nothing
# turned. It is a member; the `check`/`test`/`clippy` jobs install protoc for its build script.
members = [
"hanzo-3d",
"hanzo-datasets",
"hanzo-flash-attn-v3",
"hanzo-learn",
"hanzo-ml",
"hanzo-ml-examples",
"hanzo-ml-pyo3",
"hanzo-ml-wasm-examples/*",
"hanzo-ml-wasm-tests",
"hanzo-nn",
"hanzo-onnx",
"hanzo-research",
"hanzo-train",
"hanzo-training",
"hanzo-transformers",
"tensor-tools",
]
exclude = [
"hanzo-ml-book",
"hanzo-flash-attn",
"hanzo-flash-attn-build",
"hanzo-kernel",
"hanzo-kernel-macros",
"hanzo-kernels",
"hanzo-metal-kernels",
"hanzo-rocm-kernels",
]
resolver = "2"
[workspace.package]
version = "0.11.18"
edition = "2021"
description = "Multi-backend tensor & ML framework for Rust — part of the Hanzo ML stack."
repository = "https://github.com/hanzoai/ml"
keywords = ["blas", "tensor", "machine-learning"]
categories = ["science"]
license = "MIT OR Apache-2.0"
[workspace.dependencies]
rocm-rs = { package = "hanzo-rocm", version = "0.5.2", default-features = false, features = ["macros"] }
hanzo-rocm-kernels = { path = "./hanzo-rocm-kernels", version = "0.11.40" }
ab_glyph = "0.2.23"
accelerate-src = { version = "0.3.2" }
anyhow = { version = "1", features = ["backtrace"] }
byteorder = "1.4.3"
chrono = "0.4"
# Hanzo-renamed workspace dependencies (at version 0.10.x)
hanzo-ml = { path = "./hanzo-ml", package = "hanzo-ml", version = "0.11.106" }
hanzo-datasets = { path = "./hanzo-datasets", version = "0.11.9" }
hanzo-flash-attn = { path = "./hanzo-flash-attn", version = "0.11.36" }
hanzo-flash-attn-v3 = { path = "./hanzo-flash-attn-v3", version = "0.11.10" }
hanzo-kernels = { path = "./hanzo-kernels", version = "0.11.38" }
hanzo-metal-kernels = { path = "./hanzo-metal-kernels", version = "0.11.46" }
hanzo-nn = { path = "./hanzo-nn", version = "0.11.45" }
hanzo-onnx = { path = "./hanzo-onnx", version = "0.11.9" }
hanzo-transformers = { path = "./hanzo-transformers", version = "0.11.12" }
clap = { version = "4.2.4", features = ["derive"] }
criterion = { version = "0.8", default-features = false }
cudarc = { version = "0.19.8", features = [
"std",
"cublas",
"cublaslt",
"curand",
"driver",
"nvrtc",
"f16",
"f8",
"cuda-version-from-build-system",
"dynamic-linking",
], default-features = false }
cutile = "=0.3.1"
fancy-regex = "0.19.0"
gemm = { version = "0.19.0", features = ["wasm-simd128-enable"] }
hf-hub = { version = "1.0.0", features = ["blocking"] }
half = { version = "2.5.0", features = [
"num-traits",
"use-intrinsics",
"rand_distr",
"zerocopy"
] }
float8 = { version = "0.7.0", features = ["num-traits", "rand_distr"] }
hound = "3.5.1"
image = { version = "0.25.2", default-features = false, features = [
"jpeg",
"png",
] }
imageproc = { version = "0.27.0", features = [
"text",
], default-features = false }
intel-mkl-src = { version = "0.8.1", features = ["mkl-static-lp64-iomp"] }
libc = { version = "0.2.147" }
libm = { version = "0.2.15" }
log = "0.4"
memmap2 = { version = "0.9.3", features = ["stable_deref_trait"] }
num_cpus = "1.15.0"
num-traits = "0.2.15"
parquet = "59"
rand = "0.9.0"
rand_distr = "0.5.1"
rayon = "1.7.0"
safetensors = "0.8.0"
serde = { version = "1.0.171", features = ["derive"] }
serde_plain = "1.0.2"
serde_json = "1.0.99"
thiserror = "2"
tokenizers = { version = "0.23.1", default-features = false }
tracing = "0.1.37"
tracing-chrome = "0.7.1"
tracing-subscriber = "0.3.7"
yoke = { version = "0.8.1", features = ["derive"] }
zip = { version = "8.6.0", default-features = false }
zerocopy = "0.8"
objc2-metal = { version = "0.3.1" }
objc2-foundation = { version = "0.3.1" }
[profile.release-with-debug]
inherits = "release"
debug = true
[workspace.lints.clippy]
# Stylistic lints in inherited model/bench code; allowed so CI clippy -D warnings is green.
explicit_counter_loop = "allow"
unnecessary_unwrap = "allow"
manual_checked_ops = "allow"
needless_borrow = "allow"
large_const_arrays = "allow"
# Quant-kernel idioms: parallel-array indexing and wide kernel signatures are intentional.
needless_range_loop = "allow"
too_many_arguments = "allow"