-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
57 lines (49 loc) · 1.43 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
name = "transformers-ao"
version = "0.0.1"
edition = "2021"
[features]
default = []
lib = []
[lib]
crate-type = ["cdylib"]
[dependencies]
mlua = { version = "0.9.8", features = ["lua53", "serialize", "vendored", "macros", "send"] }
serde = { version = "1.0.171" }
serde_json = "1.0.117"
wasm-bindgen = "0.2.92"
base64 = "0.22.1"
candle-core = { git = "https://github.com/huggingface/candle.git", tag = "0.5.1" }
candle-nn = { git = "https://github.com/huggingface/candle.git", tag = "0.5.1" }
candle-transformers = { git = "https://github.com/huggingface/candle.git", tag = "0.5.1" }
#image = { version = "0.25.0", default-features = false, features = ["png"] }
rayon = "1.7.0"
tokenizers = { git = "https://github.com/huggingface/tokenizers.git", default-features = false, features = ["onig", "unstable_wasm"] }
safetensors = "0.4.3"
console_error_panic_hook = "0.1.7"
lazy_static = "1.4.0"
[build-dependencies]
cc = "1.0.3"
# [profile.debug-release]
# codegen-units = 16
# panic = "unwind"
# strip = "none"
# debug = true
# debug-assertions = true
[profile.release]
codegen-units = 1
panic = "unwind" # "abort"
strip = "debuginfo" #"debuginfo" #none # debuginfo # symbols
debug = false
debug-assertions = false
overflow-checks = false
[profile.dev]
opt-level = 2
lto = false
codegen-units = 1 # I think 16 is default
debug = true
debug-assertions = false
overflow-checks = true
[[test]]
name = "lib_test"
path = "tests/lib_test.rs"