cerebras.modelzoo.data.nlp.dpo.DPOSyntheticDataset.DPODataset#

class cerebras.modelzoo.data.nlp.dpo.DPOSyntheticDataset.DPODataset[source]#

Bases: torch.utils.data.Dataset

A class representing a DPODataset inheriting torch.utils.data.Dataset.

Methods

__init__(data, data_processor)[source]#
__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

static __new__(cls, *args: Any, **kwargs: Any) Any#