Cargo.toml 4.78 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

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

32
33
34
35
[[bench]]
name = "transfer_context_v2"
harness = false
required-features = ["block-manager", "testing-cuda"]
36
37
[dependencies]
# repo
Neelay Shah's avatar
Neelay Shah committed
38
dynamo-runtime = { workspace = true }
39
40

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

90
# input/text
91
92
93
94
dialoguer = { version = "0.11", default-features = false, features = [
  "editor",
  "history",
] }
95

Ryan Olson's avatar
Ryan Olson committed
96
# block_manager
97
aligned-vec = { version = "0.6.4", optional = true }
98
nixl-sys = { version = "=0.7.0", optional = true }
99
cudarc = { workspace = true, optional = true }
100
nix = { version = "0.26", optional = true }
101

102

103
104
105
106
# protocols
unicode-segmentation = "1.12"

# http-service
107
axum = { workspace = true }
Graham King's avatar
Graham King committed
108
axum-server = { version = "0.7", features = ["tls-rustls"] }
109
tower-http = { workspace = true }
Graham King's avatar
Graham King committed
110
rustls = { version = "0.23" }
111
112
utoipa = { version = "5.3", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
113

114

GuanLuo's avatar
GuanLuo committed
115
116
117
118
119
120
121
# 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
122
# tokenizers
123
tokenizers = { version = "0.21.4", default-features = false, features = [
Biswa Panda's avatar
Biswa Panda committed
124
125
  "onig",
  "esaxx_fast",
126
  "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
127
128
129
130
] }

# backend
galil-seiferas = { version = "0.1" }
131
toktrie = { version = "1.1" }
132
toktrie_hf_tokenizers = { version = "1.1" }
Biswa Panda's avatar
Biswa Panda committed
133
134
135
136
137

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
138
139
minijinja = { version = "2.10.2", features = ["loader"] }
minijinja-contrib = { version = "2.10.2", features = ["pycompat"] }
140
json-five = { version = "0.3" }
141

142
143
144
# media loading in the preprocessor
reqwest = { workspace = true }
base64 = { version = "0.22" }
145
146
147
image = { version = "0.25" }
tokio-rayon = {version = "2" }
ndarray = { version = "0.16" }
148

149
150
151
# Publishers
zeromq = "0.4.1"
rmp-serde = "1.3"
152
ahash = "0.8.12"
153

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

175
lazy_static = "1.4"
176
mockito = "1.7.0"
GuanLuo's avatar
GuanLuo committed
177
178

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