|
|
|
@ -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.
|
|
|
|
|