You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From my understanding the code should be able to finish running. But the memory is not freed successfully and it gives out of memory error after some iterations. I got out of memory error at the 7th iteration with 4 K80.
The code seems to run fine without DataParallelTable, so I guess it should be something about DataParallelTable.
I have what seems to be the exact same issue. I thought I was going crazy; my model trains fine for many iterations, but then when I call clearState, then save the model, then re-start training, I run out of memory.
Unfortunately, I'm not able to replicate it with the code you posted on a Titan X (Pascal) with a higher batch size, but I do see the same symptoms with a model containing custom layers. I've been trying on-and-off for days to see if I can isolate this issue, but haven't had luck yet :(. Any leads or suggestions would be great!
Activity
achalddave commentedon Feb 17, 2017
I have what seems to be the exact same issue. I thought I was going crazy; my model trains fine for many iterations, but then when I call
clearState, then save the model, then re-start training, I run out of memory.Unfortunately, I'm not able to replicate it with the code you posted on a Titan X (Pascal) with a higher batch size, but I do see the same symptoms with a model containing custom layers. I've been trying on-and-off for days to see if I can isolate this issue, but haven't had luck yet :(. Any leads or suggestions would be great!
achalddave commentedon Feb 20, 2017
Update: For me, the issue seems to be with nn.MapTable, and not DataParallellTable. I've filed my issue separately here: torch/nn#1141
Do not call clearState on model while training