We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61bf96c commit d275418Copy full SHA for d275418
trl/trainer/prm_trainer.py
@@ -141,7 +141,7 @@ def __init__(
141
raise ValueError(
142
"A processing_class must be specified when using the default DataCollatorForTokenClassification"
143
)
144
- data_collator = DataCollatorForTokenClassification(processing_class, max_length=args.max_length)
+ data_collator = DataCollatorForTokenClassification(processing_class)
145
146
if "input_ids" not in train_dataset.column_names:
147
with PartialState().main_process_first():
0 commit comments