SlideDP:跨多GPU扩展宿主驻留LLM微调

·

研究论文 · 2026/10/01

主机驻留层流式传输使全参数LLM微调突破GPU内存限制,但数据并行秩会竞争共享主机资源。复制传输放大流量,而强扩展可能因计算窗口缩小而暴露主机工作。我们提出SlideDP,一种面向共享主机多GPU系统的同步数据并行运行时。它维护单一权威主机状态,将通信路径与状态布局解耦,并跨秩和分块流水线化参数传递、梯度聚合与CPU更新。一个分析性步时模型刻画资源瓶颈与流水线暴露;运行时测量在GPU内存预算下指导通信、分块和激活策略。在匹配批次扫描中,SlideDP相比SlideFormer、MegaTrain和ZeRO-Offload取得1.46-2.64倍的几何平均吞吐量比。在四块H100上,SlideDP在较小批次下对Qwen3-14B接近GPU驻留FSDP2的吞吐量。在更大批次下,它每步处理超过100万token,并超过FSDP2实测峰值吞吐量11.2%。此外,它支持同一模型的256K token序列,并在四块RTX 4090 GPU上微调Qwen2.5-72B。项目页面:https://github.com/RegiaYoung/SlideDP。

该工作通过主机驻留层流式传输和流水线化数据并行运行时,显著提升了多GPU系统上全参数LLM微调的吞吐量,并在多种模型和硬件配置上验证了其有效性,为突破GPU内存限制提供了实用方案。

Host-resident layer streaming enables full-parameter LLM fine-tuning beyond GPU memory, but data-parallel ranks compete for shared host resources. Replicated transfers amplify traffic, while strong scaling can expose host work as computation windows shrink. We present SlideDP, a synchronous data-parallel runtime for shared-host multi-GPU systems. It maintains one authoritative host state, decouples communication routes from state layout, and pipelines parameter delivery, gradient aggregation, and CPU updates across ranks and chunks. An analytical step-time model characterizes resource bottlenecks and pipeline exposure; runtime measurements guide communication, chunking, and activation policies under a GPU memory budget. In matched-batch sweeps, SlideDP achieves geometric-mean throughput ratios of 1.46-2.64times over SlideFormer, MegaTrain, and ZeRO-Offload. On four H100s, SlideDP approaches GPU-resident FSDP2 throughput for Qwen3-14B at a smaller batch size. With a larger batch, it processes over 1M tokens per step and exceeds FSDP2's measured peak throughput by 11.2%. Separately, it supports 256K-token sequences for the same model and fine-tunes Qwen2.5-72B on four RTX 4090 GPUs. Project page: https://github.com/RegiaYoung/SlideDP.

阅读原文

参与讨论