nemo_automodel.components.models.glm5_next
nemo_automodel.components.models.glm5_next
Native AutoModel support for zai-org/GLM-5.3-Flash.
Submodules
nemo_automodel.components.models.glm5_next.confignemo_automodel.components.models.glm5_next.cpnemo_automodel.components.models.glm5_next.image_processingnemo_automodel.components.models.glm5_next.layersnemo_automodel.components.models.glm5_next.modelnemo_automodel.components.models.glm5_next.processingnemo_automodel.components.models.glm5_next.state_dict_adapternemo_automodel.components.models.glm5_next.vision
Package Contents
Classes
Data
API
Bases: PretrainedConfig
Top-level GLM-5.3 vision-language configuration.
Return the decoder config using the Transformers multimodal protocol.
Bases: HFCheckpointingMixin, Module, MoEFSDPSyncMixin
Trainable GLM-5.3 VLM with EP and contiguous packed CP support.
Expose the text module through the multimodal discovery protocol.
Embed the full sequence and replace image placeholder positions.
Run image splice, contiguous CP slicing, text decoding and lm head.
Construct from an already resolved native config.
Resolve the local config; checkpoint loading is owned by AutoModel.
Return raw and merged features for flattened image patches.
Return the token embedding table.
Return the untied language-model head.
Initialize all tensors for checkpoint-free construction.
Install GLM’s contiguous packed sharder while leaving media and ids global.
Replace the token embedding table.
Replace the language-model head.
Update no-aux-loss router correction biases after an optimizer step.
Bases: PretrainedConfig
Configuration for the GLM-5.3 hybrid KDA/KPool-DSA text backbone.
Alias used by Hugging Face expert implementations.
Bases: PretrainedConfig
Configuration for the GLM-5.3 image/video encoder.