-
Notifications
You must be signed in to change notification settings - Fork 48
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
(torch-to-onnx) FLUX.1 - bf16 onnx.LayerNormalization failing to legalize #888
Comments
There are two issues.
The attribute |
@monorimet Actually we do have decomposition for |
@jinchen62 Thanks, I forgot to include the MLIR: https://sharkpublic.blob.core.windows.net/sharkpublic/flux.1/flux_1_dev_static_bf16.mlir |
Hi all,
I'm trying to compile bf16 flux mmdit from onnx export.
Running into the following torch-to-onnx legalization error:
reproducible with the following MLIR and compile command:
onnxln_test.mlir
compile command:
The minimized reproducer may be taking some liberties as to a "correct" usage of bf16 layernorm -- I took our fp32 test in torch-mlir and find+replaced "fp32" with "bf16", which I'm not confident in, but it does reproduce the same error.
The text was updated successfully, but these errors were encountered: