> 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.glm_moe_dsa.state_dict_adapter

## Module Contents

### Classes

| Name                                                                                                                      | Description                                                    |
| ------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [`GlmMoeDsaStateDictAdapter`](#nemo_automodel-components-models-glm_moe_dsa-state_dict_adapter-GlmMoeDsaStateDictAdapter) | Converts between HF GLM-MoE-DSA checkpoints and native format. |

### API

```python
class nemo_automodel.components.models.glm_moe_dsa.state_dict_adapter.GlmMoeDsaStateDictAdapter()
```

**Bases:** [Glm4MoeStateDictAdapter](/nemo-automodel/nemo_automodel/components/models/glm4_moe/state_dict_adapter#nemo_automodel-components-models-glm4_moe-state_dict_adapter-Glm4MoeStateDictAdapter)

Converts between HF GLM-MoE-DSA checkpoints and native format.

Extends Glm4MoeStateDictAdapter with handling for the DSA indexer weights
that should not be quantized (k\_norm, weights\_proj).

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