add ziya prompt template

Former-commit-id: 321e44ac54a91260cf00a4caa1991708814473fc
This commit is contained in:
hiyouga
2023-06-03 19:05:51 +08:00
parent 5eef8d5d98
commit fa850ae6e5
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(",")]