r/MachineLearning • u/Ok_Construction_3021 • Mar 12 '26
Discussion [D] How to increase/optimize for gpu utilization while doing model training?

So, I've been pretraining a deep learning model specifically the zipformer model. Now, I've optimized my configs a lot to ensure full gpu utilization. Using WebDataset to pack my datasets. Using the proper number of workers to load data etc. In Windows Task Manager it shows my GPU is at 100% util consistently but Wandb shows this? How to find bottlenecks and optimize for them? What can be potential issues?
16
Upvotes
13
u/Stormzrift Mar 12 '26
Looks like GPU isn’t getting data fast enough so it’s only active in spurts. Either mess with training loader or increase batch size
2
u/koolaidman123 Researcher Mar 13 '26
Dont look at gpu util look at mfu
2
u/Repulsive_Tart3669 Mar 13 '26
Take systematic approach:
Then, you can profile individual components, such as forward pass, loss computation, backward pass, weights updates, telemetry logging if done in-process, etc.
2
u/SlayahhEUW Researcher Mar 14 '26
Note that both Task manager and nvidia-smi only look at single GPU SM utilization when reporting their numbers. This is a bit silly but you can verify it by launching a persistent workload on a single SM grid like <1,1,1>, you will still have 100% utilization. So beyond the graph above (fixing your data loading by pinning memory, avoiding GPU compute graph breaks like printing, .item(), or other random CPU calls in the GPU workflow) you should check the utilization with a profiler like NCU.
-4
u/suoinguon Mar 12 '26
This is becoming an even bigger headache for non-US operators soon. The Dept of Commerce just test-drove 'GAILF' (Global AI Infrastructure Licensing Framework).
For clusters > 1,000 units, you're not just looking at utilization bottlenecks, but mandatory pre-clearance and US Gov physical audits/site visit consent in the lease agreements.
If you're operating outside the US/G7, compliance-first architecture (identity attribution, auditable cloud controls) is becoming the roadmap.
Deep dive on the framework here: https://computestatecraft.com/maps/2026/03/global-ai-infrastructure-licensing-framework-us-gatekeeper