Prompt
Why is GPU utilization low during inference?
Latest observation
Oct 31, 2026
OpenAI APIWeb search: off
Low GPU utilization during inference is usually because the GPU is waiting on something else or because the workload is too small / inefficiently batched to keep it busy. Common causes:
1. CPU or input pipeline bottleneck
- Preprocessing, tokenization, image decoding, or data loading is too slow.
- The GPU finishes a step and waits for the next batch.
- Symptoms: high CPU usage, GPU “bursty” activity, low throughput.
2. Small batch size
- Inference is often latency-sensitive, so batch sizes are small.
- Small batches don’t fully saturate GPU compute.
- Very common with single-request or online serving.
3. Frequent synchronization / host-device transfers
- Calling
.item(),.cpu(), printing tensors, or using debugging hooks can force syncs. - Moving data between CPU and GPU too often hurts utilization.
- Excessive PCIe transfers can dominate runtime.
4. Model is memory-bound, not compute-bound
- Some models spend more time on memory access than arithmetic.
- GPU utilization metrics may look low even though the GPU is the main bottleneck.
- Attention-heavy or bandwidth-heavy workloads can show this.
5. Inefficient inference graph / kernels
- Unfused ops, many small kernels, or unsupported operators reduce occupancy.
- Framework overhead can dominate if the model is small or fragmented.
- Using eager mode instead of optimized runtimes can hurt.
6. Model too small
- The model may simply not have enough work to fully occupy the GPU.
- Common with lightweight CNNs, small transformers, or quantized models on large GPUs.
7. Sequential / autoregressive generation
- In LLM decoding, tokens are generated one by one.
- Each step is relatively small, so utilization is often low during decode.
- Prefill may be much higher utilization than token-by-token generation.
8. Multi-GPU / distributed overhead
- Communication can dominate compute.
- If load balancing is poor, some GPUs idle while others work.
9. Power / thermal / clock limits
- GPU may be throttling due to temperature or power caps.
- Utilization can appear low if clocks are reduced or workload is intermittent.
10. Utilization metric is misleading
nvidia-smireports a coarse average over a sampling window.- Short bursts of compute can look like low utilization.
- A GPU can be “busy” but still show low reported utilization.
How to diagnose quickly
- Check CPU usage and data loading time.
- Increase batch size and see if utilization rises.
- Profile with Nsight Systems / PyTorch profiler.
- Measure H2D/D2H transfers and sync points.
- Compare prefill vs decode for LLMs.
- Use optimized inference: TensorRT, torch.compile, ONNX Runtime, fused kernels.
If you want, I can help diagnose your specific case if you share:
- model type,
- batch size,
- framework,
- GPU,
- and whether this is training-like inference, image, or LLM serving.