Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

设置trainer_count > 2时报错

Open buptwds opened this issue 9 years ago • 3 comments

用非cpu的latest版本的paddle,模型用的是models里的ctr,想要提高训练速度,trainer_count=1和trainer_count=2都可以跑,trainer_count > 2时报错,看错误好像是内存不足,但是top查看内存还剩挺多,错误如下BLAS : Program is Terminated. Because you tried to allocate too many memory regions.: image

buptwds avatar Oct 26 '17 10:10 buptwds

是否可以贴下运行的top情况。 另,目前batch_size是多少?报错与内存有关,可以将batch_size改小测试下。

ranqiu92 avatar Oct 31 '17 05:10 ranqiu92

image batch_size已经从10000逐渐改到100了,还是没用,由于paddle是在docker中运行的,但是启动docker时没有用-m指定内存大小,所以docker可用内存应该就是top中剩余的机器内存。

buptwds avatar Oct 31 '17 07:10 buptwds

经确认,出现上述问题时使用的是6月前版本的Paddle,目前版本无该问题。

ranqiu92 avatar Oct 31 '17 08:10 ranqiu92