forked from guillaume-be/rust-bert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
76 lines (62 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[package]
name = "rust-bert"
version = "0.14.0"
authors = ["Guillaume Becquin <[email protected]>"]
edition = "2018"
description = "Ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)"
repository = "https://github.com/guillaume-be/rust-bert"
documentation = "https://docs.rs/rust-bert"
license = "Apache-2.0"
readme = "README.md"
keywords = ["nlp", "deep-learning", "machine-learning", "transformers", "translation"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "rust_bert"
path = "src/lib.rs"
crate-type = ["lib"]
[[bin]]
name = "convert-tensor"
path = "src/convert-tensor.rs"
doc = false
[[bench]]
name = "sst2_benchmark"
harness = false
[[bench]]
name = "squad_benchmark"
harness = false
[[bench]]
name = "summarization_benchmark"
harness = false
[[bench]]
name = "translation_benchmark"
harness = false
[[bench]]
name = "generation_benchmark"
harness = false
[[bench]]
name = "tensor_operations_benchmark"
harness = false
[profile.bench]
opt-level = 3
[features]
doc-only = ["tch/doc-only"]
all-tests = []
[package.metadata.docs.rs]
features = ["doc-only"]
[dependencies]
rust_tokenizers = "~6.2.2"
tch = "~0.4.1"
serde_json = "1.0.62"
serde = { version = "1.0.123", features = ["derive"] }
dirs = "3.0.1"
ordered-float = "2.1.1"
cached-path = "0.5.0"
lazy_static = "1.4.0"
uuid = { version = "0.8.2", features = ["v4"] }
thiserror = "1.0.24"
[dev-dependencies]
anyhow = "1.0.38"
csv = "1.1.5"
criterion = "0.3.4"
torch-sys = "0.4.1"
tempfile = "3.2.0"