
Description
CPU Offloading is an agent skill for validating and using CPU offloading in Megatron Bridge. It explains two separate mechanisms that move data from GPU memory to CPU memory. Activation offloading moves the activations of each transformer layer, and optionally the weights, and it is set through the model.cpu_offloading options. It requires pipeline parallelism to be 1. Optimizer offloading moves the Adam optimizer states, the momentum and the variance, to the CPU through HybridDeviceOptimizer, using the optimizer.optimizer_cpu_offload setting. The skill includes a table comparing the two mechanisms, with their config namespaces, what each one moves and the pipeline-parallel restriction, which applies only to activation offloading. It also has a quick decision section and links to the stable documentation and a structured metadata card. It is for training runs that need to fit in GPU memory by moving part of the state to host memory. The skill is published by nvidia/skills on skills.sh with about 1.8K installs.…
Highlights
- Activation offloading for each transformer layer
- Optimizer state offloading through HybridDeviceOptimizer
- Side-by-side table of the two mechanisms
- Pipeline parallelism must be 1 for activation offloading
- Quick decision section and metadata card
Ratings & Reviews
No ratings yet
Be the first to rate nemo-mbridge-perf-cpu-offloading.
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

nemo-automodel-launcher-config
Configure NeMo AutoModel job launches for interactive runs, Slurm clusters
nemo-mbridge-perf-cpu-offloading FAQ
What is the CPU Offloading skill?
It is an instruction set for an AI coding agent that validates and sets up CPU offloading in Megatron Bridge to free GPU memory.
How do I install it?
Run npx skills add https://github.com/nvidia/skills --skill nemo-mbridge-perf-cpu-offloading in your project.
What is the difference between the two mechanisms?
Activation offloading moves per-layer activations, and optionally weights, to the CPU. Optimizer offloading moves the Adam momentum and variance states.
Does pipeline parallelism work with offloading?
Only for optimizer offloading. The skill says activation offloading requires pipeline parallelism to be 1.
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-cpu-offloading alternatives?
Popular alternatives to nemo-mbridge-perf-cpu-offloading include nemo-mbridge-perf-activation-recompute, nemo-mbridge-recipe-recommender and nemo-mbridge-perf-cuda-graphs. See all nemo-mbridge-perf-cpu-offloading alternatives


