Skip to content

Commit 6c0a973

Browse files
authored
chore(deps): bump vLLM, torch, and other related deps (#168)
# Summary * bump vLLM and torch dependencies to get ahead of a CVE Signed-off-by: Matt Kornfield <mkornfield@nvidia.com>
1 parent 92181b0 commit 6c0a973

4 files changed

Lines changed: 606 additions & 324 deletions

File tree

.github/actions/detect-changes/action.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ outputs:
2222
description: "'true' if any file under src/ changed"
2323
value: ${{ steps.filter.outputs.src }}
2424
test:
25-
description: "'true' if any file under test/ changed"
26-
value: ${{ steps.filter.outputs.test }}
25+
description: "'true' if any file under tests/ or pytest.ini changed"
26+
value: ${{ steps.filter.outputs.tests == 'true' || steps.filter.outputs.pytest_ini == 'true' }}
27+
deps:
28+
description: "'true' if any dep related files changed"
29+
value: ${{ steps.filter.outputs.pyproject == 'true' || steps.filter.outputs.uv_lock == 'true' }}
2730

2831
runs:
2932
using: "composite"
@@ -38,11 +41,11 @@ runs:
3841
filters: |
3942
src:
4043
- 'src/**'
41-
test:
42-
- 'test/**'
43-
pyproject.toml:
44+
tests:
45+
- 'tests/**'
46+
pyproject:
4447
- 'pyproject.toml'
45-
uv.lock:
48+
uv_lock:
4649
- 'uv.lock'
47-
pytest.ini:
50+
pytest_ini:
4851
- 'pytest.ini'

.github/workflows/ci-checks.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
outputs:
4949
src: ${{ steps.changes.outputs.src }}
5050
test: ${{ steps.changes.outputs.test }}
51+
deps: ${{ steps.changes.outputs.deps }}
5152
steps:
5253
- uses: actions/checkout@v6
5354
- name: Detect changes
@@ -57,7 +58,7 @@ jobs:
5758
format:
5859
name: Format
5960
needs: changes
60-
if: ${{ needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' }}
61+
if: ${{ needs.changes.outputs.src == 'true' || needs.changes.outputs.deps == 'true' || github.event_name == 'workflow_dispatch' }}
6162
runs-on: ubuntu-latest
6263
steps:
6364
- name: checkout
@@ -84,7 +85,7 @@ jobs:
8485
typecheck:
8586
name: Typecheck
8687
needs: changes
87-
if: ${{ needs.changes.outputs.src == 'true' || github.event_name == 'workflow_dispatch' }}
88+
if: ${{ needs.changes.outputs.src == 'true' || needs.changes.outputs.deps == 'true' || github.event_name == 'workflow_dispatch' }}
8889
runs-on: ubuntu-latest
8990
steps:
9091
- name: checkout
@@ -108,7 +109,7 @@ jobs:
108109
unit-test:
109110
name: Unit Tests - (Python ${{ matrix.python-version }})
110111
needs: changes
111-
if: ${{ needs.changes.outputs.src == 'true' || needs.changes.outputs.test == 'true' || github.event_name == 'workflow_dispatch' }}
112+
if: ${{ needs.changes.outputs.src == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.deps == 'true' || github.event_name == 'workflow_dispatch' }}
112113
runs-on: ubuntu-latest
113114
strategy:
114115
fail-fast: false

pyproject.toml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ engine = [
8989
"langchain-core",
9090
"json-repair",
9191
"matplotlib",
92-
"numpy<2",
9392
"outlines_core==0.2.13",
9493
"outlines>=1.0.0",
9594
"prv-accountant",
@@ -118,50 +117,50 @@ engine = [
118117
cpu = [
119118
"accelerate",
120119
"bitsandbytes==0.49.1",
121-
"flashinfer-python==0.5.3; sys_platform=='linux'",
122-
"flashinfer-cubin==0.5.3; sys_platform=='linux'",
123-
"faiss-cpu==1.9.0",
120+
"flashinfer-python==0.6.1; sys_platform=='linux'",
121+
"flashinfer-cubin==0.6.1; sys_platform=='linux'",
122+
"faiss-cpu==1.13.2",
124123
"gliner",
125124
"kernels>=0.12.1",
126125
"peft",
127126
"opacus",
128127
"sentence-transformers",
129-
"torch==2.9.0; sys_platform == 'darwin'",
130-
"torch==2.9.0+cpu; sys_platform == 'linux'",
131-
"torchvision==0.24.0; sys_platform == 'darwin'",
132-
"torchvision==0.24.0+cpu; sys_platform == 'linux'",
128+
"torch==2.9.1; sys_platform == 'darwin'",
129+
"torch==2.9.1+cpu; sys_platform == 'linux'",
130+
"torchvision==0.24.1; sys_platform == 'darwin'",
131+
"torchvision==0.24.1+cpu; sys_platform == 'linux'",
133132
"torchao==0.14.1",
134133
"transformers==4.57.3",
135134
"triton>=2.0.0; sys_platform=='linux'",
136135
"trl>=0.23.0",
137136
"unsloth[cu128-torch290]==2025.12.4",
138137
"unsloth_zoo==2025.12.4",
139-
"vllm==0.11.1",
138+
"vllm==0.15.0",
140139
]
141140

142141
cu128 = [
143142
"accelerate",
144143
"bitsandbytes==0.49.1",
145-
"faiss-gpu-cu12==1.9.0; sys_platform == 'linux'",
146-
"flashinfer-python==0.5.3; sys_platform == 'linux'",
147-
"flashinfer-cubin==0.5.3; sys_platform == 'linux'",
148-
"flashinfer-jit-cache==0.5.3+cu128; sys_platform == 'linux'",
144+
"faiss-gpu-cu12==1.13.2; sys_platform == 'linux'",
145+
"flashinfer-python==0.6.1; sys_platform == 'linux'",
146+
"flashinfer-cubin==0.6.1; sys_platform == 'linux'",
147+
"flashinfer-jit-cache==0.6.1+cu128; sys_platform == 'linux'",
149148
"gliner",
150149
"kernels>=0.12.1",
151150
"nvidia-cublas-cu12; sys_platform == 'linux'",
152151
"nvidia-ml-py; sys_platform == 'linux'",
153152
"opacus",
154153
"peft",
155154
"sentence-transformers",
156-
"torch==2.9.0+cu128; sys_platform == 'linux'",
157-
"torchvision==0.24.0+cu128; sys_platform == 'linux'",
155+
"torch==2.9.1+cu128; sys_platform == 'linux'",
156+
"torchvision==0.24.1+cu128; sys_platform == 'linux'",
158157
"torchao==0.14.1; sys_platform == 'linux'",
159158
"transformers==4.57.3",
160159
"triton>=2.0.0",
161160
"trl>=0.23.0",
162161
"unsloth[cu128-torch290]==2025.12.4",
163162
"unsloth_zoo==2025.12.4",
164-
"vllm==0.11.1",
163+
"vllm==0.15.0",
165164
"xformers==0.0.33.post1; sys_platform == 'linux'",
166165
]
167166

@@ -188,9 +187,9 @@ dependency-metadata = [
188187

189188

190189
override-dependencies = [
191-
"outlines_core==0.2.13", # there's a conflict with vllm's (nss) pin on outlines_core==0.2.10 but this version works.
192-
"flashinfer-python==0.5.3; sys_platform != 'darwin'", # uv locking won't find the matching versions of flashinfer-python and -cubin without overriding
193-
"flashinfer-cubin==0.5.3; sys_platform != 'darwin'", # perhaps because the published wheels have some wrong metadata
190+
"outlines_core==0.2.13", # override vllm's pin to align with our tested version
191+
"flashinfer-python==0.6.1; sys_platform != 'darwin'", # uv locking won't find the matching versions of flashinfer-python and -cubin without overriding
192+
"flashinfer-cubin==0.6.1; sys_platform != 'darwin'", # perhaps because the published wheels have some wrong metadata
194193
]
195194

196195
environments = [
@@ -203,7 +202,7 @@ environments = [
203202
"sys_platform == 'linux' and platform_machine == 'aarch64'",
204203
]
205204

206-
constraint-dependencies = ["torch==2.9.0", "regex==2025.07.34", "pandas<3"]
205+
constraint-dependencies = ["torch==2.9.1", "regex==2025.07.34", "pandas<3"]
207206

208207

209208

0 commit comments

Comments
 (0)