Repository navigation
bug fix: don't swallow OutOfMemoryError when enable_memory_snapshot=True - #2374
Merged
Merged
Conversation
weifengpy
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
February 12, 2026 06:01
tianyu-l
approved these changes
Feb 12, 2026
wwwjn
approved these changes
Feb 12, 2026
TXacs
pushed a commit
to McmillanTAC/torchtitan
that referenced
this pull request
Apr 13, 2026
…rue (pytorch#2374) fix pytorch#2362 claude ran a OOM job to verified 3 things. super safe! 1. Exit code 1 (not 0) — the process failed as expected: exitcode : 1 (pid: 2663521) 2. The OOM traceback was surfaced instead of being swallowed: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 GiB. GPU 0 has a total capacity of 94.99 GiB of which 9.30 GiB is free. 3. The memory snapshot was still saved before the error propagated: outputs/memory_snapshot/iteration_0_exit/rank0_memory_snapshot.pickle
ACharacterInASimulation
pushed a commit
to ACharacterInASimulation/torchtitan
that referenced
this pull request
Apr 21, 2026
…rue (pytorch#2374) fix pytorch#2362 claude ran a OOM job to verified 3 things. super safe! 1. Exit code 1 (not 0) — the process failed as expected: exitcode : 1 (pid: 2663521) 2. The OOM traceback was surfaced instead of being swallowed: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 GiB. GPU 0 has a total capacity of 94.99 GiB of which 9.30 GiB is free. 3. The memory snapshot was still saved before the error propagated: outputs/memory_snapshot/iteration_0_exit/rank0_memory_snapshot.pickle
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.
fix #2362
claude ran a OOM job to verified 3 things. super safe!
Exit code 1 (not 0) — the process failed as expected:
exitcode : 1 (pid: 2663521)
The OOM traceback was surfaced instead of being swallowed:
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 GiB. GPU 0 has a total capacity of 94.99 GiB of which 9.30 GiB is free.
The memory snapshot was still saved before the error propagated:
outputs/memory_snapshot/iteration_0_exit/rank0_memory_snapshot.pickle