From 308d2b90049b4979a949a069aa4f43b2788254d6 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:37:09 +0100 Subject: [PATCH] Update the cache number (#28905) * fix * fix * fix --------- Co-authored-by: ydshieh --- .circleci/create_circleci_config.py | 10 ++++------ examples/pytorch/_tests_requirements.txt | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index 3fa6da7a65..46b53f33a9 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -52,7 +52,7 @@ class CircleCIJob: name: str additional_env: Dict[str, Any] = None cache_name: str = None - cache_version: str = "0.7" + cache_version: str = "0.8" docker_image: List[Dict[str, str]] = None install_steps: List[str] = None marker: Optional[str] = None @@ -284,7 +284,7 @@ torch_and_tf_job = CircleCIJob( "pip install -U --upgrade-strategy eager tensorflow_probability", "pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate", # TODO: remove this one after fixing the dependency issue(s) above - "pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu" + "pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu", ], marker="is_pt_tf_cross_test", pytest_options={"rA": None, "durations": 0}, @@ -299,8 +299,6 @@ torch_and_flax_job = CircleCIJob( "pip install -U --upgrade-strategy eager --upgrade pip", "pip install -U --upgrade-strategy eager .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]", "pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate", - # TODO: remove this one after fixing the dependency issue(s) above - "pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu" ], marker="is_pt_flax_cross_test", pytest_options={"rA": None, "durations": 0}, @@ -314,8 +312,6 @@ torch_job = CircleCIJob( "pip install --upgrade --upgrade-strategy eager pip", "pip install -U --upgrade-strategy eager .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]", "pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate", - # TODO: remove this one after fixing the dependency issue(s) above - "pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu" ], parallelism=1, pytest_num_workers=6, @@ -523,6 +519,8 @@ doc_test_job = CircleCIJob( "pip install --upgrade --upgrade-strategy eager 'pytest<8.0.0' pytest-sugar", "pip install -U --upgrade-strategy eager natten==0.15.1+torch210cpu -f https://shi-labs.com/natten/wheels", "pip install -U --upgrade-strategy eager g2p-en", + # TODO: remove this one after fixing the dependency issue(s) above + "pip install -U --upgrade-strategy eager torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu", "find -name __pycache__ -delete", "find . -name \*.pyc -delete", # Add an empty file to keep the test step running correctly even no file is selected to be tested. diff --git a/examples/pytorch/_tests_requirements.txt b/examples/pytorch/_tests_requirements.txt index 4b43602314..bd181c9d70 100644 --- a/examples/pytorch/_tests_requirements.txt +++ b/examples/pytorch/_tests_requirements.txt @@ -19,9 +19,9 @@ pytest conllu sentencepiece != 0.1.92 protobuf -torch<2.2.0 -torchvision<0.17 -torchaudio<2.2.0 +torch +torchvision +torchaudio jiwer librosa evaluate >= 0.2.0