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

Update weight conversion module #81

Merged
merged 3 commits into from
Feb 13, 2023
Merged

Conversation

DavidLandup0
Copy link
Owner

As noted in: https://discuss.pytorch.org/t/out-of-memory-error-when-resume-training-even-though-my-gpu-is-empty/30757/5

Sometimes, on some devices, PyTorch-based networks throw a CUDA OOM when loaded directly on the GPU. To avoid this, we now save the model and load it back, mapping to the CPU and then pushing back to the original model device.

@DavidLandup0 DavidLandup0 merged commit 25a3b11 into main Feb 13, 2023
@DavidLandup0 DavidLandup0 deleted the weight_conversion_example branch February 13, 2023 13:53
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.

None yet

1 participant