diff --git a/candle-examples/Cargo.toml b/candle-examples/Cargo.toml index 3cd2980e..a71ca17b 100644 --- a/candle-examples/Cargo.toml +++ b/candle-examples/Cargo.toml @@ -11,7 +11,7 @@ license = "MIT/Apache-2.0" readme = "README.md" [dependencies] -candle = { path = "../candle-core" } +candle = { path = "../candle-core", default-features=false } [dev-dependencies] anyhow = { version = "1", features = ["backtrace"] } @@ -20,3 +20,7 @@ clap = { version = "4.2.4", features = ["derive"] } rand = "0.8.5" tokenizers = { version = "0.13.3", default-features=false, features=["onig"] } tokio = { version = "1.28.2", features = ["macros", "rt-multi-thread"] } + +[features] +default = ["cuda"] +cuda = ["candle/cuda"]