Fix: data on both cuda:0 and cuda:1 when using --torch-device cuda:1#6243
Closed
robinDLFM wants to merge 1 commit into
Closed
Fix: data on both cuda:0 and cuda:1 when using --torch-device cuda:1#6243robinDLFM wants to merge 1 commit into
robinDLFM wants to merge 1 commit into
Conversation
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)
Solves:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)
when using --torch-device cuda:1