RadixAttention
RadixAttention is an attention mechanism optimization technique proposed in the SGLang inference framework that uses a radix tree data structure for unified KV cache management, enabling automatic reuse of key-value caches across requests. Its core capability involves identifying shared prefixes in scenarios such as multi-turn dialogue and batch inference and reusing corresponding cached values, thereby reducing redundant computation, lowering GPU memory consumption, and improving large language model inference throughput.
Core Facts
SGLang's core innovation is the RadixAttention technology, which achieves automatic KV Cache reuse through a prefix tree structure.
SGLang's RadixAttention technology can automatically reuse KV Cache across multiple requests, managing shared prefixes through a radix tree structure to reduce redundant computation.
SGLang's core innovation RadixAttention organizes the KV cache as a prefix tree structure, enabling multiple requests with a common prefix to share the cache.
Timeline (last 90 days)
SGLang is a high-performance inference framework for large language models that optimizes KV cache reuse through techniques such as RadixAttention and provides a flexible front-end language to orchestrate complex generation flows.
SGLang uses RadixAttention to manage the KV cache with a radix tree, supporting prefix sharing across requests and finer-grained cache reuse.
SGLang is optimized for repeated context (multi-turn dialogue, Agents, structured output), and may outperform vLLM in repeated-prompt scenarios.
RadixAttention prefix caching builds the prompts of multiple requests into a radix tree, so identical prefixes compute the KV cache only once and subsequent requests can reuse it directly.
SGLang uses RadixAttention to cache and reuse multi-turn conversations and shared prefixes, and combined with a frontend language for structured generation, further reduces latency and cost in complex invocation scenarios.
SGLang is known for RadixAttention prefix caching and high-throughput scheduling, and provides entry points for plugins and backend extensions.
SGLang is an open-source framework for large model inference and serving, whose core features include RadixAttention (radix-tree-managed KV cache prefix reuse), multi-stream batching and scheduling, and tensor parallelism and quantization support, making it suited to multi-turn dialogue and Agent scenarios with high cache hit rates.
Mainstream prefix caching implementations include Anthropic's Prompt Caching, OpenAI's automatic caching, and RadixAttention in inference frameworks such as vLLM.
sglang is a high-performance serving framework optimized for large language model inference that supports continuous batching and RadixAttention, offering throughput advantages over Ollama.
RadixAttention can identify prefix segments shared across different requests and directly reuse cached computation results, reducing redundant computation in scenarios with fixed system prompts, multi-turn conversations, or batch document Q&A, thereby improving throughput and reducing time-to-first-token (TTFT).
9 more timeline events
All Facts (20)
SGLang's core innovation is the RadixAttention technology, which achieves automatic KV Cache reuse through a prefix tree structure.
85%VerifiedSGLang's RadixAttention technology can automatically reuse KV Cache across multiple requests, managing shared prefixes through a radix tree structure to reduce redundant computation.
80%VerifiedSGLang's core innovation RadixAttention organizes the KV cache as a prefix tree structure, enabling multiple requests with a common prefix to share the cache.
75%VerifiedSGLang achieves efficient KV Cache reuse through innovations such as RadixAttention, and can deliver several-fold throughput improvements when handling complex multi-turn dialogue and Agent Loop scenarios.
75%VerifiedSGLang is a high-performance large model inference framework jointly developed by academia and industry, with RadixAttention as its core mechanism.
65%UnverifiedSGLang的RadixAttention对于共享系统提示(system prompt)的场景可带来数倍吞吐量提升
75%UnverifiedSGLang is an open-source framework for large model inference and serving, whose core features include RadixAttention (radix-tree-managed KV cache prefix reuse), multi-stream batching and scheduling, and tensor parallelism and quantization support, making it suited to multi-turn dialogue and Agent scenarios with high cache hit rates.
70%UnverifiedRadixAttention introduces a globally shared KV Cache pool, manages cache lifecycle through reference counting and LRU eviction strategies, and performs longest-prefix matching in a Radix Tree.
70%UnverifiedSGLang 引入了 RadixAttention 技术,在某些基准测试中推理速度可比 vLLM 等主流推理框架提升 2-5 倍
70%UnverifiedSGLang is a high-performance large model inference and serving framework developed by the UC Berkeley LMSYS team, which optimizes KV Cache reuse efficiency through technologies such as RadixAttention.
60%UnverifiedRadixAttention organizes the KV Cache into a prefix tree structure, allowing multiple requests with the same prefix to share a single cache.
60%UnverifiedSGLang is a high-performance inference framework for large language models that optimizes KV cache reuse through techniques such as RadixAttention and provides a flexible front-end language to orchestrate complex generation flows.
50%UnverifiedSGLang uses RadixAttention to manage the KV cache with a radix tree, supporting prefix sharing across requests and finer-grained cache reuse.
50%UnverifiedSGLang is optimized for repeated context (multi-turn dialogue, Agents, structured output), and may outperform vLLM in repeated-prompt scenarios.
50%UnverifiedRadixAttention prefix caching builds the prompts of multiple requests into a radix tree, so identical prefixes compute the KV cache only once and subsequent requests can reuse it directly.
50%UnverifiedSGLang uses RadixAttention to cache and reuse multi-turn conversations and shared prefixes, and combined with a frontend language for structured generation, further reduces latency and cost in complex invocation scenarios.
50%UnverifiedSGLang is known for RadixAttention prefix caching and high-throughput scheduling, and provides entry points for plugins and backend extensions.
50%UnverifiedMainstream prefix caching implementations include Anthropic's Prompt Caching, OpenAI's automatic caching, and RadixAttention in inference frameworks such as vLLM.
50%Unverifiedsglang is a high-performance serving framework optimized for large language model inference that supports continuous batching and RadixAttention, offering throughput advantages over Ollama.
50%UnverifiedRadixAttention can identify prefix segments shared across different requests and directly reuse cached computation results, reducing redundant computation in scenarios with fixed system prompts, multi-turn conversations, or batch document Q&A, thereby improving throughput and reducing time-to-first-token (TTFT).
50%