Unverified Commit c9db4775 authored by msbaines's avatar msbaines Committed by GitHub
Browse files

[chore] update to torch v1.8.1 (#554)

parent 62635f0f
......@@ -101,9 +101,9 @@ install_dep_171: &install_dep_171
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
install_dep_180: &install_dep_180
install_dep_181: &install_dep_181
- run:
name: Install Dependencies with torch 1.8.0
name: Install Dependencies with torch 1.8.1
command: |
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
......@@ -112,7 +112,7 @@ install_dep_180: &install_dep_180
# 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.0+cu101 torchvision==0.9.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
pip install --progress-bar off torch==1.8.1+cu101 torchvision==0.9.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 -r requirements-benchmarks.txt
python -c 'import torch; print("Torch version:", torch.__version__)'
......@@ -338,18 +338,14 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-cpu-py39-180-4-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-cpu-py39-181-0-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
# py3.9 doesn't work well with torch < 1.8. See this PR:
# https://github.com/pytorch/pytorch/pull/50998
#
# Therefore, we test py39 with torch 1.8.0.
- <<: *install_dep_180
- <<: *install_dep_181
- save_cache:
paths:
- ~/venv
key: cache-key-cpu-py39-180-4-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-cpu-py39-181-0-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......@@ -444,7 +440,7 @@ jobs:
- store_test_results:
path: test-results
gpu_tests_180:
gpu_tests_181:
parameters:
test_list_file:
type: string
......@@ -467,14 +463,14 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-gpu-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-gpu-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_dep_180
- <<: *install_dep_181
- save_cache:
paths:
- ~/venv
key: cache-key-gpu-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-gpu-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......@@ -505,19 +501,19 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-benchmarks-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
# Cache the MNIST directory that contains benchmark data
- restore_cache:
keys:
- cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}
- <<: *install_dep_180
- <<: *install_dep_181
- save_cache:
paths:
- ~/venv
key: cache-key-benchmarks-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......@@ -557,7 +553,7 @@ jobs:
# Cache the venv directory that contains dependencies
- restore_cache:
keys:
- cache-key-benchmarks-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
# Cache the MNIST directory that contains benchmark data
......@@ -565,12 +561,12 @@ jobs:
keys:
- cache-key-benchmark-MNIST-{{ checksum "benchmarks/datasets/mnist.py"}}
- <<: *install_dep_180
- <<: *install_dep_181
- save_cache:
paths:
- ~/venv
key: cache-key-benchmarks-180-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
key: cache-key-benchmarks-181-101-{{ checksum "setup.py"}}-{{ checksum "requirements-test.txt"}}
- <<: *install_repo
......@@ -593,19 +589,19 @@ workflows:
test_list_file: tests/ci_test_list_1.txt
- gpu_tests_171:
test_list_file: tests/ci_test_list_1.txt
- gpu_tests_180:
- gpu_tests_181:
test_list_file: tests/ci_test_list_1.txt
- gpu_tests_160:
test_list_file: tests/ci_test_list_2.txt
- gpu_tests_171:
test_list_file: tests/ci_test_list_2.txt
- gpu_tests_180:
- gpu_tests_181:
test_list_file: tests/ci_test_list_2.txt
- gpu_tests_160:
test_list_file: tests/ci_test_list_3.txt
- gpu_tests_171:
test_list_file: tests/ci_test_list_3.txt
- gpu_tests_180:
- gpu_tests_181:
test_list_file: tests/ci_test_list_3.txt
- benchmarks_1
- benchmarks_2
......@@ -164,7 +164,7 @@ At a high level, we want ML researchers to:
# Testing
We use circleci to test on PyTorch versions 1.6.0, 1.7.1, and 1.8.0. Please create an [issue](https://github.com/facebookresearch/fairscale/issues) if you are having trouble with installation.
We use circleci to test on PyTorch versions 1.6.0, 1.7.1, and 1.8.1. Please create an [issue](https://github.com/facebookresearch/fairscale/issues) if you are having trouble with installation.
## Contributors
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment