Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

【quick start】中训练模型配置use_gpu=1时,训练出core

Open beckett1124 opened this issue 10 years ago • 5 comments

【quick start】中训练模型配置use_gpu=1时,训练出core。 image

beckett1124 avatar Nov 23 '16 05:11 beckett1124

trainer_count * num_devices_in_model (4*1)=4 exceeds number of GPU devices(1)

It looks like you do not have 4 GPU devices. Maybe you can change --trainer_count=4 to the correct number of devices.

@hedaoyuan

gangliao avatar Nov 23 '16 06:11 gangliao

我只选择一个GPU训练模型呢? paddle train
--config=$cfg
--save_dir=./output
--trainer_count=4
--log_period=100
--num_passes=15
--use_gpu=1
--show_parameter_stats_period=100
--test_all_data_in_one_period=1
2>&1 | tee 'train.log'

他为啥依然去计算4个GPU,我如何指定GPU的id或者GPU的数目呢?

beckett1124 avatar Nov 23 '16 06:11 beckett1124

@beckett1124 Please check the end of this doc: http://www.paddlepaddle.org/doc/ui/cmd_argument/use_case.html

It includes all information you need.

gangliao avatar Nov 23 '16 06:11 gangliao

为啥依然去计算4个GPU?

把--trainer_count=4 修改成--trainer_count=1

hedaoyuan avatar Nov 23 '16 06:11 hedaoyuan

嗯,--trainer_count=1 是ok的。

beckett1124 avatar Nov 23 '16 06:11 beckett1124