Sylvain Gugger
3876fc6839
Make dynamic code work with offline mode ( #22661 )
...
* Make dynamic code work with offline mode
* Clean up
* Quality
2023-04-10 08:49:42 -04:00
Sylvain Gugger
28fcf00607
Remove hack for dynamic modules and use Python functions instead ( #22537 )
2023-04-04 09:20:13 -04:00
Zach Nussbaum
c5a1ff9ef0
feat: filter try/except when looking at custom code ( #21914 )
...
* feat: filter try/except
* Update src/transformers/dynamic_module_utils.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
---------
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com >
2023-03-03 08:43:59 -05:00
Yih-Dar
4c6346cc3e
Fix get_class_in_module ( #21709 )
...
Fix get_class_in_module
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com >
2023-02-21 09:39:15 +01:00
Sylvain Gugger
8b3db33a76
Pass along revision in dynamic code fetch ( #21698 )
2023-02-20 21:21:42 +01:00
Yih-Dar
7f1cdf1895
Fix dynamic module import error ( #21646 )
...
* fix dynamic module import error
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com >
2023-02-17 21:22:39 +01:00
Lucain
8f3b4a1d5b
Little cleanup: let huggingface_hub manage token retrieval ( #21333 )
...
* Let huggingface_hub manage token retrieval
* flake8
* code quality
* adapt in every PushToHubMixin children
* add explicit return type
2023-01-27 12:09:49 -05:00
Sylvain Gugger
377cdded7a
Clean up hub ( #18497 )
...
* Clean up utils.hub
* Remove imports
* More fixes
* Last fix
2022-08-08 08:48:10 -04:00
Julien Chaumond
9129fd0377
transformers-cli login => huggingface-cli login (#18490 )
...
* zero chance anyone's using that constant no?
* `transformers-cli login` => `huggingface-cli login`
* `transformers-cli repo create` => `huggingface-cli repo create`
* `make style`
2022-08-06 09:42:55 +02:00
Stas Bekman
4c722e9e22
fix regexes with escape sequence ( #17943 )
2022-06-29 08:55:22 -07:00
Sylvain Gugger
4975002df5
Reorganize file utils ( #16264 )
...
* Split file_utils in several submodules
* Fixes
* Add back more objects
* More fixes
* Who exactly decided to import that from there?
* Second suggestion to code with code review
* Revert wront move
* Fix imports
* Adapt all imports
* Adapt all imports everywhere
* Revert this import, will fix in a separate commit
2022-03-23 10:26:33 -04:00
Sylvain Gugger
8d7420768c
Small fixes to the documentation ( #16180 )
2022-03-18 17:48:27 -04:00
Sylvain Gugger
45f56580a7
Allow custom code for Processors ( #15649 )
...
* Allow custom code for Processors
* Add more test
* Test all auto_map configs are properly set
2022-02-15 09:44:35 -05:00
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