nemo_automodel.components.models.glm4_moe.state_dict_adapter
nemo_automodel.components.models.glm4_moe.state_dict_adapter
Module Contents
Classes
Data
API
Bases: MoESplitExpertsStateDictMixin, StateDictAdapter
Converts between HF GLM4-MoE checkpoints and our grouped-experts native format.
Convert a single tensor from native format to HuggingFace format.
Parameters:
fqn
Fully qualified name of the tensor in native format
tensor
The tensor to convert
**kwargs
Additional arguments for conversion
Returns: list[tuple[str, Any]]
List of (fqn, tensor) tuples in HuggingFace format