DAK:支持直接访问的GPU内存卸载,以实现LLM推理的最优效率
DAK: Direct-Access-Enabled GPU Memory Offloading with Optimal Efficiency for LLM Inference
AI总结:
本文提出DAK框架,通过直接访问远程内存优化GPU内存卸载,提升系统带宽效率,实验显示在NVLink-C2C和PCIe系统中性能提升达3倍和1.8倍。
摘要:
LLM推理受限于GPU内存容量和带宽。分层内存架构通过允许GPU将内存卸载到远程层级来缓解这一问题。然而,现有内存卸载框架依赖于将数据预取到本地GPU HBM,这种方法通过引入HBM竞争、浪费内存容量和产生流水线气泡而低效。我们证明启用GPU直接访问远程内存显著优于预取,实现最优的系统带宽汇总。我们提出DAK,一个端到端的直接访问内存卸载框架,将张量内存加速器(TMA)重新利用以异步地从远程内存中直接获取卸载的权重和KV缓存到GPU共享内存(SMEM)。为了最大化远程访问性能,DAK引入一种贪婪算法来确定每个操作的卸载比例,同时引入主动拥堵控制和TMA多播以消除互连瓶颈和读取放大。在多种架构上的评估显示,DAK实现了接近最优的带宽汇总,相比最先进的内存卸载基线,在NVLink-C2C系统中性能提升达3倍,在PCIe系统中达1.8倍。
英文摘要:
LLM inference is constrained by GPU memory capacity and bandwidth. Tiered memory architectures mitigate this by allowing the GPU to offload memory to the remote tier. However, existing memory offloading frameworks rely on prefetching data into local GPU HBM. This approach underutilizes system resources by introducing HBM contention, squandering memory capacity, and creating pipeline bubbles. We show that enabling direct GPU access to remote memory significantly outperforms prefetching, achieving optimal aggregate system bandwidth. We propose DAK, an end-to-end direct-access memory offloading framework that repurposes the Tensor Memory Accelerator (TMA) to asynchronously fetch offloaded weights and KV caches directly from remote memory into GPU shared memory (SMEM). To maximize remote access performance, DAK introduces a greedy algorithm to determine optimal per-operation offloading ratios, alongside active congestion control and TMA multicast to eliminate interconnect bottlenecks and read amplification. Evaluations across diverse architectures show that DAK achieves near-optimal bandwidth aggregation, with up to 3$\times$ performance gains on NVLink-C2C and 1.8$\times$ on PCIe systems compared to state-of-the-art memory offloading baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。