Cargo.toml 5.27 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
26
cuda = ["dep:cudarc"]
integration = ["dynamo-runtime/integration"]
27
media-nixl = ["dep:nixl-sys", "dep:dynamo-memory"]
28

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

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

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

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

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

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

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

108

109
110
111
112
# protocols
unicode-segmentation = "1.12"

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

123

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

# backend
galil-seiferas = { version = "0.1" }
140
toktrie = { version = "1.1" }
141
toktrie_hf_tokenizers = { version = "1.1" }
Biswa Panda's avatar
Biswa Panda committed
142
143
144
145
146

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
147
148
minijinja = { version = "2.10.2", features = ["loader"] }
minijinja-contrib = { version = "2.10.2", features = ["pycompat"] }
149
json-five = { version = "0.3" }
150

151
152
153
# media loading in the preprocessor
reqwest = { workspace = true }
base64 = { version = "0.22" }
154
image = { version = "0.25", features = ["serde"] }
155
156
tokio-rayon = {version = "2" }
ndarray = { version = "0.16" }
157
158
ndarray-npy = { version = "0.9" }
ndarray-interp = { version = "0.5" }
159

160
161
162
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
163
ahash = "0.8.12"
164

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

186
lazy_static = "1.4"
187
mockito = "1.7.0"
GuanLuo's avatar
GuanLuo committed
188
189

[build-dependencies]
190
tonic-build = { version = "0.13.1" }