-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Enable XPU distributed test for PT2.8 #149916
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/149916
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a059005 with merge base 1a722f6 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Signed-off-by: Cheng Penghui <penghui.cheng@intel.com>
@@ -19,6 +19,7 @@ | |||
TransformerBlock, | |||
) | |||
|
|||
device_type = torch.accelerator.current_accelerator().type |
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.
Here will raise an Error if the current accelerator returns None
.
default_stream = torch.cuda.current_stream() | ||
stream = torch.cuda.Stream() | ||
default_stream = torch.accelerator.current_stream() | ||
stream = torch.xpu.Stream() if device_type == "xpu" else torch.cuda.Stream() |
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.
stream = torch.xpu.Stream() if device_type == "xpu" else torch.cuda.Stream() | |
stream = torch.Stream() |
Signed-off-by: Cheng Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng Penghui <penghui.cheng@intel.com>
…into distributed_2.8
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
…into distributed_2.8
…into distributed_2.8
Signed-off-by: Cheng Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
…into distributed_2.8
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
Signed-off-by: Cheng, Penghui <penghui.cheng@intel.com>
Fixes #ISSUE_NUMBER
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @kwen2501 @c-p-i-o