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

[LAUNCH] no endpoints env in dynamic mode #54636

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

kuizhiqing
Copy link
Member

@kuizhiqing kuizhiqing commented Jun 14, 2023

PR types

Others

PR changes

Others

Description

No need to set PADDLE_TRAINER_ENDPOINTS env in dynamic mode.

Pcard-71953

@paddle-bot
Copy link

paddle-bot bot commented Jun 14, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Comment on lines -284 to -288
if self.worker_num() == 1:
# if worker_num is 1, should construct default topology & hcg
self._topology = tp.CommunicateTopology()
self._hcg = tp.HybridCommunicateGroup(self._topology)
return
Copy link
Contributor

@LiYuRio LiYuRio Jun 19, 2023

Choose a reason for hiding this comment

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

这里以后可以用get_world_size代替worker_num,这样创建全局通信组的逻辑就可以保留了,避免有人真的依赖这段逻辑,虽然看着并没有什么用

Copy link
Contributor

@LiYuRio LiYuRio left a comment

Choose a reason for hiding this comment

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

LGTM

@LiYuRio LiYuRio merged commit cf515d9 into PaddlePaddle:develop Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants