Cargo.toml 3.89 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[package]
Neelay Shah's avatar
Neelay Shah committed
17
name = "dynamo-llm"
18
19
20
21
22
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
23
24
25
repository.workspace = true
readme.workspace = true
description = "Dynamo LLM Library"
26

27
[features]
28
default = []
29

30
31
32
# todo: enable this as default
# default = ["block-manager", "testing-full"]

Ryan Olson's avatar
Ryan Olson committed
33
34
35
testing-full  = ["testing-cuda", "testing-nixl"]
testing-cuda  = ["dep:cudarc"]
testing-nixl  = ["dep:nixl-sys"]
36
block-manager = ["dep:nixl-sys", "dep:cudarc", "dep:ndarray", "dep:nix"]
37
sentencepiece = ["dep:sentencepiece"]
38

39
40
41
42
[[bench]]
name = "tokenizer"
harness = false

43
44
[dependencies]
# repo
Neelay Shah's avatar
Neelay Shah committed
45
dynamo-runtime = { workspace = true }
46
47
48

# workspace
anyhow = { workspace = true }
49
async-openai = { workspace = true }
50
51
async-stream = { workspace = true }
async-trait = { workspace = true }
52
async-nats = { workspace = true }
53
async_zmq = { workspace = true }
54
bytes = { workspace = true }
55
chrono = { workspace = true }
56
derive_builder = {workspace = true }
57
either = { workspace = true }
58
etcd-client = { workspace = true }
59
futures =  { workspace = true }
60
hf-hub = { workspace = true }
61
humantime = { workspace = true } # input/batch
62
rand = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
63
oneshot = { workspace = true }
64
prometheus = { workspace = true }
65
serde = { workspace = true }
66
serde_json = { workspace = true }
67
strum = { workspace = true }
68
tempfile = { workspace = true }
69
70
71
72
73
74
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
75
url = { workspace = true }
76
uuid = { workspace = true }
77
xxhash-rust = { workspace = true }
78

79
akin = "0.4.0"
80
blake3 = "1"
81
bytemuck = "1.22"
82
candle-core = { version = "0.8.0" }
83
derive-getters = "0.5"
84
offset-allocator = "0.2"
85
regex = "1"
86
87
rayon = "1"

88
89
90
# input/text
dialoguer = { version = "0.11", default-features = false, features = ["editor", "history"] }

Ryan Olson's avatar
Ryan Olson committed
91
# block_manager
92
nixl-sys = {version = "0.4.0", optional = true }
Ryan Olson's avatar
Ryan Olson committed
93
cudarc = { version = "0.16.2", features = ["cuda-12020"], optional = true }
94
ndarray = { version = "0.16", optional = true }
95
nix = { version = "0.26", optional = true }
96

97
98
99
100
# protocols
unicode-segmentation = "1.12"

# http-service
101
axum = { workspace = true }
102

Biswa Panda's avatar
Biswa Panda committed
103
# tokenizers
104
tokenizers = { version = "0.21.2", default-features = false, features = [
Biswa Panda's avatar
Biswa Panda committed
105
106
  "onig",
  "esaxx_fast",
107
  "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
108
109
110
111
112
] }
sentencepiece = { version = "0.11.2", optional = true }

# backend
galil-seiferas = { version = "0.1" }
113
114
toktrie = { version = "1.1" }
toktrie_hf_tokenizers =  { version = "1.1" }
Biswa Panda's avatar
Biswa Panda committed
115
116
117
118
119

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
120
121
minijinja = { version = "2.10.2", features = ["loader"] }
minijinja-contrib = { version = "2.10.2", features = ["pycompat"] }
122

123
124
125
# GGUF
ggus = "0.4.0"
memmap2 = "0.9.5"
126

127
128
129
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
130
ahash = "0.8.12"
131

132
[dev-dependencies]
133
approx = "0.5"
134
assert_matches = "1.5"
135
criterion = { version = "0.3", features = ["html_reports"] }
136
hf-hub = { workspace = true }
137
proptest = "1.5.0"
138
reqwest = { workspace = true }
139
rstest = "0.18.2"
140
rstest_reuse = "0.7.0"
141
tempfile = "3.17.1"
Biswa Panda's avatar
Biswa Panda committed
142
143
144
145
146
147
insta = { version = "1.41", features = [
  "glob",
  "json",
  "redactions",
  "filters",
] }
148
149
aligned-vec = "0.6.4"
lazy_static = "1.4"