Skip to content

add all SDPA backends to op_sac_save_list#2095

Merged
tianyu-l merged 1 commit intopytorch:mainfrom
rakkit:fixing_op_sac_save_list
Dec 1, 2025
Merged

add all SDPA backends to op_sac_save_list#2095
tianyu-l merged 1 commit intopytorch:mainfrom
rakkit:fixing_op_sac_save_list

Conversation

@rakkit
Copy link
Contributor

@rakkit rakkit commented Dec 1, 2025

As we discussed in #2091, we should add all scaled_dot_product_attention backends to op_sac_save_listto avoid recomputing attention during backward.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Dec 1, 2025
@rakkit rakkit changed the title add all scaled_dot_product_attention backend to op_sac_save_list add all SDPA backends to op_sac_save_list Dec 1, 2025
Copy link
Contributor

@tianyu-l tianyu-l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sgtm

@tianyu-l tianyu-l merged commit b39377f into pytorch:main Dec 1, 2025
9 of 10 checks passed
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
As we discussed in pytorch#2091, we
should add all `scaled_dot_product_attention` backends to
`op_sac_save_list`to avoid recomputing attention during backward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants