Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhouming authored Jan 13, 2025
1 parent f7b9582 commit 301a393
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,19 @@ torchrun $DISTRIBUTED_ARGS pretrain_gpt.py \

-->

## Activations recompute-enhanced
<pre>

# The default and recommended
SELECTIVE_RECOMPUTE_ARGS="
--recompute-granularity selective
"

# For cases where memory is very tight
FULL_RECOMPUTE_ARGS="
--recompute-granularity full \
--recompute-method uniform \
--recompute-num-layers 1
"

</pre>

0 comments on commit 301a393

Please sign in to comment.