Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SFT] add SFT Trainer Config dataclass #1530

Merged
merged 15 commits into from
Apr 23, 2024
Prev Previous commit
Next Next commit
add back options to SftScriptArguments
  • Loading branch information
kashif committed Apr 22, 2024
commit 85302ab0015d2606ad19ba7bea3ca61db181e485
2 changes: 2 additions & 0 deletions trl/commands/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def warning_handler(message, category, filename, lineno, file=None, line=None):
@dataclass
class SftScriptArguments:
dataset_name: str = field(default="timdettmers/openassistant-guanaco", metadata={"help": "the dataset name"})
dataset_train_name: str = field(default="train", metadata={"help": "the name of the training set of the dataset"})
kashif marked this conversation as resolved.
Show resolved Hide resolved
dataset_test_name: str = field(default="test", metadata={"help": "the name of the training set of the dataset"})
kashif marked this conversation as resolved.
Show resolved Hide resolved
config: str = field(default=None, metadata={"help": "Path to the optional config file"})
gradient_checkpointing_use_reentrant: bool = field(
default=False, metadata={"help": "Whether to apply `use_reentrant` for gradient_checkpointing"}
Expand Down
Loading