Cargo.toml 5.62 KB
Newer Older
1
2
3
4
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# 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"]
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

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

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

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

# workspace
Ryan Olson's avatar
Ryan Olson committed
45
aho-corasick = "1.1"
46
anyhow = { workspace = true }
47
dynamo-async-openai = { workspace = true }
48
dynamo-parsers = { workspace = true }
49
50
async-stream = { workspace = true }
async-trait = { workspace = true }
51
async-nats = { workspace = true }
52
async_zmq = { workspace = true }
53
bytes = { workspace = true }
54
chrono = { workspace = true }
55
derive_builder = { workspace = true }
56
either = { workspace = true }
57
etcd-client = { workspace = true }
58
futures = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
59
futures-util = "0.3.31"
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
parking_lot = { workspace = true }
65
prometheus = { workspace = true }
66
serde = { workspace = true }
67
serde_json = { workspace = true }
68
strum = { workspace = true }
69
tempfile = { workspace = true }
70
thiserror = { workspace = true }
Ryan Olson's avatar
Ryan Olson committed
71
tmq = "0.5.0"
72
73
74
75
76
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
77
url = { workspace = true }
78
uuid = { workspace = true }
79
xxhash-rust = { workspace = true }
80
81
modelexpress-client = { workspace = true }
modelexpress-common = { workspace = true }
82
akin = "0.4.0"
83
bitflags = { version = "2.4", features = ["serde"] }
84
blake3 = { version = "1.8", features = ["mmap", "rayon"] }
85
bytemuck = "1.22"
86
candle-core = { version = "0.9.1" }
87
derive-getters = "0.5"
88
offset-allocator = "0.2"
89
regex = "1"
90
rayon = "1"
91
dashmap = { version = "5.5.3" }
92
bincode = { version = "2.0.1", features = ["serde", "derive"] }
93

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

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

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

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

113

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

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

128

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

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

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

156
157
158
# media loading in the preprocessor
reqwest = { workspace = true }
base64 = { version = "0.22" }
159
image = { version = "0.25", features = ["serde"] }
160
161
tokio-rayon = {version = "2" }
ndarray = { version = "0.16" }
162
163
ndarray-npy = { version = "0.9" }
ndarray-interp = { version = "0.5" }
164

165
166
167
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
168
ahash = "0.8.12"
169

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

191
lazy_static = "1.4"
192
mockito = "1.7.0"
GuanLuo's avatar
GuanLuo committed
193
194

[build-dependencies]
195
tonic-build = { version = "0.13.1" }
196
197
198
199
200

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