1. 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
  2. 22 Jun, 2023 1 commit
  3. 21 Jun, 2023 1 commit
  4. 13 Jun, 2023 1 commit
    • Sylvain Gugger's avatar
      Tied params cleanup (#24211) · 695928e1
      Sylvain Gugger authored
      * First test
      
      * Add info for all models
      
      * style
      
      * Repo consistency
      
      * Fix last model and cleanup prints
      
      * Repo consistency
      
      * Use consistent function for detecting tied weights
      695928e1
  5. 02 May, 2023 1 commit
  6. 02 Mar, 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. 23 Jan, 2023 1 commit
  9. 20 Jan, 2023 1 commit
  10. 16 Nov, 2022 1 commit
    • IMvision12's avatar
      remaining pytorch type hints (#20217) · d4d23141
      IMvision12 authored
      * Update modeling_flava.py
      
      * Update modeling_markuplm.py
      
      * Update modeling_glpn.py
      
      * Update modeling_roc_bert.py
      
      * Update modeling_segformer.py
      
      * Update modeling_tapas.py
      
      * Update modeling_tapas.py
      
      * Update modeling_tapas.py
      
      * Update modeling_tapas.py
      
      * Update modeling_trocr.py
      
      * Update modeling_videomae.py
      
      * Update modeling_videomae.py
      
      * Update modeling_videomae.py
      
      * Update modeling_yolos.py
      
      * Update modeling_wav2vec2.py
      
      * Update modeling_jukebox.py
      
      * Update modeling_jukebox.py
      
      * Update modeling_jukebox.py
      
      * Update modeling_jukebox.py
      d4d23141
  11. 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
  12. 09 Nov, 2022 1 commit
    • Nicolas Patry's avatar
      Attempting to test automatically the `_keys_to_ignore`. (#20042) · bac2d29a
      Nicolas Patry authored
      
      
      * Attempting to test automatically the `_keys_to_ignore`.
      
      * Style.
      
      * First fix pass.
      
      * Moving test on its own.
      
      * Another batch.
      
      * Second round removing BatchNorm
      
      * Fixing layoutlmv{2,3} + support older Python.
      
      * Disable miss missing warning.
      
      * Removing dodgy additions.
      
      * Big pass.
      
      * mbart.
      
      * More corrections.
      
      * Fixup.
      
      * Updating test_correct_missing_keys
      
      * Add escape hatch for when the head has no extra params so doesn't need
      
      the missing keys check.
      
      * Fixing test.
      
      * Greener.
      
      * Green ! (except for weird splinter bug).
      
      * Adding a test about `named_parameters` usage.
      
      * Shorten message.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      
      * After rebase modifications.
      
      * More explicit condition checking.
      
      * Fixing slow tests issues.
      
      * Remove extra pdb.
      
      * Remove print.
      
      * Attempt to make failure consistent + fixing roc_bert.
      
      * Removing the seed  (all tests passing with it).
      Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
      bac2d29a
  13. 14 Sep, 2022 1 commit
  14. 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
  15. 12 May, 2022 1 commit
  16. 11 May, 2022 1 commit
    • Amanpreet Singh's avatar
      [feat] Add FLAVA model (#16654) · a10f6183
      Amanpreet Singh authored
      * [WIP] Add FLAVA model
      
      This PR aims to add [FLAVA](ihttps://arxiv.org/abs/2112.04482) model to the transformers repo.
      
      Following checklist delineates the list of things to be done for this PR
      to be complete:
      
      [x] Flava init
      [x] Flava base models
      [x] Flava layers
      [x] Flava Configs
      [x] Flava encoders
      [x] Flava pretraining models
      [ ] Flava classification/retrieval models (To be added in a separate PR)
      [x] Documentation updates 
      [x] Imports updates 
      [x] Argstring updates
      [x] Flava pretrained checkpoints 
      [x] Flava tests
      [x] Flava processors 
      [x] Sanity check
      [x] Lint
      a10f6183