Skip to content

Commit

Permalink
More hints on what to do with CUDA Out of memory errors (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooray committed Dec 13, 2023
1 parent 5f79b82 commit b0cf397
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,10 @@ Please reduce any below
- `gradient_accumulation_steps`
- `sequence_len`

If it does not help, try running without deepspeed and without accelerate (replace "accelerate launch" with "python") in the command.

Using adamw_bnb_8bit might also save you some memory.

> `failed (exitcode: -9)`
Usually means your system has run out of system memory.
Expand Down

0 comments on commit b0cf397

Please sign in to comment.