1. 02 Mar, 2023 1 commit
  2. 01 Mar, 2023 1 commit
    • raghavanone's avatar
      Change the way tensor is reshaped in BartAttention (from .view to .reshape) (#21860) · ebd52589
      raghavanone authored
      * Change the .view call to .reshape
      
      * Change the .view call to .reshape to all the copies from bart attention
      
      * Fix copies and style
      
      * Fix copies and style
      
      * Fix copies and style
      
      * Fix copies and style
      
      * Fix copies and style
      
      * Revert unneccessary changes
      
      * Revert unneccessary changes
      
      * Revert unneccessary changes
      
      * Revert unneccessary changes
      ebd52589
  3. 27 Feb, 2023 1 commit
  4. 22 Feb, 2023 1 commit
  5. 16 Feb, 2023 1 commit
  6. 09 Feb, 2023 1 commit
    • Sylvain Gugger's avatar
      馃毃馃毃馃毃 Enforce single model initialization (#21431) · 04b2f13c
      Sylvain Gugger authored
      * Enforce single model initialization
      
      * Add OneFormer example for problem 3
      
      * Do it the Stas way
      
      * Actually rename the uses...
      
      * Rewrite test
      
      * Try to change the test this way
      
      * Fix all init slow/fast tests
      
      * Break connection
      
      * Fix more tests
      
      * Fix test for initialization
      
      * Remove custom test
      
      * Quality
      
      * Fix last failing tests
      
      * The end?
      04b2f13c
  7. 07 Feb, 2023 1 commit
    • Arthur's avatar
      [CI ] Remove `past` in favor of `pat_key_values` (#21443) · 12eb528b
      Arthur authored
      * fix past renamed to past_key_value
      
      * update more `past`that were ski^锚d
      
      * fixup
      
      * remove changes made to rag
      
      * refactor `_reorder_cache` to use `past_key_values`
      
      * fix git `prepare_inputs_for_generation` to pass tests when false is needed in use_cache
      12eb528b
  8. 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
  9. 23 Jan, 2023 1 commit
  10. 20 Jan, 2023 1 commit
  11. 08 Jan, 2023 1 commit
    • Arthur's avatar
      Replace `past` with `past_key_values` (#20944) · f0577df6
      Arthur authored
      * start cleanup
      
      * more updates
      
      * more models are affected
      
      * more updates
      
      * update generation utils
      
      * style
      
      * revert change that removed reorder cachce
      
      * update generation utils
      
      * style
      
      * style
      
      * remove reorder cache
      f0577df6
  12. 20 Dec, 2022 1 commit
  13. 08 Dec, 2022 1 commit
  14. 06 Dec, 2022 1 commit
  15. 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
  16. 18 Oct, 2022 1 commit
  17. 11 Aug, 2022 1 commit
    • Dan Jones's avatar
      Change BartLearnedPositionalEmbedding's forward method signature to support... · 80468251
      Dan Jones authored
      
      Change BartLearnedPositionalEmbedding's forward method signature to support Opacus training (#18486)
      
      * changing BartLearnedPositionalEmbedding forward signature and references to it
      
      * removing debugging dead code (thanks style checker)
      
      * blackened modeling_bart file
      
      * removing copy inconsistencies via make fix-copies
      
      * changing references to copied signatures in Bart variants
      
      * make fix-copies once more
      
      * using expand over repeat (thanks @michaelbenayoun)
      
      * expand instead of repeat for all model copies
      Co-authored-by: default avatarDaniel Jones <jonesdaniel@microsoft.com>
      80468251
  18. 09 Aug, 2022 1 commit
  19. 20 Jun, 2022 1 commit
  20. 15 Jun, 2022 1 commit
  21. 31 May, 2022 1 commit
  22. 12 May, 2022 1 commit
  23. 12 Apr, 2022 1 commit
  24. 06 Apr, 2022 1 commit
  25. 01 Apr, 2022 1 commit
    • Rishav Chandra Varma's avatar
      Adding missing type hints for mBART model (PyTorch) (#16429) · 5fe06b9b
      Rishav Chandra Varma authored
      
      
      * added type hints for mbart tensorflow tf implementation
      
      * Adding missing type hints for mBART model 
      
      Tensorflow Implementation model added with missing type hints
      
      * Missing Type hints - correction
      
      For TF model
      
      * Code fixup using make quality tests
      
      * Hint types - typo error
      
      * make fix-copies and make fixup
      
      * type hints
      
      * updated files
      
      * type hints update
      
      * making dependent modesls coherent
      Co-authored-by: default avatarmatt <rocketknight1@gmail.com>
      5fe06b9b
  26. 25 Mar, 2022 1 commit
  27. 23 Mar, 2022 1 commit
    • Sylvain Gugger's avatar
      Reorganize file utils (#16264) · 4975002d
      Sylvain Gugger authored
      * Split file_utils in several submodules
      
      * Fixes
      
      * Add back more objects
      
      * More fixes
      
      * Who exactly decided to import that from there?
      
      * Second suggestion to code with code review
      
      * Revert wront move
      
      * Fix imports
      
      * Adapt all imports
      
      * Adapt all imports everywhere
      
      * Revert this import, will fix in a separate commit
      4975002d
  28. 21 Mar, 2022 1 commit
  29. 09 Mar, 2022 1 commit
  30. 09 Feb, 2022 1 commit
  31. 08 Feb, 2022 1 commit
  32. 18 Jan, 2022 1 commit
  33. 10 Jan, 2022 1 commit
  34. 28 Dec, 2021 1 commit
    • Sylvain Gugger's avatar
      Doc styler examples (#14953) · b5e2b183
      Sylvain Gugger authored
      * Fix bad examples
      
      * Add black formatting to style_doc
      
      * Use first nonempty line
      
      * Put it at the right place
      
      * Don't add spaces to empty lines
      
      * Better templates
      
      * Deal with triple quotes in docstrings
      
      * Result of style_doc
      
      * Enable mdx treatment and fix code examples in MDXs
      
      * Result of doc styler on doc source files
      
      * Last fixes
      
      * Break copy from
      b5e2b183
  35. 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
  36. 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
  37. 13 Dec, 2021 1 commit
  38. 10 Dec, 2021 1 commit
  39. 18 Nov, 2021 1 commit
  40. 09 Nov, 2021 1 commit