Skip to content

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
@github-actions
Copy link
Contributor

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
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
soghomon-b pushed a commit to soghomon-b/transformers that referenced this pull request Aug 24, 2025
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