AI inference glossary

Model architecture

Sparse attention

Also known as DeepSeek Sparse Attention, DSA

In plain English

Sparse attention lets the model look back at only the most useful parts of a long context instead of rereading every earlier token.

Technical definition

Sparse attention limits which prior tokens each query attends to instead of computing attention over the entire available context.

Engineering details

The sparsity pattern may select local, compressed, indexed, or learned subsets of the context. This reduces work and memory movement for long sequences, but the model architecture and runtime need matching indexer and attention kernels.

Why it matters

Sparse attention can make very long context practical, but theoretical sparsity alone says little about runtime. Index construction, irregular access, kernel fusion, and precision support determine the realized speedup.

How to read it in InferenceX

InferenceX tracks model-specific sparse-attention stacks such as DSA on GLM-5 and DeepSeek-V4. Engine versions and backend choices are part of the result because support has changed rapidly. On Ascend, selected KV data must still be fetched in a hardware-friendly layout. Reducing the number of attended tokens does not automatically minimize physical transfers when alignment, transfer granularity, and index processing add work.

See the concept in real benchmarks

All articles

The Huawei-DeepSeek Symbiosis

Ascend 950PR architecture and microbenchmarks, DeepSeek’s Ascend software stack, and the DeepSeek-V4.1-Flash execution profile.

B200 NVFP4 vs H200 FP8 on GLM-5: Up to 3.65x Better Performance per Dollar with SGLang MTP

Both SKUs run SGLang EAGLE MTP; the Blackwell generation lifts perf/$ by ~1.2x at the peak and the NVIDIA GLM-5-NVFP4 checkpoint on FlashInfer TRT-LLM sparse MLA stacks another ~2.4–3.0x on 8K/1K

MI355X DeepSeek-V4-Pro on SGLang: 110.5x Throughput per GPU in 26 Days

The amd/deepseek_v4 side branch shipped TileLang attention indexer, Triton sparse MLA, fused RoPE/Hadamard, FlyDSL MoE, and FP4 weights across 31 performance optimizations PRs — lifting first-light 20 tok/s/GPU at 2.4 tok/s/user into 2,256 tok/s/GPU at 9.4 tok/s/user on 8K/1K, with both throughput and interactivity climbing together

GB300 NVL72 vs GB200 NVL72 Inference Performance & Perf per Dollar - on DeepSeek-V4-Pro 1.6T: Up to 2.83x Throughput

DSv4-Pro FP4 8K/1K, Dynamo+vLLM, disaggregated on both racks. GB300's 50% extra HBM (288 vs 192 GB/GPU) unlocks a wider prefill+decode recipe GB200 can't fit — lifting middle-of-curve perf/$ by 2.31x despite a 20% per-GPU TCO premium.

Kimi K3: The Manos, The Mythos, The Legendos

Kimi K3's architecture: compressed memory, attention across depth, latent expert routing, and serving performance

How GLM5.3 Sparse Attention Affects HBM Memory Usage

GLM-5.3, KV Cache Offloading, HiSparse, AgentX TileRT, InferenceX DeepSeek Sparse Attention, IndexShare, Single-rollout Asynchronous Optimization, Cybersecurity