Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
4ab6a4a0
Unverified
Commit
4ab6a4a0
authored
Oct 29, 2021
by
Sylvain Gugger
Committed by
GitHub
Oct 29, 2021
Browse files
Fix pipeline tests env and fetch (#14209)
* Fix pipeline tests env and fetch * Fix quality
parent
dc540dd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
.circleci/config.yml
.circleci/config.yml
+2
-2
utils/tests_fetcher.py
utils/tests_fetcher.py
+2
-1
No files found.
.circleci/config.yml
View file @
4ab6a4a0
...
@@ -401,7 +401,7 @@ jobs:
...
@@ -401,7 +401,7 @@ jobs:
-
v0.4-{{ checksum "setup.py" }}
-
v0.4-{{ checksum "setup.py" }}
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
pip install --upgrade pip
-
run
:
pip install --upgrade pip
-
run
:
pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision]
-
run
:
pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision
,timm
]
-
run
:
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cpu.html
-
run
:
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cpu.html
-
save_cache
:
-
save_cache
:
key
:
v0.4-torch-{{ checksum "setup.py" }}
key
:
v0.4-torch-{{ checksum "setup.py" }}
...
@@ -437,7 +437,7 @@ jobs:
...
@@ -437,7 +437,7 @@ jobs:
-
v0.4-{{ checksum "setup.py" }}
-
v0.4-{{ checksum "setup.py" }}
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
-
run
:
pip install --upgrade pip
-
run
:
pip install --upgrade pip
-
run
:
pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision]
-
run
:
pip install .[sklearn,torch,testing,sentencepiece,torch-speech,vision
,timm
]
-
run
:
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cpu.html
-
run
:
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cpu.html
-
save_cache
:
-
save_cache
:
key
:
v0.4-torch-{{ checksum "setup.py" }}
key
:
v0.4-torch-{{ checksum "setup.py" }}
...
...
utils/tests_fetcher.py
View file @
4ab6a4a0
...
@@ -264,7 +264,7 @@ SPECIAL_MODULE_TO_TEST_MAP = {
...
@@ -264,7 +264,7 @@ SPECIAL_MODULE_TO_TEST_MAP = {
"models/blenderbot_small/tokenization_blenderbot_small.py"
:
"test_tokenization_small_blenderbot.py"
,
"models/blenderbot_small/tokenization_blenderbot_small.py"
:
"test_tokenization_small_blenderbot.py"
,
"models/blenderbot_small/tokenization_blenderbot_small_fast.py"
:
"test_tokenization_small_blenderbot.py"
,
"models/blenderbot_small/tokenization_blenderbot_small_fast.py"
:
"test_tokenization_small_blenderbot.py"
,
"models/gpt2/modeling_gpt2.py"
:
[
"test_modeling_gpt2.py"
,
"test_modeling_megatron_gpt2.py"
],
"models/gpt2/modeling_gpt2.py"
:
[
"test_modeling_gpt2.py"
,
"test_modeling_megatron_gpt2.py"
],
"pipelines/base.py"
:
"test_pipelines_
common
.py"
,
"pipelines/base.py"
:
"test_pipelines_
*
.py"
,
"pipelines/text2text_generation.py"
:
[
"pipelines/text2text_generation.py"
:
[
"test_pipelines_text2text_generation.py"
,
"test_pipelines_text2text_generation.py"
,
"test_pipelines_summarization.py"
,
"test_pipelines_summarization.py"
,
...
@@ -337,6 +337,7 @@ def module_to_test_file(module_fname):
...
@@ -337,6 +337,7 @@ def module_to_test_file(module_fname):
# launched separately.
# launched separately.
EXPECTED_TEST_FILES_NEVER_TOUCHED
=
[
EXPECTED_TEST_FILES_NEVER_TOUCHED
=
[
"tests/test_doc_samples.py"
,
# Doc tests
"tests/test_doc_samples.py"
,
# Doc tests
"tests/test_pipelines_common.py"
,
# Actually checked by the pipeline based file
"tests/sagemaker/test_single_node_gpu.py"
,
# SageMaker test
"tests/sagemaker/test_single_node_gpu.py"
,
# SageMaker test
"tests/sagemaker/test_multi_node_model_parallel.py"
,
# SageMaker test
"tests/sagemaker/test_multi_node_model_parallel.py"
,
# SageMaker test
"tests/sagemaker/test_multi_node_data_parallel.py"
,
# SageMaker test
"tests/sagemaker/test_multi_node_data_parallel.py"
,
# SageMaker test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment