到手即坏:公共模型注册表中无法使用的量化LLM制品及其识别方法

·

研究论文 · 2026/10/31

开发者从公共模型注册表下载量化大语言模型(LLM)以在本地运行。我们检查的注册表均未记录对其文件进行功能测试。我们测试了官方Ollama库中15个模型系列的全部305个符合条件的代码能力GGUF标签(llama.cpp格式),以及22个流行的Hugging Face社区文件。一个15任务代码筛选识别出可疑文件,随后我们在全部164个HumanEval+任务上重新测试。七个官方标签(2.3%)最多只解决了六个任务。它们都是参数量不超过40亿的模型的低比特量化版本。我们从原始权重重建了五个可疑文件。所有五个注册表文件与我们未校准的重建张量逐张量匹配,因此没有损坏。精确可复现并不意味着功能正常。在权重、工具链和张量混合固定不变的情况下,添加重要性矩阵使三个Qwen2.5-Coder-3B构建从解决零个任务提升到76-113个任务。相同的未校准配方使较小的Qwen2.5-Coder-1.5B保持功能正常,表明仅凭配方无法预测失败。通过筛选的66个抽样标签中没有一个非功能。我们发布了审计数据和quantcheck工具,并建议在发布前筛选低比特标签,然后校准或保留失败项。

该研究揭示了公共模型注册表中量化LLM文件缺乏功能测试的普遍问题,并提供了可操作的筛选工具和校准建议,对依赖量化模型的开发者具有重要实践意义。

Developers download quantized large language models (LLMs) from public registries to run them locally. None of the registries we examined documented functional testing of their files. We tested all 305 eligible code-capable GGUF tags (the llama.cpp format) across 15 model lines in the official Ollama library, plus 22 popular Hugging Face community files. A 15-task code screen identified suspects, which we retested on all 164 HumanEval+ tasks. Seven official tags (2.3%) solved at most six of them. All were low-bit quantizations of models with at most four billion parameters. We rebuilt five suspect files from the original weights. All five registry files matched our uncalibrated rebuilds tensor for tensor, so none was corrupted. Exact reproducibility did not imply function. With the weights, toolchain and tensor mix held fixed, adding an importance matrix raised three Qwen2.5-Coder-3B builds from zero to 76-113 solved tasks. The same uncalibrated recipe left the smaller Qwen2.5-Coder-1.5B functional, showing that the recipe alone does not predict failure. None of 66 sampled tags that passed the screen was non-functional. We release the audit data and the quantcheck tool and recommend screening low-bit tags before publication, then calibrating or withholding failures.

阅读原文

参与讨论