Cargo.toml 6.35 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
3
4
# SPDX-License-Identifier: Apache-2.0

[package]
Neelay Shah's avatar
Neelay Shah committed
5
name = "dynamo-llm"
6
7
8
9
10
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
11
12
13
repository.workspace = true
readme.workspace = true
description = "Dynamo LLM Library"
14

15
[features]
16
default = ["block-manager"]
Ryan Olson's avatar
Ryan Olson committed
17
# todo(ops): get this working in CI as a default.
18
19
# default = ["block-manager", "testing-full"]

20
testing-full = ["testing-cuda", "testing-nixl"]
21
22
testing-cuda = ["dep:cudarc", "dynamo-memory/testing-cuda"]
testing-nixl = ["dep:nixl-sys", "dynamo-memory/testing-nixl"]
Ryan Olson's avatar
Ryan Olson committed
23
testing-etcd = []
24
block-manager = ["dep:nixl-sys", "dep:cudarc", "dep:nix", "dep:aligned-vec"]
25
block-manager-bench = ["block-manager", "testing-full", "dep:clap", "dep:indicatif"]
26
27
cuda = ["dep:cudarc"]
integration = ["dynamo-runtime/integration"]
28
media-ffmpeg = ["dep:video-rs", "dep:ffmpeg-next", "dep:memfile"]
29
30
bench = ["dynamo-kv-router/bench"]
kv-router-stress = ["dep:clap", "dep:indicatif", "bench"]
31

32
33
34
35
[[bench]]
name = "tokenizer"
harness = false

36
37
38
39
[[bench]]
name = "transfer_context_v2"
harness = false
required-features = ["block-manager", "testing-cuda"]
40

41
42
43
44
45
[[bench]]
name = "kv_router_bench"
harness = false
required-features = ["kv-router-stress"]

46
47
[dependencies]
# repo
Neelay Shah's avatar
Neelay Shah committed
48
dynamo-runtime = { workspace = true }
49
50
dynamo-tokens = { workspace = true }
dynamo-kv-router = { workspace = true, features = ["metrics"] }
51
dynamo-memory = { workspace = true }
52
dynamo-mocker = { workspace = true }
53
54

# workspace
Ryan Olson's avatar
Ryan Olson committed
55
aho-corasick = "1.1"
56
anyhow = { workspace = true }
57
dynamo-async-openai = { workspace = true }
58
dynamo-parsers = { workspace = true }
59
60
async-stream = { workspace = true }
async-trait = { workspace = true }
61
async-nats = { workspace = true }
62
async_zmq = { workspace = true }
63
bytes = { workspace = true }
64
chrono = { workspace = true }
65
derive_builder = { workspace = true }
66
either = { workspace = true }
67
etcd-client = { workspace = true }
68
futures = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
69
futures-util = "0.3.31"
70
hf-hub = { workspace = true }
71
humantime = { workspace = true }                           # input/batch
72
rand = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
73
oneshot = { workspace = true }
74
parking_lot = { workspace = true }
75
prometheus = { workspace = true }
76
serde = { workspace = true }
77
serde_json = { workspace = true }
78
strum = { workspace = true }
79
tempfile = { workspace = true }
80
thiserror = { workspace = true }
81
tmq = { workspace = true }
82
83
84
85
86
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
87
url = { workspace = true }
88
uuid = { workspace = true }
89
xxhash-rust = { workspace = true }
90
91
modelexpress-client = { workspace = true }
modelexpress-common = { workspace = true }
92
akin = "0.4.0"
93
bitflags = { version = "2.4", features = ["serde"] }
94
blake3 = { version = "1.8", features = ["mmap", "rayon"] }
95
bytemuck = "1.22"
96
candle-core = { version = "0.9.1" }
97
derive-getters = "0.5"
98
offset-allocator = "0.2"
99
regex = "1"
100
rayon = "1"
101
dashmap = { version = "5.5.3" }
102
bincode = { version = "2.0.1", features = ["serde", "derive"] }
103

104
105
106
# lora
object_store = { version = "0.12.4", features = ["aws", "gcp", "azure", "http"] }

107
# input/text
108
109
110
111
dialoguer = { version = "0.11", default-features = false, features = [
  "editor",
  "history",
] }
112

Ryan Olson's avatar
Ryan Olson committed
113
# block_manager
114
aligned-vec = { version = "0.6.4", optional = true }
115
nixl-sys = { version = "=0.9.0", optional = true }
116
cudarc = { workspace = true, optional = true }
117
nix = { version = "0.26", optional = true }
118

119
120
# media (zlib compression for NIXL metadata)
flate2 = { version = "1" }
121

122
123
124
125
# block_manager_bench
clap = { version = "4.5.49", features = ["derive"], optional = true }
indicatif = { version = "0.18.0", optional = true }

126

127
128
129
130
# protocols
unicode-segmentation = "1.12"

# http-service
131
axum = { workspace = true }
Graham King's avatar
Graham King committed
132
axum-server = { version = "0.7", features = ["tls-rustls"] }
133
134
hyper = { version = "1.5", features = ["http2", "server"] }
hyper-util = { version = "0.1", features = ["tokio", "server", "server-auto"] }
135
tower-http = { workspace = true }
Graham King's avatar
Graham King committed
136
rustls = { version = "0.23" }
137
tower = { version = "0.5", features = ["util", "make"] }
138
139
utoipa = { version = "5.3", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
140

141

GuanLuo's avatar
GuanLuo committed
142
143
144
145
146
147
148
# grpc-service
# ping version to 0.13.1 so it depends on prost 0.13.5
# which is used across other libraries
tonic = { version = "0.13.1" }
# Request prost specifically so tonic-build properly compiles protobuf message
prost = { version = "0.13.5" }

Biswa Panda's avatar
Biswa Panda committed
149
# tokenizers
150
tokenizers = { version = "0.21.4", default-features = false, features = [
Biswa Panda's avatar
Biswa Panda committed
151
152
  "onig",
  "esaxx_fast",
153
  "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
154
155
156
157
] }

# backend
galil-seiferas = { version = "0.1" }
158
toktrie = { version = "1.1" }
159
toktrie_hf_tokenizers = { version = "1.1" }
Biswa Panda's avatar
Biswa Panda committed
160
161
162
163
164

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
165
166
minijinja = { version = "2.14.0", features = ["loader"] }
minijinja-contrib = { version = "2.14.0", features = ["pycompat"] }
167
json-five = { version = "0.3" }
168

169
170
171
# media loading in the preprocessor
reqwest = { workspace = true }
base64 = { version = "0.22" }
172
image = { version = "0.25", features = ["serde"] }
173
174
175
video-rs = { version = "0.10.5", optional = true }
ffmpeg-next = { version = "7.1.0", optional = true }
memfile = { version = "0.3.2", optional = true }
176
177
tokio-rayon = {version = "2" }
ndarray = { version = "0.16" }
178
179
ndarray-npy = { version = "0.9" }
ndarray-interp = { version = "0.5" }
180

181
182
183
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
184
ahash = "0.8.12"
185

186
[dev-dependencies]
187
approx = "0.5"
188
assert_matches = "1.5"
189
criterion = { version = "0.3", features = ["html_reports"] }
190
hf-hub = { workspace = true }
191
192
modelexpress-client = { workspace = true }
modelexpress-common = { workspace = true }
193
proptest = "1.5.0"
194
reqwest = { workspace = true }
195
rstest = "0.18.2"
196
rstest_reuse = "0.7.0"
197
serial_test = "3"
198
temp-env = { version = "0.3.6", features = ["async_closure"] }
199
tempfile = "3.17.1"
Biswa Panda's avatar
Biswa Panda committed
200
201
202
203
204
205
insta = { version = "1.41", features = [
  "glob",
  "json",
  "redactions",
  "filters",
] }
206

207
lazy_static = "1.4"
208
mockito = "1.7.0"
Yan Ru Pei's avatar
Yan Ru Pei committed
209
dynamo-bench = { path = "../bench" }
GuanLuo's avatar
GuanLuo committed
210

211
212
213
214
[[bin]]
name = "generate-frontend-openapi"
path = "src/bin/generate_frontend_openapi.rs"

GuanLuo's avatar
GuanLuo committed
215
[build-dependencies]
216
tonic-build = { version = "0.13.1" }
217
218
219
220
221

[[bin]]
name = "bench_local_transfer_v2"
path = "bin/bench_local_transfer_v2.rs"
required-features = ["block-manager-bench"]
222