-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix Low CPU Memory Mode Issues for Quantized Peft #90
Conversation
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
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.
Left a few questions for my understanding, I don't know if I'm the best person to review this change but overall if the changes were tested and it successfully loaded the model for GPTQ with low_cpu_mem_usage set then that seems good to me
plugins/accelerated-peft/src/fms_acceleration_peft/gptqmodel/models/base.py
Show resolved
Hide resolved
plugins/fused-ops-and-kernels/src/fms_acceleration_foak/framework_plugin_fast_quantized_peft.py
Show resolved
Hide resolved
plugins/accelerated-peft/src/fms_acceleration_peft/framework_plugin_autogptq.py
Show resolved
Hide resolved
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 answering my questions, this looks good to me but might want someone else to give it a closer review
Since
transformers >=0.45
we are having issues withlow_cpu_mem_mode
as described in #83 . This PR address themlow_cpu_mem_mode
inBNBAccelerationPlugin
low_cpu_mem_mode
inAutoGPTQAccelerationPlugin
, including update of READMENote: this PR fixes will apply only if the following commits are applied:
Regressionss
Mistral 7B
Granite 3b