Skip to content

FEAT: add awq suppot in PEFT#1399

Merged
younesbelkada merged 24 commits into
mainfrom
add-awq
Feb 19, 2024
Merged

FEAT: add awq suppot in PEFT#1399
younesbelkada merged 24 commits into
mainfrom
add-awq

Conversation

@younesbelkada

@younesbelkada younesbelkada commented Jan 26, 2024

Copy link
Copy Markdown
Contributor

Original PR: casper-hansen/AutoAWQ#220

TODO:

  • Add the fix in transformers

  • Wait for the next awq release

  • Empty commit with @s4rduk4r as a co-author

  • add autoawq in the docker image

  •  Figure out how to fix the current bug on the test

cc @pacman100 @casper-hansen

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Comment thread src/peft/tuners/lora/awq.py Outdated

@BenjaminBossan BenjaminBossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for adding this Younes. I have a few comments, could you please check?

Comment thread src/peft/import_utils.py Outdated

def is_auto_awq_available():
if importlib.util.find_spec("awq") is not None:
# TODO: change it to 0.2.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not quite clear to me: change it when?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I'll remove it

Comment thread src/peft/tuners/lora/awq.py Outdated
Comment thread tests/test_gpu_examples.py
Comment thread tests/test_gpu_examples.py
Comment thread tests/test_gpu_examples.py Outdated
Comment thread src/peft/import_utils.py Outdated

def is_auto_awq_available():
if importlib.util.find_spec("awq") is not None:
# TODO: to change it to 0.2.0 after the AutoAWQ release

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BenjaminBossan I 'll change that to 0.2.0 before merging right after auto-awq's release

@BenjaminBossan BenjaminBossan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the remaining issues, LGTM now. Let's run another test after the release to ensure that PEFT works with the release version and then this should be good to be merged.

@younesbelkada

younesbelkada commented Feb 16, 2024

Copy link
Copy Markdown
Contributor Author

AutoAWQ just made the release (thanks @casper-hansen !) - Reran the docker build and tests on my T4 machine and seems to work all well ! Merging once the CI is green !

@younesbelkada
younesbelkada merged commit 65513e5 into main Feb 19, 2024
@pacman100
pacman100 deleted the add-awq branch February 20, 2024 05:50
BenjaminBossan pushed a commit to BenjaminBossan/peft that referenced this pull request Mar 14, 2024
* add awq suppot in PEFT

* fix

* fux

* Update src/peft/tuners/lora/awq.py

* style & fix tests

* forward contrib credits from PR14084

* forward contrib credits from autoawq PR

* change name

* fix

* change to peft internal testing

* fix

* fix

* add multi-GPU tests

* add to dockerfile

* fix todo

* raise error only at the dispatch level

* quality

* fix test

* fix dockerfile

* fix

* fix

* update dockerfile and tests

---------

Co-authored-by: s4rduk4r <[email protected]>
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
* add awq suppot in PEFT

* fix

* fux

* Update src/peft/tuners/lora/awq.py

* style & fix tests

* forward contrib credits from PR14084

* forward contrib credits from autoawq PR

* change name

* fix

* change to peft internal testing

* fix

* fix

* add multi-GPU tests

* add to dockerfile

* fix todo

* raise error only at the dispatch level

* quality

* fix test

* fix dockerfile

* fix

* fix

* update dockerfile and tests

---------

Co-authored-by: s4rduk4r <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants