vllm.model_executor.models.mimo_v2_mtp
¶
Inference-only MiMo-V2 MTP (Multi-Token Prediction) draft model.
Supports both MiMo-V2-Pro and MiMo-V2-Flash checkpoints.
Checkpoint weight layout (model.mtp.layers.{idx}.): enorm - RMSNorm for token embeddings hnorm - RMSNorm for previous hidden states eh_proj - ReplicatedLinear(hidden2 -> hidden) input_layernorm - pre-attention RMSNorm self_attn. - attention weights; format differs by variant: Pro: fused qkv_proj [Q;K;V] concatenated Flash: separate q_proj, k_proj, v_proj pre_mlp_layernorm - post-attention / pre-MLP RMSNorm mlp. - dense MLP (gate_proj / up_proj / down_proj) final_layernorm - norm applied before logit computation
Classes:
-
MiMoV2MTPLayer–Single MTP predictor layer for MiMo-V2 (Pro and Flash).
MiMoV2MTPLayer
¶
Bases: Module
Single MTP predictor layer for MiMo-V2 (Pro and Flash).
Mirrors the single-layer MiMo-V2 nextn reference implementation.
Source code in vllm/model_executor/models/mimo_v2_mtp.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
_MiMoV2MTPLayers
¶
Bases: Module
Thin wrapper so parameter paths match checkpoint: model.mtp.layers.*.