-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[3/N] Enable 6 fsdp test on Intel GPU #161601
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
Conversation
…aisyden/distributed_s2
…evice arg is None. Revised the _initialized checking in test_store.py and test_c10d_common.py
…aisyden/distributed_s2
…issue when world size is 4
…aisyden/distributed_s2
…aisyden/distributed_s3
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161601
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 8171d24 with merge base 73eb451 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| nn.AdaptiveAvgPool2d(output_size=(1, 1)), | ||
| nn.Flatten(), | ||
| ) | ||
| self.device = torch.cuda.current_device() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.device is unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I found it is unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
|
|
||
|
|
||
| device_type = acc.type if (acc := torch.accelerator.current_accelerator()) else "cpu" | ||
| device_count = torch.accelerator.device_count() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused?
guangyey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
d4l3k
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Rebase failed due to Command |
…aisyden/distributed_s3
|
@pytorchbot merge |
Merge startedYour 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 |
For pytorch#114850, we will port distributed tests to Intel GPU. This PR is created base on PR pytorch#158533 and pytorch#159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR: 1. add allow_xpu=True in instantiate_device_type_tests() if needed. 2. use "torch.accelerator.current_accelerator()" to determine the accelerator backend 3. enabled XPU for some test path Pull Request resolved: pytorch#161601 Approved by: https://github.com/guangyey, https://github.com/d4l3k
For pytorch#114850, we will port distributed tests to Intel GPU. This PR is created base on PR pytorch#158533 and pytorch#159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR: 1. add allow_xpu=True in instantiate_device_type_tests() if needed. 2. use "torch.accelerator.current_accelerator()" to determine the accelerator backend 3. enabled XPU for some test path Pull Request resolved: pytorch#161601 Approved by: https://github.com/guangyey, https://github.com/d4l3k
For pytorch#114850, we will port distributed tests to Intel GPU. This PR is created base on PR pytorch#158533 and pytorch#159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR: 1. add allow_xpu=True in instantiate_device_type_tests() if needed. 2. use "torch.accelerator.current_accelerator()" to determine the accelerator backend 3. enabled XPU for some test path Pull Request resolved: pytorch#161601 Approved by: https://github.com/guangyey, https://github.com/d4l3k
For pytorch#114850, we will port distributed tests to Intel GPU. This PR is created base on PR pytorch#158533 and pytorch#159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR: 1. add allow_xpu=True in instantiate_device_type_tests() if needed. 2. use "torch.accelerator.current_accelerator()" to determine the accelerator backend 3. enabled XPU for some test path Pull Request resolved: pytorch#161601 Approved by: https://github.com/guangyey, https://github.com/d4l3k
For pytorch#114850, we will port distributed tests to Intel GPU. This PR is created base on PR pytorch#158533 and pytorch#159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR: 1. add allow_xpu=True in instantiate_device_type_tests() if needed. 2. use "torch.accelerator.current_accelerator()" to determine the accelerator backend 3. enabled XPU for some test path Pull Request resolved: pytorch#161601 Approved by: https://github.com/guangyey, https://github.com/d4l3k
For #114850, we will port distributed tests to Intel GPU. This PR is created base on PR #158533 and #159473 and will work on some test files under test/distributed/fsdp. We could enable Intel GPU with following methods and try the best to keep the original code styles in this PR:
add allow_xpu=True in instantiate_device_type_tests() if needed.
use "torch.accelerator.current_accelerator()" to determine the accelerator backend
enabled XPU for some test path
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @ezyang @msaroufim @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben