transformers/utils
Sylvain Gugger 44b21f117b
Save code of registered custom models (#15379)
* Allow dynamic modules to use relative imports

* Work for configs

* Fix last merge conflict

* Save code of registered custom objects

* Map strings to strings

* Fix test

* Add tokenizer

* Rework tests

* Tests

* Ignore fixtures py files for tests

* Tokenizer test + fix collection

* With full path

* Rework integration

* Fix typo

* Remove changes in conftest

* Test for tokenizers

* Add documentation

* Update docs/source/custom_models.mdx

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>

* Add file structure and file content

* Add more doc

* Style

* Update docs/source/custom_models.mdx

Co-authored-by: Suraj Patil <surajp815@gmail.com>

* Address review comments

Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
Co-authored-by: Suraj Patil <surajp815@gmail.com>
2022-02-02 10:44:37 -05:00
..
test_module Save code of registered custom models (#15379) 2022-02-02 10:44:37 -05:00
tf_ops Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
check_copies.py Copies and docstring styling (#15202) 2022-01-18 09:16:55 -05:00
check_dummies.py Better dummies (#15148) 2022-01-14 10:59:41 -05:00
check_inits.py Ignore empty subfolders when identifying submodules (#15204) 2022-01-18 09:48:46 -05:00
check_repo.py Add XGLM models (#14876) 2022-01-28 18:55:23 +01:00
check_table.py Update ONNX docs (#14904) 2022-01-11 18:06:05 +01:00
check_tf_ops.py Check TF ops for ONNX compliance (#10025) 2021-02-15 07:55:10 -05:00
custom_init_isort.py Sort init import (#10801) 2021-03-19 16:17:13 -04:00
documentation_tests.txt [DocTests Speech] Add doc tests for all speech models (#15031) 2022-01-27 14:29:31 +01:00
download_glue_data.py Raise exceptions instead of asserts (#13907) 2021-10-07 12:44:23 +05:30
get_modified_files.py a more reliable version of branching point discovery (#9449) 2021-01-07 04:47:50 -05:00
notification_service.py Nightly torch ci (#13550) 2021-09-13 16:17:29 -04:00
prepare_for_doc_test.py [DocTests Speech] Add doc tests for all speech models (#15031) 2022-01-27 14:29:31 +01:00
print_env_pt.py [CI] move env print to util, add pt, nccl versions (#14607) 2021-12-03 08:18:36 -05:00
release.py Docs for v4.14.0 2021-12-15 18:29:53 +01:00
style_doc.py Copies and docstring styling (#15202) 2022-01-18 09:16:55 -05:00
tests_fetcher.py Fix tests_fetcher (#15376) 2022-01-27 14:17:48 -05:00
update_metadata.py Replace commit sha by commit url for update jobs (#14852) 2021-12-21 11:17:11 -05:00