1. 03 Mar, 2020 3 commits
    • Gunnlaugur Thor Briem's avatar
      Use class decorator instead of superclass · 0c716ede
      Gunnlaugur Thor Briem authored
      When supplied by Keras deserialization, the config parameter to initializers
      will be a dict. So intercept it and convert to PretrainedConfig object (and
      store in instance attribute for get_config to get at it) before passing to the
      actual initializer. To accomplish this, and repeat as little code as possible,
      use a class decorator on TF*MainLayer classes.
      0c716ede
    • Gunnlaugur Thor Briem's avatar
      b8da16f3
    • Patrick von Platen's avatar
      Add generate() functionality to TF 2.0 (#3063) · 41341003
      Patrick von Platen authored
      * add first copy past test to tf 2 generate
      
      * add tf top_k_top_p_filter fn
      
      * add generate function for TF
      
      * add generate function for TF
      
      * implemented generate for all models expect transfoXL
      
      * implemented generate for all models expect transfoXL
      
      * implemented generate for all models expect transfoXL
      
      * make style
      
      * change permission of test file to correct ones
      
      * delete ipdb
      
      * delete ipdb
      
      * fix bug and finish simple gpt2 integration test
      
      * clean test file
      
      * clean test file
      
      * make style
      
      * make style
      
      * make style
      
      * make style
      
      * change import style
      
      * change import style
      
      * make style
      
      * make style
      
      * add decorators
      
      * add decorators
      
      * fix tf ctrl bug dim => axis in TF
      
      * make style
      
      * make style
      
      * refactored test file
      
      * refactored test file
      
      * take out test_torch_tf_conversion if nothing is defined
      
      * take out test_torch_tf_conversion if nothing is defined
      
      * remove useless files
      
      * remove useless files
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * solve conflicts
      
      * solve conflicts
      
      * fix conflicts
      
      * fix conflicts
      
      * merge conflicts
      
      * delete ipdb
      
      * exposed top_k_top_p_filtering fns
      
      * delete weirdly created w! file
      
      * add comment to test tf common modeling
      
      * fix conflicts
      
      * fix conflicts
      
      * make style
      
      * merge conflicts
      
      * make style
      
      * change tf.tensor.shape to shape_list(tensor)
      41341003
  2. 02 Mar, 2020 1 commit
    • Julien Chaumond's avatar
      TF GPU CI (#3085) · f169957d
      Julien Chaumond authored
      * debug env
      
      * Restrict TF GPU memory
      
      * Fixup
      
      * One more test
      
      * rm debug logs
      
      * Fixup
      f169957d
  3. 28 Jan, 2020 1 commit
  4. 27 Jan, 2020 1 commit
  5. 06 Jan, 2020 2 commits
  6. 29 Dec, 2019 1 commit
  7. 23 Dec, 2019 1 commit
  8. 22 Dec, 2019 10 commits
  9. 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
  10. 10 Dec, 2019 2 commits
  11. 09 Dec, 2019 1 commit
  12. 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
  13. 04 Dec, 2019 1 commit
  14. 26 Nov, 2019 3 commits
  15. 12 Nov, 2019 3 commits
  16. 08 Nov, 2019 3 commits
  17. 15 Oct, 2019 1 commit
  18. 11 Oct, 2019 1 commit
  19. 10 Oct, 2019 1 commit
  20. 09 Oct, 2019 2 commits