Torch: not enough memory

I am trying to run code on a gpu instance(vectordash) and on the very first batch, i get the following error

$ Torch: not enough memory: you tried to allocate 0GB. Buy new RAM! at /pytorch/aten/src/TH/THGeneral.c:218

I have looked at all possible resources on the web but couldn’t figure out why this might be happening. Any help will be appreciated.

Torch seems to be failing to allocate memory on the CPU side. Are you running out of RAM when running your code?

Hello,I also encountered the same problem.Have you found a solution?