Skip to content

vllm.model_executor.models.glm_ocr_mtp

Inference-only GLM-OCR MTP model compatible with HuggingFace weights.

Classes:

GlmOcrMTP

Bases: Module, SupportsPP

_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.