Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
fairscale
Commits
571f5efa
Unverified
Commit
571f5efa
authored
Aug 13, 2020
by
msbaines
Committed by
GitHub
Aug 13, 2020
Browse files
[chore] run tests on PyTorch 1.6.0 and gpu tests on 1.6.0 and 1.5.1 (#34)
parent
81a2cf04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
11 deletions
+54
-11
.circleci/config.yml
.circleci/config.yml
+53
-10
requirements-test.txt
requirements-test.txt
+1
-1
No files found.
.circleci/config.yml
View file @
571f5efa
...
@@ -38,7 +38,7 @@ setup_venv: &setup_venv
...
@@ -38,7 +38,7 @@ setup_venv: &setup_venv
which pip
which pip
pip install --upgrade pip
pip install --upgrade pip
install_dep
:
&install_dep
install_dep
_15
:
&install_dep
_15
-
run
:
-
run
:
name
:
Install Dependencies
name
:
Install Dependencies
command
:
|
command
:
|
...
@@ -47,6 +47,15 @@ install_dep: &install_dep
...
@@ -47,6 +47,15 @@ install_dep: &install_dep
python -c 'import torch; print("Torch version:", torch.__version__)'
python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env
python -m torch.utils.collect_env
install_dep_16
:
&install_dep_16
-
run
:
name
:
Install Dependencies
command
:
|
pip install --progress-bar off torch==1.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off -r requirements-test.txt
python -c 'import torch; print("Torch version:", torch.__version__)'
python -m torch.utils.collect_env
install_repo_cpu
:
&install_repo_cpu
install_repo_cpu
:
&install_repo_cpu
-
run
:
-
run
:
name
:
Install Repository
name
:
Install Repository
...
@@ -97,7 +106,7 @@ jobs:
...
@@ -97,7 +106,7 @@ jobs:
keys
:
keys
:
-
cache-key-cpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-cpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep
-
<<
:
*install_dep
_15
-
save_cache
:
-
save_cache
:
paths
:
paths
:
...
@@ -128,7 +137,40 @@ jobs:
...
@@ -128,7 +137,40 @@ jobs:
-
store_test_results
:
-
store_test_results
:
path
:
test-results
path
:
test-results
gpu_tests
:
gpu_tests_15
:
<<
:
*gpu
working_directory
:
~/fairscale
steps
:
-
checkout
-
run
:
nvidia-smi
-
run
:
pyenv global 3.7.0
-
<<
:
*setup_venv
# Cache the venv directory that contains dependencies
-
restore_cache
:
keys
:
-
cache-key-gpu15-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep_15
-
save_cache
:
paths
:
-
~/venv
key
:
cache-key-gpu15-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
-
<<
:
*run_unittests
-
store_test_results
:
path
:
test-results
gpu_tests_16
:
<<
:
*gpu
<<
:
*gpu
working_directory
:
~/fairscale
working_directory
:
~/fairscale
...
@@ -145,14 +187,14 @@ jobs:
...
@@ -145,14 +187,14 @@ jobs:
# Cache the venv directory that contains dependencies
# Cache the venv directory that contains dependencies
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
cache-key-gpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-gpu
16
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep
-
<<
:
*install_dep
_16
-
save_cache
:
-
save_cache
:
paths
:
paths
:
-
~/venv
-
~/venv
key
:
cache-key-gpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-gpu
16
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
-
<<
:
*install_repo_gpu
...
@@ -178,14 +220,14 @@ jobs:
...
@@ -178,14 +220,14 @@ jobs:
# Cache the venv directory that contains dependencies
# Cache the venv directory that contains dependencies
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
cache-key-gpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
cache-key-gpu
16
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_dep
-
<<
:
*install_dep
_16
-
save_cache
:
-
save_cache
:
paths
:
paths
:
-
~/venv
-
~/venv
key
:
cache-key-gpu-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key
:
cache-key-gpu
16
-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
-
<<
:
*install_repo_gpu
-
<<
:
*install_repo_gpu
...
@@ -197,5 +239,6 @@ workflows:
...
@@ -197,5 +239,6 @@ workflows:
build
:
build
:
jobs
:
jobs
:
-
cpu_tests
-
cpu_tests
-
gpu_tests
-
gpu_tests_15
-
gpu_tests_16
-
benchmarks
-
benchmarks
requirements-test.txt
View file @
571f5efa
...
@@ -5,6 +5,6 @@ mypy == 0.770
...
@@ -5,6 +5,6 @@ mypy == 0.770
pytest == 5.4.1
pytest == 5.4.1
pytest-cov == 2.10.0
pytest-cov == 2.10.0
torchtext == 0.6.0
torchtext == 0.6.0
torch
=
= 1.5.1
torch
>
= 1.5.1
# NOTE(msb) not a dependency but needed by torch
# NOTE(msb) not a dependency but needed by torch
numpy == 1.17.4
numpy == 1.17.4
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