boris commited on
Commit
99a1ff5
1 Parent(s): d449092

fix: log metadata

Browse files
Files changed (1) hide show
  1. seq2seq/run_seq2seq_flax.py +1 -1
seq2seq/run_seq2seq_flax.py CHANGED
@@ -791,7 +791,7 @@ def main():
791
 
792
  # save to W&B
793
  if data_args.log_model:
794
- metadata = {'epoch': epoch+1, 'eval/loss': eval_metrics['loss']}
795
  if eval_metrics is not None:
796
  metadata['eval/loss'] = eval_metrics['loss']
797
  artifact = wandb.Artifact(
 
791
 
792
  # save to W&B
793
  if data_args.log_model:
794
+ metadata = {'step': step, 'epoch': epoch}
795
  if eval_metrics is not None:
796
  metadata['eval/loss'] = eval_metrics['loss']
797
  artifact = wandb.Artifact(