@@ -821,7 +821,7 @@ def _step_log(msg, *args, **kwargs):
821821 self ._step_log (msg , * args , ** kwargs )
822822 analysis_logs .append (msg % args )
823823
824- _step_log ("##################### Model analysis #####################\n " )
824+ _step_log ("##################### Model analysis #####################" )
825825 _step_log ("## Parameters:" )
826826 fmt = "%10d %-20s %s"
827827 flatten_name_and_spec = flatten_items (self ._model_param_specs )
@@ -832,7 +832,7 @@ def _step_log(msg, *args, **kwargs):
832832 _step_log ("Total number of model params: %s" , f"{ total_num_params :,} " )
833833 self .summary_writer (0 , {"num_model_params" : total_num_params })
834834
835- _step_log ("\n ## Trainer States:" )
835+ _step_log ("## Trainer States:" )
836836 # Training state size.
837837 total_state_bytes = 0
838838 total_sharded_state_bytes = 0
@@ -856,16 +856,15 @@ def _step_log(msg, *args, **kwargs):
856856 max_sharded_state_gb = total_sharded_state_gb
857857
858858 _step_log (
859- "Training state size: %.2f GiB\n "
860- "Training state size (partitioned): %.2f GiB\n "
859+ "Training state size: %.2f GiB\t "
860+ "Training state size (partitioned): %.2f GiB\t "
861861 "Max training state size (partitioned): %.2f GiB" ,
862862 total_state_bytes / 1024 ** 3 ,
863863 total_sharded_state_gb ,
864864 max_sharded_state_gb ,
865865 )
866-
867- _step_log ("\n ##########################################################" )
868- return "\n " .join (analysis_logs )
866+ _step_log ("##########################################################" )
867+ return "\t " .join (analysis_logs )
869868
870869 def _prepare_training (self , prng_key : Tensor ) -> bool :
871870 """Prepares training.
0 commit comments