arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.04816cs.OScs.CLcs.DC
收藏

Horizon-LM:一种以RAM为中心的LLM训练架构

Horizon-LM: A RAM-Centric Architecture for LLM Training

Zhengqing Yuan, Lichao Sun, Yanfang Ye

AI总结:

Horizon-LM通过重新定义CPU和GPU的角色,以主机内存为核心参数存储,实现大模型训练的内存优化,提升训练吞吐量并降低对多GPU集群的依赖。

摘要:

大语言模型(LLM)的快速增长已超越单GPU硬件的发展,导致模型规模越来越受限于内存容量而非计算能力。尽管现代训练系统通过分布式并行和CPU与存储层级的卸载扩展GPU内存,但本质上仍保留GPU为中心的执行范式,其中GPU托管持久化的模型副本和完整的autograd图。因此,扩展大型模型仍然紧密耦合到多GPU集群、复杂的分布式运行时和不可预测的主机内存消耗,为节点级的后训练工作负载(如指令微调、对齐和领域适应)造成了显著障碍。我们提出了Horizon-LM,一种以内存为中心的训练系统,重新定义CPU和GPU在大模型优化中的角色。Horizon-LM将主机内存视为权威的参数存储,并通过CPU主控、GPU模板执行模型,使GPU仅作为临时计算引擎。通过消除持久化的GPU驻留模块和autograd图,采用显式重计算与手动梯度传播,并引入流水线双缓冲执行引擎,Horizon-LM将模型规模与GPU数量解耦,并将内存使用限制在理论参数足迹内。在单个H200 GPU配备1.5TB主机RAM的情况下,Horizon-LM可靠地训练出高达120B参数的模型。在标准单A100机器上,Horizon-LM在利用CPU卸载时,其训练吞吐量比DeepSpeed ZeRO-3高12.2倍,同时保持数值正确性。在各种平台和规模下,Horizon-LM维持了高设备利用率和可预测的内存增长,证明了主机内存而非GPU内存定义了节点级大模型训练的真实可行性边界。

英文摘要:

The rapid growth of large language models (LLMs) has outpaced the evolution of single-GPU hardware, making model scale increasingly constrained by memory capacity rather than computation. While modern training systems extend GPU memory through distributed parallelism and offloading across CPU and storage tiers, they fundamentally retain a GPU-centric execution paradigm in which GPUs host persistent model replicas and full autograd graphs. As a result, scaling large models remains tightly coupled to multi-GPU clusters, complex distributed runtimes, and unpredictable host memory consumption, creating substantial barriers for node-scale post-training workloads such as instruction tuning, alignment, and domain adaptation. We present Horizon-LM, a memory-centric training system that redefines the roles of CPU and GPU for large-model optimization. Horizon-LM treats host memory as the authoritative parameter store and uses GPUs solely as transient compute engines through a CPU-master, GPU-template execution model. By eliminating persistent GPU-resident modules and autograd graphs, employing explicit recomputation with manual gradient propagation, and introducing a pipelined double-buffered execution engine, Horizon-LM decouples model scale from GPU count and bounds memory usage to the theoretical parameter footprint. On a single H200 GPU with 1.5\,TB host RAM, Horizon-LM reliably trains models up to 120B parameters. On a standard single A100 machine, Horizon-LM achieves up to 12.2$\times$ higher training throughput than DeepSpeed ZeRO-3 with CPU offloading while preserving numerical correctness. Across platforms and scales, Horizon-LM sustains high device utilization and predictable memory growth, demonstrating that host memory, not GPU memory, defines the true feasibility boundary for node-scale large-model training.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑