Skip to content

Enable mypy check for distributed.py, and fix type errors#87543

Closed
yhcharles wants to merge 15 commits intogh/yhcharles/3/basefrom
gh/yhcharles/3/head
Closed

Enable mypy check for distributed.py, and fix type errors#87543
yhcharles wants to merge 15 commits intogh/yhcharles/3/basefrom
gh/yhcharles/3/head

Conversation

@yhcharles
Copy link
Contributor

@yhcharles yhcharles commented Oct 22, 2022

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 22, 2022

🔗 Helpful Links

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

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

✅ No Failures

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

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

@pytorch-bot pytorch-bot bot added the release notes: distributed (c10d) release notes category label Oct 22, 2022
@yhcharles yhcharles requested a review from ezyang October 22, 2022 05:32
@yhcharles yhcharles added topic: not user facing topic category better-engineering Relatively self-contained tasks for better engineering contributors labels Oct 22, 2022
yhcharles added a commit that referenced this pull request Oct 22, 2022
yhcharles added a commit that referenced this pull request Oct 24, 2022
find_unused_parameters: bool,
gradient_as_bucket_view: bool,
expect_sparse_gradients: List[bool] = [],
bucket_bytes_cap: int = kDefaultBucketBytesCap,
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of having to hardcode the constant here (where it can diverge), you can use an ellipsis instead

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Thanks! You might want to get someone from distributed to look over too

yhcharles added a commit that referenced this pull request Oct 25, 2022
yhcharles added a commit that referenced this pull request Oct 25, 2022
@yhcharles yhcharles marked this pull request as ready for review October 25, 2022 20:35
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: The following mandatory check(s) failed (Rule Distributed):

Dig deeper by viewing the failures on hud

Details for Dev Infra team Raised by workflow job

yhcharles added a commit that referenced this pull request Oct 26, 2022
yhcharles added a commit that referenced this pull request Oct 26, 2022
@yhcharles
Copy link
Contributor Author

@pytorchmergebot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@yhcharles yhcharles deleted the gh/yhcharles/3/head branch October 27, 2022 01:50
@yhcharles yhcharles restored the gh/yhcharles/3/head branch October 27, 2022 01:52
@weiwangmeta
Copy link
Contributor

@pytorchbot revert -m "breaking internal builds" -c ghfirst

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@yhcharles your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Oct 28, 2022
…7543)"

This reverts commit 2cc624c.

Reverted #87543 on behalf of https://github.com/weiwangmeta due to breaking internal builds
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
@facebook-github-bot facebook-github-bot deleted the gh/yhcharles/3/head branch June 8, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

better-engineering Relatively self-contained tasks for better engineering contributors ciflow/trunk Trigger trunk jobs on your pull request Merged Reverted topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants