Skip to navigation

nemo_automodel.components.datasets.llm.sample_limit

View as MarkdownOpen in Claude

Compatibility for the retired dataset sample-limit spelling.

Module Contents

Functions

NameDescription
resolve_sample_limitResolve the canonical limit and its deprecated alias without changing either input.

API

nemo_automodel.components.datasets.llm.sample_limit.resolve_sample_limit(
limit_dataset_samples: int | None,
num_samples_limit: int | None
) -> int | None

Resolve the canonical limit and its deprecated alias without changing either input.

The alias remains supported until the next breaking dataset API release. Conflicting values fail before loading data; equal values are accepted.