NVIDIA/Megatron-LM

Ongoing research training transformer models at scale

Owned by NVIDIA

View on GitHub ↗Jump to charts ↓

NVIDIA/Megatron-LM has 18k+ stars and 4.5k+ forks on GitHub, is written in Python, and was last pushed on Oct 18, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 33 minutes ago
Added to GitGenius on February 25th, 2026
Created on March 21st, 2019
Open Issues & Pull Requests: 1,651 (+0)
GitHub issues: Enabled
Number of forks: 4,635
Total Stargazers: 18,186 (+2)
Total Subscribers: 170 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.8 days
Mean response time: 150.0 days
90th percentile: 506.4 days
Tracked items: 1,479

Maintainer activity

93 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 11, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

How this project is maintained

About 11% of issues opened in the past year have never received a reply. 96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "module: megatron-fsdp" is answered fastest, typically in about 16 hours, while "question" waits about 8 days. 29% of tracked open issues have had no activity in three months. Only 52% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 465
New in 7 days: 11
Closed in 7 days: 8
Avg open age: 134 days
Stale 30+ days: 314
Stale 90+ days: 186

Recent activity

Opened in 7 days: 10
Closed in 7 days: 6
Comments in 7 days: 21
Events in 7 days: 133

Top labels

  • community-request (600)
  • bug (517)
  • stale (301)
  • enhancement (300)
  • question (188)
  • module: moe (103)
  • waiting-on-maintainers (86)
  • waiting-on-customer (76)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Megatron-LM is a GPU-optimized library developed by NVIDIA for training transformer models at scale, containing two complementary components. Megatron-LM serves as a reference implementation with pre-configured training scripts designed for research teams and quick experimentation with distributed training. Megatron Core is a composable library providing GPU-optimized building blocks for developers constructing custom training frameworks, offering transformer building blocks, advanced parallelism strategies including tensor parallelism, pipeline parallelism, data parallelism, expert parallelism, and context parallelism, along with mixed precision support for FP16, BF16, FP8, and FP4 formats.

The repository demonstrates substantial production capability, successfully training models ranging from 2 billion to 462 billion parameters across thousands of GPUs. Performance benchmarking on H100 clusters achieves up to 47 percent Model FLOP Utilization on weak scaling tests, with superlinear scaling improvements as model size increases from 41 percent to 47-48 percent MFU. Strong scaling tests of a 175 billion parameter GPT-3 model scale from 96 to 4,608 H100 GPUs while maintaining consistent batch sizes, demonstrating practical scalability for production workloads.

The codebase is written in Python and maintains active development with significant community engagement.

Recent developments highlight expanding model architecture support and optimization techniques. The repository includes initial DeepSeek-V4 implementation on the development branch, support for emerging optimizers through the Emerging-Optimizers library, Falcon-H1 hybrid transformer-Mamba architecture contributions from Technology Innovation Institute, and dynamic context parallelism achieving up to 1.48x speedup for variable-length sequence training. Megatron Bridge provides bidirectional checkpoint conversion between Hugging Face and Megatron formats with production-ready recipes for popular models.

Installation options include PyPI packages or source compilation, with documentation available through NVIDIA's official guides covering installation, first training runs, parallelism strategies, and contribution procedures. The development process moved to open GitHub in December 2025, enabling transparent community contributions and continuous integration in public view.

Benchmark configurations specify vocabulary size of 131,072 tokens and sequence length of 4,096 tokens with varied model dimensions to achieve target parameter counts. Communication optimizations include fine-grained overlapping for data parallelism, tensor parallelism, and pipeline parallelism. The codebase includes comprehensive checkpointing and fault tolerance mechanisms for production training pipelines. Upcoming releases will drop Python 3.10 support, requiring downstream applications to adopt Python 3.12 or later for compatibility with Megatron Core 0.17.0 and subsequent versions.