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

Checkpointing: Avoid assigning tensor storage with different device #4836

Conversation

deepcharm
Copy link
Contributor

On some back-ends, assigning tensor.data to a storage being on a different
device than the tensor is not supported.

The fix is to save the storage in a temp data member and restore tensor.data
when needed.

On some back-ends, assigning tensor.data to a storage being on a
different device than the tensor, is not supported.

The fix is saving the storage in a temp member and restoring tensor.data
when needed.
@deepcharm deepcharm requested a review from tjruwase as a code owner December 18, 2023 15:17
@tjruwase tjruwase self-assigned this Dec 18, 2023
@deepcharm deepcharm requested a review from mrwyattii as a code owner December 18, 2023 20:03
@tjruwase tjruwase added this pull request to the merge queue Dec 20, 2023
Merged via the queue into microsoft:master with commit 9e455d7 Dec 20, 2023
14 checks passed
@deepcharm deepcharm deleted the chkp-avoid-assign-tensor-storage-on-different-device branch December 21, 2023 08:36
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
…icrosoft#4836)

On some back-ends, assigning tensor.data to a storage being on a
different
device than the tensor is not supported.

The fix is to save the storage in a temp data member and restore
tensor.data
when needed.

Co-authored-by: Olatunji Ruwase <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants