1. 01 Jul, 2020 1 commit
  2. 22 Jun, 2020 1 commit
    • RafaelWO's avatar
      Added feature to move added tokens in vocabulary for Transformer-XL (#4953) · b99ad457
      RafaelWO authored
      
      
      * Fixed resize_token_embeddings for transfo_xl model
      
      * Fixed resize_token_embeddings for transfo_xl.
      
      Added custom methods to TransfoXLPreTrainedModel for resizing layers of
      the AdaptiveEmbedding.
      
      * Updated docstring
      
      * Fixed resizinhg cutoffs; added check for new size of embedding layer.
      
      * Added test for resize_token_embeddings
      
      * Fixed code quality
      
      * Fixed unchanged cutoffs in model.config
      
      * Added feature to move added tokens in tokenizer.
      
      * Fixed code quality
      
      * Added feature to move added tokens in tokenizer.
      
      * Fixed code quality
      
      * Fixed docstring, renamed sym to 	oken.
      Co-authored-by: default avatarRafael Weingartner <rweingartner.its-b2015@fh-salzburg.ac.at>
      b99ad457
  3. 15 Jun, 2020 1 commit
    • Anthony MOI's avatar
      [HUGE] Refactoring tokenizers backend - padding - truncation - pre-tokenized... · 36434220
      Anthony MOI authored
      
      [HUGE] Refactoring tokenizers backend - padding - truncation - pre-tokenized pipeline - fast tokenizers - tests (#4510)
      
      * Use tokenizers pre-tokenized pipeline
      
      * failing pretrokenized test
      
      * Fix is_pretokenized in python
      
      * add pretokenized tests
      
      * style and quality
      
      * better tests for batched pretokenized inputs
      
      * tokenizers clean up - new padding_strategy - split the files
      
      * [HUGE] refactoring tokenizers - padding - truncation - tests
      
      * style and quality
      
      * bump up requied tokenizers version to 0.8.0-rc1
      
      * switched padding/truncation API - simpler better backward compat
      
      * updating tests for custom tokenizers
      
      * style and quality - tests on pad
      
      * fix QA pipeline
      
      * fix backward compatibility for max_length only
      
      * style and quality
      
      * Various cleans up - add verbose
      
      * fix tests
      
      * update docstrings
      
      * Fix tests
      
      * Docs reformatted
      
      * __call__ method documented
      Co-authored-by: default avatarThomas Wolf <thomwolf@users.noreply.github.com>
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      36434220
  4. 15 Jan, 2020 1 commit
  5. 06 Jan, 2020 2 commits
  6. 22 Dec, 2019 9 commits
  7. 21 Dec, 2019 1 commit
    • 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
  8. 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
  9. 26 Sep, 2019 1 commit
  10. 09 Sep, 2019 1 commit
  11. 08 Sep, 2019 2 commits
  12. 05 Sep, 2019 2 commits
  13. 30 Aug, 2019 1 commit
  14. 05 Aug, 2019 1 commit
  15. 15 Jul, 2019 1 commit
  16. 09 Jul, 2019 2 commits
  17. 05 Jul, 2019 3 commits
  18. 02 Jul, 2019 1 commit
  19. 21 Jun, 2019 1 commit
  20. 17 Apr, 2019 1 commit
  21. 15 Apr, 2019 2 commits
  22. 11 Feb, 2019 1 commit