mrkeyoor.comAsk

NVIDIA/Megatron-LMtested 12 Oct 2026commit e30d863

Megatron-LM review

Megatron-LM is worth evaluating when NVIDIA GPU training and explicit control over parallelism fit your requirements.

  • Install 74 s
  • Build 7 s
81/112passed, run exited non-zero
  • 37 packages
LLM Toolsevaluationupdated 31 Oct 2026
+37stars / 7d

Choose Megatron-LM when you need NVIDIA GPU training components and control over distributed parallelism. Megatron-LM combines Megatron Core with pre-configured training scripts. Megatron Core is a composable library for custom training frameworks. Our run on October 12, 2026, at commit e30d863 recorded successful install and build steps, but the selected pytest command failed. It did not establish successful GPU training.

Verdict

Megatron-LM is worth evaluating when NVIDIA GPU training and explicit control over parallelism fit your requirements. Begin with a matching documented example and validate the training environment before committing to an integration. Our run supports successful package setup steps and identifies utility-test failures; it provides no measured basis for a throughput, convergence or production-reliability recommendation.

We ran it

Lab card: what happened when we ran Megatron-LM
Lab card from our sandbox run
Screenshot of Megatron-LM (docs.nvidia.com/megatron-core/developer-guide/latest/get-started/quickstart.html)
docs.nvidia.com/megatron-core/developer-guide/latest/get-started/quickstart.html
Install✓ · 74s37 packages · 94 MB
Build✓ · 7s
Tests✗ · 4s81 passed · 10 failed · 15 skipped · 21 errors of 112 (pytest)
Known vulns0(pip-audit)
Repo3490 files~670,460 lines of source · 72.2 MB · 40 CI workflows · tests dir

Answers from our run

Does Megatron-LM build from source?

Dependencies installed in 74 seconds (37 packages), and the build succeeded in 7 seconds. We cloned commit e30d863 into a clean Debian container with 3 CPUs and no project-specific setup.

Do Megatron-LM's tests pass?

No. The project's own test command finished in 4 seconds and reported 81 passed, 10 failed, 15 skipped, 21 collection errors (pytest).

Does Megatron-LM have known vulnerabilities in its dependencies?

pip-audit found none in the dependency tree at the time of our run.

Who should not use Megatron-LM?

Readers seeking evidence of training throughput, convergence or multi-node correctness from our sandbox: we did not test those workloads.

What are the alternatives to Megatron-LM?

TorchTitan, Megatron Bridge. Megatron-LM is worth evaluating when NVIDIA GPU training and explicit control over parallelism fit your requirements.

Setup2/5Install and build returned zero in our recorded sandbox, but pytest failed and the documented GPU training environment needs additional preparation. This meets the visible rubric's major-prerequisites level.
Docs4/5The supplied README and installation guide explain component roles, hardware requirements, installation options and environment pins. This assesses detailed guidance, not verification of every documented path.
Community3/5Last push on 2026-08-25, 18,395 stars and 1,218 open issues and pull requests is a heavy backlog for its size.Editor’s note: The supplied extracts do not establish contributor responsiveness, support quality or a representative history of issue resolution.
Maturity3/5Latest release core_v0.19.0 on 2026-08-19 (pre-1.0), repository created 2019-03-21 and its test suite did not pass in our sandbox (81 of 112 passed).Editor’s note: The stored package check did not exercise GPU training, convergence, checkpoint recovery or sustained multi-node operation.

How we score

Discussed on

  1. hnMegatron-LM: Nvidia's 8.3B Parameter GPT-2 Transformer9 points

Who it’s for

Research teams evaluating configured transformer-training examples on NVIDIA GPUs.
Framework developers who need Megatron Core building blocks for custom training pipelines.
ML engineers prepared to configure tensor, pipeline, data, expert and context parallelism and validate their own workload.

Who it’s NOT for

Readers seeking evidence of training throughput, convergence or multi-node correctness from our sandbox: we did not test those workloads.
Teams requiring the selected pytest command to pass in our recorded environment: it returned exit code 1.
Developers seeking a CPU-first starting point: NVIDIA's installation guide recommends Turing or newer GPUs.
Teams expecting Hugging Face checkpoint conversion to be handled entirely within this repository: the README directs that task to the companion Megatron Bridge project.

Setup reality

Our run on October 12, 2026, used commit e30d863 in our sandbox with 3 CPUs, 8 GB RAM and the ghcr.io/astral-sh/uv:python3.12-bookworm image. The attached harness records install success in 74 seconds and build success in 7 seconds, both with exit code 0. Installation added 37 packages with a recorded footprint of 94 MB.

The test command returned exit code 1 after 4 seconds. Its stored parser summaries record 81 passed, 10 failed, 15 skipped and 21 errors, with a stored total field of 112. These fields do not establish exhaustive unique test coverage and should not be combined into a pass rate. No new execution or complete-log reconciliation was performed.

The raw tail identifies missing github_slack_utils and click imports, an envsubst command missing from the generated training script, and failing test_pr_label_gate cases. These are failures in the selected utility tests; they do not establish whether a GPU training job would succeed. pip-audit recorded zero advisories, but scan coverage is unknown because no scannedPackages value is supplied.

What our run establishes

Our run on October 12, 2026, at commit e30d863 recorded successful install and build steps, but the selected pytest command failed. The matching stored sandbox record identifies the full commit as e30d863a6d82a3c45f2d71355dc73fbf5610967b. This is an existing run, not a new execution for this correction.

Our sandbox had 3 CPUs and 8 GB RAM and used the ghcr.io/astral-sh/uv:python3.12-bookworm image. The harness records each step's outcome, exit code, elapsed time and timeout status, alongside parsed test summaries and retained log tails. Install returned zero in 74 seconds; build returned zero in 7 seconds. Those outcomes establish that the recorded steps completed, not that a training workload or deployment was exercised.

The pytest command returned exit code 1 after 4 seconds. The stored parser summaries contain 81 passed, 10 failed, 15 skipped and 21 errors, plus a total field of 112. The categories do not reconcile with that total as a simple partition. We retain the attached fields without treating them as exhaustive unique test counts or calculating a pass percentage. Skipped tests are not failures.

The raw pytest footer separately reports 10 failed, 81 passed, 15 skipped and 21 errors in 1.74 seconds. That footer is test-runner output; the harness's 4 seconds is the recorded command duration. Repeated summary lines in the retained tail are not additional tests.

The tail gives useful, limited explanations. On-call manager tests could not import github_slack_utils. The precision-metadata test could not import click. The secret-redaction test expected its generated run_training.sh to return zero, but it returned 127; the captured output names envsubst: command not found. The test_pr_label_gate cases report shell subprocess failures without enough detail here to diagnose their underlying cause. None of these observations proves a defect in distributed training itself.

We did not test GPU throughput, convergence, checkpoint recovery or multi-node correctness. The MrKeyoor testing methodology explains how command outcomes and parser summaries reach a review. That page provides provenance context; its current text does not establish which methodology revision governed this October 12 run.

Choose the training scripts or the components

Megatron-LM combines Megatron Core with pre-configured training scripts. Megatron Core is a composable library for custom training frameworks. This distinction gives adopters two starting points: inspect the reference training examples, or integrate Core components into a framework they maintain.

The README documents tensor, pipeline, data, expert and context parallelism, together with mixed precision and transformer building blocks. These are reasons to evaluate the project when workload partitioning is a central requirement. They are not evidence that our sandbox exercised those capabilities. The README at our recorded commit makes the same distinction between the reference example and the composable library.

Match the environment before judging a training run

The supplied installation guide requires Python 3.12 or newer and PyTorch 2.6.0 or newer. It recommends NVIDIA Turing or later GPUs; FP8 requires Hopper, Ada or Blackwell hardware. The supplied package metadata also requires Python 3.12 or newer, so these extracts do not support a Python-version mismatch.

For source development, NVIDIA directs readers to the NGC image pins in docker/.ngc_version.dev or docker/.ngc_version.lts. For a released Megatron Core version, the guide says to use that release's dependency versions. It describes the NGC PyTorch container as providing PyTorch, CUDA, cuDNN, NCCL and Transformer Engine. Our package-check timing does not measure the work needed to prepare that training environment.

Before adopting the project, select a documented example that matches your model and hardware, pin its environment and code revision, and validate training and checkpoint recovery on your own infrastructure. Those checks answer questions that our stored run leaves open.

Alternatives and a companion project

TorchTitan is a PyTorch-native implementation of large-scale training. Its README describes composable parallelism through DeviceMesh and DTensor, with Python recipes for runs. Evaluate it when those upstream PyTorch abstractions are your preferred foundation. Its latest features require a recent PyTorch nightly, so the supplied evidence does not justify calling it a simpler or more stable setup.

Megatron Bridge provides bidirectional Hugging Face and Megatron checkpoint conversion. The Megatron-LM README also assigns it training recipes. Treat it as a companion when checkpoint interchange is the immediate need, rather than as a replacement for Megatron Core. We did not test either TorchTitan or Megatron Bridge in this run.

How to read the ratings

For assessed dimensions, 1 means substantial documented obstacles, 2 means useful progress with major prerequisites, 3 means an adequate documented path with material gaps, 4 means detailed guidance or demonstrated capability with bounded caveats, and 5 requires broad corroboration beyond a successful package check. Ratings are editorial judgments, not benchmark results. An unassessed dimension has no numerical rating.

Setup ease is 2: install and build completed, but the selected tests failed and the documented GPU environment requires additional preparation. Documentation is 4: the supplied sources distinguish the two components and explain installation routes, hardware requirements and dependency pins. That rating assesses the guidance, not successful execution of every documented path. Community and operational maturity remain unassessed because these extracts and this sandbox run cannot establish contributor responsiveness or sustained training reliability.

The audit recorded zero advisories. Its coverage remains unknown: the record has a packages value of zero and no scannedPackages field. This is not evidence that every installed package was scanned or that the project is secure.

Alternatives

ProjectWhat it isPick it when
TorchTitanA PyTorch-native large-scale training implementation with composable parallelism and Python recipes.Evaluate it when you want DeviceMesh and DTensor to underpin your training stack; account for its documented nightly dependency requirements.
Megatron BridgeA companion for Hugging Face and Megatron checkpoint conversion and training recipes, as described by the Megatron-LM README.Use it alongside Megatron when checkpoint interchange or prepared recipes are the immediate task; it is not a replacement for Core's training components.

What people are saying

  1. [github-trending] NVIDIA/Megatron-LM

Sources

  1. Megatron-LM repository and README
  2. Megatron Core installation guide
  3. Megatron Core package metadata
  4. NVIDIA Megatron Core 0.19.0 release
  5. Issue 5755: grouped-query attention configuration error

More llm tools reviews