Skip to content

Commit

Permalink
Removed Pytorch 1.8 tests (microsoft#237)
Browse files Browse the repository at this point in the history
* Removed Pytorch 1.8 tests

* removed unnecessary if statement

Co-authored-by: Kunal Chakrabarty <[email protected]>
  • Loading branch information
KUNAL1612 and Kunal Chakrabarty authored Jul 20, 2022
1 parent 284689e commit 1c0048f
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,6 @@ install_dep_pt19: &install_dep_pt19
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
python -c 'import torch; print("Torch version:", torch.__version__)'
install_dep_pt18: &install_dep_pt18
- run:
name: Install Pytorch Dependencies
command: |
source activate metaseq
pip install --upgrade setuptools
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
python -c 'import torch; print("Torch version:", torch.__version__)'
install_pytorch_dep: &install_pytorch_dep
- parameters:
Expand Down Expand Up @@ -141,12 +133,10 @@ download_and_configure_125m_with_hf_dependencies: &download_and_configure_125m_w
working_directory: ~/metaseq/gpu_tests
command: |
source activate metaseq
if [[ $(python -c "import torch; print(torch.__version__)") = "1.9.1+cu111" ]]; then
wget https://dl.fbaipublicfiles.com/opt/test_artifacts/125m_with_hf_dependencies.tar.gz
tar -xvzf ./125m_with_hf_dependencies.tar.gz -C .
python -m metaseq.scripts.convert_to_singleton ./125m
python -m transformers.models.opt.convert_opt_original_pytorch_checkpoint_to_pytorch --pytorch_dump_folder_path ./125m/ --hf_config ./125m/config.json --fairseq_path ./125m/restored.pt
fi
wget https://dl.fbaipublicfiles.com/opt/test_artifacts/125m_with_hf_dependencies.tar.gz
tar -xvzf ./125m_with_hf_dependencies.tar.gz -C .
python -m metaseq.scripts.convert_to_singleton ./125m
python -m transformers.models.opt.convert_opt_original_pytorch_checkpoint_to_pytorch --pytorch_dump_folder_path ./125m/ --hf_config ./125m/config.json --fairseq_path ./125m/restored.pt
commands:

Expand Down Expand Up @@ -186,15 +176,6 @@ commands:
# -------------------------------------------------------------------------------------

jobs:
gpu_tests_pt18:
<<: *gpu

working_directory: ~/metaseq

steps:
- gpu_pre
- <<: *install_dep_pt18
- gpu_post

gpu_tests_pt19:
<<: *gpu
Expand All @@ -211,5 +192,4 @@ workflows:
version: 2
build:
jobs:
- gpu_tests_pt18
- gpu_tests_pt19

0 comments on commit 1c0048f

Please sign in to comment.