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

Clamping t5 hidden states to avoid F16 NaNs #2481

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EricLBuehler
Copy link
Member

Fixes #2480.

@abrowne2
Copy link

@EricLBuehler Was using Flux, & applied this patch to my fork as I was getting black image results. It fixed it as I was using a quantized t5 model @ F16; I assume I was getting silent NaN’s. It may fix others.

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.

[Tracking] FLUX T5 XXL model produces NaN when on CUDA and using F16
2 participants