Skip to content

Commit b0a1d66

Browse files
authored
Pin PyTorch & xformers versions (vllm-project#2155)
1 parent e1d5402 commit b0a1d66

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
matrix:
5050
os: ['ubuntu-20.04']
5151
python-version: ['3.8', '3.9', '3.10', '3.11']
52-
pytorch-version: ['2.1.1']
52+
pytorch-version: ['2.1.2'] # Must be the most recent version that meets requirements.txt.
5353
cuda-version: ['11.8', '12.1']
5454

5555
steps:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [
44
"ninja",
55
"packaging",
66
"setuptools >= 49.4.0",
7-
"torch >= 2.1.1",
7+
"torch == 2.1.2",
88
"wheel",
99
]
1010
build-backend = "setuptools.build_meta"

requirements-build.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
ninja
33
packaging
44
setuptools>=49.4.0
5-
torch>=2.1.0
5+
torch==2.1.2
66
wheel

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ pandas # Required for Ray data.
55
pyarrow # Required for Ray data.
66
sentencepiece # Required for LLaMA tokenizer.
77
numpy
8-
torch >= 2.1.1
8+
torch == 2.1.2
99
transformers >= 4.36.0 # Required for Mixtral.
10-
xformers >= 0.0.23 # Required for CUDA 12.1.
10+
xformers == 0.0.23 # Required for CUDA 12.1.
1111
fastapi
1212
uvicorn[standard]
1313
pydantic == 1.10.13 # Required for OpenAI server.

0 commit comments

Comments
 (0)