Skip to content

Conversation

@awgu
Copy link
Collaborator

@awgu awgu commented Jan 11, 2023

Stack from ghstack:

Closes #90541.

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 11, 2023

🔗 Helpful Links

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

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

✅ No Failures

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

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

cpu_device = torch.device("cpu")
if self._offload_params:
p_assert(
flat_param.device == cpu_device,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We simplify this assert message because it is an internal assert. Accidentally moving the model to GPU after FSDP constructor will be caught before in _check_flat_params_on_expected_device().

@awgu awgu marked this pull request as ready for review January 12, 2023 00:16
@awgu awgu added the topic: improvements topic category label Jan 12, 2023
@awgu awgu added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 12, 2023
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 Merged release notes: distributed (fsdp) release notes category topic: improvements topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants