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.

Stars
18.6k
License
custom license
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+2,853
25 Mar 2026: 15,732 stars1 Apr 2026: 15,809 stars8 Apr 2026: 15,904 stars15 Apr 2026: 15,996 stars22 Apr 2026: 16,086 stars29 Apr 2026: 16,153 stars6 May 2026: 16,199 stars13 May 2026: 16,293 stars20 May 2026: 16,382 stars27 May 2026: 16,448 stars3 Jun 2026: 16,560 stars10 Jun 2026: 16,647 stars17 Jun 2026: 16,733 stars24 Jun 2026: 16,819 stars1 Jul 2026: 16,910 stars8 Jul 2026: 17,005 stars15 Jul 2026: 17,092 stars22 Jul 2026: 17,186 stars29 Jul 2026: 17,274 stars5 Aug 2026: 17,350 stars12 Aug 2026: 17,439 stars19 Aug 2026: 17,525 stars26 Aug 2026: 17,659 stars2 Sept 2026: 17,768 stars9 Sept 2026: 17,873 stars16 Sept 2026: 17,977 stars23 Sept 2026: 18,049 stars30 Sept 2026: 18,103 stars7 Oct 2026: 18,148 stars14 Oct 2026: 18,219 stars21 Oct 2026: 18,308 stars28 Oct 2026: 18,367 stars4 Nov 2026: 18,413 stars11 Nov 2026: 18,467 stars18 Nov 2026: 18,529 stars25 Nov 2026: 18,585 stars

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

  1. 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
Also in Training and fine-tuning
RankProjectScore
1peftPython library for LoRA and other parameter-efficient fine-tuning methods Live demo ↗ (opens in a new tab)21.9k starsApache-2.091 out of 100
2trlPython library for post-training LLMs with SFT, DPO, GRPO and KTO19.9k starsApache-2.091 out of 100
#4unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)80.5k starsApache-2.088 out of 100
#5deepspeedPyTorch library for distributed training of very large models with ZeRO43.4k starsApache-2.088 out of 100
#6axolotlYAML-driven framework for fine-tuning and post-training LLMs Live demo ↗ (opens in a new tab)12.8k stars+123 (+1.0%) in 30 daysApache-2.088 out of 100