Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixing _pre_quantization_dtype when torch_dtype is None #36930

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

Merged
merged 3 commits into from
Mar 25, 2025
Merged

Conversation

MekkCyber
Copy link
Contributor

What does this PR do?

Sets _pre_quantization_dtype to the default dtype (float32) when torch_dtype is set to None. It was causing the casting_dtype to be None for bitnet for example

@github-actions github-actions bot marked this pull request as draft March 24, 2025 14:31
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).

@MekkCyber MekkCyber marked this pull request as ready for review March 24, 2025 14:31
@MekkCyber MekkCyber requested a review from Cyrilvallez March 24, 2025 14:31
@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

@Cyrilvallez Cyrilvallez 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 fixing!! 🤗

@MekkCyber MekkCyber merged commit be2c0e7 into main Mar 25, 2025
24 checks passed
@MekkCyber MekkCyber deleted the fix_bitnet branch March 25, 2025 09:43
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.

3 participants