You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If input shapes are irregular, qk will contain -inf, and -inf * 0.0 = nan
Consider specializing against sm_scale = 0
Operating System
Any
CPU
Any
GPU
AMD Instinct MI300X
ROCm Version
ROCm 6.2.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
xinyazhang
changed the title
[Issue]: Forward kernel returns NaN when sm_scale is 0
[Issue]: Forward kernel returns NaN when inputs are irregular (including causal) and sm_scale is 0
Oct 7, 2024
Problem Description
If input shapes are irregular, qk will contain -inf, and -inf * 0.0 = nan
Consider specializing against sm_scale = 0
Operating System
Any
CPU
Any
GPU
AMD Instinct MI300X
ROCm Version
ROCm 6.2.0
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: