Interview practice question
PyTorch training isn't using the GPU
Machine Learning · ML Frameworks · Beginner
Your PyTorch training is very slow, and nvidia-smi shows the GPU at 0 percent. What do you check?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- torch.cuda.is_available() and correct CUDA build installed.
- Model and tensors moved to device.
- Data loading bottleneck (num_workers).
- Batch size too small.
- Running on wrong machine/container without GPU access.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.