Skip to content

Commit 018cfa3

Browse files
huydhnmgoin
authored andcommitted
Update PyTorch to 2.8.0 (vllm-project#20358)
Signed-off-by: Huy Do <[email protected]> Co-authored-by: Michael Goin <[email protected]> Signed-off-by: Matthew Bonanni <[email protected]>
1 parent f11b38e commit 018cfa3

File tree

12 files changed

+50
-45
lines changed

12 files changed

+50
-45
lines changed

.buildkite/test-pipeline.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ steps:
462462
- tests/quantization
463463
commands:
464464
# temporary install here since we need nightly, will move to requirements/test.in
465-
# after torchao 0.12 release
466-
- pip install --pre torchao --index-url https://download.pytorch.org/whl/nightly/cu126
465+
# after torchao 0.12 release, and pin a working version of torchao nightly here
466+
- pip install --pre torchao==0.13.0.dev20250814 --index-url https://download.pytorch.org/whl/nightly/cu128
467467
- VLLM_TEST_FORCE_LOAD_FORMAT=auto pytest -v -s quantization
468468

469469
- label: LM Eval Small Models # 53min

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ set(HIP_SUPPORTED_ARCHS "gfx906;gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1
4545
# requirements.txt files and should be kept consistent. The ROCm torch
4646
# versions are derived from docker/Dockerfile.rocm
4747
#
48-
set(TORCH_SUPPORTED_VERSION_CUDA "2.7.1")
49-
set(TORCH_SUPPORTED_VERSION_ROCM "2.7.0")
48+
set(TORCH_SUPPORTED_VERSION_CUDA "2.8.0")
49+
set(TORCH_SUPPORTED_VERSION_ROCM "2.8.0")
5050

5151
#
5252
# Try to find python package with an executable that exactly matches

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
"packaging>=24.2",
77
"setuptools>=77.0.3,<80.0.0",
88
"setuptools-scm>=8.0",
9-
"torch == 2.7.1",
9+
"torch == 2.8.0",
1010
"wheel",
1111
"jinja2",
1212
]

requirements/build.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ ninja
44
packaging>=24.2
55
setuptools>=77.0.3,<80.0.0
66
setuptools-scm>=8
7-
torch==2.7.1
7+
torch==2.8.0
88
wheel
99
jinja2>=3.1.6
1010
regex
11+
build

requirements/cpu.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ packaging>=24.2
99
setuptools>=77.0.3,<80.0.0
1010
--extra-index-url https://download.pytorch.org/whl/cpu
1111
torch==2.6.0+cpu; platform_machine == "x86_64" # torch>2.6.0+cpu has performance regression on x86 platform, see https://github.com/pytorch/pytorch/pull/151218
12-
torch==2.7.0; platform_system == "Darwin"
13-
torch==2.7.0; platform_machine == "ppc64le"
14-
torch==2.6.0; platform_machine == "aarch64" # for arm64 CPUs, torch 2.7.0 has a issue: https://github.com/vllm-project/vllm/issues/17960
12+
torch==2.8.0; platform_system == "Darwin"
13+
torch==2.8.0; platform_machine == "ppc64le" or platform_machine == "aarch64"
1514

1615
# required for the image processor of minicpm-o-2_6, this must be updated alongside torch
1716
torchaudio; platform_machine != "ppc64le" and platform_machine != "s390x"
18-
torchaudio==2.7.0; platform_machine == "ppc64le"
17+
torchaudio==2.8.0; platform_machine == "ppc64le"
1918

2019
# required for the image processor of phi3v, this must be updated alongside torch
2120
torchvision; platform_machine != "ppc64le" and platform_machine != "s390x"
22-
torchvision==0.22.0; platform_machine == "ppc64le"
21+
torchvision==0.23.0; platform_machine == "ppc64le"
2322
datasets # for benchmark scripts
2423

2524
# Intel Extension for PyTorch, only for x86_64 CPUs

requirements/cuda.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ numba == 0.61.2; python_version > '3.9'
66

77
# Dependencies for NVIDIA GPUs
88
ray[cgraph]>=2.48.0 # Ray Compiled Graph, required for pipeline parallelism in V1.
9-
torch==2.7.1
10-
torchaudio==2.7.1
9+
torch==2.8.0
10+
torchaudio==2.8.0
1111
# These must be updated alongside torch
12-
torchvision==0.22.1 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
13-
# https://github.com/facebookresearch/xformers/releases/tag/v0.0.31
14-
xformers==0.0.31; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch >= 2.7
12+
torchvision==0.23.0 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
13+
# https://github.com/facebookresearch/xformers/releases/tag/v0.0.32.post1
14+
xformers==0.0.32.post1; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch >= 2.8

requirements/rocm-build.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Common dependencies
22
-r common.txt
33

4-
--extra-index-url https://download.pytorch.org/whl/rocm6.2.4
5-
torch==2.7.0
6-
torchvision==0.22.0
7-
torchaudio==2.7.0
4+
--extra-index-url https://download.pytorch.org/whl/rocm6.3
5+
torch==2.8.0
6+
torchvision==0.23.0
7+
torchaudio==2.8.0
88

99
triton==3.3.0
1010
cmake>=3.26.1,<4

requirements/test.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ sentence-transformers # required for embedding tests
2222
soundfile # required for audio tests
2323
jiwer # required for audio tests
2424
timm >=1.0.17 # required for internvl and gemma3n-mm test
25-
torch==2.7.1
26-
torchaudio==2.7.1
27-
torchvision==0.22.1
25+
torch==2.8.0
26+
torchaudio==2.8.0
27+
torchvision==0.23.0
2828
transformers_stream_generator # required for qwen-vl test
2929
matplotlib # required for qwen-vl test
3030
mistral_common[image,audio] >= 1.8.2 # required for voxtral test

requirements/test.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -541,42 +541,42 @@ numpy==1.26.4
541541
# tritonclient
542542
# vocos
543543
# xarray
544-
nvidia-cublas-cu12==12.8.3.14
544+
nvidia-cublas-cu12==12.8.4.1
545545
# via
546546
# nvidia-cudnn-cu12
547547
# nvidia-cusolver-cu12
548548
# torch
549-
nvidia-cuda-cupti-cu12==12.8.57
549+
nvidia-cuda-cupti-cu12==12.8.90
550550
# via torch
551-
nvidia-cuda-nvrtc-cu12==12.8.61
551+
nvidia-cuda-nvrtc-cu12==12.8.93
552552
# via torch
553-
nvidia-cuda-runtime-cu12==12.8.57
553+
nvidia-cuda-runtime-cu12==12.8.90
554554
# via torch
555-
nvidia-cudnn-cu12==9.7.1.26
555+
nvidia-cudnn-cu12==9.10.2.21
556556
# via torch
557-
nvidia-cufft-cu12==11.3.3.41
557+
nvidia-cufft-cu12==11.3.3.83
558558
# via torch
559-
nvidia-cufile-cu12==1.13.0.11
559+
nvidia-cufile-cu12==1.13.1.3
560560
# via torch
561-
nvidia-curand-cu12==10.3.9.55
561+
nvidia-curand-cu12==10.3.9.90
562562
# via torch
563-
nvidia-cusolver-cu12==11.7.2.55
563+
nvidia-cusolver-cu12==11.7.3.90
564564
# via torch
565-
nvidia-cusparse-cu12==12.5.7.53
565+
nvidia-cusparse-cu12==12.5.8.93
566566
# via
567567
# nvidia-cusolver-cu12
568568
# torch
569-
nvidia-cusparselt-cu12==0.6.3
569+
nvidia-cusparselt-cu12==0.7.1
570570
# via torch
571-
nvidia-nccl-cu12==2.26.2
571+
nvidia-nccl-cu12==2.27.3
572572
# via torch
573-
nvidia-nvjitlink-cu12==12.8.61
573+
nvidia-nvjitlink-cu12==12.8.93
574574
# via
575575
# nvidia-cufft-cu12
576576
# nvidia-cusolver-cu12
577577
# nvidia-cusparse-cu12
578578
# torch
579-
nvidia-nvtx-cu12==12.8.55
579+
nvidia-nvtx-cu12==12.8.90
580580
# via torch
581581
omegaconf==2.3.0
582582
# via
@@ -1069,7 +1069,7 @@ tomli==2.2.1
10691069
# via schemathesis
10701070
tomli-w==1.2.0
10711071
# via schemathesis
1072-
torch==2.7.1+cu128
1072+
torch==2.8.0+cu128
10731073
# via
10741074
# -r requirements/test.in
10751075
# accelerate
@@ -1098,7 +1098,7 @@ torch==2.7.1+cu128
10981098
# torchvision
10991099
# vector-quantize-pytorch
11001100
# vocos
1101-
torchaudio==2.7.1+cu128
1101+
torchaudio==2.8.0+cu128
11021102
# via
11031103
# -r requirements/test.in
11041104
# encodec
@@ -1111,7 +1111,7 @@ torchmetrics==1.7.4
11111111
# pytorch-lightning
11121112
# terratorch
11131113
# torchgeo
1114-
torchvision==0.22.1+cu128
1114+
torchvision==0.23.0+cu128
11151115
# via
11161116
# -r requirements/test.in
11171117
# lightly
@@ -1152,7 +1152,7 @@ transformers==4.55.2
11521152
# transformers-stream-generator
11531153
transformers-stream-generator==0.0.5
11541154
# via -r requirements/test.in
1155-
triton==3.3.1
1155+
triton==3.4.0
11561156
# via torch
11571157
tritonclient==2.51.0
11581158
# via

tests/distributed/test_sequence_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _compare_sp(
292292
# TODO support other models
293293
# [LANGUAGE GENERATION]
294294
"meta-llama/Llama-3.2-1B-Instruct",
295-
"RedHatAI/Meta-Llama-3.1-8B-Instruct-FP8"
295+
"RedHatAI/Meta-Llama-3.1-8B-Instruct-FP8",
296296
]
297297

298298

0 commit comments

Comments
 (0)