Hotfix - make torchaudio get the correct version in torch_and_flax_job (#28899)
* check * check * check --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -299,6 +299,8 @@ torch_and_flax_job = CircleCIJob(
|
|||||||
"pip install -U --upgrade-strategy eager --upgrade pip",
|
"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 .[sklearn,flax,torch,testing,sentencepiece,torch-speech,vision]",
|
||||||
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate",
|
"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",
|
marker="is_pt_flax_cross_test",
|
||||||
pytest_options={"rA": None, "durations": 0},
|
pytest_options={"rA": None, "durations": 0},
|
||||||
@@ -312,6 +314,8 @@ torch_job = CircleCIJob(
|
|||||||
"pip install --upgrade --upgrade-strategy eager pip",
|
"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 .[sklearn,torch,testing,sentencepiece,torch-speech,vision,timm]",
|
||||||
"pip install -U --upgrade-strategy eager -e git+https://github.com/huggingface/accelerate@main#egg=accelerate",
|
"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,
|
parallelism=1,
|
||||||
pytest_num_workers=6,
|
pytest_num_workers=6,
|
||||||
|
|||||||
@@ -533,6 +533,8 @@ class FastSpeech2ConformerWithHifiGanTester:
|
|||||||
return config, inputs_dict
|
return config, inputs_dict
|
||||||
|
|
||||||
|
|
||||||
|
@require_torch_accelerator
|
||||||
|
@require_torch
|
||||||
class FastSpeech2ConformerWithHifiGanTest(ModelTesterMixin, unittest.TestCase):
|
class FastSpeech2ConformerWithHifiGanTest(ModelTesterMixin, unittest.TestCase):
|
||||||
all_model_classes = (FastSpeech2ConformerWithHifiGan,) if is_torch_available() else ()
|
all_model_classes = (FastSpeech2ConformerWithHifiGan,) if is_torch_available() else ()
|
||||||
test_pruning = False
|
test_pruning = False
|
||||||
|
|||||||
Reference in New Issue
Block a user