Introduction
Get Started
Prepare your data
Cerebras PyTorch API
cerebras.pytorch
cerebras.pytorch.amp
cerebras.pytorch.optim
cerebras.pytorch.sparse
cerebras.pytorch.metrics
Cerebras Model Zoo
Cerebras Guides
Fundamentals
Support
Functions
training_data_generator
Generator function used to create input dataset for GPT2Model.
previous
cerebras.modelzoo.data_preparation.nlp.gpt2
next
cerebras.modelzoo.data_preparation.nlp.gpt2.data_processor_utils.training_data_generator