Skip to content

Conversation

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 6, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 2f96190:

The following jobs have failed:

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 6, 2022
rohan-varma added a commit that referenced this pull request Oct 6, 2022
ghstack-source-id: 8677a06
Pull Request resolved: #86343
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.

Thanks for adding this note!

.. note:
Attempting to run the forward pass of a submodule that is contained in an
FSDP unit is not supported and will result in errors. This is because the
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I think maybe we should converge to just saying FSDP instance (where instance is the technical OOP term).

Suggested change
FSDP unit is not supported and will result in errors. This is because the
FSDP instance is not supported and will result in errors. This is because the

Attempting to run the forward pass of a submodule that is contained in an
FSDP unit is not supported and will result in errors. This is because the
submodule's parameters will be sharded, but it itself is not an FSDP instance,
so its forward pass will not materialize the full parameters appropriately.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: just a suggestion

Suggested change
so its forward pass will not materialize the full parameters appropriately.
so its forward pass will not all-gather the full parameters appropriately.

submodule's parameters will be sharded, but it itself is not an FSDP instance,
so its forward pass will not materialize the full parameters appropriately.
This could potentially happen when attempting to run only the encoder of a
encoder-decoder model, and the encoder is not wrapped in its own FSDP unit. To
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
encoder-decoder model, and the encoder is not wrapped in its own FSDP unit. To
encoder-decoder model, and the encoder is not wrapped in its own FSDP instance. To

so its forward pass will not materialize the full parameters appropriately.
This could potentially happen when attempting to run only the encoder of a
encoder-decoder model, and the encoder is not wrapped in its own FSDP unit. To
resolve this, please wrap the submodule in its own FSDP unit.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
resolve this, please wrap the submodule in its own FSDP unit.
resolve this, please wrap the submodule in its own FSDP instance.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 6, 2022
rohan-varma added a commit that referenced this pull request Oct 6, 2022
ghstack-source-id: 3d14822
Pull Request resolved: #86343
@rohan-varma
Copy link
Contributor Author

failure is unrelated and probably flaky -

TestCommonCUDA.test_noncontiguous_samples_nn_functional_conv_transpose2d_cuda_float32 _
Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/test/test_ops.py", line 468, in test_noncontiguous_samples
    self.assertEqual(actual, expected)
  File "/opt/conda/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 2454, in assertEqual
    assert_equal(
  File "/opt/conda/lib/python3.10/site-packages/torch/testing/_comparison.py", line 1093, in assert_equal
    raise error_metas[0].to_error(msg)
AssertionError: Tensor-likes are not close!

@rohan-varma
Copy link
Contributor Author

@pytorchbot merge -f "Test failure unrelated"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2022

Hey @rohan-varma.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Oct 7, 2022
Summary:
Pull Request resolved: #86343
Approved by: https://github.com/awgu

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

Reviewed By: seemethere

Differential Revision: D40167195

Pulled By: rohan-varma

fbshipit-source-id: 04b71cfa79da0b50a12815ecdda99a139bf4723b
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 Merged 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.

5 participants