(examples)
| 509 | padding = "max_length" if data_args.pad_to_max_length else False |
| 510 | |
| 511 | def husky_processor(examples): |
| 512 | processor = partial( |
| 513 | process_func, |
| 514 | tokenizer=tokenizer, |
| 515 | max_seq_length=data_args.max_seq_length, |
| 516 | ) |
| 517 | model_inputs = processor(examples) |
| 518 | return model_inputs |
| 519 | |
| 520 | # Data collator |
| 521 | label_pad_token_id = IGNORE_INDEX if data_args.ignore_pad_token_for_loss else tokenizer.pad_token_id |
nothing calls this directly
no outgoing calls
no test coverage detected