Broken on Arrival: Failed Quantized LLM Files in Public Model Registries and Methods to Identify ThemBroken on Arrival: Non-Functional Quantized LLM Artifacts in Public Model Registries and How to Catch Them
The authors conduct an execution census of 305 GGUF tags in the official Ollama library; 7 (2.3%) are largely non-functional on HumanEval+, rebuild comparisons show none are file corruption, and calibration can partially rescue them.
- Developers download quantized GGUF files from public registries to run locally, but none of the registries the paper examined record functional testing before release; the frequency and causes of quantized file failure had not previously been measured at registry scale.
- An execution census of all 305 eligible code tags in the official Ollama library and 22 HF community files: first screen with a 15-task suite, run suspect tags on all 164 HumanEval+ tasks, then rebuild from the original weights using the same recipe and compare tensor by tensor to distinguish file corruption from recipe, model, and backend factors.
- 7 official tags (2.3%) are non-functional, all low-bit quantizations of ≤4B models; 5 rebuilt files match the registry files tensor by tensor, ruling out corruption; for Qwen2.5-Coder-3B, adding an importance matrix to three failing levels raises HumanEval+ from 0 to 46–69%; all 66 sampled tags that passed screening were not non-functional.
- The authors note: screening tests only Python code generation; the census covers a single registry's 15 model lines and tags within 8 GB, and 7 is a lower bound; rescue evidence comes mainly from Qwen2.5-Coder-3B and phi3.5; the two llama3.2-1B tags were not reconstructed or attributed; the attribution rules were not publicly pre-registered.
- Evaluated models
- Qwen2.5-Coder-3Bphi3.5-minillama3.2-1BQwen2.5-Coder-1.5BQwen2.5-Coder-0.5BQwen2.5-Coder-7Bdeepseek-coder-1.3Bdeepseek-coder-6.7Bstarcoder2-15Bgemma3-270M
- Benchmarks
- HumanEval+MBPP+Ollama 官方模型库Hugging Face 社区 GGUF 文件WikiText-2
- Metrics
- 15 任务筛查通过数HumanEval+ 通过任务数(/164)WikiText-2 困惑度6-gram 重复率截断率
Researchers tested 305 qualifying code-capability tags in the official Ollama library and found that 7 (2.3%) could not complete code tasks; another 22 Hugging Face community files were also examined. All 7 failed tags were low-bit quantized files of small models with no more than 4B parameters; on the full 164-item HumanEval+, 6 solved 0 problems and 1 solved 6. After rebuilding 5 of them from the original weights using the same recipe, the registry files matched the rebuilt results tensor by tensor, indicating that the files were not corrupted but rather the result of uncalibrated quantization, and calibration partially recovered four of them. With weights, toolchain and tensor combinations fixed, adding an importance matrix raised Qwen2.5-Coder-3B from 0 to 76–113 out of 164 problems across three quantization levels, while the 1.5B version still worked under the same uncalibrated recipe. The authors released audit data and the quantcheck tool, and recommend that registries screen low-bit tags before publishing and either calibrate or withhold failed items.
Why it was selectedThe paper empirically tested 305 quantized tags in the official Ollama library, found that 7 could not complete code tasks, and used rebuild comparisons to distinguish file corruption from uncalibrated quantization problems.
Paper analysis
What problem does this paper attempt to solve?
Quantized GGUF files in public registries have no functional testing before release; the paper measures their failure frequency and attributes it.
Core question: quantized LLM files (GGUF) distributed by public model registries have no recorded functional testing before release—how many of them are "broken on arrival", and why.
- Setting and importance: running an LLM locally usually means pulling a quantized file from a registry; the paper cites measurement studies reporting more than 320,000 publicly reachable self-hosted LLM services, of which 155,423 are Ollama instances. Neither registry pages nor file metadata record functional testing, so the authors consider every registry tag an "unverified input".
- Gaps in existing work: the authors state that prior studies have separately compared quantization precision, mined model hub metadata, tested API output equivalence, and there are individual failure reports (e.g., SynConfRoute measured Qwen2.5-Coder-3B q2_K at 0%), but no study has measured the frequency of quantized file failure at registry scale, nor reconstructed failing files to recover their recipe (Table I).
- Core observation: the authors view model distribution as a data pipeline—checkpoints are converted, quantized and published with no functional check recorded throughout; execution and reconstruction answer two different questions, because a file can match the recipe exactly and still not work.
- What the paper proposes: an execution census (305 official tags + 22 community files), a recipe-matched attribution procedure (reconstruct from the original weights and compare tensor by tensor), a 15-task acceptance screening, and audit data released with the quantcheck tool.
- Threat model: the paper is not an attack study and has no attacker setting; the object of study is the registry-distributed quantized artifact as a supply chain object, concerned with non-malicious functional failures (uncalibrated quantization, missing chat templates, etc.), and the victims are downstream users who download these files. The paper mentions only in related work that quantization can be used to trigger malicious behavior [36][37]; this paper does not study that case.
What related research exists?
Related work falls into three groups: quantization and calibration, execution auditing and provenance, and software supply chain acceptance testing.
Quantization and calibration
- GPTQ [12], AWQ [13], llama.cpp importance matrix [14]—calibration methods that use sample activations to guide weight quantization; the imatrix authors report the largest perplexity gains at the lowest bit widths, and Qwen's quantization guide recommends AWQ or imatrix and notes that some mixes "just don't work".
- Quantization precision studies [16][17][18][19]—4-bit AWQ preserves code correctness [16]; code-specific calibration data limits loss at 3 and 2 bits [17]; small models trained on many tokens degrade most under low-bit quantization [19].
- Failure cases—the llama.cpp discussion forum reports uncalibrated Q2_K builds producing garbled output [20]; SynConfRoute measured Qwen2.5-Coder-3B q2_K at 0% via Ollama and attributed it to the precision level [21]; Singh et al. probed the quantization ladder of 13 Ollama models and 14 Unsloth builds, finding q2_K builds unusable, but did not determine whether the files were mis-quantized [22]. The paper notes that none of these studies compared plain and calibrated builds at the same weights and same level, nor reconstructed failing registry files.
Execution auditing and provenance
- Model hub studies [23]–[28]—mine metadata, statically inspect files, examine reuse practices, naming, maintenance and security risks; Wang et al. propose an LLM supply chain research agenda [28].
- Output-side auditing—model equivalence testing compares API output distributions to detect changes such as quantization [29]; a substitution audit study found output-based checks unreliable for quantization or partial substitution [30]; Kimi Vendor Verifier checks third-party deployments of a single model family [31].
- Liu and Tsai [38]—test whether HF GGUF files can be re-derived bit-for-bit from the publisher's own full-precision files; the paper says they ask "can it be reproduced" while this paper asks "does it work, and if not, why", and it is the closest work to the attribution step.
Acceptance testing in software supply chains
- Package registry studies [39]–[41]—supply chain attack taxonomies, measurement of npm weak points, malicious packages reaching users through normal installation; registry-side scanning and continuous integration testing are defenses.
- ML testing methods—behavioral testing finds critical failures in NLP models [42]; simple smoke tests find severe bugs in ML libraries [43]; about 100 curated samples can estimate full-benchmark accuracy [44]; a conversion study found that a third of reported converter failures produce semantically incorrect ONNX models [45].
Baselines and comparison objects: the paper has no methodological baseline; the comparison objects are third-party builds (bartowski's imatrix files, Qwen official Instruct-AWQ files, unsloth files) as attribution references. The authors position this paper as the combination of three: registry-scale census + recipe control + controlled attribution (the only work in Table I with all three).
How does the paper address this problem?
A 15-task screening identifies suspects, 164 tasks confirm, then rebuild from the original weights using the same recipe and compare tensor by tensor for attribution.
The overall approach is a three-stage pipeline (Fig. 1): first cheaply screen all tags with a tuned 15-task code suite, confirm suspect tags on all 164 HumanEval+ tasks, then reconstruct from the original checkpoint using the recipe indicated by the metadata and compare tensor by tensor, attributing the failure to file, recipe, model, template or backend. The tool is released as quantcheck.
Sampling frame
- Official library: enumerate every qualifying tag in the Ollama official model families selected at design time—instruction-tuned, code-capable, with an explicit quantization suffix, file ≤8 GB; yielding 305 artifacts covering 35 variants across 15 model lines, of which 291 are quantized and 14 fp16. This is the qualifying population, not a sample.
- Community channel: 22 Q2_K to Q4_K_M files from 12 popular GGUF repositories on HF. The list was generated on August 10, 2026, and the census was run on August 12.
15-task screening
- Tuning: tuned on the full EvalPlus benchmark across 24 Qwen2.5-Coder configurations (0.5B–7B, 2-bit to fp16); 39 tasks were solved by all 23 healthy configurations, and the suite takes the first 15 of these by lexicographic task ID.
- Two phases: phase one flags artifacts passing fewer than 9/15; phase two compares against the same variant's high-precision group baseline (median of q6_K/q8_0/fp16), classifying into five categories: healthy (≥60% of baseline), suspect (≤2/15 and baseline ≥8), low baseline, degraded, no baseline.
- Non-functional determination: a suspect that solves fewer than 10% of the 164 HumanEval+ tasks is called non-functional; only suspects proceed to reconstruction attribution.
Recipe-matched reconstruction attribution
- Reconstruction: download the original checkpoint, convert and quantize it to the same level using the recipe indicated by the registry metadata (no quantize.imatrix key, i.e., uncalibrated), called the suspect's referee; llama3.2-1B was not reconstructed due to license restrictions.
- Decision rules (a dated run plan written before reconstruction; the rescue clause was added after the first batch of reconstruction results and written before the controlled calibration runs): a suspect ≤2/15 while the plain reconstruction ≥5 and at least 4 more is judged a file defect; a plain reconstruction failing to a comparable degree is judged a collapse; a calibrated build with the same weights and same level ≥5 and at least 4 more than the plain reconstruction is judged calibration-rescued.
- Comparison: check type, shape and bytes tensor by tensor, ignoring metadata and order; the authors stress that matching the reconstruction is itself a finding, because the reconstruction is produced independently from the original checkpoint.
Experimental setup
- Generation uses Ollama 0.32.6 (bundled llama.cpp 96278e3) fixed; reconstruction uses llama.cpp v0.7.0 (620d222) on CPU; backends are RTX 4090 CUDA (census) and Apple M2 Metal (reproduction); decoding is greedy, seed 42, context 2048, at most 768 new tokens (Table II).
- Scoring uses EvalPlus 0.3.1 HumanEval+ enhanced tests, evaluated one at a time; calibration uses 100 segments of 512 tokens from the WikiText-2 training set or 1.5 MB of Python source to generate the imatrix.
- Scoring fault correction: the census scorer had misjudged HumanEval/15 as failed for all artifacts; after serial re-evaluation that task passes on 275/305 official artifacts, phase-one flags drop from 50 to 39, the 7 suspects are unchanged; the paper reports serial scores throughout.
What experiments did the paper conduct?
A census of 305 official tags finds 7 non-functional; 5 rebuilds match tensor by tensor, ruling out corruption; calibration partially rescues; screening has no misses.
Experimental setup
- Subjects under test: 305 qualifying tags (291 quantized + 14 fp16) across 15 model lines and 35 variants in the official Ollama library, plus 22 HF community GGUF files; reconstruction involved fixed-version checkpoints of Qwen2.5-Coder-3B/1.5B/0.5B-Instruct and Phi-3.5-mini-instruct.
- Benchmarks: a 15-task screening suite (the first 15 HumanEval+ tasks, by task ID, among those solved by all 39 fully healthy configurations); all 164 HumanEval+ tasks for confirmation; HumanEval+ and MBPP+ for tuning; WikiText-2 test set, 20 segments of 512 tokens, for perplexity.
- Metrics: number of 15 tasks passed, number of HumanEval+ tasks passed (/164), WikiText-2 perplexity, and 4 cheap output statistics (6-gram repetition, prompt echo, truncation, header patterns).
- Scoring: EvalPlus 0.3.1 enhanced tests, requiring both base and enhanced tests to pass, evaluated serially one at a time; no LLM judging.
- Repetition and reproduction: a second RTX 4090 with the same build and same task order reproduced all 225 responses of the 15 census tags (byte-for-byte identical); 5 Qwen/phi3.5 suspects were rerun on the 15-task suite on Metal.
- Sample size: the missed-detection audit sampled 66 of 233 unmarked official tags (56 stratified random + the first version's 10), each run on 49 pre-fixed other HumanEval+ tasks.
Main results
Table III classification of the 305 official artifacts (serial scores):
Category Count Healthy (≥60% of group baseline) 271 Degraded (<60%, baseline ≥8) 2 Low baseline (baseline <8/15) 6 Suspect (≤2/15, baseline ≥8) 7 No in-frame baseline 19 Per Table III. The 7 suspects confirmed on 164 tasks: 6 passed 0, llama3.2-1B q3_K_S passed 6; forming three incidents—4 adjacent low-bit tags of Qwen2.5-Coder-3B, 1 phi3.5-mini tag, 2 llama3.2-1B tags.
- The authors report proportions of 7/305 (2.3%) and 3/35 variants (8.6%), Wilson 95% intervals 1.1–4.7% and 3.0–22.4%, and consider the variant rate the better summary.
- All 7 suspects fall among the 48 tags of ≤4B models at q2_K–q3_K_L (14.6%, which the authors note is a post hoc descriptive subgroup); the remaining 257 tags have no suspects.
- Exception: all 12 tags of deepseek-coder-1.3B (including fp16) score only 1–6/15, and fp16 solves only 16 on 164 tasks; because the whole group scores low it escapes relative screening; the authors leave it unattributed and state that 7 is a lower bound.
RQ2: Attribution
- No file corruption: the 4 Qwen tags match the reconstruction in all 434 tensors, differing only in metadata; the phi3.5 tag, after its 32 attn_qkv tensors are set to Q2_K, matches the reconstruction in all 197 tensors, and that reconstruction also scores 0/15 and 0/164. All 5 files are exact uncalibrated quantizations of the released weights and by the rules are not file defects (Table IV).
- Calibration partially rescues: with weights, toolchain and tensor combination fixed, imatrix raises Qwen q2_K from 0 to 106–113/164, q3_K_M to 76–89, q3_K_L to 80–86 (Fig. 3); phi3.5 with the current combination plus imatrix goes from 0 to 37 (McNemar p=0.007). Qwen q3_K_S is weak under every calibration (13–30/164), and the rescue rule is not met.
- The same recipe does not break 1.5B: the q2_K–q3_K_L tags of Qwen2.5-Coder-1.5B match the reconstruction in all 338 tensors and remain functional (13–15/15, Table VI); the authors state the recipe alone cannot predict failure. The two llama3.2-1B tags were not reconstructed or attributed, and their third-party calibration reference also fails (1 and 4/15).
- Template problem: 2 TheBloke deepseek-coder-6.7B community files have no chat template, fall back at runtime to generic ChatML, and score only 5 and 6/15; after switching to the model's instruction template they rise to 13 and 15/15, and the 164-task scores rise from 16, 18 to 98, 101; recorded as template-dependent screening failure rather than file defect.
RQ3: Detection without executing generated code
- Output statistics: truncation rate ≥0.2 flags 3 suspects and 10 other tags; 6-gram repetition ≥0.2 flags 3 suspects and 4 others; both ≥0.3 together catch 4 suspects; they miss Qwen q3_K_M, q3_K_L and llama3.2-1B q3_K_S.
- Perplexity: the 5 tested non-functional library files have perplexity 27 to 5,700 times their fp16, and 4-bit tags are within about 5% of fp16 (Table VII); a 10–25× threshold would flag all 5, but the threshold was chosen post hoc and the false-positive rate is unknown.
- Authors' conclusion: perplexity is not a functional determination—calibrated Qwen Q3_K_M has perplexity about 6× fp16 yet solves 76/164; neither class of method can distinguish file corruption from recipe failure, and reconstruction comparison is still needed.
RQ4: Screening as an acceptance gate
- Precision and missed detections: all 7 suspects confirmed (≤6/164); the 66 sampled unmarked tags solve 8–41 of the 49 audit tasks, none non-functional; the 56 recorded samples give an exact stratified 95% upper bound of 22 non-functional files among 223 tags (9.9%).
- Suite choice and generation settings: under serial scores, any subset of ≥3 tasks preserves the suspect status of the 5 reconstructed suspects; llama3.2-1B q3_K_S drops out in 31–87% of 3–14 task subsets. All re-tested determinations hold under the alternative settings in Table VIII (4k/8k context, 2k cap, temperature 0.2 with three seeds); the calibration builds were not rerun under these settings.
- Cost: single-tag screening generation takes 12–105 seconds (median 30 seconds), excluding download.
Other ablations and analyses
- Scoring fault correction: phase one flags go from 50 to 39, the 7 suspects are unchanged, and 1 non-suspect changes from degraded to healthy (Section III-B).
- Bit budget does not explain the 3B failure: the uncalibrated 3B q4_0 tag (1.8 GB, about equal to the 1.7 GB of the failing q3_K_L) scores 15/15.
- The 0.5B tags do not test the recipe: their 896-wide rows cannot hold 256 weight blocks, 96–144/169 matrices fall back to 4-bit types, and they actually run at 5.4–5.9 bits/weight.
- Calibration rescues less at higher bit widths: calibrated Q2_K is about 1.3× fp16 perplexity and solves 106–113 tasks, while calibrated Q3_K_M/L stay at about 6× fp16 perplexity and solve fewer; the authors state they have not found the cause of the residual Q3_K gap.
- The phi3.5 library file is byte-identical to two HF uploads and tensor-identical to a third; the same artifact reaches users through four channels.
What are some points that can be further explored?
The authors list three types of validity threats: construct, internal, and external; the experiments cover one registry and two models as rescue evidence.
Limitations and future directions noted by the authors
- Construct validity (Section VI): screening tests only Python code generation, and the counts describe only that use; artifacts may fail on other tasks yet still pass screening; the 15 tasks are easy by construction and were selected on the model family where 4 of the 7 failures occur; the 15-task threshold is coarse.
- Internal validity (Section VI): determinations may reflect evaluation framework errors—the HumanEval/15 scoring fault shows framework errors happen (the correction changed no suspect or attribution determination); the llama3.2-1B tag pair was neither reconstructed nor reproduced on Metal; the attribution rules are recorded in a dated local run plan but were not publicly pre-registered, and the rescue rule was added after the first batch of results.
- External validity (Section VI): the census covers only the code-capable instruction tags of one registry (≤8 GB, 15 model lines) and a small, popularity-selected community sample; 7 is a lower bound because groups that score low even at full precision, such as deepseek-coder-1.3B, are not counted.
- Scope of rescue evidence (Section VI): rescue evidence comes from Qwen2.5-Coder-3B and phi3.5, with most results from Qwen; whether other models fail under uncalibrated low-bit recipes remains an open question.
- Runtime environment (Section VI): generation runs use one fixed runtime, and the llama.cpp used for reconstruction is newer than what the registry may have used at the time.
- Future directions (Section V): the perplexity pre-check threshold still needs tuning on more models; the authors recommend that registries screen every low-bit tag before release and record the quantization recipe, calibration inputs and effective bit width in the metadata.
Experimental coverage
- The census covers 305 qualifying tags (≤8 GB, code-capable, instruction-tuned) across 15 model lines and 35 variants in the official Ollama library, plus 22 HF community files; both the list and the census are in August 2026.
- Reconstruction attribution was performed for only 5 of the 7 suspects (4 Qwen2.5-Coder-3B + 1 phi3.5); the two llama3.2-1B tags were not reconstructed or attributed due to license restrictions.
- Functional evaluation covers only code generation: 164 HumanEval+ tasks, MBPP+ (tuning only) and 49 audit tasks; perplexity is measured only on WikiText-2.
- Backend coverage is NVIDIA CUDA (census, reruns) and Apple Metal (15-task reproduction of only the 5 Qwen/phi3.5 suspects); generation uses a fixed Ollama 0.32.6 version.
- The paper does not report screening detection rates on task types other than code, nor perplexity for the llama3.2-1B tag pair and the remaining tags (the perplexity threshold's false-positive rate is unknown).
Summarize the main content of the paper
Census of registry quantized files: 7/305 non-functional but not corrupted; exact reproduction does not equal functionality; calibration can partially rescue.
An empirical study on the quality of the quantized LLM supply chain: the authors conduct an execution census of all 305 eligible code tags in the official Ollama library and 22 HF community GGUF files, answering "how many quantized artifacts are broken on arrival, why, and how to stop it."
- Problem: neither the registry nor file metadata records pre-release functional testing; quantized tags are unverified inputs; previously there was no registry-scale measurement of failure.
- Method: 15-task suite screening (adapted from 24 Qwen2.5-Coder configurations) → suspect tags run all 164 HumanEval+ tasks → rebuild from the original checkpoint using the metadata recipe and compare tensor by tensor, distinguishing file corruption from recipe, model, template, and backend factors; rules and run plans are dated, and tools and audit data are released with quantcheck.
- Failure scale: 7 official tags (2.3%, 3/35 variants) are non-functional, 6 pass 0 of 164 tasks; all are q2_K–q3_K_L low-bit tags of ≤4B models (14.6% of the 48 tags in that subgroup); the entire deepseek-coder-1.3B group scores low and escapes relative screening, and 7 is a lower bound.
- Attribution: 5 rebuilt files match the registry files tensor by tensor (Qwen 434 tensors, phi3.5 197 tensors), none corrupted; for Qwen2.5-Coder-3B, with fixed weights, toolchain, and tensor combination, adding an importance matrix raises three failing levels from 0 to 46–69% HumanEval+ (q3_K_S remains weak under all calibrations, 13–30/164); the same uncalibrated recipe remains functional on 1.5B (13–15/15), and the authors state the recipe itself cannot predict failure.
- Detection: none of the 66 sampled tags that passed screening were non-functional, and single-tag screening takes a median of 30 seconds to generate; output statistics catch only 4 of the 7 failures, and perplexity (27–5,700× fp16) flags all 5 tested failing builds but the threshold was chosen post hoc.
- Authors' conclusion: exact reproduction does not equal functionality—provenance and reproducibility checks show where a file came from and how it was made, and only functional testing shows whether it can complete the intended task; the authors recommend that registries screen every low-bit tag before release and publish results alongside the recipe, and caution that research treating registry tags as stand-ins for a model at a given precision may misread recipe problems as precision limits.