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
9eeedda3
Unverified
Commit
9eeedda3
authored
Jan 15, 2021
by
msbaines
Committed by
GitHub
Jan 15, 2021
Browse files
[chore][ci] simplify torch installation (#312)
parent
3e2547c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
36 deletions
+29
-36
.circleci/config.yml
.circleci/config.yml
+28
-35
requirements.txt
requirements.txt
+1
-1
No files found.
.circleci/config.yml
View file @
9eeedda3
...
...
@@ -38,47 +38,40 @@ setup_venv: &setup_venv
which pip
pip install --upgrade pip
install_dep_15
:
&install_dep_15
install_dep_15
1
:
&install_dep_15
1
-
run
:
name
:
Install Dependencies
command
:
|
sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off torch==1.5.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "5"], "wrong torch version"'
python -m torch.utils.collect_env
install_dep_16
:
&install_dep_16
install_dep_16
0
:
&install_dep_16
0
-
run
:
name
:
Install Dependencies
command
:
|
sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off git+https://github.com/msbaines/torch_pg.git@c85c96f#egg=torch-pg
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "6"], "wrong torch version"'
python -m torch.utils.collect_env
install_dep_17
:
&install_dep_17
-
run
:
name
:
Install Dependencies
command
:
|
sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off torch==1.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off git+https://github.com/msbaines/torch_pg.git@c85c96f#egg=torch-pg
python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env
install_dep_17_cpu
:
&install_dep_17_cpu
install_dep_170
:
&install_dep_170
-
run
:
name
:
Install Dependencies
command
:
|
sudo apt-get install -y libopenmpi-dev
pip install --progress-bar off torch==1.7.0+cu101 torchvision==0.8.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt
pip install --progress-bar off git+https://github.com/msbaines/torch_pg.git@c85c96f#egg=torch-pg
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; assert torch.__version__.split(".")[:2] == ["1", "7"], "wrong torch version"'
python -m torch.utils.collect_env
install_repo_cpu
:
&install_repo_cpu
...
...
@@ -166,14 +159,14 @@ jobs:
# Cache the venv directory that contains dependencies
-
restore_cache
:
keys
:
-
cache-key-cpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-cpu-
170-
{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_17
_cpu
-
<<
:
*install_dep_17
0
-
save_cache
:
paths
:
-
~/venv
key
:
cache-key-cpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-cpu-
170-
{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_cpu
...
...
@@ -201,7 +194,7 @@ jobs:
-
store_test_results
:
path
:
test-results
gpu_tests_15
:
gpu_tests_15
1
:
<<
:
*gpu
working_directory
:
~/fairscale
...
...
@@ -218,14 +211,14 @@ jobs:
# Cache the venv directory that contains dependencies
-
restore_cache
:
keys
:
-
cache-key-gpu15-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-gpu
-
15
1
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_15
-
<<
:
*install_dep_15
1
-
save_cache
:
paths
:
-
~/venv
key
:
cache-key-gpu15-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-gpu
-
15
1
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
...
...
@@ -234,7 +227,7 @@ jobs:
-
store_test_results
:
path
:
test-results
gpu_tests_16
:
gpu_tests_16
0
:
<<
:
*gpu
working_directory
:
~/fairscale
...
...
@@ -251,14 +244,14 @@ jobs:
# Cache the venv directory that contains dependencies
-
restore_cache
:
keys
:
-
cache-key-gpu16-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-gpu
-
16
0
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_16
-
<<
:
*install_dep_16
0
-
save_cache
:
paths
:
-
~/venv
key
:
cache-key-gpu16-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-gpu
-
16
0
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
...
...
@@ -269,7 +262,7 @@ jobs:
-
store_test_results
:
path
:
test-results
gpu_tests_17
:
gpu_tests_17
0
:
<<
:
*gpu
working_directory
:
~/fairscale
...
...
@@ -286,14 +279,14 @@ jobs:
# Cache the venv directory that contains dependencies
-
restore_cache
:
keys
:
-
cache-key-gpu17-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-gpu
-
17
0
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_17
-
<<
:
*install_dep_17
0
-
save_cache
:
paths
:
-
~/venv
key
:
cache-key-gpu17-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-gpu
-
17
0
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
...
...
@@ -325,7 +318,7 @@ jobs:
keys
:
-
cache-key-benchmarks-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_17
-
<<
:
*install_dep_17
0
-
save_cache
:
paths
:
...
...
@@ -350,7 +343,7 @@ workflows:
build
:
jobs
:
-
cpu_tests
-
gpu_tests_15
-
gpu_tests_16
-
gpu_tests_17
-
gpu_tests_15
1
-
gpu_tests_16
0
-
gpu_tests_17
0
-
benchmarks
requirements.txt
View file @
9eeedda3
torch
>= 1.
4.0
torch
>= 1.
5.1
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