- 22 Dec, 2019 2 commits
-
-
Aymeric Augustin authored
-
Aymeric Augustin authored
This is the result of: $ isort --recursive examples templates transformers utils hubconf.py setup.py
-
- 21 Dec, 2019 1 commit
-
-
Aymeric Augustin authored
This is the result of: $ black --line-length 119 examples templates transformers utils hubconf.py setup.py There's a lot of fairly long lines in the project. As a consequence, I'm picking the longest widely accepted line length, 119 characters. This is also Thomas' preference, because it allows for explicit variable names, to make the code easier to understand.
-
- 06 Dec, 2019 1 commit
-
-
Aymeric Augustin authored
* Switch to plain unittest for skipping slow tests. Add a RUN_SLOW environment variable for running them. * Switch to plain unittest for PyTorch dependency. * Switch to plain unittest for TensorFlow dependency. * Avoid leaking open files in the test suite. This prevents spurious warnings when running tests. * Fix unicode warning on Python 2 when running tests. The warning was: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal * Support running PyTorch tests on a GPU. Reverts 27e015bd. * Tests no longer require pytest. * Make tests pass on cuda
-
- 14 Nov, 2019 1 commit
-
-
R茅mi Louf authored
Custom schedulers are currently initiated by wrapping Pytorch's LambdaLR class and passing a method of the wrapping class to the __init__ function of LambdaLR. This approach is not appropriate for several reasons: 1. one does not need to define a class when it only defines a __init__() method; 2. instantiating the parent class by passing a method of the child class creates a cyclical reference which leads to memory leaks. See issues #1742 and #1134. In this commit we replace the wrapper classes with functions that instantiate `LambdaLR` with a custom learning rate function. We use a closure to specify the parameter of the latter. We also do a bit of renaming within the function to explicit the behaviour and removed docstrings that were subsequently not necessary.
-
- 26 Sep, 2019 1 commit
-
-
thomwolf authored
-
- 09 Sep, 2019 1 commit
-
-
thomwolf authored
-
- 08 Sep, 2019 1 commit
-
-
thomwolf authored
-
- 05 Sep, 2019 1 commit
-
-
thomwolf authored
-
- 23 Jul, 2019 1 commit
-
-
thomwolf authored
-
- 11 Jul, 2019 2 commits
- 05 Jul, 2019 1 commit
-
-
thomwolf authored
-
- 02 Jul, 2019 1 commit
-
-
thomwolf authored
-
- 25 Apr, 2019 2 commits
-
-
lukovnikov authored
-
lukovnikov authored
- added some images for illustration - updated comments in optimization
-
- 21 Apr, 2019 1 commit
-
-
lukovnikov authored
- removed unused plotting code - using ABC for LRSchedule - added some schedule object init tests
-
- 03 Apr, 2019 6 commits
-
-
lukovnikov authored
-
lukovnikov authored
-
lukovnikov authored
-
lukovnikov authored
-
lukovnikov authored
-
lukovnikov authored
-
- 18 Mar, 2019 1 commit
-
-
lukovnikov authored
-
- 13 Dec, 2018 3 commits
- 12 Dec, 2018 1 commit
-
-
Deyu Fu authored
-
- 09 Dec, 2018 1 commit
-
-
thomwolf authored
-
- 17 Nov, 2018 1 commit
-
-
thomwolf authored
-
- 04 Nov, 2018 1 commit
-
-
thomwolf authored
-
- 03 Nov, 2018 3 commits
- 02 Nov, 2018 1 commit
-
-
Tim Rault authored
-