nemo-mbridge-mlm-bridge-training

nemo-mbridge-mlm-bridge-training is a skill for Claude Code from NVIDIA-NeMo/Megatron-Bridge. It costs 44 tokens per session (1,756 once invoked), scanned C, a copy of nemo-mbridge-mlm-bridge-training, Apache-2.0.

Training guidance for Megatron-LM and Megatron Bridge, tools used to train large language models. It covers mock or real data, example recipes, multi-GPU runs, and comparisons between the two systems.

In plain words
What is it for?
Use it to run correlation tests, translate settings between systems, launch training, and troubleshoot differences in losses.
Why use it?
It provides the commands and checks needed to compare training runs and investigate whether both systems produce matching results.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/switch_mcore.sh status.

Good fit Use it to run correlation tests, translate settings between systems, launch training, and troubleshoot differences in losses.

Compare 6 skills from other repositories ↓
About the project

Megatron Bridge is a library for training Megatron-based models and converting their checkpoints between Hugging Face and Megatron formats. Model developers use it for pretraining, supervised fine-tuning, long-context work, LoRA, inference, and image-and-text workflows supported by its examples and model configurations. The catalogue entries provide agent workflows and instructions for using the library.

NVIDIA-NeMo/Megatron-Bridge · 1,012 stars · on GitHub · docs.nvidia.com

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/Megatron-Bridge
agentmods
npx agentmods add skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nemo-mbridge-mlm-bridge-training

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training/github.svg)](https://agentmods.dev/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nemo-mbridge-mlm-bridge-training

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/megatron-bridge/nemo-mbridge-mlm-bridge-training.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,756 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01756
Opus 5.5 $0.00018 $0.00702
Sonnet 5.5 $0.00009 $0.00351
Haiku 4.5 $0.00004 $0.00176

Measured 1mo ago against content hash 68ba03543675, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

nemo-mbridge-mlm-bridge-training scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

5. Fresh-run cleanup: `rm -rf nemo_experiments` before the Bridge run.
Origin

This is a copy

100% identical to nemo-mbridge-mlm-bridge-training — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/nemo-mbridge-mlm-bridge-training/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MLM vs Bridge Training

For how they differ, the arg mapping tables, gotchas, and translation script, see:

  • @docs/megatron-lm-to-megatron-bridge.md

First Answer Checklist

For MLM-vs-Bridge correlation questions, always name these items up front:

  1. Bridge recipe: vanilla_gpt_pretrain_config.
  2. Bridge entry point: scripts/training/run_recipe.py.
  3. MLM entry point: 3rdparty/Megatron-LM/pretrain_gpt.py.
  4. Launch wrapper for both: uv run python -m torch.distributed.run.
  5. Fresh-run cleanup: rm -rf nemo_experiments before the Bridge run.

Also state that MLM needs PYTHONPATH=3rdparty/Megatron-LM:$PYTHONPATH, matched Bridge and MLM losses should agree within BF16 rounding, and files under 3rdparty/Megatron-LM/ should not be modified from this repo.

Correlation Testing

Use vanilla_gpt_pretrain_config for loss-correlation testing. This recipe uses bare GPTModelProvider defaults (LayerNorm, GeLU, learned_absolute position embeddings, vocab_size inherited from tokenizer) — matching MLM pretrain_gpt.py defaults with no args.

MLM Correlation Run (2L/256H, 1 GPU)

PYTHONPATH=3rdparty/Megatron-LM:$PYTHONPATH \
uv run python -m torch.distributed.run --nproc_per_node=1 \
  3rdparty/Megatron-LM/pretrain_gpt.py \
  --num-layers 2 --hidden-size 256 --num-attention-heads 4 \
  --ffn-hidden-size 1024 --seq-length 512 --max-position-embeddings 512 \
  --micro-batch-size 4 --global-batch-size 32 \
  --train-iters 10 --eval-iters 2 --eval-interval 10 \
  --mock-data --bf16 --use-mcore-models \
  --tokenizer-type NullTokenizer --vocab-size 32000 \
  --lr 3e-4 --min-lr 3e-5 --seed 1234 --log-interval 1

Bridge Correlation Run (same config, 1 GPU)

rm -rf nemo_experiments && \
uv run python -m torch.distributed.run --nproc_per_node=1 \
  scripts/training/run_recipe.py \
  --recipe vanilla_gpt_pretrain_config \
  model.num_layers=2 model.hidden_size=256 \
  model.num_attention_heads=4 model.ffn_hidden_size=1024 \
  model.seq_length=512 dataset.seq_length=512 \
  train.train_iters=10 train.global_batch_size=32 train.micro_batch_size=4 \
  validation.eval_interval=10 validation.eval_iters=2 \
  optimizer.lr=3e-4 optimizer.min_lr=3e-5 \
  scheduler.lr_warmup_iters=1 scheduler.lr_decay_iters=10 \
  rng.seed=1234 logger.log_interval=1

Read the full file on GitHub · 178 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -1 lines 68ba03543675
  2. 3mo ago First seen · 179 lines · 44 tokens per session scan C 7eae976eb49a

Subscribe to this mod's changes

nemo-mbridge-mlm-bridge-training is a skill published in the GitHub repository NVIDIA-NeMo/Megatron-Bridge (1,012 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 1,756 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to nemo-mbridge-mlm-bridge-training, differing in 1 line, and is treated as a copy.

Related

nemo-mbridge-mlm-bridge-training compared with skills from other repositories

nemo-mbridge-mlm-bridge-training next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nemo-mbridge-mlm-bridge-trainingNVIDIA-NeMo/Megatron-BridgeSkill1.0ktodayApache-2.0C44Claude Code
fs-notebook-tabsnexu-io/open-designSkill110ktodayApache-2.0A47Claude Code, Codex
model-architecture-litgptdavila7/claude-code-templatesSkill34ktodayMITA75Claude Code, Codex
model-architecture-nanogptdavila7/claude-code-templatesSkill34ktodayMITA69Claude Code, Codex
model-architecture-rwkvdavila7/claude-code-templatesSkill34ktodayMITA74Claude Code, Codex
kaggle-learnerGalaxy-Dawn/claude-scholarSkill6.1k3d agoMITA69Claude Code
data-science-engineering-foundationmicrosoft/hve-coreSkill1.6k4d agoMITA43Claude Code