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

[minor] OSS: bring DDP in the benchmark #130

Merged
merged 7 commits into from
Oct 9, 2020
Merged

Conversation

blefaudeux
Copy link
Contributor

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos, doc improvements)
  • Did you read the contributor guideline?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

A suggestion from @msbaines on another PR made me think of that, the benchmark job that we had was not using DDP so not super realistic. The fake pictures were also the same on each rank, which prevents catching some sync issues, fixing that

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2020
@blefaudeux
Copy link
Contributor Author

(the values in the benchmark regression test will need to be updated, that's expected. The current commit will fail because of that)

Copy link
Contributor

@min-xu-ai min-xu-ai left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -91,6 +94,7 @@ def train(
optimizer = ddp.optimizer
model = ddp
else:
model = DDP(model, device_ids=[rank])
Copy link
Contributor

Choose a reason for hiding this comment

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

should we toggle find_unused_parameters to True/False and see its impacts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ahh, good point ! it was not yet up for review actually, looks like there's something wrong with SDP, looking into that :) I'll test this option

Copy link
Contributor

Choose a reason for hiding this comment

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

oops, sorry, didn't notice that! :-)

@blefaudeux blefaudeux marked this pull request as draft October 8, 2020 21:07
@blefaudeux
Copy link
Contributor Author

looks like something is wrong in SDP depending on the world size, and this benchmark change exposed that

@blefaudeux blefaudeux marked this pull request as ready for review October 9, 2020 04:39
@blefaudeux blefaudeux merged commit bfd88ca into master Oct 9, 2020
@blefaudeux blefaudeux deleted the oss_realistic_bench branch October 9, 2020 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants