Dev & Engineering ✓ NVIDIA · Official megatron-coreunit-testingfunctional-testingpytestrecipe-yamlgolden-valuesci-parity

Megatron-Core Testing Guide

Design, run, and reproduce distributed Megatron-Core tests with CI-aligned workflows.

FollowSkills review · FSRS-2.0
Not recommended
52/ 100 5-point scale 2.6 / 5
Trust15 / 25 · 3.0/5

The skill makes the testing, container, data-mount, and golden-value download flows visible, and no malware, credential theft, covert exfiltration, or destructive default is evident; however, it does not require confirmation before external commands, explain secret or sensitive-data handling, define network/permission boundaries, or provide rollback guidance, so points are deducted.

Reliability8 / 20 · 2.0/5

The document consistently describes layouts, commands, runners, placeholders, markers, and common failure causes, with some useful diagnostics; however, it depends on GPUs, eight processes, canonical container paths, uv, nemo-run, external data, and environment tags, and static review cannot reproduce the key paths, so the score remains below the static ceiling.

Adaptability9 / 15 · 3.0/5

Triggers, audience, and major scenarios are fairly clear, covering unit tests, functional tests, recipes, golden values, and CI failures; non-fit boundaries, version compatibility, and exact prerequisites are incomplete, Chinese-language support is not stated, and parts of the workflow depend on GitHub/HuggingFace and network reachability, so points are deducted.

Convention9 / 15 · 3.0/5

The SKILL.md is readable and layered across facts, layout, execution, test creation, and pitfalls; the skill card supplies Apache-2.0 licensing, owner, version, and references, while repository context provides maintenance and security channels. Recommended Purpose, Instructions, Examples, and metadata.tags are missing, and prerequisites, changelog, update ownership, and troubleshooting coverage are incomplete, so points are deducted.

Effectiveness7 / 15 · 2.3/5

For Megatron-LM test developers, the commands, YAML example, markers, and pitfalls provide directly actionable guidance and broadly cover the core task; GPU, container, data, and CI permission requirements limit usability, and no verifiable execution results for this skill are provided, so the static score is capped at 7.

Verifiability4 / 10 · 2.0/5

The evidence includes revision-pinned source material, a static evaluation report, Apache-2.0 licensing, and external references; however, evals.json is empty, the benchmark reports no Tier 3 details, and there is no committed test suite or independent reproduction evidence for this skill's key paths, warranting only limited credit.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 55f18499943e
Before you use it
  • Before running the documented commands, confirm GPU, container, data-path, network, and CI permissions; some commands download data or golden values and may access GitHub/HuggingFace.
  • There is no guidance for sensitive data, credentials, network failures, download integrity, or rollback; external-service reachability may affect use from mainland-China networks.
  • The skill-card version does not match the assessed revision, and the benchmark lacks Tier 3 results; do not treat the reported PASS as execution validation.
See the full review method →

What does this skill do, and when should you use it?

This skill supports unit and functional testing workflows for Megatron-Core. It explains the test layout, Recipe YAML configuration, pytest markers, golden-value management, and local reproduction of CI failures. Unit tests must run through torch.distributed.run with GPU access, while functional tests use CI recipes and training scripts. It is suited to developers adding tests, diagnosing failures, or aligning local execution with CI.

Explains the roles of tests/unit_tests, tests/functional_tests, and tests/test_utils; provides commands for full-suite, single-file, single-test, and name-filtered execution through torch.distributed.run; documents flaky, flaky_in_dev, internal, and experimental markers; guides the creation of unit tests, functional tests, and Recipe YAML files; shows how to preserve but disable a functional recipe with -broken; explains downloading golden values from a GitHub pipeline; and documents CI behavior involving nemo-run, DockerExecutor, log artifacts, and up to three retries for known transient failures.

  1. A Megatron-Core developer needs to add a unit test and select the appropriate pytest markers.
  2. A test engineer needs to create a functional test directory, model_config.yaml, and an H100 or GB200 recipe.
  3. A developer needs to reproduce a CI unit-test failure locally across 8 GPUs.
  4. A maintainer needs to temporarily disable a functional test while preserving its Recipe YAML entry for re-enablement.
  5. A developer needs to download and commit refreshed golden values after a code change.

What are this skill's strengths and limitations?

Pros
  • Covers unit tests, end-to-end functional tests, Recipe YAML, golden values, and CI reproduction.
  • Provides copyable commands and concrete test-authoring steps.
  • Clearly explains how to disable tests without deleting test assets.
  • Captures practical details about multi-GPU logs, data paths, and flaky-failure retries.
Limitations
  • Unit tests require GPU access, and the examples and layout are built around 8 GPUs.
  • Outside the canonical container, test data may need to be downloaded or supplied manually under /opt/data.
  • Functional testing depends on specific CI recipes, environments, and platforms; GB200 jobs may require maintainer-triggered execution.
  • The skill is focused on Megatron-Core testing rather than general-purpose testing frameworks.

How do you install this skill?

Install the specific skill with the default skills CLI:

npx skills add nvidia/skills --skill mcore-testing --yes

You may also add --agent codex, --agent claude-code, or --agent cursor to target a specific client. The README does not document the exact local installation directory; the CLI manages the destination.

How do you use this skill?

After installation, invoke it with a relevant request such as “How do I add a Megatron-Core unit test?”, “How do I run unit tests?”, “How do I reproduce a pytest failure?”, or “How do I update golden values?”. For execution, the documented workflow uses uv, Python, torch.distributed.run, and pytest; unit tests require GPUs, with examples using --nproc-per-node 8.

FAQ

Can I run the unit tests with ordinary pytest alone?
Not according to this guide. All unit tests initialize torch.distributed, so they must run through torch.distributed.run and require GPU access.
How do I temporarily disable a functional test?
Keep the Recipe YAML entry and change its scope from mr-github to mr-github-broken. Do not delete the test case or recipe entry.
What should I check when a test passes locally but fails in CI?
Check DATA_PATH, DATA_CACHE_PATH, and the environment tag, especially the difference between dev and lts.
Does this skill require network access?
Some workflows do. Missing test data may trigger a download, and functional-test golden values can be downloaded from a GitHub pipeline.

More skills from this repository

All from NVIDIA/skills

Automation & Ops ✓ NVIDIA · Official

Megatron-Core CI Failure to Issue

Investigate failed GitHub Actions jobs and create structured bug issues for NVIDIA Megatron-LM.

Dev & Engineering ✓ NVIDIA · Official

Catheter Navigation Fluoroscopy Smoke Tests

Validate core catheter-navigation workflow behavior on CPU-only CI environments.

Dev & Engineering ✓ NVIDIA · Official

NeMo AutoModel Model Onboarding

A structured guide for adding new LLM, MoE, and VLM architectures to NeMo AutoModel.

Dev & Engineering ✓ NVIDIA · Official

Earth2Studio Diagnostic Builder

Build Earth2Studio wrappers for single-step diagnostic data transformations.

Dev & Engineering ✓ NVIDIA · Official

Megatron-Bridge Communication Overlap Guide

Configure and verify TP, DP, and PP communication overlap in Megatron-Bridge training.

Dev & Engineering ✓ NVIDIA · Official

MoE Hardware Configuration Reference

Plan MoE training layouts and throughput expectations across NVIDIA GPU platforms.

Dev & Engineering ✓ NVIDIA · Official

Catheter Navigation Setup Verification

Checks host, GPU, and Python path readiness for catheter navigation.

Dev & Engineering ✓ NVIDIA · Official

Megatron-Core Linting & Formatting

Standardize Megatron-LM Python checks and formatting before code review.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Hierarchical Context Parallelism

Enable, troubleshoot, and verify hierarchical context parallelism in Megatron-Bridge.

Dev & Engineering ✓ NVIDIA · Official

Earth2Studio Forecast Wrapper Builder

Build and validate Earth2Studio time-stepping forecast wrappers.

Dev & Engineering ✓ NVIDIA · Official

Catheter Navigation E2E Smoke Test

Runs the Isaac for Healthcare v0.7 catheter workflow from setup verification through digital-twin DRR rendering and unit tests.

Dev & Engineering ✓ NVIDIA · Official

TileGym cuTile Kernel Guide

A step-by-step guide for registering, implementing, testing, and benchmarking a new cuTile GPU kernel in TileGym.

Dev & Engineering ✓ NVIDIA · Official

NVIDIA cuOpt Developer

Guides source-level cuOpt modification, builds, tests, debugging, and contributions.

Dev & Engineering ✓ NVIDIA · Official

NeMo AutoModel Recipe Development

Build, modify, and validate NeMo AutoModel training and evaluation recipes.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge GPU Memory Tuning

Diagnose GPU OOMs in Megatron Bridge training and reduce fragmentation, activation, and PEFT memory usage.

Dev & Engineering ✓ NVIDIA · Official

Jetson Target Switcher

Switch the active Jetson target among existing platform profiles.

Dev & Engineering ✓ NVIDIA · Official

Megatron Bridge Activation Recompute

Trade extra compute for lower GPU activation memory in Megatron Bridge training.

Dev & Engineering ✓ NVIDIA · Official

DOCA Flow DPA Performance

Guides defensible measurement of DOCA Flow rule-update and disable rates on DPA-capable NVIDIA hardware.

Dev & Engineering ✓ NVIDIA · Official

NeMo MBridge Parallelism Strategy Guide

Choose, combine, and validate Megatron Bridge parallelism configurations.

Dev & Engineering ✓ NVIDIA · Official

Jetson Target Platform Initializer

Create a Jetson target-platform profile for a reference devkit or custom carrier and update the active pointer.

Related skills