SGLang推出实验性统一GPU内存
AI 总结
LMSYS Blog介绍了SGLang的一项实验性功能,可将全注意力KV、滑窗KV和循环状态置于同一个按需分配的GPU内存区。该分配器把每个令牌跨层级的KV行打包为一个可整体迁移的条目,并支持内存压缩和调度器感知的页面管理。项目作者的测试显示,在GPT-OSS-20B和Qwen3.5-4B上,统一内存可接纳更多并发请求,但吞吐量并非始终超过独立内存池。
深度见解
这一设计免除了在负载未知时预先划分固定内存区域的需要,直接应对混合注意力与循环状态模型服务中的GPU内存管理难题。
On this page
- Hybrid models and the memory split
- A new KV layout: one entry per token
- One arena, different allocation geometries
- Composing all three state types
- Request-scoped state
- Admission: can the whole request fit?
- Keeping pages safe during in-flight work
- One memory system, three interfaces
- What it works with today
- Results
- Limitations and what comes next
TL;DR.