> 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.components.models.muse_glimmer.state_dict_adapter

Hugging Face checkpoint adapter for legacy and canonical MuseGlimmer exports.

## Module Contents

### Classes

| Name                                                                                                                           | Description                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------- |
| [`MuseGlimmerStateDictAdapter`](#nemo_automodel-components-models-muse_glimmer-state_dict_adapter-MuseGlimmerStateDictAdapter) | Map canonical nested MuseGlimmer checkpoint keys to the native legacy module tree. |

### API

```python
class nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter(
    config: nemo_automodel.components.models.muse_glimmer.config.MuseGlimmerConfig
)
```

**Bases:** [StateDictAdapter](/nemo-automodel/nemo_automodel/components/checkpoint/state_dict_adapter#nemo_automodel-components-checkpoint-state_dict_adapter-StateDictAdapter)

Map canonical nested MuseGlimmer checkpoint keys to the native legacy module tree.

**`uses_canonical_layout`**

---

```python
nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter._canonical_to_native_key(
    key: str
) -> str
```

staticmethod

```python
nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter._native_to_canonical_key(
    key: str
) -> str | None
```

staticmethod

```python
nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter.convert_single_tensor_to_hf(
    fqn: str,
    tensor: typing.Any,
    kwargs: typing.Any = {}
) -> list[tuple[str, typing.Any]]
```

Convert one native MuseGlimmer tensor to its Hugging Face checkpoint representation.

```python
nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter.from_hf(
    hf_state_dict: dict[str, typing.Any],
    kwargs: typing.Any = {}
) -> dict[str, typing.Any]
```

```python
nemo_automodel.components.models.muse_glimmer.state_dict_adapter.MuseGlimmerStateDictAdapter.to_hf(
    state_dict: dict[str, typing.Any],
    exclude_key_regex: str | None = None,
    kwargs: typing.Any = {}
) -> dict[str, typing.Any]
```