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

Precision used in multi head attention layer #37

Open
kimdaeun00 opened this issue Nov 26, 2024 · 0 comments
Open

Precision used in multi head attention layer #37

kimdaeun00 opened this issue Nov 26, 2024 · 0 comments

Comments

@kimdaeun00
Copy link

Hi. Thanks for sharing your work!

I have a question for the precision used in multi-head attention layer.
In the current code(Flux), it seems that the activations are not casted to FP16 before the attention layer(mha_forward). Do other models, like PixArt-Sigma, use cast_fp16 in their mha layers?

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

No branches or pull requests

1 participant