diff options
-rw-r--r-- | Cargo.toml | 1 | ||||
-rw-r--r-- | candle-core/Cargo.toml | 5 | ||||
-rw-r--r-- | candle-examples/Cargo.toml | 22 | ||||
-rw-r--r-- | candle-examples/examples/llama/convert_checkpoint.py (renamed from candle-core/examples/llama/convert_checkpoint.py) | 0 | ||||
-rw-r--r-- | candle-examples/examples/llama/main.rs (renamed from candle-core/examples/llama/main.rs) | 0 | ||||
-rw-r--r-- | candle-examples/examples/llama/var_store.rs (renamed from candle-core/examples/llama/var_store.rs) | 0 | ||||
-rw-r--r-- | candle-examples/examples/llama/weights.rs (renamed from candle-core/examples/llama/weights.rs) | 0 | ||||
-rw-r--r-- | candle-examples/src/lib.rs | 0 |
8 files changed, 23 insertions, 5 deletions
@@ -1,6 +1,7 @@ [workspace] members = [ "candle-core", + "candle-examples", "candle-kernels", "candle-hub", "candle-pyo3", diff --git a/candle-core/Cargo.toml b/candle-core/Cargo.toml index ca3e75f1..85f77af5 100644 --- a/candle-core/Cargo.toml +++ b/candle-core/Cargo.toml @@ -27,11 +27,6 @@ zip = { version = "0.6.6", default-features=false } [dev-dependencies] anyhow = { version = "1", features = ["backtrace"] } -candle-hub = { path = "../candle-hub" } -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"] diff --git a/candle-examples/Cargo.toml b/candle-examples/Cargo.toml new file mode 100644 index 00000000..3cd2980e --- /dev/null +++ b/candle-examples/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "candle-examples" +version = "0.1.0" +edition = "2021" + +description = "Examples for the candle ML framework." +repository = "https://github.com/LaurentMazare/candle" +keywords = ["blas", "tensor", "machine-learning"] +categories = ["science"] +license = "MIT/Apache-2.0" +readme = "README.md" + +[dependencies] +candle = { path = "../candle-core" } + +[dev-dependencies] +anyhow = { version = "1", features = ["backtrace"] } +candle-hub = { path = "../candle-hub" } +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"] } diff --git a/candle-core/examples/llama/convert_checkpoint.py b/candle-examples/examples/llama/convert_checkpoint.py index 245c167c..245c167c 100644 --- a/candle-core/examples/llama/convert_checkpoint.py +++ b/candle-examples/examples/llama/convert_checkpoint.py diff --git a/candle-core/examples/llama/main.rs b/candle-examples/examples/llama/main.rs index 73db15e0..73db15e0 100644 --- a/candle-core/examples/llama/main.rs +++ b/candle-examples/examples/llama/main.rs diff --git a/candle-core/examples/llama/var_store.rs b/candle-examples/examples/llama/var_store.rs index 1a22bd89..1a22bd89 100644 --- a/candle-core/examples/llama/var_store.rs +++ b/candle-examples/examples/llama/var_store.rs diff --git a/candle-core/examples/llama/weights.rs b/candle-examples/examples/llama/weights.rs index c3364cef..c3364cef 100644 --- a/candle-core/examples/llama/weights.rs +++ b/candle-examples/examples/llama/weights.rs diff --git a/candle-examples/src/lib.rs b/candle-examples/src/lib.rs new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/candle-examples/src/lib.rs |