NVIDIA-NeMoNVIDIA-NeMoOfficialΒ·53 Agent Skills Included

Megatron-Bridge

Train and convert large AI models across GPU clusters

Converts Hugging Face models into Megatron-Core format and runs pretraining, fine-tuning, and LoRA on NVIDIA GPU clusters. Covers parallelism sizing, MoE tuning, memory fixes, Slurm multi-node launches, and checkpoint round-trip verification. Guides AI agents through adding new models, debugging training failures, and validating performance with measured evidence.
npx skills add NVIDIA-NeMo/Megatron-Bridge --all -g -y
Available:

Instructs the AI agent to always load the relevant SKILL.md before answering, follow a strict read-then-invoke-then-implement workflow, and respect boundaries like never editing the Megatron-LM submodule or committing secrets.

All Skills in This Repository (53)

Pure Emerald Level Indicators
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-sequence-packing

Configure PackedSequenceSpecs for sequence packing in model training.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-moe-vlm-training

Guide MoE vision-language model training with parallelism strategy comparisons.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-activation-recompute

Recompute transformer activations to reduce GPU memory usage during training.

Official
Intermediate
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-moe-dispatcher-selection

Select optimal MoE token dispatchers based on hardware and model size.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-moe-optimization-workflow

Optimize MoE model training throughput by addressing memory, communication, and compute bottlenecks.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

adding-model-support

Add language or multimodal models to Megatron-Bridge via config analysis and custom weight mapping.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-parallelism-strategies

Select and configure parallelism strategies for large-scale model training in Megatron Bridge.

Official
Advanced
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-tp-dp-comm-overlap

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

Official
Intermediate
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

linting-and-formatting

Enforce Python and shell script style rules with ruff, isort, and pre-commit.

Official
Intermediate
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

cicd

Diagnose CI/CD failures by locating logs and detecting failure patterns.

Official
Intermediate
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

testing

Organize, execute, and manage unit and functional tests for Megatron Bridge.

Official
Basic
πŸ“¦ In Repo
NVIDIA-NeMoNVIDIA-NeMo

perf-expert-parallel-overlap

Validates and tunes expert-parallel communication overlap for Megatron-Bridge MoE training on GPU clusters.

Official
Intermediate

Frequently Asked Questions

FAQPage Schema
How to install Megatron-Bridge?β–Ό

Run `npx skills add NVIDIA-NeMo/Megatron-Bridge --all -g -y` in your terminal to install all skills in this suite globally.

What does Megatron-Bridge do?β–Ό

It converts Hugging Face model checkpoints into NVIDIA Megatron-Core format and back, then runs pretraining, SFT, and LoRA fine-tuning at large GPU scale. The skills guide agents through conversion, training, and performance tuning.

How to fix GPU out-of-memory errors in Megatron training?β–Ό

The memory tuning skill recommends setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True first, since most OOMs come from fragmentation, not capacity. Further skills cover activation recompute, CPU offloading, and parallelism resizing.

How to scale training across multiple nodes with Slurm?β–Ό

The multi-node Slurm skill converts single-node scripts into sbatch jobs using the srun-native launch pattern, with shared filesystem paths and NCCL timeout debugging steps. Megatron-Bridge derives rank and world size from Slurm variables automatically.

Does Megatron-Bridge work with Claude Code and other AI agents?β–Ό

Yes. The AGENTS.md orchestrator and SKILL.md files follow the open agent-skills standard, so Claude Code, Codex, and compatible agents can load the right guide for each training or conversion task.

Related Repositories in Software Engineering

View All in Software Engineering→