Yih-Dar
a4908da04e
Fix the expected error in test_offline_mode_pipeline_exception
( #23022 )
...
* fix
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-04-27 14:22:05 +02:00
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
6f79d26442
Update quality tooling for formatting ( #21480 )
...
* Result of black 23.1
* Update target to Python 3.7
* Switch flake8 to ruff
* Configure isort
* Configure isort
* Apply isort with line limit
* Put the right black version
* adapt black in check copies
* Fix copies
2023-02-06 18:10:56 -05:00
Nicolas Patry
25ddd91b24
Fixing offline mode for pipeline (when inferring task). ( #21113 )
...
* Fixing offline mode for pipeline (when inferring task).
* Update src/transformers/pipelines/__init__.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Updating test to reflect change in exception.
* Fixing offline mode.
* Clean.
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2023-01-17 15:24:40 +01:00
Sylvain Gugger
37aeb5787a
Make sharded checkpoints work in offline mode ( #18125 )
...
* Make sharded checkpoints work in offline mode
* Add test
2022-07-13 12:43:08 -04:00
Sylvain Gugger
c595b6e6a9
Make Transformers use cache files when hf.co is down ( #16362 )
...
* Make Transformers use cache files when hf.co is down
* Fix tests
* Was there a random circleCI failure?
* Isolate patches
* Style
* Comment out the failure since it doesn't fail anymore
* Better comment
2022-03-23 15:56:49 -04:00
Lysandre Debut
29c10a41d0
[Test refactor 1/5] Per-folder tests reorganization ( #15725 )
...
* Per-folder tests reorganization
Co-authored-by: sgugger <sylvain.gugger@gmail.com>
Co-authored-by: Stas Bekman <stas@stason.org>
2022-02-23 15:46:28 -05:00