Fuses causal 1D convolution with Gated DeltaNet (GDN) or Kimi Delta Attention (KDA) linear attention state updates for inference in hybrid linear-attention models (e.g., Qwen 3.5, Kimi Linear).
Applies interleaved Rotary Position Embedding (RoPE) (optionally fused with RMSNorm or quantization) to queries and keys in DeepSeek-V4 attention layers.
Computes lightweight query-key relevance scores over a paged KV cache and selects the top-k KV positions per query token (invoking topk at the end) in GLM-5.2, DeepSeek-V3.2, and DeepSeek-V4.
Selects the top-k indices per row (top_k) across variable-length score rows on TPU SparseCore; invoked as the selection stage of lightning_indexer and also available standalone.
Gathers and repacks compressed KV cache entries on TPU SparseCore for selected top-k token indices; invoked as the gather stage of sparse_mla and also available standalone.
Computes Multi-Head Latent Attention (MLA) restricted to a selected top-k subset of KV positions via a dense mask, used for shorter sequences in GLM-5.2, DeepSeek-V3.2, and DeepSeek-V4.
Performs grouped matrix multiplication (MegaBlocks; drop-in for jax.lax.ragged_dot, with gmm_v2 as one of its TPU backends) to compute expert projections over routed token groups.
Fuses the final linear projection with softmax cross-entropy loss (linear_softmax_cross_entropy_loss) to avoid materializing the full vocabulary logits tensor in memory.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-16 UTC."],[],[]]