logancyang / loss-landscape-anim

Create animations for the optimization trajectory of neural nets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[CUDA out of memory] ResNet18 & Cifar100

lhchau opened this issue · comments

Hi logancyang, I have successfully run your code using ResNet18 on Cifar100 with bs=16, epochs=200. However, during the 4th epoch, the GPU VRAM overflowed. Upon reviewing the code, I found that this line is causing the GPU RAM to accumulate at each step. Do you have a solution for this problem?

flat_w = self.get_flat_params()

hi @lhchau, thanks for checking this out. This project is not actively maintained at the moment, but feel free to make your own fork if you have time to implement a solution.

I also had the same issue. any solution @lhchau