Arguments pertaining to what data we are going to input our model for training and eval.
| 58 | |
| 59 | @dataclass |
| 60 | class DataArguments: |
| 61 | """ |
| 62 | Arguments pertaining to what data we are going to input our model for training and eval. |
| 63 | """ |
| 64 | |
| 65 | dataset_name: Optional[str] = field( |
| 66 | default=None, metadata={"help": "The name of the dataset to use (via the datasets library)."} |
| 67 | ) |
| 68 | max_train_samples: Optional[int] = field( |
| 69 | default=None, |
| 70 | metadata={ |
| 71 | "help": ( |
| 72 | "For debugging purposes or quicker training, truncate the number of training examples to this " |
| 73 | "value if set." |
| 74 | ) |
| 75 | }, |
| 76 | ) |
| 77 | max_eval_samples: Optional[int] = field( |
| 78 | default=None, |
| 79 | metadata={ |
| 80 | "help": ( |
| 81 | "For debugging purposes or quicker training, truncate the number of evaluation examples to this " |
| 82 | "value if set." |
| 83 | ) |
| 84 | }, |
| 85 | ) |
| 86 | block_size: Optional[int] = field( |
| 87 | default=None, |
| 88 | metadata={ |
| 89 | "help": ( |
| 90 | "Optional input sequence length after tokenization. " |
| 91 | "The training dataset will be truncated in block of this size for training. " |
| 92 | "Default to the model max input length for single sentence inputs (take into account special tokens)." |
| 93 | ) |
| 94 | }, |
| 95 | ) |
| 96 | overwrite_cache: bool = field( |
| 97 | default=False, metadata={"help": "Overwrite the cached training and evaluation sets"} |
| 98 | ) |
| 99 | preprocessing_num_workers: Optional[int] = field( |
| 100 | default=None, |
| 101 | metadata={"help": "The number of processes to use for the preprocessing."}, |
| 102 | ) |
| 103 | dialogue_template: Optional[str] = field( |
| 104 | default="no_system", |
| 105 | metadata={ |
| 106 | "help": "The name of the dialogue template to use for conditioning the model. See h4.training.dialogues for choices." |
| 107 | }, |
| 108 | ) |
| 109 | |
| 110 | |
| 111 | @dataclass |
nothing calls this directly
no outgoing calls
no test coverage detected