Skip to content

Conversation

@rohan-varma
Copy link
Contributor

@rohan-varma rohan-varma commented Oct 5, 2022

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 5, 2022

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/86336

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit bdd5056:
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Oct 5, 2022
Prefer raising an error over `assert` which should mostly to indicate a developer bug, but user can cause this error path.

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Oct 5, 2022
ghstack-source-id: 07e6f16
Pull Request resolved: #86336
Copy link
Collaborator

@awgu awgu left a comment

Choose a reason for hiding this comment

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

LGTM!

assert self._is_root, "`no_sync()` on inner FSDP instances is not supported"
if not self._is_root:
raise RuntimeError(
"`no_sync()` on inner FSDP instances is not supported. Please call `no_sync()` on root FSDP module."
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: In case you are okay with re-pushing:

Suggested change
"`no_sync()` on inner FSDP instances is not supported. Please call `no_sync()` on root FSDP module."
"`no_sync()` on inner FSDP instances is not supported. Please call `no_sync()` on the root FSDP module."

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 5, 2022
Prefer raising an error over `assert` which should mostly to indicate a developer bug, but user can cause this error path.

[ghstack-poisoned]
facebook-github-bot pushed a commit that referenced this pull request Oct 7, 2022
Summary:
Prefer raising an error over `assert` which should mostly to indicate a developer bug, but user can cause this error path.

Pull Request resolved: #86336
Approved by: https://github.com/awgu

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/adfd8f382331adbf9cbfa14039ef3b61f2f4e10c

Reviewed By: seemethere

Differential Revision: D40167182

Pulled By: rohan-varma

fbshipit-source-id: 3406bfb1effd4d221644cb5a1f7bb0a19ee8086b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request cla signed oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (sharded) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants