arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.29708cs.DC
收藏

异构LLM推理与服务的解构设计空间与最佳实践

Demystifying the Design Space and Best Practices for Heterogeneous LLM Inference and Serving

Shanghai Innovation Institute(上海创新研究院);Renmin University of China(中国人民大学);Infrawaves(英飞睿思);Shanghai Jiao Tong University(上海交通大学);Fudan University(复旦大学);MetaX Integrated Circuits (Shanghai) Co., Ltd.(元芯集成电路(上海)有限公司);Shanghai AI Power Technology Co., Ltd.(上海人工智能动力科技有限公司)
Zhixin Wang, Zhengbo Wang, Fangcheng Fu, Yinhui Lu, Jinlong Hou, Yijie Chen, Xiaowei Shen, He Liu, Xiangbin Li, Jun Chen, Ruya Gu, Dian Wang, Zhou Tan, Yuan Che… 展开作者

Zhixin Wang, Zhengbo Wang, Fangcheng Fu, Yinhui Lu, Jinlong Hou, Yijie Chen, Xiaowei Shen, He Liu, Xiangbin Li, Jun Chen, Ruya Gu, Dian Wang, Zhou Tan, Yuan Cheng, Hongzhou Zhang, Xiangjun Huang, Ping Zhang, Xiaohe Hu

AI总结:

针对异构预填充-解码推理,提出沿四个设计轴(加速器、精度、互连、KV驻留)的组织空间,揭示边界决策(计算放置、KV表示、KV所有权)的约束与指导。

摘要:

异构预填充-解码(PD)推理现已投入生产:在成本高效或供应充足的加速器上进行预填充,在带宽强的加速器上进行解码,KV状态以混合数值格式跨越混合互连。每个部署自行做出这些决策。缺失的是跨配置的整体图景——哪些决策必须在PD边界联合做出,哪些可以独立做出。我们提出了一个沿四个设计轴——加速器、精度、互连和KV驻留——以及它们响应的工作负载阶段压力组织的设计空间。我们表明,一旦PD推理变得异构,这些因素之间的交互只有子集成为约束条件。这些交互通过三个反复出现的边界决策浮现:计算放置、KV表示和KV所有权。由此产生的分析提供了具体指导。精度策略属于运行时角色,而非单一系统范围设置,因为相同的低位格式在边界两侧缓解不同的瓶颈。KV传输引擎移动字节而非张量语义,使得表示兼容性成为生产者与消费者不同时的显式边界问题。KV交接还带有生命周期——预留、释放和故障恢复——跨越预填充和解码,需要显式所有权。还有两个交互保持开放。跨供应商和互连相关的声明作为基于工业部署观察和所涉及运行时源代码检查的设计指导给出。

英文摘要:

Heterogeneous prefill-decode (PD) inference is now in production: prefill on cost-efficient or supply-available accelerators, decode on bandwidth-strong ones, and KV state crossing mixed interconnects in mixed numerical formats. Each deployment makes these decisions on its own. What is missing is the picture across configurations-which decisions must be made jointly at the PD boundary, and which can be made independently. We propose a design space organized along four design axes-accelerator, precision, interconnect, and KV residency and the workload regime (stage pressure) they respond to. We show that only a subset of interactions among these factors become binding constraints once PD inference becomes heterogeneous. These interactions surface through three recurring boundary decisions: compute placement, KV representation, and KV ownership. The resulting analysis yields concrete guidance. Precision policy belongs to runtime roles rather than to a single system-wide setting, because the same low-bit format relieves different bottlenecks on each side of the boundary. KV transfer engines move bytes rather than tensor semantics, making representation compatibility an explicit boundary concern whenever producer and consumer differ. The KV handoff also carries a lifecycle-reservation, release, and failure recovery-that spans prefill and decode and requires explicit ownership. Two further interactions remain open. Cross-vendor and interconnect-related claims are stated as design guidance grounded in industrial deployment observations and source-code inspection of the runtimes involved.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑