NVIDIA 提出泛化张量并行 GTP,2T 参数 MoE 训练达 13.0 EFLOP/s
Generalized Tensor Parallelism: Powering Trillion-Parameter LLM Training at 10+ EFLOP/s
训练超大模型的人可以细看:NVIDIA 把五种并行统一成一个框架,all-gather 按 GEMM 粒度调度,代码直接合进了 Megatron-LM。对比 FSDP 和 3D 并行都有 1.05–1.55 倍吞吐提升,还开源了。
NVIDIA 在 arXiv 论文中提出 generalized tensor parallelism(GTP),将数据并行、张量并行、序列并行、上下文并行和 FSDP 五种常见并行方式统一为同一框架:每层的参数和激活都可被切分,且任一方在使用前通过 all-gather 重新物化。
与 FSDP 以整个 Transformer 块为单位调度 all-gather 不同,GTP 按 GEMM(矩阵乘法)粒度调度,让每次通信发得足够早以隐藏延迟,又足够晚以控制显存占用。实现已开源在 NVIDIA/Megatron-LM 仓库。
实测中,一个内部 2T 参数的 MoE 模型在 12,288 张 GB300 GPU 上达到 13.0 model EFLOP/s,弱扩展效率 98%,并能在 512 张 GPU 上跑 1M token 序列;在 256–1,024 GPU 规模下,吞吐为 Megatron-FSDP 的 1.05–1.55 倍,在 DeepSeek-V4-Pro 代理模型上比调优过的 3D 并行加流水线方案高 1.27–1.31 倍。
Generalized Tensor Parallelism: Powering Trillion-Parameter LLM Training at 10+ EFLOP/s
Pretraining state-of-the-art large language models (LLMs) with up to trillions of parameters is memory- and compute-intensive. Existing parallelization schemes compromise on either per-GPU memory or throughput: data parallelism replicates parameters; tensor parallelism and fully sharded data parallelism (FSDP) add communication of activations and parameters, respectively, to every microbatch; and pipeline parallelism leaves GPUs idle while the pipeline fills and drains. We show that, for linear layers, five commonly used parallelisms (data, tensor, sequence, context parallelism and FSDP) are special cases of one framework, generalized tensor parallelism (GTP), in which each layer's parameters and activations are partitioned and either can be re-materialized with an all-gather before use. In GTP, a parameter all-gather is an optional preprocessing step on one input of a matrix multiplication (GEMM), whereas FSDP implementations typically treat it as a step before an entire Transformer block, which can increase memory footprint and delay GEMMs. The GTP view lets us schedule all-gathers per GEMM rather than per block, issuing each early enough to hide its communication but late enough to limit memory. Our implementation is open source at https://github.com/NVIDIA/Megatron-LM; with it, an internal 2T-parameter mixture-of-experts (MoE) model reaches \textbf{13.0 model EFLOP/s} (exaFLOP/s) on 12,288 GB300 GPUs with 98\% weak-scaling efficiency, and runs with 1M-token sequences on 512 GPUs. On 256--1,024 GPUs, our implementation achieves \textbf{1.05--1.55$\times$ the throughput of Megatron-FSDP} across three MoE models and \textbf{1.27--1.31$\times$ that of a tuned 3D-parallel recipe with pipeline parallelism} on a DeepSeek-V4-Pro proxy model.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Megatron-LM、GTP、FSDP、MoE,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始信息发布自一手权威信源「arXiv: DeepSeek」(Tier-1 一手发布),具备高确定性参考价值。