Skip to content

Commit

Permalink
used the checkpoint path as the temporary path for huggingface trainer.
Browse files Browse the repository at this point in the history
  • Loading branch information
dixiyao committed Nov 9, 2023
1 parent d3e79b9 commit b57ebc7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ def __init__(self, model=None, callbacks=None):
parser = HfArgumentParser(TrainingArguments)

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

# Redesign the evaluation stage.
Expand Down

0 comments on commit b57ebc7

Please sign in to comment.