@@ -123,18 +123,18 @@ execution-provider-dependent.
123123
124124F32-, F16-, and BF16-only GGUFs use the normal float import path even though
125125` keep_quantized=True ` is the default: there is no quantization to preserve.
126- Quantized GGUFs containing only qtypes with no supported preservation target
127- (for example, pure Q6_K or Q5_K weights ) fail with an actionable error rather
128- than silently becoming float. Pass ` keep_quantized=False ` to request that float
129- conversion explicitly .
126+ Quantized GGUFs whose qtypes have no trustworthy decoder or compatible runtime
127+ kernel (currently ` Q2_0 ` ) fail with an actionable error. Decoder-backed formats
128+ such as ` Q5_K ` use the explicit dequantize/requantize route; they are not
129+ silently treated as preserved source quantization .
130130
131131## Supported GGUF Architectures
132132
133133Support is declared once, in
134- ` mobius/integrations/gguf/_arch_registry.py ` , as four independent verdicts per
135- architecture — config extraction, tensor mapping, graph construction, and
136- runtime packaging. Anything short of "supported" carries a reason, and the
137- table below is checked against the registry by
134+ ` mobius/integrations/gguf/_arch_registry.py ` , as five independent verdicts per
135+ architecture — config extraction, tensor mapping, graph construction, runtime
136+ packaging, and quantized import . Anything short of "supported" carries a reason,
137+ and the table below is checked against the registry by
138138` _arch_registry_test.py::TestDocumentedSupportMatrix ` , so it cannot drift.
139139
140140Being listed is not a support claim. ` build_from_gguf ` refuses every
@@ -143,42 +143,42 @@ reason.
143143
144144<!-- BEGIN GGUF SUPPORT MATRIX (generated; see _arch_registry.py) -->
145145
146- | GGUF architecture | Accepted aliases | mobius ` model_type ` | Status |
147- | ---| ---| ---| ---|
148- | ` arcee ` | — | ` arcee ` | runtime deferred |
149- | ` bloom ` | — | ` bloom ` | tensor_map deferred |
150- | ` clip ` | — | — | config rejected; tensor_map rejected; graph rejected; runtime rejected |
151- | ` cohere2 ` | — | ` cohere2 ` | runtime deferred |
152- | ` deci ` | — | ` llama ` | supported |
153- | ` deepseek4 ` | — | ` deepseek_v4 ` | supported |
154- | ` exaone ` | — | ` exaone ` | runtime deferred |
155- | ` falcon ` | — | ` falcon ` | supported |
156- | ` gemma ` | — | ` gemma ` | supported |
157- | ` gemma2 ` | — | ` gemma2 ` | supported |
158- | ` gemma3 ` | — | ` gemma3_text ` | supported |
159- | ` gemma4 ` | — | ` gemma4_text ` | supported |
160- | ` glm-dsa ` | ` glm_dsa ` | ` glm_moe_dsa ` | tensor_map deferred |
161- | ` gpt2 ` | — | ` gpt2 ` | supported |
162- | ` hunyuan-dense ` | ` hunyuan_v1_dense ` | ` hunyuan_v1_dense ` | supported |
163- | ` internlm2 ` | — | ` internlm2 ` | supported |
164- | ` llama ` | ` mistral ` | ` llama ` | supported |
165- | ` mamba ` | — | ` mamba ` | supported |
166- | ` muse-glimmer ` | ` muse_glimmer ` | ` muse_glimmer_text ` | supported |
167- | ` nemotron ` | — | ` nemotron ` | supported |
168- | ` nemotron_h_moe ` | — | — | config rejected; tensor_map rejected; graph rejected; runtime rejected |
169- | ` olmo ` | — | ` olmo ` | supported |
170- | ` olmo2 ` | — | ` olmo2 ` | supported |
171- | ` phi3 ` | — | ` phi3 ` | supported |
172- | ` qwen2 ` | — | ` qwen2 ` | supported |
173- | ` qwen2moe ` | ` qwen2_moe ` | ` qwen2_moe ` | supported |
174- | ` qwen3 ` | — | ` qwen3 ` | supported |
175- | ` qwen35 ` | — | ` qwen3_5_text ` | supported |
176- | ` qwen35moe ` | — | ` qwen3_5_moe ` | supported |
177- | ` qwen3moe ` | ` qwen3_moe ` | ` qwen3_moe ` | supported |
178- | ` smollm3 ` | — | ` smollm3 ` | supported |
179- | ` stablelm ` | — | ` stablelm ` | supported |
180- | ` starcoder2 ` | — | ` starcoder2 ` | supported |
181- | ` t5 ` | — | ` t5 ` | tensor_map deferred |
146+ | GGUF architecture | Accepted aliases | mobius ` model_type ` | Float import | Quantized import |
147+ | ---| ---| ---| ---| --- |
148+ | ` arcee ` | — | ` arcee ` | runtime deferred | supported |
149+ | ` bloom ` | — | ` bloom ` | tensor_map deferred | unreachable |
150+ | ` clip ` | — | — | config rejected; tensor_map rejected; graph rejected; runtime rejected | unreachable |
151+ | ` cohere2 ` | — | ` cohere2 ` | runtime deferred | supported |
152+ | ` deci ` | — | ` llama ` | supported | supported |
153+ | ` deepseek4 ` | — | ` deepseek_v4 ` | supported | supported |
154+ | ` exaone ` | — | ` exaone ` | runtime deferred | supported |
155+ | ` falcon ` | — | ` falcon ` | supported | supported |
156+ | ` gemma ` | — | ` gemma ` | supported | supported |
157+ | ` gemma2 ` | — | ` gemma2 ` | supported | supported |
158+ | ` gemma3 ` | — | ` gemma3_text ` | supported | supported |
159+ | ` gemma4 ` | — | ` gemma4_text ` | supported | supported |
160+ | ` glm-dsa ` | ` glm_dsa ` | ` glm_moe_dsa ` | tensor_map deferred | unreachable |
161+ | ` gpt2 ` | — | ` gpt2 ` | supported | supported |
162+ | ` hunyuan-dense ` | ` hunyuan_v1_dense ` | ` hunyuan_v1_dense ` | supported | supported |
163+ | ` internlm2 ` | — | ` internlm2 ` | supported | rejected |
164+ | ` llama ` | ` mistral ` | ` llama ` | supported | supported |
165+ | ` mamba ` | — | ` mamba ` | supported | supported |
166+ | ` muse-glimmer ` | ` muse_glimmer ` | ` muse_glimmer_text ` | supported | supported |
167+ | ` nemotron ` | — | ` nemotron ` | supported | supported |
168+ | ` nemotron_h_moe ` | — | — | config rejected; tensor_map rejected; graph rejected; runtime rejected | unreachable |
169+ | ` olmo ` | — | ` olmo ` | supported | supported |
170+ | ` olmo2 ` | — | ` olmo2 ` | supported | supported |
171+ | ` phi3 ` | — | ` phi3 ` | supported | supported |
172+ | ` qwen2 ` | — | ` qwen2 ` | supported | supported |
173+ | ` qwen2moe ` | ` qwen2_moe ` | ` qwen2_moe ` | supported | supported |
174+ | ` qwen3 ` | — | ` qwen3 ` | supported | supported |
175+ | ` qwen35 ` | — | ` qwen3_5_text ` | supported | supported |
176+ | ` qwen35moe ` | — | ` qwen3_5_moe ` | supported | supported |
177+ | ` qwen3moe ` | ` qwen3_moe ` | ` qwen3_moe ` | supported | supported |
178+ | ` smollm3 ` | — | ` smollm3 ` | supported | supported |
179+ | ` stablelm ` | — | ` stablelm ` | supported | supported |
180+ | ` starcoder2 ` | — | ` starcoder2 ` | supported | supported |
181+ | ` t5 ` | — | ` t5 ` | tensor_map deferred | unreachable |
182182
183183<!-- END GGUF SUPPORT MATRIX -->
184184
@@ -226,19 +226,93 @@ implemented and validated. These include fused/interleaved or dual-form QKV
226226## Supported stored quantization types
227227
228228` mobius/integrations/gguf/_quant_registry.py ` covers all 43 ` ggml_type ` slots
229- at the same pinned commit and answers four separate questions per slot:
230- whether the GGUF parse layer can read it, whether it can be dequantized to
231- float, whether its blocks are handed to the runtime unchanged, and whether it
232- can be repacked into a ` MatMulNBits ` affine layout.
233-
234- - ** Repacked to ` MatMulNBits ` ** : ` Q4_0 ` , ` Q4_1 ` , ` Q8_0 ` , ` Q4_K ` , ` Q6_K ` , ` Q1_0 ` .
235- - ** Preserved byte-for-byte** : ` MXFP4 ` , ` IQ4_NL ` , ` IQ4_XS ` , ` IQ3_S ` , ` IQ3_XXS ` ,
236- ` IQ2_XXS ` , ` IQ2_XS ` , ` IQ2_S ` , ` IQ1_S ` , ` IQ1_M ` .
237- - ** Rejected** : the eight retired slots (` Q4_2 ` , ` Q4_3 ` , ` Q4_0_4_4 ` ,
238- ` Q4_0_4_8 ` , ` Q4_0_8_8 ` , ` IQ4_NL_4_4 ` , ` IQ4_NL_4_8 ` , ` IQ4_NL_8_8 ` ), which have
239- a block size of 0 and are unreadable at the GGUF parse layer, and ` Q8_1 ` /
240- ` Q8_K ` , which are compute-only intermediates that are never valid weight
241- storage.
229+ and all 25 active storage-quantized types at the same pinned commit. Every
230+ stored qtype has one explicit projection/output route. The table is generated
231+ from that registry and checked byte-for-byte by ` _quant_registry_test.py ` .
232+ Those routes apply only when the architecture table above marks quantized
233+ import supported; otherwise ` keep_quantized=True ` is rejected before graph
234+ construction.
235+
236+ <!-- BEGIN GGUF QUANTIZATION MATRIX (generated; see _quant_registry.py) -->
237+
238+ | Stored qtype | ID | Projection/output route | Direct exactness | Embedding route | Expert-major route | Non-MatMul route | Runtime |
239+ | ---| ---:| ---| ---| ---| ---| ---| ---|
240+ | ` Q4_0 ` | 2 | affine repack | exact | affine repack | rejected | dequantize to float | deferred |
241+ | ` Q4_1 ` | 3 | affine repack | lossy | affine repack | rejected | dequantize to float | deferred |
242+ | ` Q5_0 ` | 6 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
243+ | ` Q5_1 ` | 7 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
244+ | ` Q8_0 ` | 8 | affine repack | exact | affine repack | rejected | dequantize to float | deferred |
245+ | ` Q2_K ` | 10 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
246+ | ` Q3_K ` | 11 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
247+ | ` Q4_K ` | 12 | affine repack | lossy | affine repack | rejected | dequantize to float | deferred |
248+ | ` Q5_K ` | 13 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
249+ | ` Q6_K ` | 14 | affine repack | lossy | affine repack | rejected | dequantize to float | deferred |
250+ | ` IQ2_XXS ` | 16 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
251+ | ` IQ2_XS ` | 17 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
252+ | ` IQ3_XXS ` | 18 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
253+ | ` IQ1_S ` | 19 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
254+ | ` IQ4_NL ` | 20 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
255+ | ` IQ3_S ` | 21 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
256+ | ` IQ2_S ` | 22 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
257+ | ` IQ4_XS ` | 23 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
258+ | ` IQ1_M ` | 29 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
259+ | ` TQ1_0 ` | 34 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
260+ | ` TQ2_0 ` | 35 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
261+ | ` MXFP4 ` | 39 | native byte-preserved | — | dequantize/requantize | native byte-preserved | dequantize to float | deferred |
262+ | ` NVFP4 ` | 40 | dequantize/requantize | — | dequantize/requantize | rejected | dequantize to float | deferred |
263+ | ` Q1_0 ` | 41 | affine repack | exact | affine repack | rejected | rejected | deferred |
264+ | ` Q2_0 ` | 42 | rejected | — | rejected | rejected | rejected | deferred |
265+
266+ <!-- END GGUF QUANTIZATION MATRIX -->
267+
268+ ` Q4_0 ` , ` Q8_0 ` , and mainline ` Q1_0 ` have exact formulas when the graph uses
269+ their direct affine target. Exactness is target-dependent: normalizing ` Q8_0 `
270+ to a mixed graph's 4-bit/block-32 target is lossy, while ` Q1_0 ` is rejected
271+ when its exact 2-bit/block-128 target cannot be used because it has no decoder.
272+ ` Q4_1 ` rounds its floating source offset to an integer zero point; ` Q4_K ` and
273+ ` Q6_K ` are decoded and requantized to 4-bit/block-32, so those direct affine
274+ routes are lossy. The remaining dequantize/requantize routes use the pinned
275+ ` gguf-py ` decoder and a 4-bit/block-32 target. ` Q2_0 ` is rejected because the
276+ pinned package has neither a decoder nor a compatible runtime kernel.
277+
278+ Native bytes are only valid for compatible ` BlockQuantizedMatMul `
279+ projection/output weights. They are not a ` GatherBlockQuantized ` embedding
280+ ABI. Tied input/output weights may share one affine table, but native projection
281+ support does not make the embedding native. Native expert-major tensors are
282+ accepted only when the source is contiguous and maps to complete per-expert
283+ projection rows. Non-native expert-major tensors are rejected in quantized mode
284+ until a complete split-and-repack path exists; ` keep_quantized=False ` retains
285+ the existing float normalization path. Norms, biases, and other non-MatMul
286+ tensors are dequantized to float or rejected. Runtime remains ** deferred** until
287+ real-weight ONNX Runtime execution is recorded; graph construction and operator
288+ ABI matching are not runtime evidence.
289+
290+ ### Representative mixed-qtype evidence
291+
292+ The following file was downloaded and inspected; its preset name was not used
293+ to infer tensor formats:
294+
295+ - Repository: ` lmstudio-community/Qwen2.5-0.5B-Instruct-GGUF `
296+ - Revision: ` 3b32d0bf1ac136098d417677c7d757360f1ceb6b `
297+ - Filename: ` Qwen2.5-0.5B-Instruct-Q4_K_M.gguf `
298+ - Size: ` 397807936 ` bytes
299+ - LFS SHA-256: ` fa4d41b65761ed565cac6b5f62e35135d050408b033114a128ab308c02b2e83a `
300+ - Tensor inventory: 290 tensors: 121 ` F32 ` , 132 ` Q5_0 ` , 12 ` Q4_K ` ,
301+ 12 ` Q6_K ` , and 13 ` Q8_0 `
302+ - Element inventory: 71,552 ` F32 ` ; 251,854,848 ` Q5_0 ` ; 52,297,728
303+ ` Q4_K ` ; 52,297,728 ` Q6_K ` ; 137,510,912 ` Q8_0 `
304+ - Build evidence: direct import produced one model with 169 ` MatMulNBits `
305+ nodes, one ` GatherBlockQuantized ` node, and no ` BlockQuantizedMatMul ` nodes
306+
307+ This file therefore takes mixed routes: ` Q4_K ` /` Q6_K ` use their declared lossy
308+ affine conversion, ` Q5_0 ` dequantizes/requantizes, and ` Q8_0 ` is converted to
309+ the graph's common 4-bit/block-32 target rather than retaining its standalone
310+ 8-bit affine layout. This is build evidence, not runtime execution evidence.
311+
312+ The eight retired slots (` Q4_2 ` , ` Q4_3 ` , ` Q4_0_4_4 ` , ` Q4_0_4_8 ` ,
313+ ` Q4_0_8_8 ` , ` IQ4_NL_4_4 ` , ` IQ4_NL_4_8 ` , ` IQ4_NL_8_8 ` ) have block size zero
314+ and are unreadable. ` Q8_1 ` and ` Q8_K ` are compute-only intermediates, never
315+ valid GGUF weight storage.
242316
243317
244318## NVIDIA Nemotron 3.5 Lightning waiver
0 commit comments