transformers
🚨 Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable
#49186
Merged

🚨 Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable #49186

hmellor
hmellor Add a linear attention interface, starting with Mamba2's SSD core
96452196
HuggingFaceDocBuilderDev
hmellor small cleanup
84d89a85
hmellor fix double attr
96737908
hmellor Use a single linear attention registry keyed by mechanism
d09dc863
hmellor Revert to one linear attention registry per mechanism
c8a3c68b
vasqu
vasqu commented on 2026-09-30
hmellor Merge branch 'main' into mamba2-linear-attention-interface
97ecc730
hmellor Split the Mamba2 SSD interface into conv and scan interfaces
571d9a35
github-actions
hmellor Merge branch 'main' into mamba2-linear-attention-interface
3aa81584
hmellor Share the causal conv1d of linear attention layers in modeling_linear…
51579248
hmellor Share the Mamba2 SSD and make the shared steps kernelizable
6731513a
hmellor Replace the linear attention interfaces with shared kernelizable func…
dbc4955b
hmellor Inline the shared linear attention steps with modular
69ca9e38
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
eaea9817
hmellor Make the Mamba selective scan kernelizable
a0e08285
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
e6b48eba
hmellor hmellor changed the title Add a linear attention interface, starting with Mamba2's SSD core Make the conv and scan of linear attention layers kernelizable 8 days ago
vasqu
vasqu commented on 2026-11-18
vasqu
vasqu commented on 2026-11-18
vasqu
vasqu commented on 2026-11-18
hmellor Drop the per-width torch fallback of the shared causal conv1d
e94b8629
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
fadd1925
hmellor Serve LFM3's conv with mamba-ssm v5 and hide runtime-only mapping war…
d33ec3e5
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
e5fbf5f2
hmellor hmellor marked this pull request as ready for review 8 days ago
hmellor Merge branch 'main' into linear-attn-utils-conv
9fa71aba
hmellor Fix CI after merging main
1439bb6c
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
819f8480
vasqu
vasqu commented on 2026-11-18
hmellor Merge remote-tracking branch 'upstream/main' into linear-attn-utils-conv
a746a39e
hmellor Address review: shared kernels log suppression, LFM3 kernels test, Ol…
70684c04
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
afaca888
hmellor hmellor changed the title Make the conv and scan of linear attention layers kernelizable Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable 8 days ago
hmellor Address review: keep `mamba_`/`mamba2_` names and reuse Mamba via mod…
ec415ed9
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
e610c896
hmellor Use the generic sequence classification head for Zamba and Zamba2
9bb2e51d
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
e1cb6cdd
hmellor Take Zamba's sequence classification head from Llama
05cbdadf
hmellor Merge branch 'linear-attn-utils-conv' into mamba2-linear-attention-in…
7bd2215e
remi-or
remi-or commented on 2026-11-19
remi-or
remi-or commented on 2026-11-19
remi-or
remi-or commented on 2026-11-19
remi-or
remi-or commented on 2026-11-19
remi-or
remi-or commented on 2026-11-19
hmellor Address review: forward kwargs to causal_conv1d_forward, simplify sup…
eb986321
hmellor Merge main into mamba2-linear-attention-interface
9d13e623
vasqu
vasqu commented on 2026-11-24
hmellor Address review: read the recurrent state in the scans, modernise Mamb…
38c0f126
hmellor Address review: inherit more of Zamba
a968d164
hmellor Merge remote-tracking branch 'upstream/main' into mamba2-linear-atten…
2b0fa075
hmellor Drop FalconMamba's unused A after upstream removed its fused path
e489ab22
vasqu
vasqu approved these changes on 2026-11-25
github-actions
hmellor Mark Zamba's per-call layer_idx as a diff and drop its TP plan via At…
26fcdca6
hmellor hmellor changed the title Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable 🚨 Make the causal conv1d, Mamba scan and Mamba2 SSD of linear attention layers kernelizable 1 day ago
hmellor hmellor enabled auto-merge 1 day ago
hmellor Regenerate Zamba2 and NemotronH after dropping Zamba's TP plan
0c9d58e8
disabled auto-merge 1 day ago
Manually disabled by user
hmellor hmellor enabled auto-merge 1 day ago
hmellor Merge remote-tracking branch 'upstream/main' into mamba2-linear-atten…
ca76541c
github-actions
hmellor Merge remote-tracking branch 'upstream/main' into mamba2-linear-atten…
738f49a3
hmellor hmellor merged b62646bb into main 1 day ago
hmellor hmellor deleted the mamba2-linear-attention-interface branch 1 day ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone