-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathCargo.toml
More file actions
229 lines (224 loc) · 8.15 KB
/
Copy pathCargo.toml
File metadata and controls
229 lines (224 loc) · 8.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
[workspace]
default-members = ["openinfer-server"]
members = [
"openinfer-engine",
"openinfer-vllm-frontend",
"openinfer-sim",
"openinfer-vllm-support",
"openinfer-server",
"openinfer-core",
"openinfer-cupti",
"openinfer-kernels",
"openinfer-bench",
"openinfer-build",
"openinfer-deepseek-v2-lite",
"openinfer-glm52",
"openinfer-kimi-k2",
"openinfer-qwen3",
"openinfer-qwen35-4b",
"openinfer-sample",
"openinfer-kv-cache",
"openinfer-kv-offload",
# ---- dynamo kvbm (forked from upstream, Apache-2.0) ----
"kvbm/kvbm-logical",
]
resolver = "3"
# openinfer-dynamo-backend / -frontend are their OWN workspaces (they depend on
# dynamo-runtime / dynamo-llm). Excluding them keeps that heavy dep tree out of
# this workspace's `--workspace` build + test graph, so the default openinfer
# build stays pure Rust + CUDA with no NATS/etcd/tonic. Build from their own dirs.
exclude = ["openinfer-dynamo-backend", "openinfer-dynamo-frontend"]
# Inherited by dynamo-ported crates that use `edition.workspace = true` etc.
[workspace.package]
authors = ["NVIDIA Inc. <sw-dl-dynamo@nvidia.com>"]
description = "Dynamo Inference Framework"
edition = "2024"
homepage = "https://github.com/ai-dynamo/dynamo"
keywords = ["llm", "genai", "inference", "nvidia", "distributed"]
license = "Apache-2.0"
repository = "https://github.com/ai-dynamo/dynamo.git"
version = "1.2.0"
[workspace.dependencies]
# ---- dynamo (upstream via git; kvbm-logical is a local fork) ----
# Keep every ai-dynamo/dynamo dep on the SAME rev: crates from the same git
# checkout unify their shared internal deps (dynamo-tokens), mixing revs would
# split type identity.
dynamo-kv-hashing = { git = "https://github.com/ai-dynamo/dynamo", rev = "364cc8aa543d97f0563e17de3069d98ea051f33f" }
dynamo-tokens = { git = "https://github.com/ai-dynamo/dynamo", rev = "364cc8aa543d97f0563e17de3069d98ea051f33f" }
kvbm-logical = { path = "kvbm/kvbm-logical" }
# ---- third-party ----
anyhow = "1.0"
async-nats = { version = "0.45.0", features = ["service"] }
async-stream = "0.3"
async-trait = "0.1"
axum = "0.8"
bincode = "2.0.1"
bindgen = "0.72.1"
bytes = { version = "1.10.1", features = ["serde"] }
bytesize = "2.3.1"
cc = "1.2"
chrono = { version = "0.4", default-features = false, features = [
"serde",
"clock",
] }
clap = { version = "4.6.1", features = ["derive"] }
colored = "3"
comfy-table = "7.2"
criterion = { version = "0.8", features = ["html_reports"] }
crossbeam-channel = "0.5"
# Floor 0.19.3 (caret), the lowest that satisfies dynamo's `=0.19.3` pin in the
# openinfer-dynamo-backend sub-workspace. The MAIN openinfer workspace stays
# locked at 0.19.7 (caret-satisfied, no re-resolve), so the standalone engine
# keeps the 0.19.5+ per-symbol lazy nvrtc loading that holds the cuda-12090
# binding off a runtime driver floor (issue #263). Only the dynamo-backend
# worker resolves to exactly 0.19.3 (eager symbol load, below the #263 floor) —
# acceptable there: offload is OFF so the nvrtc JIT path is never exercised at
# runtime, and the eager load is satisfied on the target deploy HW (verified
# loading + serving on the 5090, driver 590 / CUDA 13.1).
cudarc = { version = "0.19.3", features = [
"cuda-12090",
"cublas",
"f16",
"nccl",
# nvrtc: embedded pegaflow-core's transfer/kernel.rs references the nvrtc
# bindings unconditionally (its KernelBackend JIT-compiles the copy kernel),
# so the symbol is linked even with offload disabled. See the cudarc version
# note above for the 0.19.3-vs-0.19.5 (#263) lazy-loading tradeoff.
"nvrtc",
] }
cxx = "1.0.187"
cxx-build = "1.0.187"
dashmap = { version = "6.1.0", features = ["inline"] }
derive-getters = "0.5"
derive_builder = "0.20"
either = { version = "1.13", features = ["serde"] }
etcd-client = { version = "0.17.0", features = ["tls"] }
fastrace = { version = "0.7.17", features = ["enable"] }
futures = "0.3"
half = { version = "2.7", features = ["num-traits"] }
hex = "0.4"
humantime = "2.2.0"
indexmap = "2"
is-terminal = "0.4"
libc = "0.2"
log = "0.4"
logforth = { version = "0.29", features = [
"starter-log",
"layout-text",
"diagnostic-task-local",
] }
memmap2 = "0.9"
mio = "=1.1.1"
mockall = "0.13.1"
nvtx = "1.3.0"
once_cell = "1.21.3"
oneshot = "0.1.11"
openinfer-bench = { path = "openinfer-bench" }
openinfer-build = { path = "openinfer-build" }
openinfer-core = { path = "openinfer-core" }
openinfer-cupti = { path = "openinfer-cupti" }
openinfer-deepseek-v2-lite = { path = "openinfer-deepseek-v2-lite" }
openinfer-engine = { path = "openinfer-engine" }
openinfer-glm52 = { path = "openinfer-glm52" }
openinfer-kernels = { path = "openinfer-kernels" }
openinfer-kimi-k2 = { path = "openinfer-kimi-k2" }
openinfer-kv-cache = { path = "openinfer-kv-cache" }
openinfer-kv-offload = { path = "openinfer-kv-offload" }
openinfer-qwen3 = { path = "openinfer-qwen3" }
openinfer-qwen35-4b = { path = "openinfer-qwen35-4b" }
openinfer-sample = { path = "openinfer-sample" }
openinfer-vllm-frontend = { path = "openinfer-vllm-frontend" }
openinfer-vllm-support = { path = "openinfer-vllm-support" }
opentelemetry = { version = "0.31.0", features = ["trace", "logs"] }
opentelemetry-appender-tracing = "0.31.0"
opentelemetry-otlp = { version = "0.31.0", features = [
"trace",
"logs",
"grpc-tonic",
] }
opentelemetry_sdk = { version = "0.31.0", features = [
"trace",
"logs",
"rt-tokio",
] }
ordered-float = "4"
parking_lot = "0.12.5"
pkg-config = "0.3.32"
postcard = { version = "1.1.3", features = ["alloc", "use-std"] }
prometheus = "0.14"
pyo3 = { version = "0.27.1", features = ["anyhow"] }
rand = "0.10"
smallvec = { version = "1.15.1", features = ["serde", "union"] }
syscalls = "0.7.0"
thiserror = "2.0.17"
# logforth consumes the `log` facade only; the `log` feature bridges tracing
# events into log so they reach logforth instead of vanishing silently.
reqwest = { version = "0.12", default-features = false, features = ["stream"] }
rmp-serde = "1.3"
rmpv = "1.3"
safetensors = "0.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.149"
sha2 = "0.11"
tempfile = "3"
tmq = "0.5.0"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
tokio-util = "0.7"
toml = "1.1"
tower = "0.5"
tower-http = { version = "0.6", features = ["trace"] }
tracing = { version = "0.1.41", features = ["log"] }
tracing-core = "0.1.34"
tracing-log = "0.2.0"
tracing-opentelemetry = "0.32.0"
tracing-subscriber = { version = "0.3.20", features = ["env-filter", "json"] }
url = { version = "2.5", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
validator = { version = "0.20.0", features = ["derive"] }
velo = "0.1.0"
vllm-engine-core-client = { git = "https://github.com/vllm-project/vllm.git", rev = "8e61b646e2d157f9b93451fa048f9c8530c8a67b" }
vllm-server = { git = "https://github.com/vllm-project/vllm.git", rev = "8e61b646e2d157f9b93451fa048f9c8530c8a67b" }
vllm-text = { git = "https://github.com/vllm-project/vllm.git", rev = "8e61b646e2d157f9b93451fa048f9c8530c8a67b" }
vllm-tokenizer = { git = "https://github.com/vllm-project/vllm.git", rev = "8e61b646e2d157f9b93451fa048f9c8530c8a67b" }
xxhash-rust = { version = "0.8", features = ["xxh3", "const_xxh3"] }
zeromq = { version = "0.6.0", default-features = false, features = [
"tokio-runtime",
"all-transport",
] }
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -2 }
# Allowed pedantic lints (too noisy for this codebase)
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
doc_markdown = "allow"
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
upper_case_acronyms = "allow"
# Cherry-picked nursery lints
redundant_clone = "warn"
unused_peekable = "warn"
# Restriction lints worth enforcing
dbg_macro = "warn"
exit = "warn"
get_unwrap = "warn"
print_stderr = "allow"
print_stdout = "allow"
rc_buffer = "warn"
rc_mutex = "warn"
rest_pat_in_fully_bound_structs = "warn"
[workspace.lints.rust]
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"