Skip to content

Commit

Permalink
Revert "profile last 2 steps"
Browse files Browse the repository at this point in the history
This reverts commit f7fb49a.
  • Loading branch information
ZhiyuLi-goog committed Nov 14, 2023
1 parent f7fb49a commit 00c27ea
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 @@ -295,7 +295,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 == config.steps - 2:
if step == 0:
max_utils.activate_profiler(config)

max_utils.deactivate_profiler(config)
Expand Down

0 comments on commit 00c27ea

Please sign in to comment.