Skip to content

Commit d7f729f

Browse files
committed
Refactor the hierarchy.
1 parent 6c4a960 commit d7f729f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+35
-33
lines changed

Cargo.toml

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,7 @@
1-
[package]
2-
name = "candle"
3-
version = "0.1.0"
4-
edition = "2021"
5-
6-
description = "Minimalist ML framework."
7-
repository = "https://github.com/LaurentMazare/candle"
8-
keywords = ["blas", "tensor", "machine-learning"]
9-
categories = ["science"]
10-
license = "MIT/Apache-2.0"
11-
readme = "README.md"
12-
131
[workspace]
2+
143
members = [
15-
"kernels",
4+
"candle-core",
5+
"candle-kernels",
166
]
177

18-
[dependencies]
19-
safetensors = "0.3.1"
20-
thiserror = "1"
21-
cudarc = { version = "0.9.9", optional = true, features = ["f16"] }
22-
candle-kernels = { path = "kernels", optional = true }
23-
gemm = "0.15.4"
24-
zip = { version = "0.6.6", default-features=false }
25-
byteorder = "1.4.3"
26-
half = { version = "2.3.1", features = ["num-traits"] }
27-
num-traits = "0.2.15"
28-
29-
[dev-dependencies]
30-
anyhow = "1"
31-
clap = { version = "4.2.4", features = ["derive"] }
32-
rand = "0.8.5"
33-
tokenizers = { version = "0.13.3", default-features=false, features=["onig"] }
34-
35-
[features]
36-
default = ["cuda"]
37-
cuda = ["dep:cudarc", "dep:candle-kernels"]

candle-core/Cargo.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
name = "candle"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
description = "Minimalist ML framework."
7+
repository = "https://github.com/LaurentMazare/candle"
8+
keywords = ["blas", "tensor", "machine-learning"]
9+
categories = ["science"]
10+
license = "MIT/Apache-2.0"
11+
readme = "README.md"
12+
13+
[dependencies]
14+
safetensors = "0.3.1"
15+
thiserror = "1"
16+
cudarc = { version = "0.9.9", optional = true, features = ["f16"] }
17+
candle-kernels = { path = "../candle-kernels", optional = true }
18+
gemm = "0.15.4"
19+
zip = { version = "0.6.6", default-features=false }
20+
byteorder = "1.4.3"
21+
half = { version = "2.3.1", features = ["num-traits"] }
22+
num-traits = "0.2.15"
23+
24+
[dev-dependencies]
25+
anyhow = "1"
26+
clap = { version = "4.2.4", features = ["derive"] }
27+
rand = "0.8.5"
28+
tokenizers = { version = "0.13.3", default-features=false, features=["onig"] }
29+
30+
[features]
31+
default = ["cuda"]
32+
cuda = ["dep:cudarc", "dep:candle-kernels"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)