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

Introduce fp16 flag to enable/disable mixed precision for predict() #1881

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

BloodAxe
Copy link
Contributor

@BloodAxe BloodAxe commented Mar 1, 2024

This PR adds fp16 flag to model.predict() which can be handy to force fp32 computation in predict()

As reported in #1834 there are some GPUs known of not doing correct math in fp16 mode.
So with model.predict(..., fp16=False) users would have the ability to go for fp32 mode as a workaround for that specific GPU.

Copy link
Collaborator

@ofrimasad ofrimasad left a comment

Choose a reason for hiding this comment

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

LGTM

@BloodAxe BloodAxe merged commit 78beb29 into master Mar 4, 2024
9 checks passed
@BloodAxe BloodAxe deleted the feature/SG-000-introduce-fp16-flag-to-predict branch March 4, 2024 08:45
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.

2 participants