Skip to content

Commit

Permalink
Fix default value for training_args in FinetuningConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
crackerben99 committed Mar 20, 2024
1 parent c814a72 commit 46e3ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finetune_demo/finetune_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class FinetuningConfig(object):
max_output_length: int

training_args: Seq2SeqTrainingArguments = dc.field(
default=Seq2SeqTrainingArguments(output_dir='./output')
default_factory=lambda: Seq2SeqTrainingArguments(output_dir='./output')
)
peft_config: Optional[PeftConfig] = None

Expand Down

0 comments on commit 46e3ed3

Please sign in to comment.