Cargo.toml 4.79 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

Neelay Shah's avatar
Neelay Shah committed
16
[workspace.package]
17
version = "0.1.0"
Neelay Shah's avatar
Neelay Shah committed
18
19
20
edition = "2021"
authors = ["NVIDIA"]
license = "Apache-2.0"
Neelay Shah's avatar
Neelay Shah committed
21
22
homepage = "https://github.com/ai-dynamo/dynamo"
repository = "https://github.com/ai-dynamo/dynamo.git"
Neelay Shah's avatar
Neelay Shah committed
23

24
[package]
Neelay Shah's avatar
Neelay Shah committed
25
name = "dynamo-llm"
26
27
28
29
30
31
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true

32
33
[features]
mistralrs = ["dep:mistralrs"]
34
llamacpp = ["dep:llama-cpp-2"]
35
sglang = ["dep:async_zmq"]
36
sentencepiece = ["dep:sentencepiece"]
Graham King's avatar
Graham King committed
37
vllm = ["dep:async_zmq"]
38
python = ["dep:pyo3-async-runtimes", "dep:pythonize"]
Graham King's avatar
Graham King committed
39
trtllm = []
40
41
42
43

cuda = ["mistralrs/cuda", "llama-cpp-2/cuda"]
metal = ["mistralrs/metal", "llama-cpp-2/metal"]
vulkan = ["llama-cpp-2/vulkan"]
44

Neelay Shah's avatar
Neelay Shah committed
45
46
[workspace.dependencies]
# local or crates.io
47
dynamo-runtime = { version = "0.1.0", path = "../runtime" }
Neelay Shah's avatar
Neelay Shah committed
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

# crates.io
anyhow = { version = "1" }
async-stream = { version = "0.3" }
async-trait = { version = "0.1" }
bytes = "1"
derive_builder = "0.20"
futures = "0.3"
serde = { version = "1", features = ["derive"] }
thiserror = { version = "2.0.11" }
tokio = { version = "1", features = ["full"] }
tokio-stream = { version = "0.1" }
tokio-util = { version = "0.7", features = ["codec", "net"] }
tracing = { version = "0.1" }
validator = { version = "0.20.0", features = ["derive"] }
uuid = { version = "1", features = ["v4", "serde"] }
xxhash-rust = { version = "0.8", features = ["xxh3", "const_xxh3"] }
65
strum = { version = "0.27", features = ["derive"] }
Neelay Shah's avatar
Neelay Shah committed
66

67
68
69
[dependencies]

# repo
Neelay Shah's avatar
Neelay Shah committed
70
dynamo-runtime = { workspace = true }
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

# workspace
anyhow = { workspace = true }
async-stream = { workspace = true }
async-trait = { workspace = true }
bytes = { workspace = true }
derive_builder = {workspace = true }
futures =  { workspace = true }
serde = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
validator = { workspace = true }
uuid = { workspace = true }
87
xxhash-rust = { workspace = true }
88
strum = { workspace = true }
89

Paul Hendricks's avatar
Paul Hendricks committed
90
async-openai = "0.27.2"
91
blake3 = "1"
92
regex = "1"
93
94
95
96
97
98
pyo3 = { version = "0.23.3", default-features = false, features = [
  "macros",
  "experimental-async",
  "experimental-inspect",
  "py-clone",
] }
99

100
# protocols
101
102
103
104
105
106
107
chrono = { version = "0.4", default-features = false, features = [
  "alloc",
  "std",
  "clock",
  "now",
  "serde",
] }
108
109
110
111
112
113
114
serde_json = { version = "1" }
unicode-segmentation = "1.12"

# http-service
axum = "0.8"
prometheus = { version = "0.13" }

115
116
117
# mistralrs
either = { version = "1.13" }
indexmap = { version = "2.6" }
118
mistralrs = { git = "https://github.com/EricLBuehler/mistral.rs.git", rev = "5e689c9", optional = true }
119

120
121
122
123
124
# sglang
async_zmq = { version = "0.4.0", optional = true }
libc = "0.2"
serde-pickle = "1.2.0"

125
126
127
# llamacpp
llama-cpp-2 = { version = "0.1.86", optional = true }

Biswa Panda's avatar
Biswa Panda committed
128
129
130
131
# tokenizers
tokenizers = { version = "0.21.0", default-features = false, features = [
  "onig",
  "esaxx_fast",
132
133
  # Waiting for release: https://github.com/huggingface/tokenizers/issues/1736
  # "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
] }
sentencepiece = { version = "0.11.2", optional = true }

# backend
galil-seiferas = { version = "0.1" }
toktrie = {version = "0.6.28" }
toktrie_hf_tokenizers =  { version = "0.6.28" }

# preprocessor
bs62 = { version = "0.1" }
erased-serde = { version = "0.4" }
itertools = { version = "0.14.0" }
minijinja = { version = "2.3.1", features = ["loader"] }
minijinja-contrib = { version = "2.3.1", features = ["pycompat"] }
semver = { version = "1", features = ["serde"] }

Graham King's avatar
Graham King committed
150
151
152
# trtllm
serde_repr = "0.1"

153
154
155
156
157
158
159
160
161
162
# python
pyo3-async-runtimes = { version = "0.23.0", optional = true, default-features = false, features = [
  "attributes",
  "testing",
  "tokio-runtime",
  "unstable-streams",
] }
pythonize = { version = "0.23", optional = true }


163
164
165
[dev-dependencies]
proptest = "1.5.0"
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] }
166
rstest = "0.18.2"
167
rstest_reuse = "0.7.0"
168
tempfile = "3.17.1"
Biswa Panda's avatar
Biswa Panda committed
169
170
171
172
173
174
175
176
hf-hub = "0.4.1"
insta = { version = "1.41", features = [
  "glob",
  "json",
  "redactions",
  "filters",
] }

Graham King's avatar
Graham King committed
177
178
179
180
[build-dependencies]
bindgen = "0.70"
cmake = "0.1"

Biswa Panda's avatar
Biswa Panda committed
181
[profile.dev.package]
182
insta.opt-level = 3