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

[FSDP] Speed up first iter order check (part 2) #96220

Closed
wants to merge 1 commit into from

Conversation

awgu
Copy link
Contributor

@awgu awgu commented Mar 7, 2023

Stack from ghstack (oldest at bottom):

For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move world_indices.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 7, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 9e5e63b:
💚 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 (fsdp) release notes category label Mar 7, 2023
awgu added a commit that referenced this pull request Mar 7, 2023
ghstack-source-id: 93b4438a618eb6a6102a3d12f90516decdd7cf9f
Pull Request resolved: #96220
@awgu awgu added topic: improvements topic category ciflow/trunk Trigger trunk jobs on your pull request labels Mar 7, 2023
@awgu awgu marked this pull request as ready for review March 7, 2023 21:30
@awgu
Copy link
Contributor Author

awgu commented Mar 7, 2023

@pytorchbot 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

cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch/pytorch#96220
Approved by: https://github.com/zhaojuanmao
cyyever pushed a commit to cyyever/pytorch_private that referenced this pull request Mar 12, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch/pytorch#96220
Approved by: https://github.com/zhaojuanmao
ydwu4 added a commit to ydwu4/pytorch that referenced this pull request Mar 13, 2023
For a tensor on GPU, moving it once to CPU and operating on it on CPU is faster than moving it element by element from CPU to GPU. This is a follow-up to also move `world_indices`.
Pull Request resolved: pytorch#96220
Approved by: https://github.com/zhaojuanmao
@facebook-github-bot facebook-github-bot deleted the gh/awgu/343/head branch June 8, 2023 15:36
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.

3 participants