cerebras.modelzoo.data_preparation.huggingface.CSDataCollatorForLanguageModeling.CSDataCollatorForLanguageModeling#

class cerebras.modelzoo.data_preparation.huggingface.CSDataCollatorForLanguageModeling.CSDataCollatorForLanguageModeling(*args, **kwargs)[source]#

Bases: transformers.DataCollatorForLanguageModeling

Overrides DataCollatorForLanguageModeling from HF to shift the inputs/labels in the dataloader

Methods

torch_call