1. 25 Oct, 2023 1 commit
    • Younes Belkada's avatar
      [`core`] Refactor of `gradient_checkpointing` (#27020) · 06e782da
      Younes Belkada authored
      * v1
      
      * fix
      
      * remove `create_custom_forward`
      
      * fixup
      
      * fixup
      
      * add test and fix all failing GC tests
      
      * remove all remaining `create_custom_forward` methods
      
      * fix idefics bug
      
      * fixup
      
      * replace with `__call__`
      
      * add comment
      
      * quality
      06e782da
  2. 28 Sep, 2023 1 commit
  3. 27 Jun, 2023 1 commit
    • Sylvain Gugger's avatar
      Clean load keys (#24505) · 8e5d1619
      Sylvain Gugger authored
      * Preliminary work on some models
      
      * Fix test load missing and make sure nonpersistent buffers are tested
      
      * Always ignore nonpersistent buffers if in state_dict
      
      * Treat models
      
      * More models
      
      * Treat remaining models
      
      * Fix quality
      
      * Fix tests
      
      * Remove draft
      
      * This test is not needed anymore
      
      * Fix copies
      
      * Fix last test
      
      * Newly added models
      
      * Fix last tests
      
      * Address review comments
      8e5d1619
  4. 22 Jun, 2023 1 commit
  5. 21 Jun, 2023 1 commit
  6. 02 Mar, 2023 1 commit
  7. 23 Jan, 2023 1 commit
  8. 14 Nov, 2022 1 commit
    • IMvision12's avatar
      Pytorch type hints (#20112) · d24e84d9
      IMvision12 authored
      * initial commit
      
      * Update modeling_whisper.py
      
      * Fixing Tests
      
      * modeling_vision_text_dual_encoder
      
      * modeling_vision_encoder_decoder
      
      * Update modeling_vit.py
      
      * Update modeling_vit_msn.py
      
      * Update modeling_trajectory_transformer.py
      
      * style
      
      * Update modeling_time_series_transformer.py
      
      * Update modeling_time_series_transformer.py
      
      * Update modeling_segformer.py
      
      * Update modeling_plbart.py
      
      * Update modeling_dpt.py
      
      * Update modeling_deit.py
      
      * Update modeling_dpt.py
      
      * Update modeling_esm.py
      
      * Update modeling_fnet.py
      
      * Update modeling_fnet.py
      
      * Update modeling_fnet.py
      
      * Update modeling_flava.py
      
      * Update modeling_flava.py
      
      * Update modeling_layoutlmv3.py
      
      * Update modeling_levit.py
      d24e84d9
  9. 20 Oct, 2022 1 commit
  10. 11 Aug, 2022 1 commit
    • Wonseok Lee (Jack)'s avatar
      Fix LayoutLMv3 documentation (#17932) · 4c8ec66a
      Wonseok Lee (Jack) authored
      * fix typos
      
      * fix sequence_length docs of LayoutLMv3Model
      
      * delete trailing white spaces
      
      * fix layoutlmv3 docs more
      
      * apply make fixup & quality
      
      * change to two versions of input docstring
      
      * apply make fixup & quality
      4c8ec66a
  11. 20 Jun, 2022 1 commit
  12. 24 May, 2022 1 commit
    • 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