1. 14 Jan, 2020 1 commit
    • Lysandre's avatar
      Bias should be resized with the weights · 100e3b6f
      Lysandre authored
      Created a link between the linear layer bias and the model attribute bias. This does not change anything for the user nor for the conversion scripts, but allows the `resize_token_embeddings` method to resize the bias as well as the weights of the decoder.
      
      Added a test.
      100e3b6f
  2. 11 Jan, 2020 2 commits
  3. 10 Jan, 2020 1 commit
  4. 06 Jan, 2020 2 commits
  5. 23 Dec, 2019 1 commit
  6. 22 Dec, 2019 10 commits
  7. 21 Dec, 2019 5 commits
  8. 14 Dec, 2019 1 commit
  9. 13 Dec, 2019 1 commit
  10. 10 Dec, 2019 4 commits
  11. 09 Dec, 2019 2 commits
  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. 12 Nov, 2019 2 commits
  14. 07 Nov, 2019 1 commit
  15. 06 Nov, 2019 1 commit
  16. 05 Nov, 2019 1 commit
  17. 04 Nov, 2019 4 commits