Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

fluid1.5 fleet.init 调用失败

Open sshilei opened this issue 7 years ago • 12 comments

按照这个wiki写的程序, http://wiki.baidu.com/pages/viewpage.action?pageId=730430867

import paddle.fluid.incubate.fleet.collective as fleet fleet.init()

Traceback (most recent call last): File "/home/map/rd/wushilei/code/paddle-frame/baidu/mapsearch/paddle-frame/frame/scheduler/../..//frame/core/gpu_dataset_trainer.py", line 33, in fleet.init() AttributeError: 'module' object has no attribute 'init'

sshilei avatar Jul 26 '19 03:07 sshilei

@wangguibao 找同学看下吧

Superjomn avatar Jul 26 '19 04:07 Superjomn

参考https://github.com/PaddlePaddle/Fleet给出的quick start示例,另外请使用最新的develop,我们会在1.5.2发布一些新feature

guru4elephant avatar Jul 26 '19 04:07 guru4elephant

import部分该用下面的语句: from paddle.fluid.incubate.fleet.collective import fleet 具体可参考:http://wiki.baidu.com/display/PDLPDL/ResNet50+on+ImageNet @sshilei

sandyhouse avatar Jul 26 '19 04:07 sandyhouse

另外请使用最新的develop,我们会在1.5.2发布一些新feature

谢谢各位。

请问1.5.2的新feature有wiki或者参考文档吗? develop版从哪里下载?谢谢

sshilei avatar Jul 26 '19 05:07 sshilei

@guru4elephant

sshilei avatar Jul 26 '19 05:07 sshilei

quick start 中 : 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'

sshilei avatar Jul 26 '19 05:07 sshilei

https://github.com/PaddlePaddle/Fleet/blob/develop/examples/quick-start/collective_train.py

sshilei avatar Jul 26 '19 05:07 sshilei

单机多卡的role_maker应该怎么写呢?wiki上的也不太适合。暂时没有找到。谢谢

sshilei avatar Jul 26 '19 05:07 sshilei

develop版下载路径可参考:https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/Tables.html/#ciwhls。 另外你用的哪个版本的paddle @sshilei

sandyhouse avatar Jul 26 '19 05:07 sandyhouse

我用的是fluid 1.5.1 cuda9-cudnn7-mkl

sshilei avatar Jul 26 '19 05:07 sshilei

建议通过launch.py 启动多进程模式。

sandyhouse avatar Jul 26 '19 09: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 Jul 27 '20 09:07 paddle-bot-old