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

[Tools] use torchrun instead of torch.distributed.launch #6304

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

9rum
Copy link
Contributor

@9rum 9rum commented Sep 9, 2023

Description

This PR fixes future warning from torch.distributed.launch (discussed in issue #5493) with minor fix typo.

The torch.distributed.launch module is deprecated and it always prints FutureWarning: The module torch.distributed.launch is deprecated and will be removed in future. Use torchrun..

Note that the typo issue from --local-rank argument is already fixed.

Changes

  • Use torchrun instead of torch.distributed.launch: The aforementioned deprecation warning is eliminated.
  • Fix typo in cleanup_proc: cleanup_proc no longer prints misspelled message.

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 9, 2023

Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:

  • @dgl-bot

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 9, 2023

Commit ID: 6296047

Build ID: 1

Status: ❌ CI test failed in Stage [Authentication].

Report path: link

Full logs path: link

@9rum
Copy link
Contributor Author

9rum commented Sep 9, 2023

@Rhett-Ying I kindly ask to review this pull request.

@Rhett-Ying
Copy link
Collaborator

@dgl-bot

@Rhett-Ying
Copy link
Collaborator

@9rum Thanks for filing this PR. have your verified in your local?

@Rhett-Ying
Copy link
Collaborator

please update test cases like

"python3.7 -m torch.distributed.launch "

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 10, 2023

Commit ID: 6296047

Build ID: 2

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 10, 2023

Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:

  • @dgl-bot

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 10, 2023

Commit ID: d3bbfa8

Build ID: 3

Status: ❌ CI test failed in Stage [Authentication].

Report path: link

Full logs path: link

@9rum
Copy link
Contributor Author

9rum commented Sep 10, 2023

@Rhett-Ying Thanks for your kind reply.
The test cases are updated. Test result is as follows:

......
----------------------------------------------------------------------
Ran 6 tests in 0.000s

OK

In addition to the above unit test, I have confirmed that the changes work well with the official distributed GraphSAGE training example.

@Rhett-Ying
Copy link
Collaborator

@dgl-bot

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 11, 2023

Commit ID: d3bbfa8

Build ID: 4

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link

@9rum 9rum changed the title [Tools] use torchrun instead of torch.distributed.launch (#5493) [Tools] use torchrun instead of torch.distributed.launch Sep 11, 2023
@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 11, 2023

Not authorized to trigger CI. Please ask core developer to help trigger via issuing comment:

  • @dgl-bot

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 11, 2023

Commit ID: 3b5a17dfc8eb47e92bf2399ec696bf5e0b15cbe6

Build ID: 5

Status: ❌ CI test failed in Stage [Authentication].

Report path: link

Full logs path: link

@Rhett-Ying
Copy link
Collaborator

@dgl-bot

Copy link
Collaborator

@Rhett-Ying Rhett-Ying left a comment

Choose a reason for hiding this comment

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

LGTM

@dgl-bot
Copy link
Collaborator

dgl-bot commented Sep 11, 2023

Commit ID: eae87fa7bda37d950d0048f535ee5662c0e62b2d

Build ID: 6

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link

@Rhett-Ying Rhett-Ying merged commit a49ec9e into dmlc:master Sep 11, 2023
2 checks passed
peizhou001 pushed a commit to peizhou001/dgl that referenced this pull request Nov 27, 2023
DominikaJedynak pushed a commit to DominikaJedynak/dgl that referenced this pull request Mar 12, 2024
This pull request was closed.
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.

3 participants