liveBook · Manning

Megatron-LM

As explained in Sutskever's List

Megatron-LM is a software framework for training large transformer models with distributed model-parallel techniques.

Megatron-LM slices transformer layers across GPUs: matrix multiplications are partitioned, and devices combine their partial results. This offers an alternative to pipeline parallelism, whose fill and drain phases can leave devices idle. The approaches are orthogonal and can be combined. section 6.3.3

Combining parallelism

Eight pipeline stages, each distributed in two ways, produce 16-way parallelism. Megatron-LM also trained an 8.3-billion-parameter GPT-2-style transformer on 512 GPUs, at about 76% efficiency and 15 petaflops of throughput. section 6.3.3

How Sutskever's List covers it

How deep it goes
Explains matrix partitioning and partial-result combination, but does not detail implementation.
Examples
Cites a 16-way pipeline-and-layer arrangement and an 8.3-billion-parameter GPT-2-style training run.
What you can do after
Understand how layer slicing distributes transformer computation and can combine with pipeline parallelism.
How it connects
Connects tensor parallelism with model parallelism and pipeline parallelism.

This explainer was generated by Manning's knowledge graph from the text of Sutskever's List. The section links point to the parts of the book it draws on.