Skip to content
N

nemo-mbridge-perf-memory-tuning

Techniques for reducing peak GPU memory in Megatron Bridge

by nvidiaFree

#4885in AI Skills
0In stores

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…

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

N

nemo-mbridge-perf-activation-recompute

Validate and use selective and full activation recompute in Megatron Bridge

AI Skills
Get
N

nemo-mbridge-perf-cuda-graphs

Validate and use CUDA graph capture in Megatron Bridge

AI Skills
Get
N

nemo-mbridge-perf-cpu-offloading

Validate and use CPU offloading in Megatron Bridge

AI Skills
Get
N

nemo-mbridge-perf-parallelism-strategies

Operational guide

AI Skills
Get
N

nemo-mbridge-perf-megatron-fsdp

Operational guide for enabling Megatron FSDP in Megatron-Bridge

AI Skills
Get
N

nemo-mbridge-perf-tp-dp-comm-overlap

Operational guide for enabling TP, DP

AI Skills
Get

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

Developer Stuff

Badges