1. 06 Apr, 2020 1 commit
  2. 30 Mar, 2020 3 commits
  3. 26 Mar, 2020 1 commit
  4. 25 Mar, 2020 1 commit
    • Julien Chaumond's avatar
      Experiment w/ dataclasses (including Py36) (#3423) · 83272a38
      Julien Chaumond authored
      * [ci] Also run test_examples in py37
      
      (will revert at the end of the experiment)
      
      * InputExample: use immutable dataclass
      
      * [deps] Install dataclasses for Py<3.7
      
      * [skip ci] Revert "[ci] Also run test_examples in py37"
      
      This reverts commit d29afd9959786b77759b0b8fa4e6b4335b952015.
      83272a38
  5. 24 Mar, 2020 2 commits
  6. 23 Mar, 2020 3 commits
  7. 20 Mar, 2020 1 commit
    • Bram Vanroy's avatar
      Handle pinned version of isort · 115abd21
      Bram Vanroy authored
      The CONTRIBUTING file pins to a specific version of isort, so we might as well install that in `dev` . This makes it easier for contributors so they don't have to manually install the specific commit.
      115abd21
  8. 17 Mar, 2020 1 commit
  9. 04 Mar, 2020 1 commit
  10. 24 Feb, 2020 2 commits
  11. 19 Feb, 2020 3 commits
  12. 10 Feb, 2020 1 commit
  13. 31 Jan, 2020 3 commits
  14. 28 Jan, 2020 1 commit
  15. 17 Jan, 2020 1 commit
    • Brendan Roof's avatar
      Add lower bound to tqdm for tqdm.auto · 23c6998b
      Brendan Roof authored
      - It appears that `tqdm` only introduced `tqdm.auto` in 4.27.
      - See https://github.com/tqdm/tqdm/releases/tag/v4.27.0.
      - Without the lower bound I received the following stack trace in an environment where I already had tqdm installed:
      ```
        File "/home/brendanr/anaconda3/envs/allennlp/lib/python3.6/site-packages/transformers/__init__.py", line 20, in <module>
          from .file_utils import (TRANSFORMERS_CACHE, PYTORCH_TRANSFORMERS_CACHE, PYTORCH_PRETRAINED_BERT_CACHE,
        File "/home/brendanr/anaconda3/envs/allennlp/lib/python3.6/site-packages/transformers/file_utils.py", line 24, in <module>
          from tqdm.auto import tqdm
      ModuleNotFoundError: No module named 'tqdm.auto'
      ```
      23c6998b
  16. 06 Jan, 2020 2 commits
  17. 27 Dec, 2019 1 commit
  18. 26 Dec, 2019 1 commit
  19. 24 Dec, 2019 1 commit
  20. 23 Dec, 2019 4 commits
    • Aymeric Augustin's avatar
      Remove stray egg-info directory automatically. · 7a865821
      Aymeric Augustin authored
      If a user or contributor ran `pip install -e .` on transformers < 3.0,
      pip created a transformers.egg-info directory next to the transformers
      directory at the root of the repository.
      
      In transformers 3.0, the source is in a `src` subdirectory.
      `pip install -e .` creates a transformers.egg-info directory there.
      However, pip will still pick transformers.egg-info from the previous
      location. This is a bug: https://github.com/pypa/pip/issues/5466
      
      Users and contributors are likely to hit this problem because the
      documentation for transformers 3.0 relies heavily on extra_requires
      which didn't exist in earlier versions, so aren't defined in a stale
      transformers.egg-info directory.
      
      If such a directory exists, remove it. It's autogenerated, gitignored
      and not supposed to contain anything of value.
      7a865821
    • Aymeric Augustin's avatar
      Remove requirements.txt. · d73eb552
      Aymeric Augustin authored
      It's redundant with setup.py and, also, incomplete (e.g. numpy).
      d73eb552
    • Aymeric Augustin's avatar
      Include all optional dependencies in extras. · 76a1417f
      Aymeric Augustin authored
      Take advantage of this to simplify the Circle CI configuration.
      
      Don't bother with tensorboardX: it's a fallback for PyTorch < 1.1.0.
      76a1417f
    • Aymeric Augustin's avatar
      Review and update setup.py. · f2522869
      Aymeric Augustin authored
      f2522869
  21. 22 Dec, 2019 4 commits
  22. 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
      Prevent parallel downloads of the same file with a lock. · a4c9338b
      Aymeric Augustin authored
      Since the file is written to the filesystem, a filesystem lock is the
      way to go here. Add a dependency on the third-party filelock library to
      get cross-platform functionality.
      a4c9338b