Skip to content

Commit

Permalink
use the checkpoint path as the temporary path for the Hugging Face tr…
Browse files Browse the repository at this point in the history
…ainer.
  • Loading branch information
dixiyao committed Nov 9, 2023
1 parent b57ebc7 commit e5092df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plato/trainers/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ def __init__(self, model=None, callbacks=None):

parser = HfArgumentParser(TrainingArguments)
(self.training_args,) = parser.parse_args_into_dataclasses(
args=["--output_dir=/tmp", "--report_to=none"]
args=[
"--output_dir=" + Config.params["checkpoint_path"],
"--report_to=none",
]
)

model_name = Config().trainer.model_name
Expand Down

0 comments on commit e5092df

Please sign in to comment.