mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-17 04:10:36 +08:00
仅仅训练最后一轮对话
This commit is contained in:
@@ -41,6 +41,10 @@ class DataArguments:
|
||||
default="data",
|
||||
metadata={"help": "Path to the folder containing the datasets."},
|
||||
)
|
||||
train_last_turn_only: Optional[bool] = field(
|
||||
default=False,
|
||||
metadata={"help": "Whether or not to train the last turn only."},
|
||||
)
|
||||
cutoff_len: int = field(
|
||||
default=1024,
|
||||
metadata={"help": "The cutoff length of the tokenized inputs in the dataset."},
|
||||
|
||||
Reference in New Issue
Block a user