"mmgen/models/gans/__init__.py" did not exist on "57e0e89170c8aa97b0980fafaf87b2df0204f93d"
Cargo.toml 3.85 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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.

[package]
Neelay Shah's avatar
Neelay Shah committed
17
name = "dynamo-llm"
18
19
20
21
22
23
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true

24
25
[features]
mistralrs = ["dep:mistralrs"]
26
llamacpp = ["dep:llama-cpp-2"]
27
sglang = ["dep:async_zmq"]
28
sentencepiece = ["dep:sentencepiece"]
Graham King's avatar
Graham King committed
29
vllm = ["dep:async_zmq"]
30
python = ["dep:pyo3-async-runtimes", "dep:pythonize"]
Graham King's avatar
Graham King committed
31
trtllm = []
32
33
34
35

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

37
38
[dependencies]
# repo
Neelay Shah's avatar
Neelay Shah committed
39
dynamo-runtime = { workspace = true }
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

# 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 }
56
xxhash-rust = { workspace = true }
57
strum = { workspace = true }
58

Paul Hendricks's avatar
Paul Hendricks committed
59
async-openai = "0.27.2"
60
blake3 = "1"
61
regex = "1"
62
63
64
65
66
67
pyo3 = { version = "0.23.3", default-features = false, features = [
  "macros",
  "experimental-async",
  "experimental-inspect",
  "py-clone",
] }
68

69
# protocols
70
71
72
73
74
75
76
chrono = { version = "0.4", default-features = false, features = [
  "alloc",
  "std",
  "clock",
  "now",
  "serde",
] }
77
78
79
80
81
82
83
serde_json = { version = "1" }
unicode-segmentation = "1.12"

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

84
85
86
# mistralrs
either = { version = "1.13" }
indexmap = { version = "2.6" }
87
mistralrs = { git = "https://github.com/EricLBuehler/mistral.rs.git", rev = "a691154bb", optional = true }
88

89
90
91
92
93
# sglang
async_zmq = { version = "0.4.0", optional = true }
libc = "0.2"
serde-pickle = "1.2.0"

94
95
96
# llamacpp
llama-cpp-2 = { version = "0.1.86", optional = true }

Biswa Panda's avatar
Biswa Panda committed
97
98
99
100
# tokenizers
tokenizers = { version = "0.21.0", default-features = false, features = [
  "onig",
  "esaxx_fast",
101
102
  # Waiting for release: https://github.com/huggingface/tokenizers/issues/1736
  # "rustls-tls",
Biswa Panda's avatar
Biswa Panda committed
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
] }
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
119
120
121
# trtllm
serde_repr = "0.1"

122
123
124
125
126
127
128
129
130
131
# 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 }


132
133
134
[dev-dependencies]
proptest = "1.5.0"
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] }
135
rstest = "0.18.2"
136
rstest_reuse = "0.7.0"
137
tempfile = "3.17.1"
Biswa Panda's avatar
Biswa Panda committed
138
139
140
141
142
143
144
145
hf-hub = "0.4.1"
insta = { version = "1.41", features = [
  "glob",
  "json",
  "redactions",
  "filters",
] }

Graham King's avatar
Graham King committed
146
147
148
149
[build-dependencies]
bindgen = "0.70"
cmake = "0.1"

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