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

Change default precision on macOS #1720

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Change default precision on macOS #1720

merged 1 commit into from
Sep 11, 2024

Conversation

rasbt
Copy link
Collaborator

@rasbt rasbt commented Sep 11, 2024

Updates the default precision to return "bf16-true" instead of "16-true" on macOS devices that support MPS if CPU is used (since 16-true leads to unstable behaviors and nans and infs in the forward pass).

Fixes #1715

@rasbt rasbt merged commit 456a32c into main Sep 11, 2024
9 checks passed
@rasbt rasbt deleted the precision-fix branch September 11, 2024 19:21
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.

llm.generate issue on CPU machines
1 participant