1. 18 Oct, 2022 1 commit
    • David Yang's avatar
      Clean up deprecation warnings (#19654) · a23819ed
      David Yang authored
      * Clean up deprecation warnings
      
      Notes:
      Changed some strings in tests to raw strings, which will change the literal content of the strings as they are fed into whatever machine handles them.
      Test cases for past in the past/past_key_values switch changed/removed due to warning of impending removal
      
      * Add PILImageResampling abstraction for PIL.Image.Resampling
      a23819ed
  2. 17 Oct, 2022 1 commit
  3. 06 Oct, 2022 1 commit
  4. 03 Oct, 2022 3 commits
  5. 27 Sep, 2022 1 commit
  6. 26 Sep, 2022 1 commit
  7. 22 Sep, 2022 1 commit
  8. 20 Sep, 2022 1 commit
  9. 16 Sep, 2022 1 commit
  10. 13 Sep, 2022 1 commit
  11. 09 Sep, 2022 1 commit
  12. 24 Aug, 2022 2 commits
  13. 18 Aug, 2022 1 commit
    • Loubna Ben Allal's avatar
      Add an examples folder for code downstream tasks (#18679) · bbbb453e
      Loubna Ben Allal authored
      * add examples subfolder
      
      * mention examples in codeparrot readme
      
      * use Trainer optimizer and scheduler type and add output_dir as argument
      
      * add example of text-to-python and python-to-text models
      
      * mention the downstream examples in the readme
      
      * fix typo
      bbbb453e
  14. 11 Aug, 2022 2 commits
  15. 06 Aug, 2022 1 commit
  16. 03 Aug, 2022 1 commit
    • LSinev's avatar
      Fix torch version comparisons (#18460) · 02b176c4
      LSinev authored
      Comparisons like
      version.parse(torch.__version__) > version.parse("1.6")
      are True for torch==1.6.0+cu101 or torch==1.6.0+cpu
      
      version.parse(version.parse(torch.__version__).base_version) are preferred (and available in pytorch_utils.py
      02b176c4
  17. 01 Aug, 2022 2 commits
  18. 29 Jul, 2022 1 commit
  19. 28 Jul, 2022 1 commit
  20. 27 Jul, 2022 2 commits
  21. 11 Jul, 2022 2 commits
  22. 29 Jun, 2022 1 commit
  23. 22 Jun, 2022 2 commits
  24. 21 Jun, 2022 1 commit
  25. 17 Jun, 2022 2 commits
  26. 14 Jun, 2022 1 commit
  27. 10 Jun, 2022 3 commits
  28. 24 May, 2022 2 commits
    • dependabot[bot]'s avatar
      1ef9a1ed
    • NielsRogge's avatar
      Add LayoutLMv3 (#17060) · 31ee80d5
      NielsRogge authored
      
      
      * Make forward pass work
      
      * More improvements
      
      * Remove unused imports
      
      * Remove timm dependency
      
      * Improve loss calculation of token classifier
      
      * Fix most tests
      
      * Add docs
      
      * Add model integration test
      
      * Make all tests pass
      
      * Add LayoutLMv3FeatureExtractor
      
      * Improve integration test + make fixup
      
      * Add example script
      
      * Fix style
      
      * Add LayoutLMv3Processor
      
      * Fix style
      
      * Add option to add visual labels
      
      * Make more tokenizer tests pass
      
      * Fix more tests
      
      * Make more tests pass
      
      * Fix bug and improve docs
      
      * Fix import of processors
      
      * Improve docstrings
      
      * Fix toctree and improve docs
      
      * Fix auto tokenizer
      
      * Move tests to model folder
      
      * Move tests to model folder
      
      * change default behavior add_prefix_space
      
      * add prefix space for fast
      
      * add_prefix_spcae set to True for Fast
      
      * no space before `unique_no_split` token
      
      * add test to hightligh special treatment of added tokens
      
      * fix `test_batch_encode_dynamic_overflowing` by building a long enough example
      
      * fix `test_full_tokenizer` with add_prefix_token
      
      * Fix tokenizer integration test
      
      * Make the code more readable
      
      * Add tests for LayoutLMv3Processor
      
      * Fix style
      
      * Add model to README and update init
      
      * Apply suggestions from code review
      
      * Replace asserts by value errors
      
      * Add suggestion by @ducviet00
      
      * Add model to doc tests
      
      * Simplify script
      
      * Improve README
      
      * a step ahead to fix
      
      * Update pair_input_test
      
      * Make all tokenizer tests pass - phew
      
      * Make style
      
      * Add LayoutLMv3 to CI job
      
      * Fix auto mapping
      
      * Fix CI job name
      
      * Make all processor tests pass
      
      * Make tests of LayoutLMv2 and LayoutXLM consistent
      
      * Add copied from statements to fast tokenizer
      
      * Add copied from statements to slow tokenizer
      
      * Remove add_visual_labels attribute
      
      * Fix tests
      
      * Add link to notebooks
      
      * Improve docs of LayoutLMv3Processor
      
      * Fix reference to section
      Co-authored-by: default avatarSaulLu <lucilesaul.com@gmail.com>
      Co-authored-by: default avatarNiels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
      31ee80d5