Skip to content

Commit 05fd402

Browse files
committed
📤 Fix a dataset loading bug in scripts
1 parent 814f97f commit 05fd402

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

trl/scripts/grpo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def main(script_args, training_args, model_args, dataset_args):
118118
"Both `datasets` and `dataset_name` are provided. The `datasets` argument will be used to load the "
119119
"dataset and `dataset_name` will be ignored."
120120
)
121+
dataset = get_dataset(dataset_args)
121122
elif dataset_args.datasets and not script_args.dataset_name:
122123
dataset = get_dataset(dataset_args)
123124
elif not dataset_args.datasets and script_args.dataset_name:

0 commit comments

Comments
 (0)