-
Notifications
You must be signed in to change notification settings - Fork 336
[Bug fix][CPU] Fix fp8 sdpa compiling issue with latest PyTorch #2991
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2991
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1a2f495 with merge base c4d4799 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@mingfeima @Xia-Weiwen @jerryzh168 Please kindly help review the PR~ Thanks! |
can you clarify what is the issue without the fix, e.g. error messages? and the result after fix? |
@jerryzh168 Thanks for the review! Some errors will be raised when compiling TorchAO using
With this fix, the compilation can be successfully done. |
Currently, we only check the MACRO definition
CPUBLAS_BRGEMM_F8F8F32
at the API entrance (https://github.com/pytorch/ao/blob/main/torchao/csrc/cpu/aten_kernels/quantized_sdpa.cpp#L2533).To avoid compiling issue with latest PyTorch (no
CPUBLAS_BRGEMM_F8F8F32
), this PR also adds checks outside the fp8 sdpa fused kernels.