nemo_automodel.components.datasets.llm.mock_iterable_dataset
nemo_automodel.components.datasets.llm.mock_iterable_dataset
Module Contents
Classes
API
Bases: IterableDataset
Mock dataset that generates synthetic data for benchmarking.
This dataset generates random tokens similar to the benchmarking script, creating input_ids, labels, and position_ids for each sample.
Generate synthetic batches.
Return the number of samples.
Dataclass
Construction-time configuration for :class:MockIterableDataset.
batch_size
Batch size to yield (1 for unbatched samples).
num_samples
Total number of samples to generate (1M for an infinite-like dataset).
seq_len
Sequence length for each sample.
vocab_size
Size of the vocabulary for generating random tokens.
Build a :class:MockIterableDataset from this :class:MockIterableDatasetConfig.