Cargo.toml 5.18 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
# input/text
94
95
96
97
dialoguer = { version = "0.11", default-features = false, features = [
  "editor",
  "history",
] }
98

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

105

106
107
108
109
# protocols
unicode-segmentation = "1.12"

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

120

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

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

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

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

157
158
159
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
160
ahash = "0.8.12"
161

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

183
lazy_static = "1.4"
184
mockito = "1.7.0"
GuanLuo's avatar
GuanLuo committed
185
186

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