The ml crate fix alone wasn't enough — ml-core, ml-dqn, ml-ppo, ml-supervised, ml-ensemble, ml-explainability, ml-hyperopt, and ml-labeling all had `default = ["cuda"]`, each independently pulling in cudarc via candle-core/cuda. Now `default = []` on all sub-crates. CUDA activates only when the compile-and-train template passes `--features ml/cuda`, which propagates through ml's cuda feature gate to all sub-crates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
44 lines
1.1 KiB
TOML
44 lines
1.1 KiB
TOML
[package]
|
|
name = "ml-hyperopt"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
publish.workspace = true
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
description = "ML hyperparameter optimization — PSO, TPE, campaigns, sensitivity analysis"
|
|
|
|
[features]
|
|
default = []
|
|
cuda = ["candle-core/cuda"]
|
|
|
|
[dependencies]
|
|
ml-core = { path = "../ml-core", default-features = false }
|
|
common.workspace = true
|
|
candle-core = { git = "https://github.com/huggingface/candle", rev = "671de1db" }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json.workspace = true
|
|
chrono.workspace = true
|
|
tracing.workspace = true
|
|
anyhow.workspace = true
|
|
rand.workspace = true
|
|
rand_distr.workspace = true
|
|
ndarray = { workspace = true, features = ["rayon"] }
|
|
rayon.workspace = true
|
|
statrs.workspace = true
|
|
argmin = { version = "0.8", features = ["rayon"] }
|
|
argmin-math = "0.3"
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["test-util", "macros"] }
|
|
rand_chacha = "0.3"
|
|
approx = "0.5"
|
|
|
|
[lints]
|
|
workspace = true
|