GitHub
  
  
    

jacobkimmel/pytorch_modelsize 2

Estimates the size of a PyTorch model in memory. Contribute to jacobkimmel/pytorch_modelsize development by creating an account on GitHub.


  
  
    
    
  
  


Let us use this to get the model size because if batch size is 1 and still you run into the issue, it is bad. Also, most likely you should be able to run training for a few iterations and then get OOM becuase you are also putting val set onto GPU along with the train. But first thing would be to test the model size