AIAny
AI Train2019
Icon for item

Megatron-LM

Trains transformer models from 2B to 462B parameters across thousands of GPUs by combining tensor, pipeline, context, and expert parallelism. Ships composable building blocks (Megatron Core) plus reference scripts, with FP8/FP4 and ~47% MFU on H100s.

Introduction

Before Megatron-LM, scaling a transformer past a single GPU's memory meant hand-rolling the math of splitting attention and MLP layers across devices. Its real contribution was packaging that splitting into a few lines of code change, turning model parallelism from a research stunt into a reusable primitive that the rest of the field now builds on.

Key Capabilities
  • Stacks five parallelism axes — tensor, pipeline, data, context, and expert — so the same codebase trains anything from a 2B model on a few cards to a 462B model on thousands of GPUs.
  • Hits roughly 47% Model FLOP Utilization on H100 clusters and demonstrates superlinear scaling past 6,000 GPUs, which is the difference between a training run costing weeks versus months.
  • Splits into two layers: Megatron Core gives composable building blocks for teams writing their own framework, while Megatron-LM ships opinionated reference scripts for those who just want to train.
  • Adds the production glue large runs actually need — FP8/FP4 mixed precision, activation checkpointing, distributed optimizers, and fault-tolerant distributed checkpointing with automatic restart.
Who It's For

Great fit if you are pre-training or heavily fine-tuning models too large for a single node and want battle-tested parallelism rather than reinventing it; NVIDIA itself and most large-model labs lean on these kernels. Look elsewhere if you are working at the scale of one or two GPUs, fine-tuning with LoRA, or want a high-level trainer — the abstractions and NVIDIA-GPU assumptions are overhead you will not recoup.

Information

Categories

More Items

Hugging Face
AI Model2026

Fine-tunes Inkling-2-Mini with reinforcement learning for the pi coding agent, reducing tool calls and generated tokens. It improves Terminal-Bench 2.1 results under a one-hour limit, while matching the base model roughly when given more time.

Hugging Face
AI Model2026

Fine-tunes Inkling-2-Mini to draft natural-sounding X posts from short prompts, alongside an ensemble for distinguishing human and AI-written text. The author reports 92.6% ROC-AUC on held-out authors.

Hugging Face
AI Model2026

Uses reinforcement learning alone to improve Qwen3.8-27B on multimodal reasoning and long-horizon agent tasks. Trained on about 1,200 curated tasks, it retains a 256K context and is released in BF16, FP8, and NVFP4.