1. 25 Sep, 2024 5 commits
  2. 24 Sep, 2024 8 commits
    • ydshieh's avatar
      ping myself · fe80f82b
      ydshieh authored
      fe80f82b
    • ydshieh's avatar
      ping myself · 7e102cca
      ydshieh authored
      7e102cca
    • ydshieh's avatar
      ping myself · aa9bbd60
      ydshieh authored
      aa9bbd60
    • ydshieh's avatar
      ping myself · 3c0908f3
      ydshieh authored
      3c0908f3
    • Arthur's avatar
      Modular `transformers`: modularity and inheritance for new model additions (#33248) · 317e069e
      Arthur authored
      
      * update exampel
      
      * update
      
      * push the converted diff files for testing and ci
      
      * correct one example
      
      * fix class attributes and docstring
      
      * nits
      
      * oups
      
      * fixed config!
      
      * update
      
      * nitd
      
      * class attributes are not matched against the other, this is missing
      
      * fixed overwriting self.xxx now onto the attributes I think
      
      * partial fix, now order with docstring
      
      * fix docstring order?
      
      * more fixes
      
      * update
      
      * fix missing docstrings!
      
      * examples don't all work yet
      
      * fixup
      
      * nit
      
      * updated
      
      * hick
      
      * update
      
      * delete
      
      * update
      
      * update
      
      * update
      
      * fix
      
      * all default
      
      * no local import
      
      * fix more diff
      
      * some fix related to "safe imports"
      
      * push fixed
      
      * add helper!
      
      * style
      
      * add a check
      
      * all by default
      
      * add the
      
      * update
      
      * FINALLY!
      
      * nit
      
      * fix config dependencies
      
      * man that is it
      
      * fix fix
      
      * update diffs
      
      * fix the last issue
      
      * re-default to all
      
      * alll the fixes
      
      * nice
      
      * fix properties vs setter
      
      * fixup
      
      * updates
      
      * update dependencies
      
      * make sure to install what needs to be installed
      
      * fixup
      
      * quick fix for now
      
      * fix!
      
      * fixup
      
      * update
      
      * update
      
      * updates
      
      * whitespaces
      
      * nit
      
      * fix
      
      * simplify everything, and make it file agnostic (should work for image processors)
      
      * style
      
      * finish fixing all import issues
      
      * fixup
      
      * empty modeling should not be written!
      
      * Add logic to find who depends on what
      
      * update
      
      * cleanup
      
      * update
      
      * update gemma to support positions
      
      * some small nits
      
      * this is the correct docstring for gemma2
      
      * fix merging of docstrings
      
      * update
      
      * fixup
      
      * update
      
      * take doc into account
      
      * styling
      
      * update
      
      * fix hidden activation
      
      * more fixes
      
      * final fixes!
      
      * fixup
      
      * fixup instruct  blip video
      
      * update
      
      * fix bugs
      
      * align gemma2 with the rest as well
      
      * updats
      
      * revert
      
      * update
      
      * more reversiom
      
      * grind
      
      * more
      
      * arf
      
      * update
      
      * order will matter
      
      * finish del stuff
      
      * update
      
      * rename to modular
      
      * fixup
      
      * nits
      
      * update makefile
      
      * fixup
      
      * update order of the checks!
      
      * fix
      
      * fix docstring that has a call inside
      
      * fiix conversion check
      
      * style
      
      * add some initial documentation
      
      * update
      
      * update doc
      
      * some fixup
      
      * updates
      
      * yups
      
      * Mostly todo gimme a minut
      
      * update
      
      * fixup
      
      * revert some stuff
      
      * Review docs for the modular transformers (#33472)
      
      Docs
      
      * good update
      
      * fixup
      
      * mmm current updates lead to this code
      
      * okay, this fixes it
      
      * cool
      
      * fixes
      
      * update
      
      * nit
      
      * updates
      
      * nits
      
      * fix doc
      
      * update
      
      * revert bad changes
      
      * update
      
      * updates
      
      * proper update
      
      * update
      
      * update?
      
      * up
      
      * update
      
      * cool
      
      * nits
      
      * nits
      
      * bon bon
      
      * fix
      
      * ?
      
      * minimise changes
      
      * update
      
      * update
      
      * update
      
      * updates?
      
      * fixed gemma2
      
      * kind of a hack
      
      * nits
      
      * update
      
      * remove `diffs` in favor of `modular`
      
      * fix make fix copies
      
      ---------
      
      Co-authored-by: default avatarLysandre Debut <hi@lysand.re>
      317e069e
    • Yoni Gozlan's avatar
      uniformize git processor (#33668) · 75b7485c
      Yoni Gozlan authored
      * uniformize git processor
      
      * update doctring
      75b7485c
    • Tibor Reiss's avatar
      Fix error string after refactoring into get_chat_template (#33652) · 01aec8c9
      Tibor Reiss authored
      
      * Fix error string after refactoring into get_chat_template
      
      * Take suggestion from CR
      
      Co-authored-by: default avatarMatt <Rocketknight1@users.noreply.github.com>
      
      ---------
      
      Co-authored-by: default avatarMatt <Rocketknight1@users.noreply.github.com>
      01aec8c9
    • jiqing-feng's avatar
      Enable BNB multi-backend support (#31098) · 11c27dd3
      jiqing-feng authored
      
      * enable cpu bnb path
      
      * fix style
      
      * fix code style
      
      * fix 4 bit path
      
      * Update src/transformers/utils/import_utils.py
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      
      * add multi backend refactor tests
      
      * fix style
      
      * tweak 4bit quantizer + fix corresponding tests
      
      * tweak 8bit quantizer + *try* fixing corresponding tests
      
      * fix dequant bnb 8bit
      
      * account for Intel CPU in variability of expected outputs
      
      * enable cpu and xpu device map
      
      * further tweaks to account for Intel CPU
      
      * fix autocast to work with both cpu + cuda
      
      * fix comments
      
      * fix comments
      
      * switch to testing_utils.torch_device
      
      * allow for xpu in multi-gpu tests
      
      * fix tests 4bit for CPU NF4
      
      * fix bug with is_torch_xpu_available needing to be called as func
      
      * avoid issue where test reports attr err due to other failure
      
      * fix formatting
      
      * fix typo from resolving of merge conflict
      
      * polish based on last PR review
      
      Co-authored-by: default avatarMarc Sun <57196510+SunMarc@users.noreply.github.com>
      
      * fix CI
      
      * Update src/transformers/integrations/integration_utils.py
      
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      
      * Update src/transformers/integrations/integration_utils.py
      
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      
      * fix error log
      
      * fix error msg
      
      * add \n in error log
      
      * make quality
      
      * rm bnb cuda restriction in doc
      
      * cpu model don't need dispatch
      
      * fix doc
      
      * fix style
      
      * check cuda avaliable in testing
      
      * fix tests
      
      * Update docs/source/en/model_doc/chameleon.md
      
      Co-authored-by: default avatarMarc Sun <57196510+SunMarc@users.noreply.github.com>
      
      * Update docs/source/en/model_doc/llava_next.md
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      
      * Update tests/quantization/bnb/test_4bit.py
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      
      * Update tests/quantization/bnb/test_4bit.py
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      
      * fix doc
      
      * fix check multibackends
      
      * fix import sort
      
      * remove check torch in bnb
      
      * docs: update bitsandbytes references with multi-backend info
      
      * docs: fix small mistakes in bnb paragraph
      
      * run formatting
      
      * reveret bnb check
      
      * move bnb multi-backend check to import_utils
      
      * Update src/transformers/utils/import_utils.py
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      
      * fix bnb check
      
      * minor fix for bnb
      
      * check lib first
      
      * fix code style
      
      * Revert "run formatting"
      
      This reverts commit ac108c6d6b34f45a5745a736ba57282405cfaa61.
      
      * fix format
      
      * give warning when bnb version is low and no cuda found]
      
      * fix device assignment check to be multi-device capable
      
      * address akx feedback on get_avlbl_dev fn
      
      * revert partially, as we don't want the function that public, as docs would be too much (enforced)
      
      ---------
      
      Co-authored-by: default avatarAarni Koskela <akx@iki.fi>
      Co-authored-by: default avatarTitus von Koeller <9048635+Titus-von-Koeller@users.noreply.github.com>
      Co-authored-by: default avatarMarc Sun <57196510+SunMarc@users.noreply.github.com>
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      11c27dd3
  3. 23 Sep, 2024 7 commits
  4. 21 Sep, 2024 2 commits
  5. 20 Sep, 2024 18 commits