Skip to content

Commit c6b23e2

Browse files
justinchubyCopilot
andauthored
Validate every stored GGUF quantization type (#574)
## Summary - define an exhaustive importer policy for all 25 active storage-quantized GGML types at llama.cpp `8d9af256337d1a501250f9bbf4c0859a654bddd6` - classify every qtype and tensor role as native byte preservation, affine repack (exact/lossy), decoder-backed requantization, float dequantization, or actionable rejection - enforce target-dependent exactness, embedding and expert ABI restrictions, architecture capability checks, and quantized MTP sidecar routing - generate the support matrix from the registry and add mutation-resistant closure, numerical formula/layout, synthetic build/save/load, and real mixed-qtype evidence ## Policy highlights Native byte preservation is limited to compatible projection/output `BlockQuantizedMatMul` weights for IQ4_NL, IQ4_XS, IQ3_S, IQ3_XXS, IQ2_XXS, IQ2_XS, IQ2_S, IQ1_S, IQ1_M, and MXFP4. Embeddings use the separate `GatherBlockQuantized` ABI and are normalized accordingly. Non-native expert-major tensors reject in quantized mode unless their complete contiguous layout is supported. Unsupported `Q2_0` and unknown qtypes fail actionably. Runtime verdicts remain `DEFERRED` because graph construction is not runtime execution evidence. ## Real mixed-qtype evidence - repository: `lmstudio-community/Qwen2.5-0.5B-Instruct-GGUF` - revision: `3b32d0bf1ac136098d417677c7d757360f1ceb6b` - file: `Qwen2.5-0.5B-Instruct-Q4_K_M.gguf` - size: `397807936` bytes - SHA-256: `fa4d41b65761ed565cac6b5f62e35135d050408b033114a128ab308c02b2e83a` - inventory: 121 F32, 132 Q5_0, 12 Q4_K, 12 Q6_K, 13 Q8_0 tensors - resulting graph: 169 `MatMulNBits`, one `GatherBlockQuantized`, zero `BlockQuantizedMatMul` ## Validation - `1119 passed` — all `src/mobius/integrations/gguf/` tests - `5517 passed, 52 skipped` — broad non-integration suite excluding `glm_moe_dsa` - initialized `lintrunner` formatter and full lint pass - two specialist review passes, with all findings resolved The unfiltered broad suite has two pre-existing `glm_moe_dsa` failures, independently reproduced on the base branch: missing inferred `logits` shape and missing ONNX checker `value_info.type`. This PR does not modify that model. --------- Signed-off-by: Justin Chu <[email protected]> Co-authored-by: Copilot App <[email protected]> Copilot-Session: 334b7f18-da8f-4559-b708-0342e3457fae
1 parent 05b4417 commit c6b23e2

14 files changed

Lines changed: 1081 additions & 154 deletions

‎docs/api/build_from_gguf.md‎

Lines changed: 131 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,18 @@ execution-provider-dependent.
123123

124124
F32-, 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

133133
Support 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

140140
Being 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

‎src/mobius/integrations/gguf/_arch_registry.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898
"generation validation. Runtime packaging remains deferred until that evidence exists."
9999
)
100100

101+
_NO_QUANTIZED_PROJECTION_REASON = (
102+
"The mobius graph uses floating Linear modules for this architecture, so no "
103+
"MatMulNBits or BlockQuantizedMatMul target can consume preserved GGUF projection "
104+
"weights. Use keep_quantized=False for explicit float import."
105+
)
106+
101107

102108
_SPECS: tuple[GGUFArchitectureSpec, ...] = (
103109
# ---------------------------------------------------------------- Llama
@@ -232,6 +238,8 @@
232238
tensor_map_recipe=("llama",),
233239
tensor_processor="llama",
234240
llama_qk_permute=True,
241+
quantized_import=Support.REJECTED,
242+
reason=_NO_QUANTIZED_PROJECTION_REASON,
235243
),
236244
GGUFArchitectureSpec(
237245
gguf_arch="olmo",
@@ -343,12 +351,14 @@
343351
gguf_arch="bloom",
344352
model_type="bloom",
345353
tensor_map=Support.DEFERRED,
354+
quantized_import=Support.REJECTED,
346355
reason=_NO_TENSOR_MAP,
347356
),
348357
GGUFArchitectureSpec(
349358
gguf_arch="t5",
350359
model_type="t5",
351360
tensor_map=Support.DEFERRED,
361+
quantized_import=Support.REJECTED,
352362
reason=(
353363
"T5 is an encoder-decoder with separate enc.*/dec.* tensor namespaces, "
354364
"relative attention bias, and cross-attention, none of which the "
@@ -361,6 +371,7 @@
361371
tensor_map=Support.REJECTED,
362372
graph=Support.REJECTED,
363373
runtime=Support.REJECTED,
374+
quantized_import=Support.REJECTED,
364375
reason=_NEMOTRON_H_MOE_REASON,
365376
),
366377
GGUFArchitectureSpec(
@@ -369,6 +380,7 @@
369380
tensor_map=Support.REJECTED,
370381
graph=Support.REJECTED,
371382
runtime=Support.REJECTED,
383+
quantized_import=Support.REJECTED,
372384
reason=_MMPROJ_REASON,
373385
),
374386
)

‎src/mobius/integrations/gguf/_arch_registry_test.py‎

Lines changed: 73 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,42 @@
5858
#: accidentally losing an architecture is a failure rather than a silence.
5959
_EXPECTED_SUPPORTED_COUNT = 29
6060

61+
# Quantized reachability is separately pinned from float importability. A new
62+
# architecture must explicitly prove that its graph exposes packed projection
63+
# modules before joining this set.
64+
_EXPECTED_QUANTIZED_IMPORT_ARCHITECTURES = frozenset(
65+
{
66+
"arcee",
67+
"cohere2",
68+
"deci",
69+
"deepseek4",
70+
"exaone",
71+
"falcon",
72+
"gemma",
73+
"gemma2",
74+
"gemma3",
75+
"gemma4",
76+
"gpt2",
77+
"hunyuan-dense",
78+
"llama",
79+
"mamba",
80+
"muse-glimmer",
81+
"nemotron",
82+
"olmo",
83+
"olmo2",
84+
"phi3",
85+
"qwen2",
86+
"qwen2moe",
87+
"qwen3",
88+
"qwen35",
89+
"qwen35moe",
90+
"qwen3moe",
91+
"smollm3",
92+
"stablelm",
93+
"starcoder2",
94+
}
95+
)
96+
6197

6298
class TestCapabilityClosure:
6399
"""The four capability verdicts must not contradict each other."""
@@ -85,7 +121,9 @@ def test_a_mappable_architecture_is_also_configurable_and_buildable(self, spec)
85121
def test_every_unsupported_capability_carries_a_reason(self, spec) -> None:
86122
"""Support must never be denied silently."""
87123
unsupported = [
88-
name for name, verdict in spec.verdicts.items() if verdict is not Support.SUPPORTED
124+
name
125+
for name, verdict in spec.capabilities.items()
126+
if verdict is not Support.SUPPORTED
89127
]
90128
if unsupported:
91129
assert spec.reason, f"{spec.gguf_arch}: {unsupported} lack a reason"
@@ -104,6 +142,30 @@ def test_the_supported_set_is_pinned(self) -> None:
104142
"""Gaining or losing support is a deliberate, reviewable change."""
105143
assert len(supported_architectures()) == _EXPECTED_SUPPORTED_COUNT
106144

145+
def test_quantized_import_set_is_pinned(self) -> None:
146+
"""Builder acceptance and rejection must come from an explicit policy set."""
147+
actual = frozenset(
148+
spec.gguf_arch
149+
for spec in iter_arch_specs()
150+
if spec.is_importable and spec.quantized_import is Support.SUPPORTED
151+
)
152+
assert actual == _EXPECTED_QUANTIZED_IMPORT_ARCHITECTURES
153+
154+
def test_every_float_importable_architecture_has_a_quantized_verdict(self) -> None:
155+
"""Float graph support must not be mistaken for quantized graph reachability."""
156+
actual = {
157+
spec.gguf_arch: spec.quantized_import
158+
for spec in iter_arch_specs()
159+
if spec.is_importable
160+
}
161+
assert set(actual) == set(supported_architectures())
162+
assert actual["internlm2"] is Support.REJECTED
163+
assert all(
164+
verdict is Support.SUPPORTED
165+
for arch, verdict in actual.items()
166+
if arch != "internlm2"
167+
)
168+
107169

108170
class TestNameResolutionClosure:
109171
"""Every named behavior resolves, and every implementation is reachable.
@@ -291,16 +353,24 @@ def _expected_rows() -> list[str]:
291353
for spec in sorted(iter_arch_specs(), key=lambda s: s.gguf_arch):
292354
aliases = ", ".join(f"`{a}`" for a in sorted(spec.aliases)) or "—"
293355
model_type = f"`{spec.model_type}`" if spec.model_type else "—"
356+
core_verdicts = {
357+
name: verdict
358+
for name, verdict in spec.verdicts.items()
359+
if name != "quantized_import"
360+
}
294361
status = (
295362
"supported"
296363
if all(verdict is Support.SUPPORTED for verdict in spec.verdicts.values())
297364
else "; ".join(
298365
f"{name} {verdict.value}"
299-
for name, verdict in spec.verdicts.items()
366+
for name, verdict in core_verdicts.items()
300367
if verdict is not Support.SUPPORTED
301368
)
302369
)
303-
rows.append(f"| `{spec.gguf_arch}` | {aliases} | {model_type} | {status} |")
370+
quantized = spec.quantized_import.value if spec.is_importable else "unreachable"
371+
rows.append(
372+
f"| `{spec.gguf_arch}` | {aliases} | {model_type} | {status} | {quantized} |"
373+
)
304374
return rows
305375

306376
def test_the_doc_table_matches_the_registry(self) -> None:

0 commit comments

Comments
 (0)