Megatron-LM
Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism
Mohammad Shoeybi et al. · arXiv 2019
Distribute attention and MLP matrix operations across devices, with column- and row-parallel linear layers as exercise components.
What you will implement
A single-process tensor-parallel two-layer MLP including biases and gradients, with tanh-approximate GeLU and no distributed communication.
- 155. Megatron Column- and Row-Parallel MLP
Align hidden-channel shards, apply local GeLU, and reduce second-layer outputs.
A single-process tensor-parallel two-layer MLP including biases and gradients, with tanh-approximate GeLU and no distributed communication.