Skip to content

vllm.model_executor.models.glm4_moe_mtp

Inference-only GLM-4.5, GLM-4.6, GLM-4.7 MTP model compatible with HuggingFace weights.

Classes:

Glm4MoeMTP

Bases: Module, Glm4MixtureOfExperts

_rewrite_spec_layer_name(spec_layer, name)

Rewrite the weight name to match the format of the original model. Add .mtp_block for modules in transformer layer block for spec layer and rename shared layer weights to be top level.