add ziya prompt template

This commit is contained in:
hiyouga
2023-06-03 19:05:51 +08:00
parent 771f454ff1
commit de09ee1315
6 changed files with 79 additions and 24 deletions

View File

@@ -136,6 +136,10 @@ 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(
default="alpaca",
metadata={"help": "Which template to use for constructing prompts in training."}
)
def __post_init__(self): # support mixing multiple datasets
dataset_names = [ds.strip() for ds in self.dataset.split(",")]