Skip to content

Commit

Permalink
example(LLM): change chatglm3 generation_config field type for comman…
Browse files Browse the repository at this point in the history
…d line arguments (#3128)
  • Loading branch information
tianweidut authored Jan 17, 2024
1 parent ea8c736 commit 55955c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/llm-finetune/models/chatglm3/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class TrainArguments(Seq2SeqTrainingArguments):
remove_unused_columns: bool = dataclasses.field(
default=False, metadata={"help": "remove unused columns"}
)
# Currently, we don't support `Optional[Union[str, Path, GenerationConfig]]` for the command line.
generation_config: t.Optional[str] = dataclasses.field(
default=None, metadata={"help": "generation config json file path"}
)


@argument((ModelArguments, DatasetArguments, TrainArguments))
Expand Down

0 comments on commit 55955c1

Please sign in to comment.