Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

机器翻译跑了几个pass后oom

Open ccmeteorljh opened this issue 8 years ago • 2 comments

paddle version 0.14 代码库地址:https://github.com/xuezhong/transformer-nist 注:为了测试单机多机收敛性对比,因此修改原来的单机和多机的optimizer为sgd

if args.local:
		optimizer = fluid.optimizer.SGD(0.003)
		optimizer.minimize(sum_cost)
elif args.sync == False:
                optimizer = fluid.optimizer.SGD(0.003)
		optimizer.minimize(sum_cost)

启动脚本

CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 nohup python -u train.py --src_vocab_fpath ./nist06n/cn_30001.dict --trg_vocab_fpath ./nist06n/en_30001.dict --train_file_pattern './nist06n/train/part-*' --val_file_pattern './nist06n/test/part-*' --batch_size 2046 --use_token_batch True --special_token '_GO' '_EOS' '_UNK' --pass_num=1000 iterations 100 > train_1_1_4_2046.log 2>&1 &

在cloud上跑了14个pass后oom

epoch: 14, batch: 558, sum loss: 204218.937500, avg loss: 6.687809, ppl: 802.561890
epoch: 14, batch: 559, sum loss: 189577.031250, avg loss: 6.507295, ppl: 670.011658
epoch: 14, batch: 560, sum loss: 191532.937500, avg loss: 6.555755, ppl: 703.280029
epoch: 14, batch: 561, sum loss: 192302.375000, avg loss: 6.605832, ppl: 739.394836
========================= OOM INFO =========================
[76328.366538] Task in /186984025.job-e6c5b449e6cf32be-trainer killed as a result of limit of /186984025.job-e6c5b449e6cf32be-trainer
[76328.366541] memory: usage 52428800kB, limit 52428800kB, failcnt 1225754
[76328.366542] memory+swap: usage 52428800kB, limit 9007199254740991kB, failcnt 0
[76328.366544] kmem: usage 0kB, limit 9007199254740991kB, failcnt 0
[76328.366544] Memory cgroup stats for /186984025.job-e6c5b449e6cf32be-trainer: cache:49176KB rss:52379624KB rss_huge:0KB mapped_file:49152KB swap:0KB inactive_anon:49236KB active_anon:21659620KB inactive_file:8KB active_file:12KB unevictable:30719916K

ccmeteorljh avatar Jul 11 '18 03:07 ccmeteorljh

可以hi上详细沟通 能看到机器的内存变化曲线吗

xuezhong avatar Jul 11 '18 04:07 xuezhong

Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot-old avatar May 22 '20 10:05 paddle-bot-old