> 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.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/automodel/_mcp/server.

# nemo_automodel

## Subpackages

* **[`nemo_automodel._diffusers`](/nemo-automodel/nemo_automodel/_diffusers)**
* **[`nemo_automodel._transformers`](/nemo-automodel/nemo_automodel/_transformers)**
* **[`nemo_automodel.cli`](/nemo-automodel/nemo_automodel/cli)**
* **[`nemo_automodel.components`](/nemo-automodel/nemo_automodel/components)**
* **[`nemo_automodel.shared`](/nemo-automodel/nemo_automodel/shared)**

## Submodules

* **[`nemo_automodel.autonvtx`](/nemo-automodel/nemo_automodel/autonvtx)**
* **[`nemo_automodel.package_info`](/nemo-automodel/nemo_automodel/package_info)**

## Package Contents

### Classes

| Name                                                       | Description                                                         |
| ---------------------------------------------------------- | ------------------------------------------------------------------- |
| [`_AliasLoader`](#nemo_automodel-_AliasLoader)             | Loader that replaces the placeholder module in sys.modules with the |
| [`_ModelsAliasFinder`](#nemo_automodel-_ModelsAliasFinder) | Redirect `nemo_automodel.models` and `nemo_automodel.models.*`      |

### Functions

| Name                                         | Description                                                                   |
| -------------------------------------------- | ----------------------------------------------------------------------------- |
| [`__dir__`](#nemo_automodel-__dir__)         | Expose the names of all available submodules for auto-completion.             |
| [`__getattr__`](#nemo_automodel-__getattr__) | Lazily import and cache selected submodules / exported symbols when accessed. |

### Data

[`_LAZY_ATTRS`](#nemo_automodel-_LAZY_ATTRS)

[`_MODELS_ALIAS`](#nemo_automodel-_MODELS_ALIAS)

[`_MODELS_ALIAS_DOT`](#nemo_automodel-_MODELS_ALIAS_DOT)

[`_MODELS_TARGET`](#nemo_automodel-_MODELS_TARGET)

[`_MODELS_TARGET_DOT`](#nemo_automodel-_MODELS_TARGET_DOT)

[`_SUBMODULES`](#nemo_automodel-_SUBMODULES)

[`__all__`](#nemo_automodel-__all__)

### API

```python
class nemo_automodel._AliasLoader(
    real_name
)
```

**Bases:** `Loader`

Loader that replaces the placeholder module in sys.modules with the
canonical module during exec\_module.

```python
nemo_automodel._AliasLoader.create_module(
    spec
)
```

```python
nemo_automodel._AliasLoader.exec_module(
    module
)
```

```python
class nemo_automodel._ModelsAliasFinder()
```

**Bases:** `MetaPathFinder`

Redirect `nemo_automodel.models` and `nemo_automodel.models.*`
to `nemo_automodel.components.models` and its subpackages.

Installed at the *front* of `sys.meta_path` so it intercepts before the
default `PathFinder`.  Both import paths resolve to the exact same module
objects, avoiding duplication.

```python
nemo_automodel._ModelsAliasFinder.find_spec(
    fullname,
    path,
    target = None
)
```

```python
nemo_automodel.__dir__() -> list[str]
```

Expose the names of all available submodules for auto-completion.

```python
nemo_automodel.__getattr__(
    name: str
) -> types.ModuleType | typing.Any
```

Lazily import and cache selected submodules / exported symbols when accessed.

```python
nemo_automodel._LAZY_ATTRS: dict[str, tuple[str, str]] = {'NeMoAutoModelForCausalLM': ('nemo_automodel._transformers.auto_model', 'NeMoAu...
```

```python
nemo_automodel._MODELS_ALIAS = 'nemo_automodel.models'
```

```python
nemo_automodel._MODELS_ALIAS_DOT = _MODELS_ALIAS + '.'
```

```python
nemo_automodel._MODELS_TARGET = 'nemo_automodel.components.models'
```

```python
nemo_automodel._MODELS_TARGET_DOT = _MODELS_TARGET + '.'
```

```python
nemo_automodel._SUBMODULES = {'recipes', 'shared', 'components', 'models'}
```

```python
nemo_automodel.__all__ = sorted([*_SUBMODULES, '__version__', '__package_name__', *(_LAZY_ATTRS.keys())])
```