BERT4Rec-VAE-Pytorch icon indicating copy to clipboard operation
BERT4Rec-VAE-Pytorch copied to clipboard

Out of Memory CUDA Error with Increased Data Size in BERT4Rec

Open tina9309 opened this issue 1 year ago • 0 comments

I initially tested the functionality with one day’s worth of my custom data, and successfully trained and evaluated BERT4Rec without any issues. However, when I tried to input a week’s worth of data for additional training, I encountered an out of memory CUDA error.

By reducing the 'bert_max_len' and 'batch size' in the 'templates.py' file, I managed to get it to work, but I do not understand why the increase in data size would cause an out of memory error.

Is there a part of the code where the increased data size might be impacting memory usage? If so, could you point out where this might be occurring?

Thank you for your assistance.

tina9309 avatar Jun 10 '24 09:06 tina9309