arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.12671cs.NI
收藏

HyGra: 通过自适应数据包流粒度加速LLM训练在DCN中的网络状态模拟

HyGra: Accelerating Network-State Simulation for LLM Training in DCNs via Adaptive Packet-Flow Granularity

College of Computer, Nanjing University of Posts and Telecommunications(南京邮电大学计算机学院);Computer Network Information Center, Chinese Academy of Sciences(中国科学院计算机网络信息中心)

Wenyi Wang, Zheng Wu, Yanmeng Wang, Haolin Mao, Lei Han, Gaogang Xie, Fu Xiao

AI总结:

HyGra通过自适应调整网络模拟粒度,结合数据包级和流级模拟,提升LLM训练在DCN中的网络状态模拟效率,同时保持高精度。

摘要:

近年来,大型语言模型(LLMs)在多个行业中推动了显著的智能变革。商业LLM训练通常在包含数百到数千个GPU的数据中心网络(DCNs)上进行,每个节点有多个设备。随着网络规模扩大,节点间通信成为训练效率的主要瓶颈。网络状态模拟器因此通过忠实模拟LLM训练期间的DCN动态,使网络配置和并行化策略的评估更加经济有效。然而,现有模拟器受限于效率与精度的权衡,数据包级模拟器(PLSs)导致运行时间开销过大,而流级模拟器(FLSs)牺牲了关键建模准确性。本文开发了HyGra,一种混合粒度的网络状态模拟器,利用LLM训练中的内在网络动态,自适应切换模拟粒度。具体而言,HyGra在非稳态阶段使用数据包级模拟,具有瞬态波动,而在稳态阶段使用流级模拟,具有周期性模式,从而加速执行并保持高保真度。此外,它不需要专用硬件,支持单机部署,并且与现有模拟器兼容。基于代表性的商业LLM工作负载,包括ChatGPT、DeepSeek和Qwen的实验表明,HyGra在单个并行化策略下实现高达15.4倍的速度提升,在混合并行化策略下实现7.8倍的速度提升,同时保持高精度。

英文摘要:

In recent years, large language models (LLMs) have driven substantial intelligent transformation across diverse industries. Commercial LLM training is typically performed over data center networks (DCNs) comprising hundreds to thousands of GPUs, with multiple devices collocated per node. As network scale expands, inter-node communication becomes a primary bottleneck to training efficiency. Network-state simulators therefore play a crucial role by enabling cost-effective evaluation of network configurations and parallelization strategies through faithful emulation of DCN dynamics during LLM training. However, existing simulators are constrained by a efficiency-fidelity tradeoff, as packet-level simulators (PLSs) incur prohibitive runtime overhead, whereas flow-level simulators (FLSs) compromise essential modeling accuracy. In this paper, we develop \texttt{HyGra}, a hybrid-granularity network-state simulator that exploits intrinsic network dynamics in LLM training to adaptively switch simulation granularity. Specifically, \texttt{HyGra} employs packet-level simulation during non-steady phases with transient fluctuations and flow-level simulation during steady phases with periodic patterns, thereby accelerating execution while preserving high fidelity. Moreover, it requires no specialized hardware, supports single-machine deployment, and is compatible with existing simulators. Experiments based representative commercial LLM workloads, including ChatGPT, DeepSeek, and Qwen, show that \texttt{HyGra} achieves up to 15.4$\times$ speedup under single parallelization strategy and 7.8$\times$ under hybrid parallelization strategies while maintaining high accuracy.

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

↑