> This page is for version Nightly (default).
> 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.models.gs1.compat

Runtime patches that let the pinned GS1 checkpoint code run on the installed Transformers.

## Module Contents

### Functions

| Name                                                                                                            | Description                                                       |
| --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [`ensure_gs1_transformers_compat`](#nemo_automodel-components-models-gs1-compat-ensure_gs1_transformers_compat) | Keep the pinned GS1 code compatible with Transformers' cache API. |

### API

```python
nemo_automodel.components.models.gs1.compat.ensure_gs1_transformers_compat() -> None
```

Keep the pinned GS1 code compatible with Transformers' cache API.