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 half precision forward #261

Merged
merged 3 commits into from
Apr 8, 2023
Merged

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

This PR fixes issues users can encounter when running a forward when the base model is in half-precision

added also some tests

cc @pacman100

@younesbelkada younesbelkada requested a review from pacman100 April 4, 2023 10:02
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 4, 2023

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

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

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

Thank you @younesbelkada for fixing the issues with half-precision dtypes, LGTM! 🤗

@pacman100 pacman100 merged commit f982d75 into huggingface:main Apr 8, 2023
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