MIST:一种用于异构、多阶段LLM推理的联合设计框架
MIST: A Co-Design Framework for Heterogeneous, Multi-Stage LLM Inference
AI总结:
MIST是一种用于异构、多阶段LLM推理的联合设计框架,通过模拟不同请求阶段和复杂硬件层次,优化硬件-软件协同设计,解决LLM推理中的配置空间导航和跨厂商PD配置问题。
摘要:
现代LLM服务现在涵盖了多阶段管道,包括RAG检索和KV缓存重用,每个阶段都有不同的计算、内存和延迟需求。推理引擎暴露了大量配置空间,但缺乏系统化的导航方法,彻底基准测试配置可能导致超过40K的云成本。同时,硬件领域在AMD GPU、TPU和定制ASIC之间迅速多样化,而跨厂商的prefill-decode(PD)解耦配置目前缺乏统一的软件栈进行端到端评估。为解决这一差距,我们提出了MIST,一种异构多阶段LLM推理执行模拟器。MIST模型了不同的请求阶段;包括RAG、KV检索、推理、prefill和decode,跨越复杂的硬件层次结构。MIST支持异构客户端执行多个模型同时进行,不同于先前的框架,同时结合了先进的批处理策略和多级内存层次结构。通过整合真实硬件跟踪与分析建模,MIST捕捉了关键的权衡,如内存带宽竞争、集群间通信延迟和批处理效率在混合CPU加速器部署中的影响。通过案例研究,我们探讨了推理阶段对端到端延迟的影响,混合管道中最佳批处理策略,以及远程KV缓存检索的架构影响。MIST使系统设计师能够导航LLM推理不断演变的景观,提供有关优化硬件-软件协同设计以适应下一代AI工作负载的可行见解。
英文摘要:
Modern LLM serving now spans multi-stage pipelines including RAG retrieval and KV cache reuse, each with distinct compute, memory, and latency demands. Inference engines expose a large configuration space with no systematic navigation methodology, and exhaustively benchmarking configurations can exceed 40K in cloud costs. Simultaneously, the hardware landscape is rapidly diversifying across AMD GPUs, TPUs, and custom ASICs, while cross-vendor prefill-decode (PD) disaggregated configurations lack unified software stacks for end-to-end evaluation today. To address this gap, we present MIST, a Heterogeneous Multi-stage LLM inference Execution Simulator. MIST models diverse request stages; including RAG, KV retrieval, reasoning, prefill, and decode across complex hardware hierarchies. MIST supports heterogeneous clients executing multiple models concurrently unlike prior frameworks while incorporating advanced batching strategies and multi-level memory hierarchies. By integrating real hardware traces with analytical modeling, MIST captures critical trade-offs such as memory bandwidth contention, inter-cluster communication latency, and batching efficiency in hybrid CPU-accelerator deployments. Through case studies, we explore the impact of reasoning stages on end-to-end latency, optimal batching strategies for hybrid pipelines, and the architectural implications of remote KV cache retrieval. MIST empowers system designers to navigate the evolving landscape of LLM inference, providing actionable insights into optimizing hardware-software co-design for next-generation AI workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。