add prompt template class

This commit is contained in:
hiyouga
2023-06-07 11:55:25 +08:00
parent 5d021d4ad5
commit 909af8f496
8 changed files with 67 additions and 40 deletions

View File

@@ -141,7 +141,7 @@ class DataTrainingArguments:
default=0,
metadata={"help": "Proportion of the dataset to include in the development set, should be between 0.0 and 1.0."}
)
prompt_template: Optional[Literal["alpaca", "ziya"]] = field(
prompt_template: Optional[Literal["alpaca", "vicuna", "ziya"]] = field(
default="alpaca",
metadata={"help": "Which template to use for constructing prompts in training."}
)