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

Fix Low CPU Memory Mode Issues for Quantized Peft #90

Merged
merged 8 commits into from
Oct 17, 2024
Merged

Conversation

fabianlim
Copy link
Contributor

@fabianlim fabianlim commented Oct 11, 2024

Since transformers >=0.45 we are having issues with low_cpu_mem_mode as described in #83 . This PR address them

Note: this PR fixes will apply only if the following commits are applied:

Regressionss

Mistral 7B

image image
image image

Granite 3b

image image
image image

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]>
@fabianlim fabianlim marked this pull request as ready for review October 14, 2024 06:25
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
Copy link
Collaborator

@anhuong anhuong left a 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

Copy link
Collaborator

@anhuong anhuong 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 answering my questions, this looks good to me but might want someone else to give it a closer review

@fabianlim fabianlim merged commit fc78b55 into main Oct 17, 2024
6 checks passed
@fabianlim fabianlim deleted the fix/quant branch October 17, 2024 23:12
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.

Distributed Training Problems for QLoRA models with Transformers pre-release 4.45
2 participants