-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial Rust conversion * example to load the code * add pretrained file and deps * get all the high level imports sorted * more files for downloading and pretraining * more fns enough to load the data * add constants and AddedToken * work on loading ESMC300M * update cargo and tokenizers * surfacing VarBuilder params to the top * Move down form the top implementing the LOAD fn. * update loading in Swiglu; attention, blocks, FFN, * turn off esm for tests
- Loading branch information
Showing
39 changed files
with
3,774 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[package] | ||
name = "ferritin-esm" | ||
version.workspace = true | ||
edition.workspace = true | ||
authors.workspace = true | ||
license.workspace = true | ||
description.workspace = true | ||
|
||
[features] | ||
metal = ["candle-core/metal", "candle-nn/metal", "candle-metal-kernels"] | ||
|
||
[dependencies] | ||
anyhow.workspace = true | ||
candle-core = { git = "https://github.com/huggingface/candle.git", package = "candle-core", features = [ | ||
] } | ||
candle-hf-hub = "0.3.3" | ||
candle-nn = { git = "https://github.com/huggingface/candle.git", package = "candle-nn" } | ||
ferritin-test-data = { path = "../ferritin-test-data" } | ||
rand = "0.8.5" | ||
safetensors = "0.4.5" | ||
tokenizers = "0.21.0" | ||
|
||
[target.'cfg(target_os = "macos")'.features] | ||
metal = [] | ||
|
||
[target.'cfg(target_os = "macos")'.dependencies] | ||
candle-metal-kernels = { git = "https://github.com/huggingface/candle.git", package = "candle-metal-kernels", optional = true } | ||
|
||
[dev-dependencies] | ||
candle-examples = { git = "https://github.com/huggingface/candle.git", package = "candle-examples" } | ||
ferritin-test-data = { path = "../ferritin-test-data" } | ||
assert_cmd = "2.0.16" | ||
tempfile = "3.14.0" |
Oops, something went wrong.