forked from huggingface/transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trainer push to hub (huggingface#11328)
* Initial support for upload to hub * push -> upload * Fixes + examples * Fix torchhub test * Torchhub test I hate you * push_model_to_hub -> push_to_hub * Apply mixin to other pretrained models * Remove ABC inheritance * Add tests * Typo * Run tests * Install git-lfs * Change approach * Add push_to_hub to all * Staging test suite * Typo * Maybe like this? * More deps * Cache * Adapt name * Quality * MOAR tests * Put it in testing_utils * Docs + torchhub last hope * Styling * Wrong method * Typos * Update src/transformers/file_utils.py Co-authored-by: Julien Chaumond <[email protected]> * Address review comments * Apply suggestions from code review Co-authored-by: Patrick von Platen <[email protected]> Co-authored-by: Julien Chaumond <[email protected]> Co-authored-by: Patrick von Platen <[email protected]>
- Loading branch information
1 parent
7bc86be
commit bf2e0cf
Showing
31 changed files
with
766 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -317,24 +317,33 @@ jobs: | |
- store_artifacts: | ||
path: ~/transformers/reports | ||
|
||
run_tests_git_lfs: | ||
run_tests_hub: | ||
working_directory: ~/transformers | ||
docker: | ||
- image: circleci/python:3.7 | ||
environment: | ||
HUGGINGFACE_CO_STAGING: yes | ||
RUN_GIT_LFS_TESTS: yes | ||
TRANSFORMERS_IS_CI: yes | ||
resource_class: xlarge | ||
parallelism: 1 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v0.4-hub-{{ checksum "setup.py" }} | ||
- v0.4-{{ checksum "setup.py" }} | ||
- run: sudo apt-get install git-lfs | ||
- run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "ci" | ||
- run: pip install --upgrade pip | ||
- run: pip install .[testing] | ||
- run: python -m pytest -sv ./tests/test_hf_api.py -k "HfLargefilesTest" | ||
- run: pip install .[torch,sentencepiece,testing] | ||
- save_cache: | ||
key: v0.4-hub-{{ checksum "setup.py" }} | ||
paths: | ||
- '~/.cache/pip' | ||
- run: python -m pytest -sv ./tests/ -m is_staging_test | ||
|
||
build_doc: | ||
working_directory: ~/transformers | ||
|
@@ -469,7 +478,7 @@ workflows: | |
- run_tests_flax | ||
- run_tests_pipelines_torch | ||
- run_tests_pipelines_tf | ||
- run_tests_git_lfs | ||
- run_tests_hub | ||
- build_doc | ||
- deploy_doc: *workflow_filters | ||
# tpu_testing_jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file modified
0
examples/legacy/text-classification/run_tf_text_classification.py
100644 → 100755
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.