Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
harborn committed Jun 21, 2024
1 parent d2b310a commit ee262e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm_on_ray/finetune/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def train_func(config: Dict[str, Any]):
result = trainer.train(resume_from_checkpoint=training_args.resume_from_checkpoint)
trainer.save_model()
metrics = result.metrics
metrics["throughput"] = len(tokenized_dataset['train']) / metrics["train_runtime"]
metrics["throughput"] = len(tokenized_dataset["train"]) / metrics["train_runtime"]
trainer.log_metrics("train", metrics)
common.logger.info("train finish")

Expand Down

0 comments on commit ee262e6

Please sign in to comment.