预填充即服务:下一代模型的KV缓存可跨数据中心
Prefill-as-a-Service: KVCache of Next-Generation Models Could Go Cross-Datacenter
AI总结:
本文提出PrfaaS架构,通过跨数据中心的预填充服务优化大规模LLM服务,实现异构部署和资源弹性,提升吞吐量和响应速度。
摘要:
预填充-解码(PD)解耦已成为大规模LLM服务的标准架构,但其部署边界仍由KV缓存传输决定。传统密集注意力模型中,预填充生成巨大的KV缓存流量,导致预填充和解码紧密耦合于单一高速网络域,限制了异构部署和资源弹性。最近的混合注意力架构显著减少了KV缓存大小,使跨集群的KV缓存传输变得越来越可行。然而,较小的KV缓存本身不足以使异构跨数据中心PD服务实用:真实工作负载仍具有突发性,请求长度高度偏斜,前缀缓存分布不均,且集群间带宽波动。一种完全外部化预填充的简单设计仍可能面临拥堵、队列不稳定和利用率低的问题。我们提出了预填充即服务(PrfaaS),一种跨数据中心的服务架构,选择性地将长上下文预填充卸载到独立的计算密集型预填充集群,并通过商用以太网传输生成的KV缓存到本地PD集群进行解码。PrfaaS结合模型侧的KV效率与系统侧的选择性卸载、带宽感知调度和缓存感知请求放置。这种设计消除了异构加速器共享相同低延迟RDMA织物的必要性,使预填充和解码容量在松散耦合集群中独立扩展。在使用内部1T参数混合模型的案例研究中,PrfaaS增强的异构部署实现了比同构PD基线高54%的吞吐量和64%更低的P90 TTFT,同时在同等成本下获得约15%的吞吐量提升,而仅消耗适度的跨数据中心带宽。
英文摘要:
Prefill-decode (PD) disaggregation has become the standard architecture for large-scale LLM serving, but in practice its deployment boundary is still determined by KVCache transfer. In conventional dense-attention models, prefill generates huge KVCache traffics that keep prefill and decode tightly coupled within a single high-bandwidth network domain, limiting heterogeneous deployment and resource elasticity. Recent hybrid-attention architectures substantially reduce KVCache size, making cross-cluster KVCache transport increasingly plausible. However, smaller KVCache alone does not make heterogeneous cross-datacenter PD serving practical: real workloads remain bursty, request lengths are highly skewed, prefix caches are unevenly distributed, and inter-cluster bandwidth fluctuates. A naive design that fully externalizes prefill can therefore still suffer from congestion, unstable queueing, and poor utilization. We present Prefill-as-a-Service (PrfaaS), a cross-datacenter serving architecture that selectively offloads long-context prefill to standalone, compute-dense prefill clusters and transfers the resulting KVCache over commodity Ethernet to local PD clusters for decode. Rather than treating reduced KVCache as sufficient, PrfaaS combines model-side KV efficiency with system-side selective offloading, bandwidth-aware scheduling, and cache-aware request placement. This design removes the requirement that heterogeneous accelerators share the same low-latency RDMA fabric, enabling independent scaling of prefill and decode capacity across loosely coupled clusters. In a case study using an internal 1T-parameter hybrid model, a PrfaaS-augmented heterogeneous deployment achieves 54% higher serving throughput and 64% lower P90 TTFT than a homogeneous PD baseline, with approximately 15% throughput gain at equal cost, while consuming only modest cross-datacenter bandwidth.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。