Skip to content

Commit 4e7dfbe

Browse files
authored
Update PyTorch to torch==2.7.1 for CUDA (#21011)
Signed-off-by: mgoin <mgoin64@gmail.com>
1 parent 72ad273 commit 4e7dfbe

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ 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.0")
48+
set(TORCH_SUPPORTED_VERSION_CUDA "2.7.1")
4949
set(TORCH_SUPPORTED_VERSION_ROCM "2.7.0")
5050

5151
#

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.0",
9+
"torch == 2.7.1",
1010
"wheel",
1111
"jinja2",
1212
]

requirements/build.txt

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

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.43.0, !=2.44.* # Ray Compiled Graph, required for pipeline parallelism in V1.
9-
torch==2.7.0
10-
torchaudio==2.7.0
9+
torch==2.7.1
10+
torchaudio==2.7.1
1111
# These must be updated alongside torch
12-
torchvision==0.22.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.30
14-
xformers==0.0.30; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch >= 2.7
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

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 # required for internvl test
25-
torch==2.7.0
26-
torchaudio==2.7.0
27-
torchvision==0.22.0
25+
torch==2.7.1
26+
torchaudio==2.7.1
27+
torchvision==0.22.1
2828
transformers_stream_generator # required for qwen-vl test
2929
mamba_ssm # required for plamo2 test
3030
matplotlib # required for qwen-vl test

requirements/test.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ tomli==2.2.1
762762
# via schemathesis
763763
tomli-w==1.2.0
764764
# via schemathesis
765-
torch==2.7.0+cu128
765+
torch==2.7.1+cu128
766766
# via
767767
# -r requirements/test.in
768768
# accelerate
@@ -781,12 +781,12 @@ torch==2.7.0+cu128
781781
# torchvision
782782
# vector-quantize-pytorch
783783
# vocos
784-
torchaudio==2.7.0+cu128
784+
torchaudio==2.7.1+cu128
785785
# via
786786
# -r requirements/test.in
787787
# encodec
788788
# vocos
789-
torchvision==0.22.0+cu128
789+
torchvision==0.22.1+cu128
790790
# via
791791
# -r requirements/test.in
792792
# timm
@@ -816,7 +816,7 @@ transformers==4.53.2
816816
# transformers-stream-generator
817817
transformers-stream-generator==0.0.5
818818
# via -r requirements/test.in
819-
triton==3.3.0
819+
triton==3.3.1
820820
# via torch
821821
tritonclient==2.51.0
822822
# via

tests/entrypoints/openai/test_vision.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
],
3737
[
3838
"The image shows a Venn diagram with three over",
39-
"This image shows a Venn diagram with three over",
39+
"The image shows a Venn diagram with three intersect",
4040
],
4141
[
4242
"This image displays a gradient of colors ranging from",
43-
"This image displays a gradient of colors transitioning from",
43+
"The image displays a gradient of colors ranging from",
4444
],
4545
]
4646

0 commit comments

Comments
 (0)