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 dtype getter #17668

Merged
merged 6 commits into from
Jun 13, 2022
Merged

Fix dtype getter #17668

merged 6 commits into from
Jun 13, 2022

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Jun 10, 2022

What does this PR do?

This PR is a better fix for #17656 as I've had time to dive deeper into this issue. The problem does appear when the model is wrapped in a DataParallel object, and not just for PyTorch 1.5.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 10, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@stas00 stas00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner - thank you, Sylvain!

@sgugger
Copy link
Collaborator Author

sgugger commented Jun 10, 2022

Errors seem all related to the current Hub failure, still, will wait for the site to be back online to relaunch them since this is not urgent :-)

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, very cool! Thanks for working on that @sgugger

@sgugger sgugger merged commit a1344db into main Jun 13, 2022
@sgugger sgugger deleted the fix_dtype_getter branch June 13, 2022 13:34
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Jun 16, 2022
* Fix dtype getters

* Proper fix for dtype getter

* Style and commant

* Always use last for consistency

* Quality
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