1. 23 Mar, 2022 1 commit
  2. 10 Mar, 2022 1 commit
    • NielsRogge's avatar
      Add Document Image Transformer (DiT) (#15984) · 0835119b
      NielsRogge authored
      
      
      * Add conversion script
      
      * Improve script
      
      * Fix bug
      
      * Add option to push to hub
      
      * Add support for classification models
      
      * Update model name
      
      * Upload feature extractor files first
      
      * Remove hash checking
      
      * Fix config
      
      * Add id2label
      
      * Add import
      
      * Fix id2label file name
      
      * Fix expected shape
      
      * Add model to README
      
      * Improve docs
      
      * Add integration test and fix CI
      
      * Fix code style
      
      * Add missing init
      
      * Add model to SPECIAL_MODULE_TO_TEST_MAP
      Co-authored-by: default avatarNiels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
      0835119b
  3. 23 Feb, 2022 1 commit
  4. 27 Jan, 2022 1 commit
  5. 24 Jan, 2022 1 commit
    • Sylvain Gugger's avatar
      Add model like (#14992) · 81156d20
      Sylvain Gugger authored
      
      
      * Add new model like command
      
      * Bad doc-styler
      
      * black and doc-styler, stop fighting!
      
      * black and doc-styler, stop fighting!
      
      * At last
      
      * Clean up
      
      * Typo
      
      * Bad doc-styler
      
      * Bad doc-styler
      
      * All good maybe?
      
      * Use constants
      
      * Add doc and type hints
      
      * More cleaning
      
      * Add doc
      
      * Fix Copied from
      
      * Doc template
      
      * Use typing.Pattern instead
      
      * Framework-specific files
      
      * Fixes
      
      * Select frameworks clean model init
      
      * Deal with frameworks in main init
      
      * fixes
      
      * Last fix
      
      * Prompt user for info
      
      * Delete exemple config
      
      * Last fixes
      
      * Add test config
      
      * Fix bug with model_type included in each other
      
      * Fixes
      
      * More fixes
      
      * More fixes
      
      * Adapt config
      
      * Remove print statements
      
      * Will fix tokenization later, leave it broken for now
      
      * Add test
      
      * Quality
      
      * Try this way
      
      * Debug
      
      * Maybe by setting the path?
      
      * Let's try another way
      
      * It should go better when actually passing the arg...
      
      * Remove debug statements and style
      
      * Fix config
      
      * Add tests
      
      * Test require the three backends
      
      * intermediate commit
      
      * Revamp pattern replacements and start work on feature extractors
      
      * Adapt model info
      
      * Finalize code for processors
      
      * Fix in main init additions
      
      * Finish questionnaire for processing classes
      
      * Fix file name
      
      * Fix for real
      
      * Fix patterns
      
      * Style
      
      * Remove needless warnings
      
      * Copied from should work now.
      
      * Include Copied form in blocks
      
      * Add test
      
      * More fixes and tests
      
      * Apply suggestions from code review
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * Address review comment
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      81156d20
  6. 21 Jan, 2022 1 commit
    • Sylvain Gugger's avatar
      Refine errors for pretrained objects (#15261) · 6ac77534
      Sylvain Gugger authored
      * Refine errors for pretrained objects
      
      * PoC to avoid using get_list_of_files
      
      * Adapt tests to use new errors
      
      * Quality + Fix PoC
      
      * Revert "PoC to avoid using get_list_of_files"
      
      This reverts commit cb93b7cae8504ef837c2a7663cb7955e714f323e.
      
      * Revert "Quality + Fix PoC"
      
      This reverts commit 3ba6d0d4ca546708b31d355baa9e68ba9736508f.
      
      * Fix doc
      
      * Revert PoC
      
      * Add feature extractors
      
      * More tests and PT model
      
      * Adapt error message
      
      * Feature extractor tests
      
      * TF model
      
      * Flax model and test
      
      * Merge flax auto tests
      
      * Add tokenization
      
      * Fix test
      6ac77534
  7. 06 Dec, 2021 1 commit
  8. 17 Nov, 2021 1 commit
    • N's avatar
      [WIP] Ensure TF model configs can be converted to proper JSON (#14415) · 1991da07
      N authored
      
      
      * test: make sure model configs are jsonifiable
      
      * fix: return python dict instead of config object
      
      * fix: accept pretrained config and use correct class
      
      * Re-enabling slow tests and applying them to core models only
      
      * Re-enabling slow tests and applying them to core models only
      
      * Add new test file to fetcher
      
      * Remove tooslow tests from test_modeling_tf_common.py
      
      * make style
      
      * Style fixes
      
      * Style fixes
      
      * Style fixes
      
      * Style fixes
      
      * Adding core tests to GPT2 and BART
      
      * Removing unused imports
      Co-authored-by: default avatarniklas.fruehauf <niklas.fruehauf@sovanta.com>
      Co-authored-by: default avatarmatt <rocketknight1@gmail.com>
      1991da07
  9. 29 Oct, 2021 1 commit
  10. 29 Sep, 2021 1 commit
  11. 27 Sep, 2021 1 commit
  12. 16 Sep, 2021 1 commit
  13. 14 Sep, 2021 1 commit
  14. 31 Aug, 2021 1 commit
    • Sylvain Gugger's avatar
      Tests fetcher tests (#13340) · 8b2de0e4
      Sylvain Gugger authored
      * Incorporate tests dependencies in tests_fetcher
      
      * Harder modif
      
      * Debug
      
      * Loop through all files
      
      * Last modules
      
      * Remove debug statement
      8b2de0e4
  15. 12 Aug, 2021 2 commits
  16. 10 Aug, 2021 2 commits
  17. 26 Jul, 2021 1 commit
  18. 15 Jul, 2021 1 commit
  19. 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