Arguments pertaining to what data we are going to input our model for training and eval.
| 136 | |
| 137 | @dataclass |
| 138 | class DataTrainingArguments: |
| 139 | """ |
| 140 | Arguments pertaining to what data we are going to input our model for training and eval. |
| 141 | """ |
| 142 | |
| 143 | dataset_name: Optional[str] = field( |
| 144 | default=None, metadata={"help": "The name of the dataset to use (via the datasets library)."} |
| 145 | ) |
| 146 | max_train_samples: Optional[int] = field( |
| 147 | default=None, |
| 148 | metadata={ |
| 149 | "help": "For debugging purposes or quicker training, truncate the number of training examples to this " |
| 150 | "value if set." |
| 151 | }, |
| 152 | ) |
| 153 | max_eval_samples: Optional[int] = field( |
| 154 | default=None, |
| 155 | metadata={ |
| 156 | "help": "For debugging purposes or quicker training, truncate the number of evaluation examples to this " |
| 157 | "value if set." |
| 158 | }, |
| 159 | ) |
| 160 | |
| 161 | block_size: Optional[int] = field( |
| 162 | default=None, |
| 163 | metadata={ |
| 164 | "help": "Optional input sequence length after tokenization. " |
| 165 | "The training dataset will be truncated in block of this size for training. " |
| 166 | "Default to the model max input length for single sentence inputs (take into account special tokens)." |
| 167 | }, |
| 168 | ) |
| 169 | overwrite_cache: bool = field( |
| 170 | default=False, metadata={"help": "Overwrite the cached training and evaluation sets"} |
| 171 | ) |
| 172 | validation_split_percentage: Optional[int] = field( |
| 173 | default=5, |
| 174 | metadata={ |
| 175 | "help": "The percentage of the train set used as validation set in case there's no validation split" |
| 176 | }, |
| 177 | ) |
| 178 | keep_linebreaks: bool = field( |
| 179 | default=True, metadata={"help": "Whether to keep line breaks when using TXT files or not."} |
| 180 | ) |
| 181 | |
| 182 | eval_subset: str = field(default='validation') |
| 183 | stride: int = field(default=512) |
| 184 | patience: int = field(default=None) |
| 185 | prompt: str = field(default=None) |
| 186 | |
| 187 | @dataclass |
| 188 | class KNNArguments: |
nothing calls this directly
no outgoing calls
no test coverage detected