Skip to content

Commit

Permalink
Merge branch 'main' of github.com:AI-Hypercomputer/maxtext into sujin…
Browse files Browse the repository at this point in the history
…esh/llama2_v6e_pw_long_running_test
  • Loading branch information
SujeethJinesh committed Jan 9, 2025
2 parents e5114d4 + d01c2aa commit 8b2fc50
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions MaxText/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,12 +963,13 @@ def train_loop(config, state=None):
# pytype: disable=attribute-error
compiled = p_train_step.lower(state, example_batch, nextrng).compile()
compiled_stats = compiled.memory_analysis()
max_logging.log(
f"Output size: {compiled_stats.output_size_in_bytes}, "
f"temp size: {compiled_stats.temp_size_in_bytes}, "
f"argument size: {compiled_stats.argument_size_in_bytes}, "
f"host temp size: {compiled_stats.host_temp_size_in_bytes}, in bytes."
)
if compiled_stats is not None:
max_logging.log(
f"Output size: {compiled_stats.output_size_in_bytes}, "
f"temp size: {compiled_stats.temp_size_in_bytes}, "
f"argument size: {compiled_stats.argument_size_in_bytes}, "
f"host temp size: {compiled_stats.host_temp_size_in_bytes}, in bytes."
)
return state


Expand Down

0 comments on commit 8b2fc50

Please sign in to comment.