
nemo-mbridge-perf-memory-tuning
Techniques for reducing peak GPU memory in Megatron Bridge
by nvidiaFree
Description
Memory Tuning is an agent skill with techniques for reducing peak GPU memory in Megatron Bridge. Its first and most effective fix is to set PYTORCH_CUDA_ALLOC_CONF to expandable_segments:True. GPU out-of-memory failures often come from memory fragmentation rather than a lack of raw capacity, because PyTorch's default CUDA allocator can leave unusable gaps between allocations. Expandable segments are non-fixed-size memory segments, which the skill says greatly reduces fragmentation and often clears a borderline out-of-memory error without any change to the model or the parallelism. The skill's wider list of techniques covers PEFT with sequence-parallel input re-gather, resizing parallelism, activation recompute and CPU offloading. It points to stable documentation on parallelisms and to a structured metadata card for the feature. It is published by nvidia/skills on skills.sh with about 1.9K installs and passes all three of its security audits.…
Highlights
- Expandable CUDA segments as the first fix for OOM
- Explains allocator fragmentation in plain terms
- Often clears borderline OOM without model changes
- Covers parallelism resizing and activation recompute
- Points to parallelism docs and a metadata card
Ratings & Reviews
No ratings yet
Be the first to rate nemo-mbridge-perf-memory-tuning.
People also visit
nemo-mbridge-perf-memory-tuning FAQ
What is the Memory Tuning skill?
It is an instruction set for an AI coding agent with techniques for lowering peak GPU memory in Megatron Bridge training.
How do I install it?
Run npx skills add https://github.com/nvidia/skills --skill nemo-mbridge-perf-memory-tuning in your project.
What is the first thing to try?
Export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True. The skill says this often removes a borderline out-of-memory error without other changes.
Why does memory run out when capacity looks fine?
The skill explains that the default CUDA allocator can leave unusable gaps between allocations, which is fragmentation.
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-memory-tuning alternatives?
Popular alternatives to nemo-mbridge-perf-memory-tuning include nemo-mbridge-perf-activation-recompute, nemo-mbridge-perf-cuda-graphs and nemo-mbridge-perf-cpu-offloading. See all nemo-mbridge-perf-memory-tuning alternatives

