"container/deps/requirements.docs.txt" did not exist on "0edc886fe03c9771ca8782ccd5baa01ba9e2cf4f"
Cargo.toml 5.95 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 = []
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
21
22
testing-full = ["testing-cuda", "testing-nixl"]
testing-cuda = ["dep:cudarc"]
testing-nixl = ["dep:nixl-sys"]
Ryan Olson's avatar
Ryan Olson committed
23
testing-etcd = []
24
block-manager = ["dep:nixl-sys", "dep:cudarc", "dep:nix", "dep:aligned-vec", "dep:dynamo-memory"]
25
block-manager-bench = ["block-manager", "testing-full", "dep:clap", "dep:indicatif"]
26
27
cuda = ["dep:cudarc"]
integration = ["dynamo-runtime/integration"]
28
media-nixl = ["dep:nixl-sys", "dep:dynamo-memory"]
29
media-ffmpeg = ["dep:video-rs", "dep:ffmpeg-next", "dep:memfile", "media-nixl"]
30

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

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

40
41
[dependencies]
# repo
Neelay Shah's avatar
Neelay Shah committed
42
dynamo-runtime = { workspace = true }
43
dynamo-memory = { path = "../memory", optional = true }
44
45

# workspace
Ryan Olson's avatar
Ryan Olson committed
46
aho-corasick = "1.1"
47
anyhow = { workspace = true }
48
dynamo-async-openai = { workspace = true }
49
dynamo-parsers = { 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 }
Ryan Olson's avatar
Ryan Olson committed
60
futures-util = "0.3.31"
61
hf-hub = { workspace = true }
62
humantime = { workspace = true }                           # input/batch
63
rand = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
64
oneshot = { workspace = true }
65
parking_lot = { workspace = true }
66
prometheus = { workspace = true }
67
serde = { workspace = true }
68
serde_json = { workspace = true }
69
strum = { workspace = true }
70
tempfile = { workspace = true }
71
thiserror = { workspace = true }
72
tmq = { workspace = true }
73
74
75
76
77
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
78
url = { workspace = true }
79
uuid = { workspace = true }
80
xxhash-rust = { workspace = true }
81
82
modelexpress-client = { workspace = true }
modelexpress-common = { workspace = true }
83
akin = "0.4.0"
84
bitflags = { version = "2.4", features = ["serde"] }
85
blake3 = { version = "1.8", features = ["mmap", "rayon"] }
86
bytemuck = "1.22"
87
candle-core = { version = "0.9.1" }
88
derive-getters = "0.5"
89
offset-allocator = "0.2"
90
regex = "1"
91
rayon = "1"
92
dashmap = { version = "5.5.3" }
93
bincode = { version = "2.0.1", features = ["serde", "derive"] }
94

95
96
97
# lora
object_store = { version = "0.12.4", features = ["aws", "gcp", "azure", "http"] }

98
# input/text
99
100
101
102
dialoguer = { version = "0.11", default-features = false, features = [
  "editor",
  "history",
] }
103

Ryan Olson's avatar
Ryan Olson committed
104
# block_manager
105
aligned-vec = { version = "0.6.4", optional = true }
106
nixl-sys = { version = "=0.9.0", optional = true }
107
cudarc = { workspace = true, optional = true }
108
nix = { version = "0.26", optional = true }
109

110
111
112
113
# block_manager_bench
clap = { version = "4.5.49", features = ["derive"], optional = true }
indicatif = { version = "0.18.0", optional = true }

114

115
116
117
118
# protocols
unicode-segmentation = "1.12"

# http-service
119
axum = { workspace = true }
Graham King's avatar
Graham King committed
120
axum-server = { version = "0.7", features = ["tls-rustls"] }
121
122
hyper = { version = "1.5", features = ["http2", "server"] }
hyper-util = { version = "0.1", features = ["tokio", "server", "server-auto"] }
123
tower-http = { workspace = true }
Graham King's avatar
Graham King committed
124
rustls = { version = "0.23" }
125
tower = { version = "0.5", features = ["util", "make"] }
126
127
utoipa = { version = "5.3", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
128

129

GuanLuo's avatar
GuanLuo committed
130
131
132
133
134
135
136
# 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
137
# tokenizers
138
tokenizers = { version = "0.21.4", default-features = false, features = [
Biswa Panda's avatar
Biswa Panda committed
139
140
  "onig",
  "esaxx_fast",
141
  "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
142
143
144
145
] }

# backend
galil-seiferas = { version = "0.1" }
146
toktrie = { version = "1.1" }
147
toktrie_hf_tokenizers = { version = "1.1" }
Biswa Panda's avatar
Biswa Panda committed
148
149
150
151
152

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
153
154
minijinja = { version = "2.14.0", features = ["loader"] }
minijinja-contrib = { version = "2.14.0", features = ["pycompat"] }
155
json-five = { version = "0.3" }
156

157
158
159
# media loading in the preprocessor
reqwest = { workspace = true }
base64 = { version = "0.22" }
160
image = { version = "0.25", features = ["serde"] }
161
162
163
video-rs = { version = "0.10.5", optional = true }
ffmpeg-next = { version = "7.1.0", optional = true }
memfile = { version = "0.3.2", optional = true }
164
165
tokio-rayon = {version = "2" }
ndarray = { version = "0.16" }
166
167
ndarray-npy = { version = "0.9" }
ndarray-interp = { version = "0.5" }
168

169
170
171
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
172
ahash = "0.8.12"
173

174
[dev-dependencies]
175
approx = "0.5"
176
assert_matches = "1.5"
177
criterion = { version = "0.3", features = ["html_reports"] }
178
hf-hub = { workspace = true }
179
180
modelexpress-client = { workspace = true }
modelexpress-common = { workspace = true }
181
proptest = "1.5.0"
182
reqwest = { workspace = true }
183
rstest = "0.18.2"
184
rstest_reuse = "0.7.0"
185
serial_test = "3"
186
temp-env = { version = "0.3.6", features = ["async_closure"] }
187
tempfile = "3.17.1"
Biswa Panda's avatar
Biswa Panda committed
188
189
190
191
192
193
insta = { version = "1.41", features = [
  "glob",
  "json",
  "redactions",
  "filters",
] }
194

195
lazy_static = "1.4"
196
mockito = "1.7.0"
GuanLuo's avatar
GuanLuo committed
197

198
199
200
201
[[bin]]
name = "generate-frontend-openapi"
path = "src/bin/generate_frontend_openapi.rs"

GuanLuo's avatar
GuanLuo committed
202
[build-dependencies]
203
tonic-build = { version = "0.13.1" }
204
205
206
207
208

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