diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2024-02-28 07:17:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 07:17:03 +0100 |
commit | 56e44aabe34371d643162ea421082b46fe229a3f (patch) | |
tree | 465fca4c108d0959e41102fbe4f7339f8b7e18c4 | |
parent | d0aca6c3c629114c70b4af1d5c44f15857368636 (diff) | |
download | candle-56e44aabe34371d643162ea421082b46fe229a3f.tar.gz candle-56e44aabe34371d643162ea421082b46fe229a3f.tar.bz2 candle-56e44aabe34371d643162ea421082b46fe229a3f.zip |
Make some dependencies optional in the examples. (#1776)
-rw-r--r-- | candle-examples/Cargo.toml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/candle-examples/Cargo.toml b/candle-examples/Cargo.toml index e07af856..0538aca5 100644 --- a/candle-examples/Cargo.toml +++ b/candle-examples/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" [dependencies] accelerate-src = { workspace = true, optional = true } candle = { workspace = true } -candle-datasets = { workspace = true } +candle-datasets = { workspace = true, optional = true } candle-nn = { workspace = true } candle-transformers = { workspace = true } candle-flash-attn = { workspace = true, optional = true } @@ -30,7 +30,7 @@ rayon = { workspace = true } safetensors = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } -symphonia = { version = "0.5.3", features = ["all"] } +symphonia = { version = "0.5.3", features = ["all"], optional = true } tokenizers = { workspace = true, features = ["onig"] } cpal= { version = "0.15.2", optional = true } @@ -81,5 +81,17 @@ name = "onnx_basics" required-features = ["onnx"] [[example]] +name = "whisper" +required-features = ["symphonia"] + +[[example]] name = "whisper-microphone" required-features = ["microphone"] + +[[example]] +name = "mnist-training" +required-features = ["candle-datasets"] + +[[example]] +name = "llama2-c" +required-features = ["candle-datasets"] |