( dataset_name: str dataset_train_split: str = 'train' dataset_test_split: str = 'test' config: typing.Optional[str] = None gradient_checkpointing_use_reentrant: bool = False ignore_bias_buffers: bool = False )
Parameters
str
) —
Dataset name. str
, optional, defaults to "train"
) —
Dataset split to use for training. str
, optional, defaults to "test"
) —
Dataset split to use for evaluation. str
or None
, optional, defaults to None
) —
Path to the optional config file. bool
, optional, defaults to False
) —
Whether to apply use_reentrant
for gradient_checkpointing. bool
, optional, defaults to False
) —
Debug argument for distributed training. Fix for DDP issues with LM bias/mask buffers - invalid scalar
type, inplace operation. See https://github.com/huggingface/transformers/issues/22482#issuecomment-1595790992. Arguments common to all scripts.
( parsers ignore_extra_args = False )
The TRL parser parses a list of parsers (TrainingArguments, trl.ModelConfig, etc.), creates a config
parsers for users that pass a valid config
field and merge the values that are set in the config
with the processed parsers.
Parse the command line arguments and the config file.
Post process dataclasses to merge the TrainingArguments with the SFTScriptArguments or DPOScriptArguments.
Defaults we’re setting with config allow us to change to required = False