-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathpyproject.toml
More file actions
188 lines (168 loc) · 5.09 KB
/
Copy pathpyproject.toml
File metadata and controls
188 lines (168 loc) · 5.09 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
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8"
]
build-backend = "setuptools.build_meta"
[project]
name = "vllm-spyre"
description = "vLLM plugin for Spyre hardware support"
readme = "README.md"
license = {text = "Apache 2"}
dependencies = [
"fms-model-optimizer[fp8]>=0.6.0",
"ibm-fms>=1.4.0,<2.0",
"vllm>=0.10.2,<=0.11.0",
"pytest-mock>=3.15.0",
]
requires-python = ">=3.11"
dynamic = ["version"]
[project.entry-points."vllm.platform_plugins"]
spyre = "vllm_spyre:register"
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["vllm_spyre*"] # package names should match these glob patterns (["*"] by default)
exclude = [] # exclude packages matching these glob patterns (empty by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools_scm]
# Version files are optional, this just marginally speeds up version inspection
# at runtime
version_file = "vllm_spyre/_version.py"
# Version strings are formatted as `{version}+{local}`, e.g. "0.1.dev1+gb1a7032"
# Local versioning is incompatible with pypi, so we disable it by default.
local_scheme = "no-local-version"
# For more version configuration, see
# https://setuptools-scm.readthedocs.io/en/latest/config/
[tool.uv]
# Never install torch, so that no dependencies can override it.
# This requires that torch is installed separately in the target environment.
# Triton is optional in most dependencies, however, xgrammar requires it.
# So we set to 'never' to prevent installing it or eventually any other
# by accident
override-dependencies = [
"torch; sys_platform == 'never'",
"torchaudio; sys_platform == 'never'",
"torchvision; sys_platform == 'never'",
"triton; sys_platform == 'never'",
# Skip packages only on s390x, expected to be pre-installed
"vllm ; platform_machine != 's390x'",
"ray; platform_machine != 's390x'",
"llvmlite; platform_machine != 's390x'",
"pyarrow; platform_machine != 's390x'",
]
# fms-mo doesn't support python 3.9, so don't have UV try to resolve it
environments = [
"python_version > '3.9'"
]
[tool.ruff]
# Allow lines to be as long as 80.
line-length = 80
exclude = [
"vllm_spyre/model_executor/model_loader/spyre_setup.py"
]
[tool.ruff.lint.per-file-ignores]
"vllm_spyre/version.py" = ["F401"]
"vllm_spyre/_version.py" = ["ALL"]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
# "I",
"G",
]
ignore = [
# star imports
"F405", "F403",
# lambda expression assignment
"E731",
# Loop control variable not used within loop body
"B007",
# f-string format
"UP032",
# TODO: Fix all of these in code instead
# Type unions
"UP007",
# Callable
"UP035",
# Zip
"B905",
]
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
follow_imports = "silent"
# After fixing type errors resulting from follow_imports: "skip" -> "silent",
# move the directory here and remove it from tools/type_check.sh
files = [
]
# TODO(woosuk): Include the code from Megatron and HuggingFace.
exclude = [
'vllm_spyre/model_executor/model_loader/spyre_setup.py'
]
[tool.codespell]
ignore-words-list = "dout, te, indicies, subtile, ElementE"
#skip = "./tests/models/fixtures,./tests/prompts,./benchmarks/sonnet.txt,./tests/lora/data,./build"
[tool.isort]
use_parentheses = true
skip_gitignore = true
[tool.pytest.ini_options]
pythonpath = ["."]
asyncio_default_fixture_loop_scope = "function"
# --8<-- [start:test-markers-definition]
markers = [
"skip_global_cleanup",
"e2e: Tests using end-to-end engine spin-up",
"basic: Basic correctness tests",
"cb: Continuous batching tests",
"cpu: Tests using CPU (i.e. eager) backend",
"compat: backward compatibility tests",
"spyre: Tests using Spyre hardware backend",
"decoder: Tests for decoder models",
"embedding: Tests for embedding models",
"quantized: Tests for quantized models",
"multi: Tests that require >1 cards",
"utils: Tests for utility functions",
"worker: Tests for worker logic",
]
# --8<-- [end:test-markers-definition]
[tool.pymarkdown]
plugins.md013.enabled = false # line-length
plugins.md033.enabled = false # inline-html
plugins.md041.enabled = false # first-line-h1
plugins.md046.enabled = false # code-block-style
plugins.md024.allow_different_nesting = true # no-duplicate-headers
plugins.md007.enabled = true
plugins.md007.indent = 4
[dependency-groups]
dev = [
"pytest==8.3.4",
"pytest-asyncio>=1.0.0",
"pytest-forked>=1.6.0",
"pytest-timeout==2.3.1",
"requests==2.32.3",
"sentence-transformers==3.4.1",
"aiu-fms-testing-utils>=0.4.0",
]
lint = [
"clang-format==18.1.5",
"codespell==2.3.0",
"isort==5.13.2",
"mypy==1.11.1",
"pymarkdownlnt==0.9.29",
"ruff==0.6.5",
"toml==0.10.2",
"tomli==2.0.2",
"types-pyyaml>=6.0.12.20250326",
"types-requests>=2.32.0.20250328",
"types-setuptools>=77.0.2.20250328",
"yapf==0.43.0",
]