-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Conversation
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. |
There was a problem hiding this 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?
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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/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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
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 ! |
* 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>
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