Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

1.5.1 fleet使用,quick start有两个问题

Open sshilei opened this issue 7 years ago • 5 comments

Quick Start中 https://github.com/PaddlePaddle/Fleet/tree/develop/examples/quick-start

(1) Collective Training中,执行报错 role = role_maker.PaddleCloudRoleMaker(is_collective=True) fleet.init(role) 报错 File "/home/map/rd/wushilei/code/paddle-frame/baidu/mapsearch/paddle-frame/frame/scheduler/../..//frame/core/gpu_dataset_trainer.py", line 163, in ret = trainer.start(sys.argv) File "/home/map/rd/wushilei/code/paddle-frame/baidu/mapsearch/paddle-frame/frame/scheduler/../..//frame/core/gpu_dataset_trainer.py", line 151, in start self.set_optimizer(FLAGS, net_output) File "/home/map/rd/wushilei/code/paddle-frame/baidu/mapsearch/paddle-frame/frame/scheduler/../..//frame/core/gpu_dataset_trainer.py", line 119, in set_optimizer role = role_maker.PaddleCloudRoleMaker(is_collective=True) TypeError: init() got an unexpected keyword argument 'is_collective'

(2) Parameter Server Training 启动多进程的, paddle.distributed.launch_ps 对应的 launch_ps在代码里面没有找到,这个是paddlecloud专用的吗?

sshilei avatar Jul 31 '19 05:07 sshilei

你用的是那个版本的paddle? @sshilei paddle.distributed.lanuch_ps目前在develop分支里面才有。 PaddleCloudRoleMaker的is_collective参数也是在develop分支里面才有的。

sandyhouse avatar Jul 31 '19 05:07 sandyhouse

我用的是fluid 1.5.1 cuda9-cudnn7-mkl

sshilei avatar Jul 31 '19 06:07 sshilei

paddlepaddle_gpu-1.5.1-cp27-cp27mu-linux_x86_64.whl

https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/Tables.html/#ciwhls%E3%80%82

sshilei avatar Jul 31 '19 06:07 sshilei

如果按照上面的用法,无法直接在1.5版本使用,建议使用develop分支。

sandyhouse avatar Jul 31 '19 06:07 sandyhouse

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 Aug 03 '20 09:08 paddle-bot-old