1. 12 May, 2022 1 commit
  2. 30 Apr, 2022 1 commit
  3. 28 Mar, 2022 1 commit
  4. 21 Mar, 2022 1 commit
  5. 27 Dec, 2021 1 commit
    • Sylvain Gugger's avatar
      Doc styler v2 (#14950) · 87e6e4fe
      Sylvain Gugger authored
      * New doc styler
      
      * Fix issue with args at the start
      
      * Code sample fixes
      
      * Style code examples in MDX
      
      * Fix more patterns
      
      * Typo
      
      * Typo
      
      * More patterns
      
      * Do without black for now
      
      * Get more info in error
      
      * Docstring style
      
      * Re-enable check
      
      * Quality
      
      * Fix add_end_docstring decorator
      
      * Fix docstring
      87e6e4fe
  6. 21 Dec, 2021 1 commit
    • Sylvain Gugger's avatar
      Convert docstrings of modeling files (#14850) · 7af80f66
      Sylvain Gugger authored
      * Convert file_utils docstrings to Markdown
      
      * Test on BERT
      
      * Return block indent
      
      * Temporarily disable doc styler
      
      * Remove from quality checks as well
      
      * Remove doc styler mess
      
      * Remove check from circleCI
      
      * Fix typo
      
      * Convert file_utils docstrings to Markdown
      
      * Test on BERT
      
      * Return block indent
      
      * Temporarily disable doc styler
      
      * Remove from quality checks as well
      
      * Remove doc styler mess
      
      * Remove check from circleCI
      
      * Fix typo
      
      * Let's go on all other model files
      
      * Add templates too
      
      * Styling and quality
      7af80f66
  7. 16 Dec, 2021 1 commit
  8. 03 Nov, 2021 1 commit
  9. 06 Aug, 2021 1 commit
    • Sylvain Gugger's avatar
      [WIP] Disentangle auto modules from other modeling files (#13023) · 9870093f
      Sylvain Gugger authored
      * Initial work
      
      * All auto models
      
      * All tf auto models
      
      * All flax auto models
      
      * Tokenizers
      
      * Add feature extractors
      
      * Fix typos
      
      * Fix other typo
      
      * Use the right config
      
      * Remove old mapping names and update logic in AutoTokenizer
      
      * Update check_table
      
      * Fix copies and check_repo script
      
      * Fix last test
      
      * Add back name
      
      * clean up
      
      * Update template
      
      * Update template
      
      * Forgot a )
      
      * Use alternative to fixup
      
      * Fix TF model template
      
      * Address review comments
      
      * Address review comments
      
      * Style
      9870093f
  10. 14 Jul, 2021 1 commit
    • Sylvain Gugger's avatar
      Only test the files impacted by changes in the diff (#12644) · 084873b0
      Sylvain Gugger authored
      
      
      * Base test
      
      * More test
      
      * Fix mistake
      
      * Add a docstring change
      
      * Add doc ignore
      
      * Add changes
      
      * Add recursive dep search
      
      * Add recursive dep search
      
      * save
      
      * Finalize test mapping
      
      * Fix bug
      
      * Print prettier
      
      * Ignore comments and empty lines
      
      * Make script runnable from anywhere
      
      * Need dev install
      
      * Like that
      
      * Adapt
      
      * Add as artifact
      
      * Try on torch tests
      
      * Fix yaml error
      
      * Install GitPython
      
      * Apply everywhere
      
      * Be more defensive
      
      * Revert to all tests if something is wrong
      
      * Install GitPython
      
      * Test if there are tests before launching.
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Bash syntax is horrible
      
      * Be less stupid
      
      * Try differently
      
      * Typo
      
      * Typo
      
      * Typo
      
      * Style
      
      * Better name
      
      * Escape quotes
      
      * Ignore black unhelpful re-formatting
      
      * Not a docstring
      
      * Deal with inits in dependency map
      
      * Run all tests once PR is merged.
      
      * Add last job
      
      * Apply suggestions from code review
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      
      * Stronger dependencies gather
      
      * Ignore empty lines too!
      
      * Clean up
      
      * Fix quality
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      084873b0
  11. 28 Jun, 2021 1 commit
  12. 26 Apr, 2021 1 commit
  13. 21 Apr, 2021 1 commit
  14. 05 Apr, 2021 1 commit
  15. 30 Mar, 2021 1 commit
    • Philipp Schmid's avatar
      Sagemaker test (#10925) · 604c0850
      Philipp Schmid authored
      * init
      
      * first working test
      
      * added todo for setup.py
      
      * working test for single node multi node ddp and smd
      
      * added tensorflow single node test
      
      * added directory for pytorch and tensorflow due to different requirements.txt
      
      * added directory for pytorch and tensorflow
      
      * added comment for run_glue until it is available
      
      * added output_dir to it
      
      * smaller dataset to make test running faster
      
      * adjust HP and script
      
      * adjusted parameter for tensorflow
      
      * refactored test scripts
      
      * adjusted make file
      
      * init
      
      * first working test
      
      * added todo for setup.py
      
      * working test for single node multi node ddp and smd
      
      * added tensorflow single node test
      
      * added directory for pytorch and tensorflow due to different requirements.txt
      
      * added directory for pytorch and tensorflow
      
      * added comment for run_glue until it is available
      
      * added output_dir to it
      
      * smaller dataset to make test running faster
      
      * adjust HP and script
      
      * adjusted parameter for tensorflow
      
      * refactored test scripts
      
      * adjusted make file
      
      * updated dlc container
      
      * commented in all tests
      
      * added both ecr images
      
      * added new master branches
      
      * debug
      
      * added new datasets version
      
      * init
      
      * strange rebase bug
      
      * removed changes
      
      * changed min version for tests to work
      
      * updated DLC
      
      * added model parallel test
      
      * removed test files
      
      * removed test files
      
      * tested with ned dlc
      
      * added correct sagemaker sdk version
      
      * adjust DLCs for official one
      
      * reworked tests
      
      * quality
      
      * removed default profile added documentation to it
      
      * added step in release for sagemaker tests
      
      * reverted version for example script removed duplicated script and added install from master to requirements.txt
      
      * removed mistaken .DS_Stores from mac
      
      * fixed tests
      
      * added Sylvains feedback
      
      * make style
      
      * added lysandre's feedback
      604c0850
  16. 22 Mar, 2021 1 commit
  17. 19 Mar, 2021 1 commit
  18. 16 Mar, 2021 1 commit
    • Sylvain Gugger's avatar
      Release utils (#10735) · 813d730c
      Sylvain Gugger authored
      * Examples version update
      
      * Refactor a bit
      
      * All version updates
      
      * Fixes
      
      * README cleanup
      
      * Post-release/patch
      
      * Fixes
      
      * More fixes
      
      * Tests
      
      * More fixes
      
      * Moar fixes
      
      * Make commands and update setup
      
      * Replace spaces with weird tabs
      
      * Fix test
      
      * Style
      813d730c
  19. 03 Mar, 2021 1 commit
  20. 11 Jan, 2021 1 commit
  21. 08 Dec, 2020 1 commit
  22. 24 Nov, 2020 1 commit
  23. 07 Nov, 2020 1 commit
  24. 29 Oct, 2020 1 commit
    • Sylvain Gugger's avatar
      Add a template for examples and apply it for mlm and plm examples (#8153) · 69117628
      Sylvain Gugger authored
      * Add a template for example scripts and apply it to mlm
      
      * Formatting
      
      * Fix test
      
      * Add plm script
      
      * Add a template for example scripts and apply it to mlm
      
      * Formatting
      
      * Fix test
      
      * Add plm script
      
      * Add a template for example scripts and apply it to mlm
      
      * Formatting
      
      * Fix test
      
      * Add plm script
      
      * Styling
      69117628
  25. 27 Oct, 2020 1 commit
  26. 26 Oct, 2020 1 commit
    • Sylvain Gugger's avatar
      Doc styling (#8067) · 08f534d2
      Sylvain Gugger authored
      * Important files
      
      * Styling them all
      
      * Revert "Styling them all"
      
      This reverts commit 7d029395fdae8513b8281cbc2a6c239f8093503e.
      
      * Syling them for realsies
      
      * Fix syntax error
      
      * Fix benchmark_utils
      
      * More fixes
      
      * Fix modeling auto and script
      
      * Remove new line
      
      * Fixes
      
      * More fixes
      
      * Fix more files
      
      * Style
      
      * Add FSMT
      
      * More fixes
      
      * More fixes
      
      * More fixes
      
      * More fixes
      
      * Fixes
      
      * More fixes
      
      * More fixes
      
      * Last fixes
      
      * Make sphinx happy
      08f534d2
  27. 06 Oct, 2020 1 commit
  28. 05 Oct, 2020 1 commit
  29. 28 Sep, 2020 1 commit
  30. 25 Sep, 2020 1 commit
    • Stas Bekman's avatar
      [code quality] new make target that combines style and quality targets (#7310) · 8859c4f8
      Stas Bekman authored
      * [code quality] merge style and quality targets
      
      Any reason why we don't run `flake8` in `make style`? I find myself needing to run `make style` and `make quality` all the time, but I need the latter just for the last 2 checks. Since we have no control over the source code why bother with separating checking and fixing - let's just have one target that fixes and then performs the remaining checks, as we know the first two have been done already.
      
      This PR suggests to merge the 2 targets into one efficient target.
      
      I will edit the docs if this change resonates with the team.
      
      * move checks into style, re-use target
      
      * better name
      
      * add fixup target
      
      * document new target
      8859c4f8
  31. 23 Sep, 2020 1 commit
    • Stas Bekman's avatar
      [code quality] fix confused flake8 (#7309) · df536438
      Stas Bekman authored
      * fix confused flake
      
      We run `black  --target-version py35 ...` but flake8 doesn't know that, so currently with py38 flake8 fails suggesting that black should have reformatted 63 files. Indeed if I run:
      
      ```
      black --line-length 119 --target-version py38 examples templates tests src utils
      ```
      it indeed reformats 63 files.
      
      The only solution I found is to create a black config file as explained at https://github.com/psf/black#configuration-format, which is what this PR adds.
      
      Now flake8 knows that py35 is the standard and no longer gets confused regardless of the user's python version.
      
      * adjust the other files that will now rely on black's config file
      df536438
  32. 22 Sep, 2020 1 commit
  33. 27 Aug, 2020 1 commit
  34. 24 Aug, 2020 1 commit
  35. 07 Aug, 2020 1 commit
  36. 06 Jan, 2020 2 commits
  37. 05 Jan, 2020 1 commit
  38. 23 Dec, 2019 1 commit
  39. 22 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Move source code inside a src subdirectory. · 6be7cdda
      Aymeric Augustin authored
      This prevents transformers from being importable simply because the CWD
      is the root of the git repository, while not being importable from other
      directories. That led to inconsistent behavior, especially in examples.
      
      Once you fetch this commit, in your dev environment, you must run:
      
          $ pip uninstall transformers
          $ pip install -e .
      6be7cdda