Gpu is almost not being used while training but data and model are on device

Yes, I tried it but nothing helps, I don’t know why it’s not working. I will try more things hopefully one day it will work. Thank you so much for your time.

I found out what was the problem it was the DataLoader when I pass the full dataset to model it works fine. When I loop through DataLoder it is very slow, and it is not using the GPU. Please does anyone know why is the DataLoader so slow and not using GPU??

1 Like

I’m having similar issues where the GPU is unutilized.

1 Like