1. 16 May, 2023 1 commit
  2. 10 May, 2023 1 commit
  3. 09 May, 2023 2 commits
    • Sylvain Gugger's avatar
      Revert "[Doctests] Refactor doctests + add CI" (#23245) · 69ee4624
      Sylvain Gugger authored
      Revert "[Doctests] Refactor doctests + add CI (#22987)"
      
      This reverts commit 627f4479.
      69ee4624
    • Arthur's avatar
      [Doctests] Refactor doctests + add CI (#22987) · 627f4479
      Arthur authored
      
      
      * intiial commit
      
      * new styling
      
      * update
      
      * just run doctest in CI
      
      * remove more test for fast dev
      
      * update
      
      * update refs
      
      * update path and fetch upstream
      
      * update documentatyion trests
      
      * typo
      
      * parse pwd
      
      * don't check for files that are in hidden folders
      
      * just give paths relative to transformers
      
      * update
      
      * update
      
      * update
      
      * major refactoring
      
      * make sure options is ok
      
      * lest test that mdx is tested
      
      * doctest glob
      
      * nits
      
      * update doctest nightly
      
      * some cleaning
      
      * run correct test on diff
      
      * debug
      
      * run on a single worker
      
      * skip_cuda_test tampkate
      
      * updates
      
      * add rA and continue on failure
      
      * test options
      
      * parse `py` codeblock?
      
      * we don't need to replace ignore results, don't remember whyu I put it
      
      * cleanup
      
      * more cleaning
      
      * fix arg
      
      * more cleaning
      
      * clean an todo
      
      * more pre-processing
      
      * doctest-module has none so extra `- ` is needed
      
      * remove logs
      
      * nits
      
      * doctest-modules ....
      
      * oups
      
      * let's use sugar
      
      * make dataset go quiet
      
      * add proper timeout
      
      * nites
      
      * spleling timeout
      
      * update
      
      * properly skip tests that have CUDSA
      
      * proper skipping
      
      * cleaning main and get tests to run
      
      * remove make report?
      
      * remove tee
      
      * some updates
      
      * tee was removed but is the full output still available?
      
      * [all-test]
      
      * only our tests
      
      * don't  touch tee in this PR
      
      * no atee-sys
      
      * proper sub
      
      * monkey
      
      * only replace call
      
      * fix sub
      
      * nits
      
      * nits
      
      * fix invalid syntax
      
      * add skip cuda doctest env variable
      
      * make sure all packages are installed
      
      * move file
      
      * update check repo
      
      * revert changes
      
      * nit
      
      * finish cleanup
      
      * fix re
      
      * findall
      
      * update don't test init files
      
      * ignore pycache
      
      * `-ignore-pycache` when running pytests
      
      * try to fix the import missmatch error
      
      * install dec
      
      * pytest is required as doctest_utils imports things from it
      
      * the only log issues were dataset, ignore results should work
      
      * more cleaning
      
      * Update .circleci/create_circleci_config.py
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      
      * Apply suggestions from code review
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      * [ydshieh] empty string if cuda is found
      
      * [ydshieh] fix condition
      
      * style
      
      * [ydshieh] fix
      
      * Add comment
      
      * style
      
      * style
      
      * show failure
      
      * trigger CI
      
      ---------
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      627f4479
  4. 07 Apr, 2023 1 commit
  5. 31 Mar, 2023 1 commit
    • Sylvain Gugger's avatar
      Test fetch v2 (#22367) · c6126280
      Sylvain Gugger authored
      
      
      * Test fetcher v2
      
      * Fix regexes
      
      * Remove sanity check
      
      * Fake modification to OPT
      
      * Fixes some .sep issues
      
      * Remove fake OPT change
      
      * Fake modif for BERT
      
      * Fake modif for init
      
      * Exclude SageMaker tests
      
      * Fix test and remove fake modif
      
      * Fake setup modif
      
      * Fake pipeline modif
      
      * Remove all fake modifs
      
      * Adds options to skip/force tests
      
      * [test-all-models] Fake modif for BERT
      
      * Try this way
      
      * Does the command actually work?
      
      * [test-all-models] Try again!
      
      * [skip circleci] Remove fake modif
      
      * Remove debug statements
      
      * Add the list of important models
      
      * Quality
      
      * Update utils/tests_fetcher.py
      Co-authored-by: default avatarLysandre Debut <lysandre.debut@reseau.eseo.fr>
      
      * Address review comments
      
      * Address review comments
      
      * Fix and add test
      
      * Apply suggestions from code review
      Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
      
      * Address review comments
      
      ---------
      Co-authored-by: default avatarLysandre Debut <lysandre.debut@reseau.eseo.fr>
      Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
      c6126280
  6. 07 Feb, 2023 1 commit
  7. 06 Feb, 2023 1 commit
    • Sylvain Gugger's avatar
      Update quality tooling for formatting (#21480) · 6f79d264
      Sylvain Gugger authored
      * Result of black 23.1
      
      * Update target to Python 3.7
      
      * Switch flake8 to ruff
      
      * Configure isort
      
      * Configure isort
      
      * Apply isort with line limit
      
      * Put the right black version
      
      * adapt black in check copies
      
      * Fix copies
      6f79d264
  8. 27 Jan, 2023 1 commit
    • Maria Khalusova's avatar
      Automated compatible models list for task guides (#21338) · 73a2ff69
      Maria Khalusova authored
      * initial commit. added tip placeholders and a script
      
      * removed unused imports, fixed paths
      
      * fixed generated links
      
      * make style
      
      * split language modeling doc into two: causal language modeling and masked language modeling
      
      * added check_task_guides.py to make fix-copies
      
      * review feedback addressed
      73a2ff69
  9. 26 Jan, 2023 1 commit
  10. 14 Sep, 2022 1 commit
  11. 07 Jul, 2022 1 commit
  12. 16 May, 2022 1 commit
  13. 12 May, 2022 1 commit
  14. 30 Apr, 2022 1 commit
  15. 28 Mar, 2022 1 commit
  16. 21 Mar, 2022 1 commit
  17. 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
  18. 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
  19. 16 Dec, 2021 1 commit
  20. 03 Nov, 2021 1 commit
  21. 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
  22. 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
  23. 28 Jun, 2021 1 commit
  24. 26 Apr, 2021 1 commit
  25. 21 Apr, 2021 1 commit
  26. 05 Apr, 2021 1 commit
  27. 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
  28. 22 Mar, 2021 1 commit
  29. 19 Mar, 2021 1 commit
  30. 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
  31. 03 Mar, 2021 1 commit
  32. 11 Jan, 2021 1 commit
  33. 08 Dec, 2020 1 commit
  34. 24 Nov, 2020 1 commit
  35. 07 Nov, 2020 1 commit
  36. 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
  37. 27 Oct, 2020 1 commit
  38. 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
  39. 06 Oct, 2020 1 commit