> This page is for version 0.5.0 · 26.06.
> For other versions, use one of these documentation indexes:
> - Nightly (default): https://docs.nvidia.com/nemo/automodel/nightly/llms.txt
> - Latest: https://docs.nvidia.com/nemo/automodel/latest/llms.txt
> - 0.7.0 · 26.10: https://docs.nvidia.com/nemo/automodel/v0.7/llms.txt
> - 0.5.0 · 26.06: https://docs.nvidia.com/nemo/automodel/v0.5/llms.txt
> - 0.4.0 · 26.04: https://docs.nvidia.com/nemo/automodel/v0.4/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/automodel/llms.txt.

# nemo_automodel.components.datasets.llm.sample_limit

Compatibility for the retired dataset sample-limit spelling.

## Module Contents

### Functions

| Name                                                                                                | Description                                                                         |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [`resolve_sample_limit`](#nemo_automodel-components-datasets-llm-sample_limit-resolve_sample_limit) | Resolve the canonical limit and its deprecated alias without changing either input. |

### API

```python
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.