33rd of 126 in Training and fine-tuning
megatron-lm
NVIDIA's library for training large transformer models across many GPUs
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts megatron-lm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.megatron-lm is on your watch list. Its new releases and problems show there.
- Stars
- 18.6k
- License
- custom license
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
15,732 on 25 Mar 202618,585 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Megatron Core is a PyTorch library of transformer building blocks with tensor, pipeline, data, expert and context parallelism, plus FP16, BF16, FP8 and FP4 mixed precision. The repo also ships Megatron-LM, a reference set of pre-configured training scripts, along with distributed checkpointing and post-training tools for quantization, distillation and pruning. Hugging Face checkpoint conversion lives in the separate Megatron Bridge project.
Who it is for: ML engineers and research teams pretraining LLMs on multi-GPU clusters
Strengths
- Supports TP, PP, DP, EP and CP parallelism in one library
- Mixed precision from FP16 and BF16 down to FP8 and FP4
- Distributed checkpointing with resharding, plus MoE and hybrid model support
- Published throughput benchmarks, e.g. DeepSeek-V3 on 256 GB300 GPUs
Weaknesses
- Aimed at multi-GPU clusters; no small-scale or CPU workflow described
- Source builds can run out of memory and need MAX_JOBS tuning
- HF checkpoint conversion is in Megatron Bridge, a separate repo for now
- License detected as NOASSERTION while the README badge says Apache
What it needs
- GPU required
- Docker
- Needs PyTorch 2.6.0+, Python 3.12+, NVIDIA NGC PyTorch container (for source development)
- Models: DeepSeek-V3, Qwen3-235B-A22B, Nemotron 3 Ultra, DeepSeek-V4 (initial, dev branch)
What changed
- core_v0.20.0 ↗ (opens in a new tab)Security fix
CVE-2026-63374, CVE-2026-112940. “build: update AnyIO to address CVE-2026-63374 by @balasaajay :: PR: #8228”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Head to head
Also in Training and fine-tuning
See all 126| Rank | Project | Score |
|---|---|---|
| 1 | peftPython library for LoRA and other parameter-efficient fine-tuning methods | 91 out of 100 |
| 2 | trlPython library for post-training LLMs with SFT, DPO, GRPO and KTO | 91 out of 100 |
| #4 | unslothDesktop and web app to run and fine-tune local models | 88 out of 100 |
| #5 | deepspeedPyTorch library for distributed training of very large models with ZeRO | 88 out of 100 |
| #6 | axolotlYAML-driven framework for fine-tuning and post-training LLMs | 88 out of 100 |