transformers
Flash attention: keep every query in non-causal cross-attention with padded keys
#51280
Merged

Flash attention: keep every query in non-causal cross-attention with padded keys #51280

arywk40-hue
arywk40-hue Flash attention: keep every query in non-causal cross-attention over …
87467aff
arywk40-hue arywk40-hue requested a review from copilot-pull-request-reviewer copilot-pull-request-reviewer 7 days ago
copilot-pull-request-reviewer
copilot-pull-request-reviewer commented on 2026-11-26
github-actions
zucchini-nlp
zucchini-nlp commented on 2026-11-26
mercant1982
mercant1982 commented on 2026-11-26
vasqu
vasqu commented on 2026-11-27
arywk40-hue
vasqu
vasqu commented on 2026-11-30
arywk40-hue Update src/transformers/modeling_flash_attention_utils.py
c1e43b9d
arywk40-hue Update src/transformers/modeling_flash_attention_utils.py
bf930bde
arywk40-hue Move is_causal last in the _upad_input docstring
0c42933f
arywk40-hue Remove the standalone _upad_input test
2ba87403
arywk40-hue Test _upad_input keeps all queries for non-causal cross-attention
ccb5943b
vasqu
vasqu approved these changes on 2026-12-02
vasqu vasqu enabled auto-merge 1 day ago
HuggingFaceDocBuilderDev
vasqu vasqu merged d779f6c1 into main 1 day ago
vasqu

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone