MCPcopy Create free account
hub / github.com/EmbodiedGPT/EmbodiedGPT_Pytorch / husky_processor

Function husky_processor

robohusky/train/train.py:511–518  ·  view source on GitHub ↗
(examples)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected