Skip to content

Commit

Permalink
Update .toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 28, 2023
1 parent 309daef commit 9f68f32
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 31 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ categories = ["science"]
license = "MIT OR Apache-2.0"

[workspace.dependencies]
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-examples = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-lora-macro = { git = "https://github.com/EricLBuehler/candle-lora-macro.git", version = "0.2.0" }
either = "1.9.0"
serde_json = "1.0.107"
thiserror = "1.0.48"
tracing-chrome = "0.7.1"
tracing-subscriber = "0.3.17"
trc = "1.2.3"
accelerate-src = { version = "0.3.2" }
intel-mkl-src = { version = "0.8.1", features = ["mkl-static-lp64-iomp"] }
cudarc = { version = "0.9.14", features = ["f16"] }
half = { version = "2.3.1", features = ["num-traits", "use-intrinsics", "rand_distr"] }

[profile.release-with-debug]
inherits = "release"
Expand Down
20 changes: 10 additions & 10 deletions candle-lora-examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[package]
name = "candle-lora-examples"
version = "0.2.0"
edition = "2021"
license = "MIT"
readme = "README.md"
authors = ["Eric Buehler"]
description = "Examples of candle-lora."
homepage = "https://github.com/EricLBuehler/candle-lora"
repository = "https://github.com/EricLBuehler/candle-lora"
keywords = ["machine-learning"] #TODOs: Add candle keyword
categories = ["science"]
version.workspace = true
edition.workspace = true
description.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
homepage.workspace = true

[dependencies]
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-core.workspace = true
candle-lora = { version = "0.2.0", path = "../candle-lora" }
candle-lora-macro.workspace = true
candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-nn.workspace = true
either.workspace = true
thiserror.workspace = true
trc.workspace = true
36 changes: 25 additions & 11 deletions candle-lora-transformers/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
[package]
name = "candle-lora-transformers"
version = "0.2.0"
edition = "2021"
license = "MIT"
readme = "README.md"
authors = ["Eric Buehler"]
description = "LoRA Candle transformers."
homepage = "https://github.com/EricLBuehler/candle-lora"
repository = "https://github.com/EricLBuehler/candle-lora"
keywords = ["machine-learning"] #TODOs: Add candle keyword
categories = ["science"]
version.workspace = true
edition.workspace = true
description.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
homepage.workspace = true

[dependencies]
anyhow = "1.0.75"
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-examples = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-core.workspace = true
candle-examples.workspace = true
candle-lora = { version = "0.2.0", path = "../candle-lora" }
candle-lora-macro.workspace = true
candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-nn.workspace = true
candle-transformers = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-flash-attn = { git = "https://github.com/huggingface/candle.git", version = "0.3.0", optional = true }
clap = "4.4.7"
hf-hub = "0.3.2"
serde = "1.0.189"
Expand All @@ -27,3 +28,16 @@ tokenizers = "0.13.4"
tracing = "0.1.40"
tracing-chrome = "0.7.1"
tracing-subscriber = "0.3.17"
accelerate-src = { workspace = true, optional = true }
intel-mkl-src = { workspace = true, optional = true }
cudarc = { workspace = true, optional = true }
half = { workspace = true, optional = true }

[features]
default = []
accelerate = ["dep:accelerate-src", "candle-core/accelerate", "candle-nn/accelerate", "candle-transformers/accelerate"]
cuda = ["candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda"]
cudnn = ["candle-core/cudnn"]
flash-attn = ["cuda", "candle-transformers/flash-attn", "dep:candle-flash-attn"]
mkl = ["dep:intel-mkl-src", "candle-core/mkl", "candle-nn/mkl", "candle-transformers/mkl"]
nccl = ["cuda", "cudarc/nccl", "dep:half"]
20 changes: 10 additions & 10 deletions candle-lora/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "candle-lora"
version = "0.2.0"
edition = "2021"
license = "MIT"
readme = "README.md"
authors = ["Eric Buehler"]
description = "LoRA implemented for Candle."
homepage = "https://github.com/EricLBuehler/candle-lora"
repository = "https://github.com/EricLBuehler/candle-lora"
keywords = ["machine-learning"] #TODOs: Add candle keyword
categories = ["science"]
version.workspace = true
edition.workspace = true
description.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
license.workspace = true
homepage.workspace = true

[dependencies]
candle-core = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-nn = { git = "https://github.com/huggingface/candle.git", version = "0.3.0" }
candle-core.workspace = true
candle-nn.workspace = true
either.workspace = true
thiserror.workspace = true
trc.workspace = true

0 comments on commit 9f68f32

Please sign in to comment.