跳到正文
arXiv (Robotics + Hardware + Signal)· Jaehoon Yang, Jeongmin Lee, Haneul Park, Seung Yul Lee, Nam Sung Kim, Jae W. Lee·· 2 小时前AI 评分38

Lachesis:面向Agent Serving的HBM与高带宽闪存KV Cache生命周期感知放置方案

Lachesis: Lifetime-Aware KV Cache Placement for Agent Serving across HBM and High-Bandwidth Flash

AI 导读

Lachesis是一种生命周期感知的KV Cache放置层,在写入时按组决定将KV放入HBM还是高带宽闪存(HBF)。在八GPU B200服务器的多智能体轨迹模拟中,HBF配合Lachesis的吞吐量达到纯HBM服务器与带主机DDR5的DGX服务器中较优者的7.61-9.16倍,并将HBF寿命较HBM优先放置延长1.14-4.17倍。

正文 · 原文

arXiv:2610.08378v2 Announce Type: replace Abstract: In agent serving, agents and their sub-agents accumulate context as KV cache across many requests, far beyond HBM capacity. High-bandwidth flash (HBF) adds greater capacity at HBM-class read bandwidth, allowing a server to grow its batch and throughput under a relaxed SLO. We show that this gain meets an endurance wall as the batch growth wears HBF out within its warranty period. Prior work analyzes which KV should reach HBF assuming a request's KV remains readable until completion. However, an agent run is stateful, and by design, its harness discards parts of the context throughout the run. We find that the context divides into groups of KV that the harness discards together, so each group shares one lifetime that is known before the group is written. These lifetimes differ on three axes: reasoning stripped when the next user message ends a turn, a sub-agent's context discarded when it returns, and how long each sub-agent runs, which can be ranked when it starts. Guided by this characterization, we present Lachesis, a lifetime-aware KV cache placement layer that chooses HBM or HBF for each group when the group is written. In simulation of an eight-GPU B200 server on multi-agent traces, HBF with Lachesis serves 7.61-9.16$\times$ the throughput of the better of an HBM-only server and a DGX server with host DDR5. On the same traces, Lachesis extends HBF lifetime by 1.14-4.17$\times$ over HBM-first placement, which fills HBM before HBF. Since Lachesis keeps short-lived KV in HBM, a server running it can use more HBM stacks per GPU within the warranty. Our design-space exploration finds that Lachesis at 3/5 HBM/HBF stacks per GPU serves the highest throughput among the configurations that attach HBF directly to the GPU and outlast the warranty.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org