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 casting dtype for qunatization #36799

Merged
merged 3 commits into from
Mar 18, 2025
Merged

Fix casting dtype for qunatization #36799

merged 3 commits into from
Mar 18, 2025

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Mar 18, 2025

What does this PR do?

This PR fixes an issue with quantized models as we changed recently how to cast the dtype of each parameters. We rely now on the model architecture and we check the dtype associated to each param. However, this won't work for model that we are going to quantize (quantization on the fly) as the architecture changed.
This impacts eetq quantization and maybe some fp8 methods also

@github-actions github-actions bot marked this pull request as draft March 18, 2025 16:41
Copy link

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. When it is ready for review, please click the Ready for review button (at the bottom of the PR page).

@SunMarc SunMarc marked this pull request as ready for review March 18, 2025 16:42
@BenjaminBossan
Copy link
Member

Is it possible to add a test?

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

@SunMarc
Copy link
Member Author

SunMarc commented Mar 18, 2025

Is it possible to add a test?

eetq ci is indeed failing but not sure why we didn't manage to get the notification on slack cc @MekkCyber

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.

LGTM, thanks for quickly fixing this.

@SunMarc SunMarc merged commit 14b597f into main Mar 18, 2025
24 checks passed
@SunMarc SunMarc deleted the fix-casting-quants branch March 18, 2025 17:46
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