Repository navigation
Fix bug in torch compile and seqdim is integer - #1217
Conversation
Signed-off-by: 李金梁 <[email protected]>
Which solution do you perfer to? |
|
Let's try and annotate the function and see if it fixes the error! |
I have checked that removing the annotation will fix the problem. And the pull request is changed, too. |
|
I don't see the changes yet, could you update the PR? |
change the jit_fuser to torch.compile on flash_attn_fwd_out_correction Signed-off-by: 李金梁 <[email protected]>
Sorry, I don't expect you so quickly like that. You can check it now. |
|
We still want the |
Signed-off-by: Kirthi Shankar Sivamani <[email protected]>
|
@wplf Could you see if the new changes resolve the error? |
|
/te-ci pytorch |
|
LGTM. |
* Fix bug in torch compile and seqdim is integer Signed-off-by: 李金梁 <[email protected]> * Update attention.py change the jit_fuser to torch.compile on flash_attn_fwd_out_correction Signed-off-by: 李金梁 <[email protected]> * Annotate fused functions Signed-off-by: Kirthi Shankar Sivamani <[email protected]> --------- Signed-off-by: 李金梁 <[email protected]> Signed-off-by: Kirthi Shankar Sivamani <[email protected]> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
* Fix bug in torch compile and seqdim is integer Signed-off-by: 李金梁 <[email protected]> * Update attention.py change the jit_fuser to torch.compile on flash_attn_fwd_out_correction Signed-off-by: 李金梁 <[email protected]> * Annotate fused functions Signed-off-by: Kirthi Shankar Sivamani <[email protected]> --------- Signed-off-by: 李金梁 <[email protected]> Signed-off-by: Kirthi Shankar Sivamani <[email protected]> Co-authored-by: Kirthi Shankar Sivamani <[email protected]>
Description
When NVTE_TORCH_COMPILE is 0, jit_fuser will be torch.jit.script.
And the compiled function don't accept interger. Then, bug will occur in the function below due to the
seq_dimargument.Fixes # (issue)
Type of change
Changes
Please list the changes introduced in this PR:
Checklist: