1. 06 Jan, 2020 2 commits
  2. 22 Dec, 2019 8 commits
  3. 21 Dec, 2019 2 commits
    • Aymeric Augustin's avatar
      Reformat source code with black. · fa84ae26
      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.
      fa84ae26
    • Aymeric Augustin's avatar
      Take advantage of the cache when running tests. · b670c266
      Aymeric Augustin authored
      Caching models across test cases and across runs of the test suite makes
      slow tests somewhat more bearable.
      
      Use gettempdir() instead of /tmp in tests. This makes it easier to
      change the location of the cache with semi-standard TMPDIR/TEMP/TMP
      environment variables.
      
      Fix #2222.
      b670c266
  4. 13 Dec, 2019 1 commit
  5. 06 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Remove dependency on pytest for running tests (#2055) · 35401fe5
      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
      35401fe5
  6. 05 Dec, 2019 1 commit
  7. 30 Nov, 2019 1 commit
    • Rostislav Nedelchev's avatar
      [XLNet] Changed post-processing of attention w.r.t to target_mapping · 76c0bc06
      Rostislav Nedelchev authored
      Whenever target_mapping is provided to the input, XLNet outputs two different attention streams.
      Based on that the attention output would be on of the two:
      - a list of tensors (usual case for most transformers)
      - a list of 2-tuples of tensors, one tesor for each of attention streams
      Docs and unit-tests have been updated
      76c0bc06
  8. 19 Nov, 2019 1 commit
  9. 11 Oct, 2019 2 commits
  10. 26 Sep, 2019 1 commit
  11. 09 Sep, 2019 1 commit
  12. 08 Sep, 2019 2 commits
  13. 05 Sep, 2019 1 commit
  14. 04 Sep, 2019 1 commit
  15. 15 Jul, 2019 1 commit
  16. 13 Jul, 2019 1 commit
  17. 12 Jul, 2019 1 commit
  18. 11 Jul, 2019 1 commit
  19. 09 Jul, 2019 1 commit
  20. 05 Jul, 2019 2 commits
  21. 04 Jul, 2019 1 commit
  22. 03 Jul, 2019 1 commit
  23. 02 Jul, 2019 2 commits
  24. 29 Jun, 2019 1 commit
  25. 26 Jun, 2019 2 commits
  26. 24 Jun, 2019 1 commit