This commit is contained in:
hiyouga
2023-05-29 09:42:29 +08:00
parent 166c837b95
commit ce71cc8b6d
5 changed files with 12 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ def main():
ppo_trainer.ppo_train(max_target_length=data_args.max_target_length)
ppo_trainer.save_model()
ppo_trainer.save_state() # must be after save_model
if ppo_trainer.is_world_process_zero() and finetuning_args.plot_loss:
if ppo_trainer.is_world_process_zero() and model_args.plot_loss:
plot_loss(training_args, keys=["loss", "reward"])