transformers
Fix `StaticCache` for Mllama and enable `torch.compile`
#48141
Merged

Fix `StaticCache` for Mllama and enable `torch.compile` #48141

jiqing-feng
jiqing-feng Fix StaticCache allocation for Mllama cross-attention layers
e8b63ee9
jiqing-feng Scope the auto-compile override to `MllamaForConditionalGeneration`
1a7a47ac
jiqing-feng Enable torch.compile for Mllama with a static cache
8c0aa851
jiqing-feng Shorten comments
e5d00882
jiqing-feng Shorten comment
6e366329
jiqing-feng Drop PR reference from comment
e5a92521
jiqing-feng Don't touch blt, and skip the compile test without an accelerator
9b31decc
jiqing-feng Move the redundant `_can_compile_fullgraph` down to blt
3b6fa6fd
jiqing-feng Revert "Move the redundant `_can_compile_fullgraph` down to blt"
386a4dd5
jiqing-feng Reapply "Move the redundant `_can_compile_fullgraph` down to blt"
dd13fdec
jiqing-feng Merge branch 'main' into fix-mllama-static-cache
fcfd347a
jiqing-feng Shorten the `_can_compile_fullgraph` comment
7df9c0aa
jiqing-feng jiqing-feng marked this pull request as ready for review 37 days ago
github-actions github-actions requested a review from ydshieh ydshieh 37 days ago
github-actions github-actions requested a review from zucchini-nlp zucchini-nlp 37 days ago
Rocketknight1
jiqing-feng Merge branch 'main' into fix-mllama-static-cache
a41da51c
jiqing-feng Merge branch 'main' into fix-mllama-static-cache
b1163864
jiqing-feng
yao-matrix
zucchini-nlp
zucchini-nlp commented on 2026-09-09
jiqing-feng Address review: reuse next_sequence_length, handle early-initialized …
1839e62d
jiqing-feng
zucchini-nlp
Cyrilvallez
Cyrilvallez approved these changes on 2026-09-16
Cyrilvallez
jiqing-feng Read the cross-attention cache length from the config instead of the …
1d92eba0
github-actions
github-actions
Cyrilvallez
Cyrilvallez approved these changes on 2026-09-17
Cyrilvallez Cyrilvallez merged ffddd251 into main 9 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone