Add PyTorch XPU as Target Device#6297
Closed
ekaakurniawan wants to merge 1 commit into
Closed
Conversation
- To support Intel Arc GPUs. - Set default device to XPU. Otherwise some are still on CPU. - Set default data type to float32. Recommended for GPU is float16 but other Torch variables are still in float32.
10 tasks
Contributor
|
Thank you for your submission! |
montplaisir
added a commit
that referenced
this pull request
Jun 17, 2026
…raining devices. (#6303) Port these PRs to current code: #6297 Add PyTorch XPU as Target Device #6243 Fix: data on both cuda:0 and cuda:1 when using --torch-device cuda:1 #6225 Release 22/inconsistent device tensor action in trainers [Don't Merge] #6094 add support for mac m1/m2 chips mps gpu Co-authored-by: @ekaakurniawan Eka Antonius Kurniawan <eka.a.kurniawan@gmail.com> Co-authored-by: @robinDLFM Robin De Lissnyder Co-authored-by: @Jkho80 Co-authored-by: @zyunlongz Yunlong Zuo <zyunlongz@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change(s)
Add PyTorch XPU as target device to support Intel Arc GPUs.
Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
Steps to Setup Unity Machine Learning Agents Toolkit and PyTorch XPU
Types of change(s)
Checklist
Please advise on adding the test.
Other comments