Skip to content

Commit d275418

Browse files
Remove ignored max_length parameter from PRMTrainer data collator (#4355)
1 parent 61bf96c commit d275418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trl/trainer/prm_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __init__(
141141
raise ValueError(
142142
"A processing_class must be specified when using the default DataCollatorForTokenClassification"
143143
)
144-
data_collator = DataCollatorForTokenClassification(processing_class, max_length=args.max_length)
144+
data_collator = DataCollatorForTokenClassification(processing_class)
145145

146146
if "input_ids" not in train_dataset.column_names:
147147
with PartialState().main_process_first():

0 commit comments

Comments
 (0)