Asked about PyTorch in practice

Your GPU utilisation is 20 percent during training. What is wrong?

An answer that works

Almost certainly data loading, not the model. Raise num_workers, enable pin_memory, and check for expensive per-item preprocessing that should be precomputed or moved onto the GPU.

Reading an answer is not being able to give one. The section that teaches this is PyTorch in practice, 6 hours of PyTorch.

Learn this properly