1. 28 May, 2024 1 commit
  2. 02 May, 2024 1 commit
    • mobicham's avatar
      Add HQQ quantization support (#29637) · 59952994
      mobicham authored
      
      
      * update HQQ transformers integration
      
      * push import_utils.py
      
      * add force_hooks check in modeling_utils.py
      
      * fix | with Optional
      
      * force bias as param
      
      * check bias is Tensor
      
      * force forward for multi-gpu
      
      * review fixes pass
      
      * remove torch grad()
      
      * if any key in linear_tags fix
      
      * add cpu/disk check
      
      * isinstance return
      
      * add multigpu test + refactor tests
      
      * clean hqq_utils imports in hqq.py
      
      * clean hqq_utils imports in quantizer_hqq.py
      
      * delete hqq_utils.py
      
      * Delete src/transformers/utils/hqq_utils.py
      
      * ruff init
      
      * remove torch.float16 from __init__ in test
      
      * refactor test
      
      * isinstance -> type in quantizer_hqq.py
      
      * cpu/disk device_map check in quantizer_hqq.py
      
      * remove type(module) nn.linear check in quantizer_hqq.py
      
      * add BaseQuantizeConfig import inside HqqConfig init
      
      * remove hqq import in hqq.py
      
      * remove accelerate import from test_hqq.py
      
      * quant config.py doc update
      
      * add hqqconfig to main_classes doc
      
      * make style
      
      * __init__ fix
      
      * ruff __init__
      
      * skip_modules list
      
      * hqqconfig format fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * hqqconfig doc fix
      
      * test_hqq.py remove mistral comment
      
      * remove self.using_multi_gpu is False
      
      * torch_dtype default val set and logger.info
      
      * hqq.py isinstance fix
      
      * remove torch=None
      
      * torch_device test_hqq
      
      * rename test_hqq
      
      * MODEL_ID in test_hqq
      
      * quantizer_hqq setattr fix
      
      * quantizer_hqq typo fix
      
      * imports quantizer_hqq.py
      
      * isinstance quantizer_hqq
      
      * hqq_layer.bias reformat quantizer_hqq
      
      * Step 2 as comment in quantizer_hqq
      
      * prepare_for_hqq_linear() comment
      
      * keep_in_fp32_modules fix
      
      * HqqHfQuantizer reformat
      
      * quantization.md hqqconfig
      
      * quantization.md model example reformat
      
      * quantization.md # space
      
      * quantization.md space   })
      
      * quantization.md space   })
      
      * quantization_config fix doc
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      * axis value check in quantization_config
      
      * format
      
      * dynamic config explanation
      
      * quant config method in quantization.md
      
      * remove shard-level progress
      
      * .cuda fix modeling_utils
      
      * test_hqq fixes
      
      * make fix-copies
      
      ---------
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      59952994
  3. 08 Apr, 2024 1 commit
    • Utkarsha Gupte's avatar
      [#29174] ImportError Fix: Trainer with PyTorch requires accelerate>=0.20.1 Fix (#29888) · 0201f642
      Utkarsha Gupte authored
      
      
      * ImportError: Trainer with PyTorch requires accelerate>=0.20.1 Fix
      
      Adding the evaluate and accelerate installs at the beginning of the cell to fix the issue
      
      * ImportError Fix: Trainer with PyTorch requires accelerate>=0.20.1
      
      * Import Error Fix
      
      * Update installation.md
      
      * Update quicktour.md
      
      * rollback other lang changes
      
      * Update _config.py
      
      * updates for other languages
      
      * fixing error
      
      * Tutorial Update
      
      * Update tokenization_utils_base.py
      
      * Just use an optimizer string to pass the doctest?
      
      ---------
      Co-authored-by: default avatarMatt <rocketknight1@gmail.com>
      0201f642
  4. 16 Feb, 2024 1 commit
  5. 16 Aug, 2023 1 commit
  6. 21 Jul, 2023 1 commit
  7. 20 Jun, 2023 1 commit
  8. 02 Jun, 2023 1 commit
  9. 24 Apr, 2023 1 commit
  10. 23 Feb, 2023 1 commit
  11. 13 Feb, 2023 1 commit
  12. 26 Dec, 2022 1 commit
  13. 09 Dec, 2022 1 commit
  14. 30 Nov, 2022 1 commit
  15. 02 Nov, 2022 1 commit
  16. 01 Nov, 2022 2 commits
  17. 14 Oct, 2022 1 commit
  18. 07 Sep, 2022 1 commit
  19. 02 Sep, 2022 1 commit
    • Steven Liu's avatar
      Add Trainer to quicktour (#18723) · 65fb71bc
      Steven Liu authored
      * 📝 update quicktour
      
      * 📝 add trainer section
      
      * 🖍 markdown table, apply feedbacks
      
      *  make style
      
      * add tf training section
      
      * make style
      65fb71bc
  20. 05 Aug, 2022 1 commit
  21. 20 Jul, 2022 1 commit
    • Steven Liu's avatar
      Add custom config to quicktour (#18115) · ff56b8fb
      Steven Liu authored
      * 📝 first draft of new quicktour
      
      * make style
      
      * 🖍 edit and review
      
      * 🖍 small fixes
      
      * 🖍 only add custom config section
      
      * 🖍 use autoclass instead
      ff56b8fb
  22. 25 Apr, 2022 1 commit
  23. 21 Apr, 2022 1 commit
  24. 18 Apr, 2022 1 commit
  25. 08 Apr, 2022 1 commit
  26. 06 Apr, 2022 1 commit
  27. 05 Apr, 2022 1 commit
  28. 04 Apr, 2022 1 commit
  29. 21 Mar, 2022 1 commit
    • Patrick von Platen's avatar
      Add Slack notification support for doc tests (#16253) · c1af180d
      Patrick von Platen authored
      * up
      
      * up
      
      * up
      
      * fix
      
      * yeh
      
      * ups
      
      * Empty test commit
      
      * correct quicktour
      
      * correct
      
      * correct
      
      * up
      
      * up
      
      * uP
      
      * uP
      
      * up
      
      * up
      
      * uP
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * up
      
      * Update src/transformers/models/van/modeling_van.py
      
      * finish
      
      * apply suggestions
      
      * remove folder
      
      * revert to daily testing
      c1af180d
  30. 15 Mar, 2022 1 commit
  31. 09 Mar, 2022 1 commit
    • Patrick von Platen's avatar
      [Doctests] Move doctests to new GPU & Fix bugs (#15969) · c1aaa439
      Patrick von Platen authored
      
      
      * test
      
      * up
      
      * up
      
      * Empty test commit
      
      * up
      
      * update tests
      
      * up
      
      * fix some vision models
      
      * correct
      
      * correct docs
      
      * Trigger notification
      
      * finalize
      
      * check
      
      * correct quicktour
      
      * Apply suggestions from code review
      
      * improve doctests
      
      * Trigger Build
      
      * next try
      
      * next try
      
      * and again
      
      * Output current clone information
      
      * Output current clone information
      
      * Correct path
      
      * add tf round again
      
      * revert to daily job
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      c1aaa439
  32. 03 Mar, 2022 1 commit
  33. 25 Feb, 2022 1 commit
  34. 15 Feb, 2022 1 commit
  35. 29 Jan, 2022 1 commit
    • Steven Liu's avatar
      Get started docs (#15098) · 16d4acbf
      Steven Liu authored
      * clean commit of changes
      
      * apply review feedback, make edits
      
      * fix backticks, minor formatting
      
      * 🖍 make fixup and minor edits
      
      * 🖍 fix # in header
      
      * 📝 update code sample without from_pt
      
      * 📝 final review
      16d4acbf
  36. 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
  37. 13 Dec, 2021 1 commit
  38. 10 Dec, 2021 1 commit
  39. 09 Dec, 2021 1 commit