Skip to content

Attention · SWA

Sliding Window Attention

Some layers only attend to a local window of recent tokens instead of the whole context.

Local (sliding-window) layers restrict each token to the last N tokens, so their KV cache stops growing once the window is full. A few global layers are kept so information can still travel across the whole context.

Gemma 3 made the pattern famous with a 5:1 local-to-global ratio and a 1,024-token window. The ratio and window size are the main knobs, and it is very often paired with GQA.

Comparison between global attention and sliding-window attention. Figure from Sebastian Raschka’s explainer.

Adoption over time

Models in the atlas using SWA, per half-year of release.

Loading

Used by

38

models in the atlas

Earliest: Gemma 3 (27B) (Mar 11, 2025)

Models using SWA

  • Architecture diagram of LFM3 (1.7B)

    Liquid AI, released 2026-10-27. Dense hybrid decoder, 1.7B parameters, 256K context. Attention: ShortConv plus gated GQA with QK-Norm and sliding-window/global attention.

  • Architecture diagram of Recursive Flint (40B-A2.5B)

    Recursive, released 2026-10-18. Sparse MoE decoder, 40B total, 2.5B active, 256K context. Attention: GQA with QK-Norm, learned attention sinks, and sliding-window/global attention.

  • Architecture diagram of Reflection Beam (501B)

    Reflection, released 2026-10-16. Sparse MoE decoder, 501B total, 23B active, 1M context. Attention: Gated GQA with QK-Norm and sliding-window/global attention.

  • Architecture diagram of Dory1.0 (4B)

    NVIDIA, released 2026-10-16. Dense decoder, 4B parameters, 256K context. Attention: Gated GQA; 3:1 sliding-window/full, RoPE.

  • Architecture diagram of Muse Spark Open (816B-A42B)

    Meta, released 2026-10-15. Sparse MoE decoder, 816B total, 42B active, 1M context. Attention: Gated GQA with scaleless QK-Norm, local-only RoPE, global NoPE, and 3:1 sliding-window/global attention.

  • Architecture diagram of Kolibri-1 (78B)

    Aleph Alpha, released 2026-10-03. Sparse MoE decoder, 78B total, 3.5B active, 256K context. Attention: GQA with QK-Norm and 4:1 sliding-window/global attention.

  • Architecture diagram of Naive-N0.5-Flash (309B)

    NaiveAI, released 2026-09-27. Sparse MoE decoder, 309B total, 16B active, 1M context. Attention: GQA with sliding-window attention and DeepSeek Sparse Attention.

  • Architecture diagram of Xiaomi MiMo-V2.6-Flash-RL (309B)

    Xiaomi, released 2026-09-21. Sparse MoE decoder, 309B total, 15B active, 1M context. Attention: GQA with sliding-window/global attention.

  • Architecture diagram of Xiaomi MiMo-V2.6-Pro-RL (1.02T)

    Xiaomi, released 2026-09-21. Sparse MoE decoder, 1.02T total, 42B active, 1M context. Attention: GQA with 6:1 sliding-window/global attention.

  • Architecture diagram of Step-5 Preview (600B)

    StepFun, released 2026-09-20. Sparse MoE decoder, 600B total, 27B active, 1M context. Attention: Gated GQA with QK-Norm and 3:1 sliding-window/sparse attention.

  • Architecture diagram of DeepSeek V4.1-Flash (552B)

    DeepSeek, released 2026-09-10. Sparse MoE decoder, 552B total, 8B active, 1M context. Attention: MLA-style CSA2 + SWA with cross-layer KV and sparse-index reuse.

  • Architecture diagram of Muse Glimmer (30B)

    Meta, released 2026-08-10. Dense decoder, 30B parameters, 128K context. Attention: Gated GQA with scaleless QK-Norm, local-only RoPE, global NoPE, and 3:1 sliding-window/global attention.

Search the atlas

Jump to a model, concept or page