Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: add awq suppot in PEFT #1399

Merged
merged 24 commits into from
Feb 19, 2024
Merged

FEAT: add awq suppot in PEFT #1399

merged 24 commits into from
Feb 19, 2024

Conversation

younesbelkada
Copy link
Contributor

@younesbelkada younesbelkada commented Jan 26, 2024

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

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.

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

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?


def is_auto_awq_available():
if importlib.util.find_spec("awq") is not None:
# TODO: change it to 0.2.0
Copy link
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
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

src/peft/tuners/lora/awq.py Outdated Show resolved Hide resolved
tests/test_gpu_examples.py Show resolved Hide resolved
tests/test_gpu_examples.py Show resolved Hide resolved
tests/test_gpu_examples.py Outdated Show resolved Hide resolved

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
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

Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

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
Copy link
Contributor Author

younesbelkada commented Feb 16, 2024

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
14 checks passed
@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 <s4rduk4r@users.noreply.github.com>
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