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

Fix CUDA OOM Error by Disabling NVTX During DeepSpeed Initialization #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosineai[bot]
Copy link

@cosineai cosineai bot commented Nov 12, 2024

This pull request addresses the CUDA Out of Memory (OOM) error encountered during the initialization of a customized model with DeepSpeed. The issue was caused by NVTX being enabled, which can lead to increased memory usage. The solution involves temporarily disabling NVTX during the compilation process in the deepspeed/runtime/engine.py file. The NVTX state is saved before disabling and restored after the compilation to ensure that the original state is maintained. This change helps in reducing memory overhead and prevents the OOM error, allowing for successful model initialization with DeepSpeed.


Created by Genie. You can follow its reasoning on Cosine

Co-authored-by: Genie <genie@cosine.sh>
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.

0 participants