"vllm/vscode:/vscode.git/clone" did not exist on "1123a878920f3ef35f858558415d43b9ed22701e"
pyproject.toml 4.43 KB
Newer Older
1
[build-system]
2
# Should be mirrored in requirements/build.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.10.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
46
[project.entry-points."vllm.general_plugins"]
lora_filesystem_resolver = "vllm.plugins.lora_resolvers.filesystem_resolver:register_filesystem_resolver"

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

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

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

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

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

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

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

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

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

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

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

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

136
depthwise_seperable_out_channel = "depthwise_seperable_out_channel"
Jiayi Yan's avatar
Jiayi Yan committed
137
138
139
140
141
142
143
144
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"
145
146
147

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

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