nemo_automodel.components.models.glm_moe_dsa.config
nemo_automodel.components.models.glm_moe_dsa.config
Automodel’s own GLM MoE DSA config.
Module Contents
Classes
Data
API
Bases: PretrainedConfig
Configuration for GLM MoE DSA (DeepSeek-style sparse attention).
Standalone rather than a subclass of the transformers config, matching the
other Automodel-owned configs: Automodel ships its own GLM DSA modeling
code, so its field protocol must not move when transformers releases do.
Subclassing also inherited attribute_map entries, one of which is
actively harmful — transformers maps head_dim onto qk_rope_head_dim
while the released GLM-5.2 config.json sets both (head_dim: 192, the
full QK head dim, and qk_rope_head_dim: 64), so the alias overwrote the
rope dim with 192 and the DSA indexer’s nope split went negative
(index_head_dim - qk_rope_head_dim = 128 - 192). Only the expert-count
alias is kept here.