Lucain
c3044ec2f3
Use HF_HUB_OFFLINE
+ fix has_file in offline mode ( #31016 )
...
* Fix has_file in offline mode
* harmonize env variable for offline mode
* Switch to HF_HUB_OFFLINE
* fix test
* revert test_offline to test TRANSFORMERS_OFFLINE
* Add new offline test
* merge conflicts
* docs
2024-05-29 11:55:43 +01:00
Lysandre Debut
f497f564bb
Update all references to canonical models ( #29001 )
...
* Script & Manual edition
* Update
2024-02-16 08:16:58 +01:00
Arthur
b97cab7e6d
Remove-auth-token ( #27060 )
...
* don't use `use_auth_token`internally
* let's use token everywhere
* fixup
2023-11-13 14:20:54 +01:00
Lucain
04191ea1e6
Fix gated repo tests ( #26257 )
...
* Fix gated repo tests
* Apply suggestions from code review
2023-09-19 13:25:12 +02:00
Sylvain Gugger
68fa9a5937
Skip broken tests
2023-08-24 01:48:53 -04:00
Lucain
c1dba1111b
Add test when downloading from gated repo ( #25039 )
2023-07-28 08:14:27 -04:00
Lucain
74c55ab9e5
Prepare tests for hfh 0.14 ( #22958 )
...
* Test hf_hub 0.14.0rc1
* fix mocked tests
* package version
---------
Co-authored-by: Sylvain Gugger <Sylvain.gugger@gmail.com>
Co-authored-by: testbot <lucainp@hf.co>
2023-04-24 09:31:50 -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
Sylvain Gugger
34be08efcd
More tests for regression in cached non existence ( #19216 )
...
* More tests for regression in cached non existence
* Style
2022-09-27 09:36:34 -04:00
Sylvain Gugger
a32f97c37d
Fix cached_file in offline mode for cached non-existing files ( #19206 )
...
* Fix cached_file in offline mode for cached non-existing files
* Add tests
* Test with offline mode
2022-09-26 18:01:00 -04:00