Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 602803979
  • Loading branch information
maxtext authors authored and michelle-yooh committed Jan 30, 2024
1 parent ddcd1c4 commit b8da9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MaxText/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import max_utils
import maxtext_utils
import max_logging
from maxtext import optimizers
import optimizers
import pyconfig

from input_pipeline.input_pipeline_interface import create_data_iterator_with_tokenizer
Expand Down Expand Up @@ -109,7 +109,7 @@ def record_scalar_metrics(metrics, step_time_delta, per_device_tflops, lr):


def write_metrics(writer, metrics, step, config):
"""Writes metrics to tensorboard"""
""" Writes metrics to tensorboard"""
with jax.spmd_mode('allow_all'):
if jax.process_index() == 0:
for metric_name in metrics.get("scalar",[]):
Expand Down

0 comments on commit b8da9af

Please sign in to comment.