用Tarragon使基于MoE的LLM推理更加健壮
Making MoE-based LLM Inference Resilient with Tarragon
AI总结:
Tarragon通过将故障影响限制在个别工作者上,实现了更健壮的MoE推理,显著降低了故障导致的停滞时间。
摘要:
混合专家(MoE)模型越来越多地用于大规模服务LLM,但随着部署规模的增长,故障变得普遍。现有系统表现出较差的故障恢复能力:即使一个工作者失败,也会触发粗粒度的服务级重启,丢弃已积累的进步,并在恢复期间停止整个推理流水线——这种方法显然不适合对延迟敏感的LLM服务。我们提出了Tarragon,一个健壮的MoE推理框架,该框架将故障的影响限制在个别工作者上,同时允许流水线的其余部分继续向前推进。Tarragon利用MoE基于Transformer中注意力和专家计算之间的自然分离,将注意力工作者(AWs)和专家工作者(EWs)视为不同的故障域。Tarragon引入了一个可重新配置的数据路径,通过将请求路由到健康的工作者来掩盖故障。在此数据路径之上,Tarragon实现了自我修复机制,该机制放松了现有MoE框架中紧密同步的执行。对于具有状态的AWs,Tarragon进行异步、增量的KV缓存检查点,并进行每请求恢复;对于无状态的EWs,它利用残留的GPU内存来部署影子专家。这些共同保持了恢复成本和重新计算开销极低。我们的评估显示,与最先进的MegaScale-Infer相比,Tarragon在故障导致的停滞减少方面减少了160-213倍(从约64秒减少到0.3-0.4秒),在没有故障发生时保持性能。
英文摘要:
Mixture-of-Experts (MoE) models are increasingly used to serve LLMs at scale, but failures become common as deployment scale grows. Existing systems exhibit poor failure resilience: even a single worker failure triggers a coarse-grained, service-wide restart, discarding accumulated progress and halting the entire inference pipeline during recovery--an approach clearly ill-suited for latency-sensitive, LLM services. We present Tarragon, a resilient MoE inference framework that confines the failures impact to individual workers while allowing the rest of the pipeline to continue making forward progress. Tarragon exploits the natural separation between the attention and expert computation in MoE-based transformers, treating attention workers (AWs) and expert workers (EWs) as distinct failure domains. Tarragon introduces a reconfigurable datapath to mask failures by rerouting requests to healthy workers. On top of this datapath, Tarragon implements a self-healing mechanism that relaxes the tightly synchronized execution of existing MoE frameworks. For stateful AWs, Tarragon performs asynchronous, incremental KV cache checkpointing with per-request restoration, and for stateless EWs, it leverages residual GPU memory to deploy shadow experts. These together keep recovery cost and recomputation overhead extremely low. Our evaluation shows that, compared to state-of-the-art MegaScale-Infer, Tarragon reduces failure-induced stalls by 160-213x (from ~64 s down to 0.3-0.4 s) while preserving performance when no failures occur.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。