Question: Retrieve Peak GPU memory usage
patrickvonplaten opened this issue · comments
Hello @fbcotter,
Thanks a lot for the great library!
Do you know how one could retrieve the peak GPU memory usage of a process?
Hi @patrickvonplaten sorry I didn't get a notification about your question! I'm sure you'd have figured something out by now, but if you want it to be access programmatically, you could spin up a monitoring process that queries the gpu state regularly using py3nvml and keeps track of the peaks.
If you just want to see the peaks maybe something like nvtop is better. Or even simpler would be watch -n 0.5 py3smi
(if you have py3nvml installed or watch -n 0.5 nvidia-smi
if you don't)