Infrastructure paper
Megatron-LM: Training Multi-Billion Parameter LMs Using Model Parallelism
NVIDIA partitioned the Transformer's attention and MLP weight matrices column- and row-wise across GPUs, arranging the splits so only two all-reduce operations per layer are needed in the forward and backward passes, implemented directly in PyTorch. This let them train models up to 8.3 billion parameters and scale efficiently to 512 GPUs. The approach became a standard building block, later combined with data and pipeline parallelism, for training multi-billion-parameter models.