pyproject.toml 4.71 KB
Newer Older
1
[build-system]
2
# Should be mirrored in requirements/build/cuda.txt
3
requires = [
4
    "cmake>=3.26.1",
5
    "ninja",
6
    "packaging>=24.2",
7
    "setuptools>=77.0.3,<81.0.0",
8
    "setuptools-scm>=8.0",
9
    "torch == 2.11.0",
10
    "wheel",
11
    "jinja2",
12
13
]
build-backend = "setuptools.build_meta"
14

15
16
17
[project]
name = "vllm"
authors = [{name = "vLLM Team"}]
18
19
license = "Apache-2.0"
license-files = ["LICENSE"]
20
21
22
23
24
25
readme = "README.md"
description = "A high-throughput and memory-efficient inference and serving engine for LLMs"
classifiers = [
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
26
    "Programming Language :: Python :: 3.13",
27
28
29
30
31
32
    "Intended Audience :: Developers",
    "Intended Audience :: Information Technology",
    "Intended Audience :: Science/Research",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
    "Topic :: Scientific/Engineering :: Information Analysis",
]
33
requires-python = ">=3.10,<3.14"
34
35
36
37
dynamic = [ "version", "dependencies", "optional-dependencies"]

[project.urls]
Homepage="https://github.com/vllm-project/vllm"
38
39
Documentation="https://docs.vllm.ai/en/latest/"
Slack="https://slack.vllm.ai/"
40
41
42
43

[project.scripts]
vllm = "vllm.entrypoints.cli.main:main"

44
45
[project.entry-points."vllm.general_plugins"]
lora_filesystem_resolver = "vllm.plugins.lora_resolvers.filesystem_resolver:register_filesystem_resolver"
46
lora_hf_hub_resolver = "vllm.plugins.lora_resolvers.hf_hub_resolver:register_hf_hub_resolver"
47

48
[tool.setuptools_scm]
49
# no extra settings needed, presence enables setuptools-scm
50
51
52

[tool.setuptools.packages.find]
where = ["."]
53
include = ["vllm*"]
54

55
[tool.ruff.lint.per-file-ignores]
56
"vllm/third_party/**" = ["ALL"]
57
58
59
"vllm/version.py" = ["F401"]
"vllm/_version.py" = ["ALL"]

60
61
62
63
64
65
66
[tool.ruff.lint]
select = [
    # pycodestyle
    "E",
    # Pyflakes
    "F",
    # pyupgrade
67
    "UP",
68
69
    # flake8-bugbear
    "B",
70
71
    # flake8-implicit-str-concat
    "ISC",
72
73
74
    # flake8-simplify
    "SIM",
    # isort
75
    "I",
76
    # flake8-logging-format
77
    "G",
78
79
80
81
82
83
]
ignore = [
    # star imports
    "F405", "F403",
    # lambda expression assignment
    "E731",
84
85
    # zip without `strict=`
    "B905",
86
87
    # Loop control variable not used within loop body
    "B007",
88
89
    # f-string format
    "UP032",
90
]
91

92
93
94
[tool.ruff.format]
docstring-code-format = true

95
[tool.mypy]
96
plugins = ['pydantic.mypy']
97
ignore_missing_imports = true
98
check_untyped_defs = true
99
follow_imports = "silent"
100

101
102
[tool.pytest.ini_options]
markers = [
103
    "slow_test",
104
    "skip_global_cleanup",
105
    "core_model: enable this model test in each PR instead of only nightly",
106
    "hybrid_model: models that contain mamba layers (including pure SSM and hybrid architectures)",
107
    "cpu_model: enable this model test in CPU tests",
108
    "cpu_test: mark test as CPU-only test",
109
110
    "split: run this test as part of a split",
    "distributed: run this test only in distributed GPU tests",
111
    "optional: optional tests that are automatically skipped, include --optional to run them",
112
]
113

114
[tool.ty.src]
Aaron Pham's avatar
Aaron Pham committed
115
116
117
118
respect-ignore-files = true

[tool.ty.environment]
python = "./.venv"
119
120
121

[tool.typos.files]
# these files may be written in non english words
Jiayi Yan's avatar
Jiayi Yan committed
122
extend-exclude = ["tests/models/fixtures/*", "tests/prompts/*", "tests/tokenizers_/*",
123
124
    "benchmarks/sonnet.txt", "tests/lora/data/*", "build/*",
    "examples/pooling/token_embed/*", "tests/models/language/pooling/*",
125
    "vllm/third_party/*", "vllm/entrypoints/serve/instrumentator/static/*", "tests/entrypoints/openai/speech_to_text/test_transcription_validation.py",
126
127
    "docs/governance/process.md", "docs/assets/contributing/vllm_bench_serve_timeline.html", 
    "tests/v1/engine/test_fast_incdec_prefix_err.py", ".git/*"]
Jiayi Yan's avatar
Jiayi Yan committed
128
ignore-hidden = false
129
130

[tool.typos.default]
Jiayi Yan's avatar
Jiayi Yan committed
131
extend-ignore-identifiers-re = [".*[Uu][Ee][0-9][Mm][0-9].*"]
132
133
134
135
136
137

[tool.typos.default.extend-identifiers]
bbc5b7ede = "bbc5b7ede"
NOOPs = "NOOPs"
nin_shortcut = "nin_shortcut"
cudaDevAttrMaxSharedMemoryPerBlockOptin = "cudaDevAttrMaxSharedMemoryPerBlockOptin"
Jiayi Yan's avatar
Jiayi Yan committed
138

139
depthwise_seperable_out_channel = "depthwise_seperable_out_channel"
Jiayi Yan's avatar
Jiayi Yan committed
140
141
142
143
144
145
146
147
pard_token = "pard_token"
ptd_token_id = "ptd_token_id"
ser_de = "ser_de"
shared_memory_per_block_optin = "shared_memory_per_block_optin"
FoPE = "FoPE"
k_ot = "k_ot"
view_seperator = "view_seperator"
inverse_std_variences = "inverse_std_variences"
148
149
150

[tool.typos.default.extend-words]
iy = "iy"
151
indx = "indx"
152
153
154
155
156
# intel cpu features
tme = "tme"
dout = "dout"
Pn = "Pn"
arange = "arange"
Jiayi Yan's avatar
Jiayi Yan committed
157
158
159
160
161
162
163
thw = "thw"
subtile = "subtile"
HSA = "HSA"
setp = "setp"
CPY = "CPY"
thr = "thr"
Thr = "Thr"
164
165
PARD = "PARD"
pard = "pard"
166
AKS = "AKS"
167
ba = "ba"
Jiayi Yan's avatar
Jiayi Yan committed
168
fo = "fo"
169
nd = "nd"
Jiayi Yan's avatar
Jiayi Yan committed
170
171
eles = "eles"
datas = "datas"
172
ser = "ser"
173
ure = "ure"
174
VALU = "VALU"
175
176
177
# Walsh-Hadamard Transform
wht = "wht"
WHT = "WHT"
178
179

[tool.uv]
180
no-build-isolation-package = ["torch"]