DMA-Latte: 扩展DMA卸载在延迟受限的机器学习通信中的应用范围
DMA-Latte: Expanding the Reach of DMA Offloads to Latency-bound ML Communication
AI总结:
本文通过利用AMD Instinct MI300X GPU的先进特性,扩展DMA卸载在延迟受限的机器学习通信中的应用,提升性能并降低能耗。
摘要:
将通信任务卸载到现有的直接内存访问(DMA)引擎上,广泛存在于最新商用GPU中,已成为一种有趣且低成本的解决方案,以高效地重叠计算与通信在机器学习(ML)中。然而,迄今为止,DMA卸载的范围仅限于带宽受限的场景(10s of MB到GB的数据传输量)。在本工作中,我们旨在打破这一限制,将DMA通信卸载的范围扩展到甚至延迟受限的区域(KB到低MB)。具体而言,本文讨论了目前在最新AMD Instinct TM MI300X GPU中尚未充分利用的特性,这些特性使DMA通信卸载在延迟受限的区域中也具有竞争力。我们展示了这些特性在操作符层面(如all-gather和all-to-all等ML通信集体)以及端到端工作负载层面(LLM推理)的有效性。对于前者,我们的优化DMA卸载缩小了多达4.5倍的性能差距,并相对于最先进的GPU核心通信库RCCL,提供了额外的能耗节省(3-10%)。对于后者,我们展示了LLM推理的加速:在最先进的vLLM推理框架上,延迟降低达1.5倍,吞吐量提高达1.9倍。最后,我们讨论了AMD Instinct GPU运行时创新,这些创新能够暴露这些特性,并进一步识别未来硬件-软件协同设计的潜力,以进一步提高DMA卸载效率。
英文摘要:
Offloading communication to existing direct memory access (DMA) engines, available on most state-of-the-art commercial GPUs, has emerged as a practical and low-cost solution to efficiently overlap computation and communication in machine learning (ML). However, the reach of DMA offloads has so far been limited to bandwidth-bound scenarios only (10s of MB to GB transfer sizes). In this work, we break this barrier and extend DMA communication offloads to latency-bound regions (KB to low MB). Specifically, we leverage hitherto untapped features available in the state-of-the-art AMD Instinct$^{\mathrm{TM}}$ GPUs that render DMA communication offloads competitive even in latency-bound regions. We demonstrate the efficacy of these features both at the operator level (ML communication collectives such as all-gather and all-to-all), and at the end-to-end workload level (LLM inference). At the operator level, our optimizations provide up to 4.5$\times$ speedups (3.2$\times$ geomean in the latency-bound region) over baseline DMA offload, narrowing the performance gap while delivering additional power savings (3-10%) for ML collectives compared to state-of-the-art GPU core-based communication library, RCCL. At the workload level, we demonstrate acceleration for LLM inference: up to 1.65$\times$ lower latency and up to 1.9$\times$ higher throughput over the state-of-the-art vLLM inference framework. We conclude with a discussion of AMD Instinct GPU runtime innovations that stand to expose these features.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。