Skip to content

Commit

Permalink
profile last 2 steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhiyuLi-goog committed Nov 22, 2023
1 parent 07dc6ce commit d9648be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaxText/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def train_loop(config, state=None):

# Start profiling at end of first step to avoid compilation.
# Move before for loop to include.
if step == 0:
if step == config.steps - 2:
max_utils.activate_profiler(config)

max_utils.deactivate_profiler(config)
Expand Down

0 comments on commit d9648be

Please sign in to comment.