mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
Make examples_torch_job
faster (#27437)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
ed115b3473
commit
7ee995fd9c
@ -397,6 +397,7 @@ custom_tokenizers_job = CircleCIJob(
|
|||||||
|
|
||||||
examples_torch_job = CircleCIJob(
|
examples_torch_job = CircleCIJob(
|
||||||
"examples_torch",
|
"examples_torch",
|
||||||
|
additional_env={"OMP_NUM_THREADS": 8},
|
||||||
cache_name="torch_examples",
|
cache_name="torch_examples",
|
||||||
install_steps=[
|
install_steps=[
|
||||||
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng",
|
"sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev espeak-ng",
|
||||||
@ -405,6 +406,7 @@ examples_torch_job = CircleCIJob(
|
|||||||
"pip install -U --upgrade-strategy eager -r examples/pytorch/_tests_requirements.txt",
|
"pip install -U --upgrade-strategy eager -r examples/pytorch/_tests_requirements.txt",
|
||||||
"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",
|
||||||
],
|
],
|
||||||
|
pytest_num_workers=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user