How Continuous Batching Enables High-Concurrency LLM Inference

Naive batching holds every slot until the longest request finishes. Continuous batching swaps requests in and out at every forward step, which means packing prefill and decode tokens into one flat input and splitting attention back out per request with a cu_seqlens boundary table.

Date: October 9, 2026  |  Estimated Reading Time: 10 min  |  Author: Chi Zhang

RadixAttention: How SGLang Reuses the KV Cache Across Requests

SGLang keeps the KV cache in a radix tree: edges hold runs of tokens, nodes hold the GPU slot indices where their KV lives. We walk through the slot pool, TreeNode, inserting and splitting nodes, LRU eviction, and four requests that fill the pool and force an eviction.

Date: September 26, 2026  |  Estimated Reading Time: 11 min  |  Author: Chi Zhang