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
OpenDAS
fairscale
Commits
0a5737ca
Unverified
Commit
0a5737ca
authored
Jul 28, 2022
by
Min Xu
Committed by
GitHub
Jul 28, 2022
Browse files
[chore] update pytorch versions (#1046)
Co-authored-by:
Min Xu
<
min.xu.public@gmail.com
>
parent
608492af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
.circleci/config.yml
.circleci/config.yml
+16
-16
No files found.
.circleci/config.yml
View file @
0a5737ca
...
...
@@ -80,34 +80,34 @@ setup_venv: &setup_venv
pip install --upgrade pip
# most recent LTS version
install_dep_
1_8_2
:
&install_dep_
1_8_2
install_dep_
pytorch_lts
:
&install_dep_
pytorch_lts
-
run
:
name
:
Install Dependencies with torch 1.8.2 (LTS)
command
:
|
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.8 && exit 0; fi
# start installing
pip install --progress-bar off torch==1.8.2+cu1
02
torchvision==0.9.2+cu1
02 -f
https://download.pytorch.org/whl/lts/1.8/
torch_lts.html
pip install --progress-bar off torch==1.8.2+cu1
11
torchvision==0.9.2+cu1
11 --extra-index-url
https://download.pytorch.org/whl/lts/1.8/
cu111
pip install --progress-bar off -r requirements-dev.txt
pip install --progress-bar off -r requirements-benchmarks.txt
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "8"], "wrong torch version"'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "8"],
f
"wrong torch version
{torch.__version__}
"'
python -m torch.utils.collect_env
wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
# most recent stable version
install_dep_
1_11_0
:
&install_dep_
1_11_0
install_dep_
pytorch_stable
:
&install_dep_
pytorch_stable
-
run
:
name
:
Install Dependencies with torch 1.1
1
.0
name
:
Install Dependencies with torch 1.1
2
.0
command
:
|
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.11 && exit 0; fi
# start installing
pip install --progress-bar off torch==1.1
1
.0+cu11
5
torchvision==0.1
2
.0+cu11
5
-
f
https://download.pytorch.org/whl/
torch_stable.html
pip install --progress-bar off torch==1.1
2
.0+cu11
3
torchvision==0.1
3
.0+cu11
3
-
-extra-index-url
https://download.pytorch.org/whl/
cu113
pip install --progress-bar off -r requirements-dev.txt
pip install --progress-bar off -r requirements-benchmarks.txt
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "1
1
"], "wrong torch version"'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "1
2
"],
f
"wrong torch version
{torch.__version__}
"'
python -m torch.utils.collect_env
wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
...
...
@@ -118,11 +118,11 @@ install_dep_pytorch_nightly: &install_dep_pytorch_nightly
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.12 && exit 0; fi
# start installing
pip install
--progress-bar off
--pre torch==1.13.0.dev20220625+cu113 torchvision==0.14.0.dev20220625+cu113 -
f
https://download.pytorch.org/whl/nightly/cu113
/torch_nightly.html
pip install --pre torch==1.13.0.dev20220625+cu113 torchvision==0.14.0.dev20220625+cu113 -
-extra-index-url
https://download.pytorch.org/whl/nightly/cu113
pip install --progress-bar off -r requirements-dev.txt
pip install --progress-bar off -r requirements-benchmarks.txt
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "13"], "wrong torch version"'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "13"],
f
"wrong torch version
{torch.__version__}
"'
python -m torch.utils.collect_env
wget -O /home/circleci/venv/check_version.py https://raw.githubusercontent.com/min-xu-ai/check_verion/main/check_version.py
...
...
@@ -277,7 +277,7 @@ jobs:
-
restore_cache
:
keys
:
-
cache-key-cpu-py38-torch-1-11-0-{{.Environment.CACHE_VERSION}}-{{checksum "setup.py"}}-{{checksum "requirements-dev.txt"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
@@ -306,7 +306,7 @@ jobs:
keys
:
-
cache-key-cpu-py39-torch-1-11-0-{{.Environment.CACHE_VERSION}}-{{checksum "setup.py"}}-{{checksum "requirements-dev.txt"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
@@ -335,7 +335,7 @@ jobs:
keys
:
-
cache-key-cpu-py310-torch-1-11-0-{{.Environment.CACHE_VERSION}}-{{checksum "setup.py"}}-{{checksum "requirements-dev.txt"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
@@ -375,7 +375,7 @@ jobs:
keys
:
-
cache-key-py-3-9-7-gpu-torch-1-8-2-{{.Environment.CACHE_VERSION}}-{{checksum "setup.py"}}-{{checksum "requirements-dev.txt"}}
-
<<
:
*install_dep_
1_8_2
-
<<
:
*install_dep_
pytorch_lts
-
save_cache
:
paths
:
...
...
@@ -418,7 +418,7 @@ jobs:
keys
:
-
cache-key-py-3-9-7-gpu-torch-1-11-0-{{.Environment.CACHE_VERSION}}-{{checksum "setup.py"}}-{{checksum "requirements-dev.txt"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
@@ -499,7 +499,7 @@ jobs:
keys
:
-
cache-key-benchmark-MNIST-{{.Environment.CACHE_VERSION}}-{{checksum "benchmarks/datasets/mnist.py"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
@@ -551,7 +551,7 @@ jobs:
keys
:
-
cache-key-benchmark-MNIST-{{.Environment.CACHE_VERSION}}-{{checksum "benchmarks/datasets/mnist.py"}}
-
<<
:
*install_dep_
1_11_0
-
<<
:
*install_dep_
pytorch_stable
-
save_cache
:
paths
:
...
...
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