Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
348897af
Unverified
Commit
348897af
authored
Oct 16, 2023
by
Woosuk Kwon
Committed by
GitHub
Oct 16, 2023
Browse files
Fix PyTorch version to 2.0.1 in workflow (#1377)
parent
9d9072a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
.github/workflows/publish.yml
.github/workflows/publish.yml
+3
-2
.github/workflows/scripts/pytorch-install.sh
.github/workflows/scripts/pytorch-install.sh
+3
-2
No files found.
.github/workflows/publish.yml
View file @
348897af
...
@@ -49,6 +49,7 @@ jobs:
...
@@ -49,6 +49,7 @@ jobs:
matrix
:
matrix
:
os
:
[
'
ubuntu-20.04'
]
os
:
[
'
ubuntu-20.04'
]
python-version
:
[
'
3.8'
,
'
3.9'
,
'
3.10'
,
'
3.11'
]
python-version
:
[
'
3.8'
,
'
3.9'
,
'
3.10'
,
'
3.11'
]
pytorch-version
:
[
'
2.0.1'
]
cuda-version
:
[
'
11.8'
]
# Github runner can't build anything older than 11.8
cuda-version
:
[
'
11.8'
]
# Github runner can't build anything older than 11.8
steps
:
steps
:
...
@@ -69,9 +70,9 @@ jobs:
...
@@ -69,9 +70,9 @@ jobs:
run
:
|
run
:
|
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
-
name
:
Install PyTorch
-cu
${{ matrix.cuda-version }}
-
name
:
Install PyTorch
${{ matrix.pytorch-version }} with CUDA
${{ matrix.cuda-version }}
run
:
|
run
:
|
bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{
matrix.pytorch-version }} ${{
matrix.cuda-version }}
-
name
:
Build wheel
-
name
:
Build wheel
shell
:
bash
shell
:
bash
...
...
.github/workflows/scripts/pytorch-install.sh
View file @
348897af
#!/bin/bash
#!/bin/bash
python_executable
=
python
$1
python_executable
=
python
$1
cuda_version
=
$2
pytorch_version
=
$2
cuda_version
=
$3
# Install torch
# Install torch
$python_executable
-m
pip
install
numpy pyyaml scipy ipython mkl mkl-include ninja cython typing pandas typing-extensions dataclasses setuptools
&&
conda clean
-ya
$python_executable
-m
pip
install
numpy pyyaml scipy ipython mkl mkl-include ninja cython typing pandas typing-extensions dataclasses setuptools
&&
conda clean
-ya
$python_executable
-m
pip
install
torch
-f
https://download.pytorch.org/whl/cu
${
cuda_version
//./
}
/torch_stable.html
$python_executable
-m
pip
install
torch
==
${
pytorch_version
}
+cu
${
cuda_version
//./
}
--index-url
https://download.pytorch.org/whl/cu
${
cuda_version
//./
}
# Print version information
# Print version information
$python_executable
--version
$python_executable
--version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment