
nemo-mbridge-perf-cuda-graphs
Validate and use CUDA graph capture in Megatron Bridge
by nvidiaFree
Description
CUDA Graphs is an agent skill for validating and using CUDA graph capture in Megatron Bridge. CUDA graphs capture GPU operations once and replay them with minimal host-driver overhead. Bridge supports two implementations, selected with the cuda_graph_impl setting. The local option wraps the entire forward and backward pass in the MCore FullCudaGraphWrapper, with the full_iteration scope. The transformer_engine option calls Transformer Engine's make_graphed_callables() for each layer, and its scopes are attn, mlp, moe, moe_router, moe_preprocess and mamba. The skill includes a table of the two mechanisms, with their scope support, and a quick decision section. It points to the stable documentation for CUDA graphs and to a structured metadata card for the feature. It is for Megatron Bridge training runs that want to use graph capture. The skill is published by nvidia/skills on skills.sh with about 1.9K installs and passes all three of its security audits.…
Highlights
- Local full-iteration graphs through FullCudaGraphWrapper
- Transformer Engine graphs per layer with scoped capture
- Scopes for attention, MLP, MoE and Mamba
- Table comparing the two implementations
- Quick decision section and metadata card
Ratings & Reviews
No ratings yet
Be the first to rate nemo-mbridge-perf-cuda-graphs.
People also visit

nemo-mbridge-perf-activation-recompute
Validate and use selective and full activation recompute in Megatron Bridge

nemo-mbridge-recipe-recommender
Recommend and customize Megatron Bridge library and benchmark recipes

nemo-mbridge-perf-expert-parallel-overlap
Validate and use MoE expert-parallel communication overlap in Megatron-Bridge

physical-ai-infrastructure-setup-and-resilient-scaling
Set up, scale, validate, or harden NVIDIA physical AI infrastructure
nemo-mbridge-perf-cuda-graphs FAQ
What is the CUDA Graphs skill?
It is an instruction set for an AI coding agent that validates and sets up CUDA graph capture in Megatron Bridge.
How do I install it?
Run npx skills add https://github.com/nvidia/skills --skill nemo-mbridge-perf-cuda-graphs in your project.
What is the difference between the two implementations?
The local option captures the whole forward and backward pass. The transformer_engine option captures scoped regions per layer with make_graphed_callables().
Which scopes can the Transformer Engine option use?
attn, mlp, moe, moe_router, moe_preprocess and mamba, as listed in the skill.
Does the skill pass its security audits?
Yes. On skills.sh the audits show Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best nemo-mbridge-perf-cuda-graphs alternatives?
Popular alternatives to nemo-mbridge-perf-cuda-graphs include nemo-mbridge-perf-activation-recompute, nemo-mbridge-perf-cpu-offloading and nemo-mbridge-recipe-recommender. See all nemo-mbridge-perf-cuda-graphs alternatives