In nvidia land, `nvidia-smi` is like `top` for your gpus. If you're running compiled CUDA, `nvprof` is very useful. But I'm not sure how much work it would take to profile something like a pytorch model.
https://developer.nvidia.com/blog/cuda-pro-tip-nvprof-your-h...