nemo_automodel.components.models.glm5_next.model
nemo_automodel.components.models.glm5_next.model
Native AutoModel implementation of GLM-5.3-Flash.
Module Contents
Classes
Functions
Data
API
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: Module
Checkpoint-layout container for visual and language_model.
Encode image patches and split-free concatenated features.
Bases: Module
Embedding, mHC decoder stack, mean stream collapse and final RMSNorm.
Run [batch, local_sequence] ids/embeddings through the text model.
Initialize a checkpoint-free text model on buffer_device.
Update every sparse layer’s no-aux-loss routing correction bias.
Build one global document map for a non-CP forward.
Translate the GLM router/expert contract to AutoModel’s grouped MoE.