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

Fix tcp error with pytorch 1.9.1 #2211

Merged
merged 5 commits into from
Sep 25, 2021
Merged

Fix tcp error with pytorch 1.9.1 #2211

merged 5 commits into from
Sep 25, 2021

Conversation

sdesrozis
Copy link
Contributor

Fixes #2210

Description:

It seems that using PyTorch 1.9.1, tcp port should have the same value than master_port. Default is 29500.

Check list:

  • New tests are added (if a new feature is added)
  • New doc strings: description and/or example code are in RST format
  • Documentation is updated (if required)

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Sep 24, 2021

@sdesrozis can you provide please a link to the docs or code about that ?

@sdesrozis
Copy link
Contributor Author

@sdesrozis can you provide please a link to the docs or code about that ?

That's what I experimented. From now, default env variables are set by torch.distributed.run

'MASTER_ADDR': '127.0.0.1', 'MASTER_PORT': '29500'

@vfdev-5
Copy link
Collaborator

vfdev-5 commented Sep 24, 2021

OK, I see your point.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

LGTM!

Can you send another PR to fix another CI issue ?

By the way, in the fixed test we are using torch.distributed.launch and not torch.distributed.run. Should we update that as well ?

@sdesrozis
Copy link
Contributor Author

Can you send another PR to fix another CI issue ?

I'm on it.

By the way, in the fixed test we are using torch.distributed.launch and not torch.distributed.run. Should we update that as well ?

I will explore but launch uses run so, it seems more or less the same. I check the differences in details though.

@sdesrozis
Copy link
Contributor Author

Ouch I tried using PyTorch 1.8.1 1.9.0 and 1.9.1 but nightly does a ValueError assertion. I will fix and add a comment.

@sdesrozis sdesrozis requested a review from vfdev-5 September 25, 2021 06:29
@vfdev-5 vfdev-5 merged commit 4c76ef8 into pytorch:master Sep 25, 2021
@vfdev-5
Copy link
Collaborator

vfdev-5 commented Sep 25, 2021

We had to also update circle ci but there is no yet 1.9.1 docker images

@vfdev-5 vfdev-5 mentioned this pull request Sep 27, 2021
3 tasks
@vfdev-5 vfdev-5 deleted the fix_tcp branch October 21, 2021 20:04
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.

Fix failing CI on stable v1.9.1 pytorch
2 participants