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 2 commits
    • Sylvain Gugger's avatar
      Cleanup quality (#21493) · 67d07487
      Sylvain Gugger authored
      * Remove mentions of flake8/isort
      
      * Clean up inits
      
      * Deall with all other inits
      
      * Last special rule for dummy files
      67d07487
    • 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. 19 Jan, 2023 1 commit
  12. 18 Jan, 2023 1 commit
  13. 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
  14. 03 Jan, 2023 1 commit
  15. 20 Dec, 2022 1 commit
  16. 08 Dec, 2022 1 commit
  17. 06 Dec, 2022 1 commit
  18. 28 Nov, 2022 2 commits
    • Lianmin Zheng's avatar
      [FLAX] Add dtype to embedding for bert/bart/opt/t5 (#20340) · ac2f6674
      Lianmin Zheng authored
      * [FLAX] Add dtype to embedding for bert/bart/opt/t5
      
      * Fix all copies
      
      * Add a test case
      ac2f6674
    • Matt's avatar
      More TF int dtype fixes (#20384) · de4159a3
      Matt authored
      * Add a test to ensure int dummy inputs are int64
      
      * Move the test into the existing int64 test and update a lot of existing dummies
      
      * Fix remaining dummies
      
      * Fix remaining dummies
      
      * Test for int64 serving sigs as well
      
      * Update core tests to use tf.int64
      
      * Add better messages to the assertions
      
      * Update all serving sigs to int64
      
      * More sneaky hiding tf.int32s
      
      * Add an optional int32 signature in save_pretrained
      
      * make fixup
      
      * Add Amy's suggestions
      
      * Switch all serving sigs back to tf.int32
      
      * Switch all dummies to tf.int32
      
      * Adjust tests to check for tf.int32 instead of tf.int64
      
      * Fix base dummy_inputs dtype
      
      * Start casting to tf.int32 in input_processing
      
      * Change dtype for unpack_inputs test
      
      * Add proper tf.int32 test
      
      * Make the alternate serving signature int64
      de4159a3
  19. 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
  20. 26 Oct, 2022 1 commit
  21. 18 Oct, 2022 1 commit
  22. 11 Oct, 2022 1 commit
    • Joao Gante's avatar
      🚨🚨🚨 TF: Remove `TFWrappedEmbeddings` (breaking: TF embedding initialization... · 462cd641
      Joao Gante authored
      🚨🚨🚨  TF: Remove `TFWrappedEmbeddings` (breaking: TF embedding initialization updated for encoder-decoder models) (#19263)
      
      * added test
      
      * correct embedding init
      
      * some changes in blenderbot (incomplete)
      
      * update blenderbot (diff to be used as reference)
      
      * update blenderbot_small
      
      * update LED
      
      * update marian
      
      * update T5 and remove TFWrappedEmbeddings
      
      * nullcontext() -> ContextManagers()
      
      * fix embedding init
      462cd641
  23. 22 Sep, 2022 1 commit
  24. 15 Sep, 2022 1 commit
    • Matt's avatar
      Update serving signatures and make sure we actually use them (#19034) · 2322eb8e
      Matt authored
      * Override save() to use the serving signature as the default
      
      * Replace int32 with int64 in all our serving signatures
      
      * Remember one very important line so as not to break every test at once
      
      * Dtype fix for TFLED
      
      * dtype fix for shift_tokens_right in general
      
      * Dtype fixes in mBART and RAG
      
      * Fix dtypes for test_unpack_inputs
      
      * More dtype fixes
      
      * Yet more mBART + RAG dtype fixes
      
      * Yet more mBART + RAG dtype fixes
      
      * Add a check that the model actually has a serving method
      2322eb8e
  25. 14 Sep, 2022 1 commit
  26. 12 Sep, 2022 1 commit
  27. 10 Sep, 2022 1 commit
  28. 07 Sep, 2022 1 commit
  29. 24 Aug, 2022 1 commit
  30. 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
  31. 09 Aug, 2022 1 commit
  32. 01 Aug, 2022 1 commit
  33. 29 Jul, 2022 1 commit
  34. 11 Jul, 2022 1 commit
  35. 20 Jun, 2022 2 commits
  36. 15 Jun, 2022 1 commit
  37. 31 May, 2022 1 commit