Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

转换规则 No. 153 #181

Merged
merged 16 commits into from
Sep 7, 2023
Merged

转换规则 No. 153 #181

merged 16 commits into from
Sep 7, 2023

Conversation

enkilee
Copy link
Contributor

@enkilee enkilee commented Jul 20, 2023

@paddle-bot
Copy link

paddle-bot bot commented Jul 20, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jul 20, 2023
@zhwesky2010
Copy link
Collaborator

PR Docs

PR APIs

paddle.distributed.all_gather_object

需要在PR描述里写上文档PR的链接

@zhwesky2010
Copy link
Collaborator

zhwesky2010 commented Jul 31, 2023

@enkilee 你好,单测没有跑过,因为CI上只有CPU环境无法跑过GPU的环境,可以参考下其他单测这里的写法

@zhwesky2010
Copy link
Collaborator

单测未通过

@luotao1
Copy link
Collaborator

luotao1 commented Aug 18, 2023

@enkilee 敏师傅,记得这里还有单测问题哈

pytorch_code,
["result"],
unsupport=True,
reason="paddle does not support this function temporarily",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上面不是刚实现了 torch.distributed.all_gather_object 吗,这里怎么能写unsupport呢

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    dist.init_process_group("nccl", init_method='tcp://127.0.0.1:23456', rank=1, world_size=3)

这个无法运行

Copy link
Collaborator

@zhwesky2010 zhwesky2010 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/PaddlePaddle/PaConvert/blob/master/paconvert/api_mapping.json#L4022-L4045

这个API也是支持的,为啥转完后,会有 >>> 标记呀,按道理应该全部转写了,使用unsupport=True是不能跑过的

@zhwesky2010
Copy link
Collaborator

https://github.com/PaddlePaddle/PaConvert/blob/master/paconvert/api_mapping.json#L4022-L4045

这个API也是支持的,为啥转完后,会有 >>> 标记呀,按道理应该全部转写了,使用unsupport=True是表示转完后代码里有 >>> 标记的

@enkilee
Copy link
Contributor Author

enkilee commented Aug 29, 2023

收到,立即整改

zhwesky2010
zhwesky2010 previously approved these changes Sep 4, 2023
pytorch_code = textwrap.dedent(
"""
import torch
import torch.distributed as dist
Copy link
Collaborator

@zhwesky2010 zhwesky2010 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI上的环境只有CPU,单测中需要判断下if torch is cuda,不然跑不过

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到

@zhwesky2010 zhwesky2010 merged commit 7ad7c92 into PaddlePaddle:master Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants