pointer-generator icon indicating copy to clipboard operation
pointer-generator copied to clipboard

Question about length of document and summary

Open jiangix01 opened this issue 9 years ago • 2 comments

Thanks sharing the awesome implementation.

When I try to increase the length of document and summary from 400,100 to 800,200. It has an error 'Resource exhausted: OOM when allocating tensor'. The memory of gpu is 12GB. How can I deal with it?

Thanks a lot.

jiangix01 avatar Oct 09 '17 02:10 jiangix01

i was able to train a model with 1000/200 max enc/dec steps on a GPU with 24GB RAM (though NOT using CNN/DM data). you can try reduce the embedding & hidden dimensions, and/or a smaller batch size that fits your GPU.

egez avatar Oct 11 '17 07:10 egez

Thanks for your reply. I don't have a good knowledge of tensorflow. And I want to know how does the model run out of the memory of gpu. In fact ,when i set the value of batch_size as '1', the 4000/1000 enc/dec steps also hava an error. Additionally, Thanks for your help very much. And i want to use tensorboard to view memory usage. Should I modify the code for the purpose.

jiangix01 avatar Oct 11 '17 09:10 jiangix01