|
505 | 505 | "Q/K permutation, optional long/short RoPE tensors, and a conditional dense-or-MoE " |
506 | 506 | "loader. The existing MiniCPM graph does not prove this complete GGUF contract." |
507 | 507 | ), |
508 | | - "minimax-m2": ( |
509 | | - "MiniMax-M2 uses full-vector Q/K norms, partial RoPE, and all-layer " |
510 | | - "correction-biased routed experts under metadata-selected gating. Mobius has no " |
511 | | - "exact graph or suffix-safe expert import for that topology." |
512 | | - ), |
513 | 508 | "minimax-m3": ( |
514 | 509 | "MiniMax-M3 adds F32 sparse-indexer tensors and a second index-key cache with " |
515 | 510 | "position/cell maps, block masks, rollback, and reorder semantics alongside main " |
|
584 | 579 | "KV cache, and three chained heads selected by offsets. Mobius permits one head " |
585 | 580 | "and cannot preserve that state or FP8 converter transform." |
586 | 581 | ), |
587 | | - "mistral4": ( |
588 | | - "Mistral4 has no NextN metadata or MTP graph; it inherits Mistral3's conditional " |
589 | | - "dense/MoE tensor loader and overrides graph construction. It is not llama, " |
590 | | - "mistral alias text, or any DeepSeek/Qwen MTP family." |
591 | | - ), |
592 | 582 | "step35": ( |
593 | 583 | "Step3.5 executes one or more interleaved-SWA NextN heads with optional gates, " |
594 | 584 | "routed/shared experts, centered-norm transforms, per-layer head geometry, and " |
|
1334 | 1324 | "runtime packaging remains tracked by #605." |
1335 | 1325 | ), |
1336 | 1326 | ), |
| 1327 | + GGUFArchitectureSpec( |
| 1328 | + gguf_arch="minimax-m2", |
| 1329 | + model_type="minimax_m2_gguf", |
| 1330 | + module_type="minimax_m2_gguf", |
| 1331 | + config_key_map="minimax_m2", |
| 1332 | + config_postprocessor="minimax_m2", |
| 1333 | + tensor_map_recipe=("minimax_m2",), |
| 1334 | + required_metadata=( |
| 1335 | + "context_length", |
| 1336 | + "embedding_length", |
| 1337 | + "feed_forward_length", |
| 1338 | + "block_count", |
| 1339 | + "attention.head_count", |
| 1340 | + "attention.head_count_kv", |
| 1341 | + "attention.key_length", |
| 1342 | + "attention.value_length", |
| 1343 | + "attention.layer_norm_rms_epsilon", |
| 1344 | + "rope.freq_base", |
| 1345 | + "rope.dimension_count", |
| 1346 | + "expert_count", |
| 1347 | + "expert_used_count", |
| 1348 | + "expert_feed_forward_length", |
| 1349 | + "expert_gating_func", |
| 1350 | + ), |
| 1351 | + runtime=Support.DEFERRED, |
| 1352 | + quantized_import=Support.REJECTED, |
| 1353 | + reason=( |
| 1354 | + "Exact explicit-float import owns MiniMax-M2's non-square Q/O geometry, " |
| 1355 | + "full-vector Q/K RMSNorm, partial NeoX RoPE, standard dynamic/static KV cache, " |
| 1356 | + "and F32 selection-biased sigmoid MoE routing. Loader-accepted Q/K/V biases " |
| 1357 | + "and fused QKV are rejected because the pinned graph ignores or cannot execute " |
| 1358 | + "them. Packed projection/expert import and runtime packaging remain deferred; " |
| 1359 | + "the smallest immutable public GGUF is 46,514,882,176 bytes, above the " |
| 1360 | + "16 GiB evidence budget. Use keep_quantized=False." |
| 1361 | + ), |
| 1362 | + ), |
1337 | 1363 | GGUFArchitectureSpec( |
1338 | 1364 | gguf_arch="plamo", |
1339 | 1365 | model_type="plamo", |
|
2131 | 2157 | runtime=Support.DEFERRED, |
2132 | 2158 | reason=_DEEPSEEK4_GGUF_GRAPH_REASON, |
2133 | 2159 | ), |
| 2160 | + GGUFArchitectureSpec( |
| 2161 | + gguf_arch="mistral4", |
| 2162 | + model_type="mistral4_gguf", |
| 2163 | + module_type="mistral4_gguf", |
| 2164 | + config_key_map="mistral4", |
| 2165 | + config_postprocessor="mistral4", |
| 2166 | + tensor_map_recipe=("mistral4",), |
| 2167 | + tensor_processor="mistral4", |
| 2168 | + required_metadata=( |
| 2169 | + "context_length", |
| 2170 | + "embedding_length", |
| 2171 | + "feed_forward_length", |
| 2172 | + "block_count", |
| 2173 | + "attention.head_count", |
| 2174 | + "attention.head_count_kv", |
| 2175 | + "attention.key_length", |
| 2176 | + "attention.value_length", |
| 2177 | + "attention.key_length_mla", |
| 2178 | + "attention.value_length_mla", |
| 2179 | + "attention.q_lora_rank", |
| 2180 | + "attention.kv_lora_rank", |
| 2181 | + "attention.layer_norm_rms_epsilon", |
| 2182 | + "rope.freq_base", |
| 2183 | + "rope.dimension_count", |
| 2184 | + "expert_count", |
| 2185 | + "expert_used_count", |
| 2186 | + "expert_feed_forward_length", |
| 2187 | + "expert_shared_count", |
| 2188 | + ), |
| 2189 | + rope_interleave=True, |
| 2190 | + runtime=Support.DEFERRED, |
| 2191 | + quantized_import=Support.REJECTED, |
| 2192 | + reason=( |
| 2193 | + "Exact explicit-float import owns Mistral4's DeepSeek-V2 MLA projections, " |
| 2194 | + "dense-prefix plus mandatory shared/routed MoE blocks, YaRN scaling, and one " |
| 2195 | + "graph-visible latent-plus-RoPE K cache per layer. Legacy non-MLA, Q-LoRA-free, " |
| 2196 | + "temperature-scaled, and NextN layouts fail closed. Packed import and runtime " |
| 2197 | + "packaging remain deferred; the smallest immutable public GGUF is " |
| 2198 | + "32,306,941,632 bytes, above the 16 GiB evidence budget. " |
| 2199 | + "Use keep_quantized=False." |
| 2200 | + ), |
| 2201 | + ), |
2134 | 2202 | # GLM-5.2 GGUFs (e.g. unsloth/GLM-5.2-GGUF) tag the architecture 'glm-dsa' |
2135 | 2203 | # (MLA + DeepSeek Sparse Attention + MoE) and mobius's registry key is |
2136 | 2204 | # 'glm_moe_dsa'. The format bridge is keyed on the authoritative |
|
2142 | 2210 | model_type="glm_moe_dsa", |
2143 | 2211 | aliases=frozenset({"glm_dsa"}), |
2144 | 2212 | config_key_map="glm_dsa", |
2145 | | - tensor_map=Support.DEFERRED, |
| 2213 | + config_postprocessor="glm_dsa", |
| 2214 | + tensor_map_recipe=("glm_dsa",), |
| 2215 | + tensor_processor="glm_dsa", |
| 2216 | + required_metadata=( |
| 2217 | + "context_length", |
| 2218 | + "embedding_length", |
| 2219 | + "feed_forward_length", |
| 2220 | + "block_count", |
| 2221 | + "attention.head_count", |
| 2222 | + "attention.head_count_kv", |
| 2223 | + "attention.key_length", |
| 2224 | + "attention.value_length", |
| 2225 | + "attention.key_length_mla", |
| 2226 | + "attention.value_length_mla", |
| 2227 | + "attention.q_lora_rank", |
| 2228 | + "attention.kv_lora_rank", |
| 2229 | + "attention.layer_norm_rms_epsilon", |
| 2230 | + "rope.freq_base", |
| 2231 | + "rope.dimension_count", |
| 2232 | + "expert_count", |
| 2233 | + "expert_used_count", |
| 2234 | + "expert_feed_forward_length", |
| 2235 | + "expert_shared_count", |
| 2236 | + "attention.indexer.head_count", |
| 2237 | + "attention.indexer.key_length", |
| 2238 | + "attention.indexer.top_k", |
| 2239 | + ), |
| 2240 | + rope_interleave=True, |
| 2241 | + quantized_import=Support.REJECTED, |
2146 | 2242 | reason=( |
2147 | | - "Config extraction and the glm_moe_dsa graph are both available, but " |
2148 | | - "no GGUF→HuggingFace tensor-name mapping has been written for GLM-5.2's " |
2149 | | - "MLA + DSA-indexer tensor families yet, so weights cannot be routed " |
2150 | | - "into the graph. " + _NO_TENSOR_MAP |
| 2243 | + "Exact explicit-float MLA, DSA indexer, dense-prefix/routed-MoE tensor routing, " |
| 2244 | + "and packed dynamic-cache graph construction are covered. Packed import remains " |
| 2245 | + "rejected because GLM-5.2's rank-3 K/V-B transforms and correction-biased routed " |
| 2246 | + "experts do not have an independently proven storage-preserving runtime path. " |
| 2247 | + "The released GGUF also carries a routed DSA/MLA MTP block outside the current " |
| 2248 | + "sidecar ABI, and representative real-weight runtime evidence exceeds the 16 GiB " |
| 2249 | + "artifact budget. Use keep_quantized=False." |
2151 | 2250 | ), |
2152 | 2251 | ), |
2153 | 2252 | GGUFArchitectureSpec( |
|
0 commit comments