1. 20 Feb, 2020 3 commits
  2. 19 Feb, 2020 6 commits
  3. 14 Feb, 2020 1 commit
  4. 13 Feb, 2020 2 commits
    • Joe Davison's avatar
      Preserve spaces in GPT-2 tokenizers (#2778) · f1e8a51f
      Joe Davison authored
      * Preserve spaces in GPT-2 tokenizers
      
      Preserves spaces after special tokens in GPT-2 and inhereted (RoBERTa)
      tokenizers, enabling correct BPE encoding. Automatically inserts a space
      in front of first token in encode function when adding special tokens.
      
      * Add tokenization preprocessing method
      
      * Add framework argument to pipeline factory
      
      Also fixes pipeline test issue. Each test input now treated as a
      distinct sequence.
      f1e8a51f
    • Sam Shleifer's avatar
      get_activation('relu') provides a simple mapping from strings i… (#2807) · ef74b0f0
      Sam Shleifer authored
      * activations.py contains a mapping from string to activation function
      * resolves some `gelu` vs `gelu_new` ambiguity
      ef74b0f0
  5. 11 Feb, 2020 2 commits
  6. 10 Feb, 2020 3 commits
  7. 07 Feb, 2020 8 commits
  8. 06 Feb, 2020 3 commits
  9. 05 Feb, 2020 1 commit
  10. 04 Feb, 2020 2 commits
  11. 03 Feb, 2020 3 commits
  12. 01 Feb, 2020 1 commit
    • Bram Vanroy's avatar
      CLI script to gather environment info (#2699) · 9773e5e0
      Bram Vanroy authored
      * add "info" command to CLI
      
      As a convenience, add the info directive to CLI. Running `python transformers-cli info` will return a string containing the transformers version, platform, python version, PT/TF version and GPU support
      
      * Swap f-strings for .format
      
      Still supporting 3.5 so can't use f-strings (sad face)
      
      * Add reference in issue to CLI
      
      * Add the expected fields to issue template
      
      This way, people can still add the information manually if they want. (Though I fear they'll just ignore it.)
      
      * Remove heading from output
      
      * black-ify
      
      * order of imports
      
      Should ensure isort test passes
      
      * use is_X_available over import..pass
      
      * style
      
      * fix copy-paste bug
      
      * Rename command info -> env
      
      Also adds the command to CONTRIBUTING.md in "Did you find a bug" section
      9773e5e0
  13. 31 Jan, 2020 5 commits