Paddle
Paddle copied to clipboard
设置trainer_count > 2时报错
用非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.:

是否可以贴下运行的top情况。 另,目前batch_size是多少?报错与内存有关,可以将batch_size改小测试下。
batch_size已经从10000逐渐改到100了,还是没用,由于paddle是在docker中运行的,但是启动docker时没有用-m指定内存大小,所以docker可用内存应该就是top中剩余的机器内存。
经确认,出现上述问题时使用的是6月前版本的Paddle,目前版本无该问题。