improve data process logger

This commit is contained in:
hiyouga committed 2024-05-18 22:02:42 +08:00
1 parent ca48f90f1e
commit a851056229
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ def run_kto(
trainer.save_metrics("train", train_result.metrics)
trainer.save_state()
if trainer.is_world_process_zero() and finetuning_args.plot_loss:
plot_loss(training_args.output_dir, keys=["loss", "eval_loss"])
plot_loss(training_args.output_dir, keys=["loss", "eval_loss", "train/rewards/chosen"])
# Evaluation
if training_args.do_eval: