-
Notifications
You must be signed in to change notification settings - Fork 24.2k
[torchrun] Fix: Use Correctly Reachable Host Address in c10d Rendezvous #150533
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150533
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 62a8416 with merge base 0da8127 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Signed-off-by: kuizhiqing <kuizhiqing@msn.com>
4fc1b4f
to
b475f96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improving torchelastic so we don't depend on DNS would be very nice -- but it needs some careful consideration to avoid breaking existing use cases
Signed-off-by: kuizhiqing <kuizhiqing@msn.com>
Fixes #150532
In this PR, we replace
socket.getfqdn()
withsocket.gethostbyname(socket.getfqdn())
, ensuring that an IP address is used instead of a potentially unresolvable hostname.Anyway, using an IP is more reliable than a hostname in this case.
cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o