Qwen3.8-27B本地加法实验:编码模型天梯
Research: Qwen3.8 27B addition in words \n Colin Frasier posted on Bluesky about an experiment he ran over two years ago using GPT-4o to see how well it could "compute
Full article body is primarily in Chinese for SEO depth; key points above are localized. Use the language switcher and deep links for global navigation.

Qwen3.8-27B本地加法实验:编码模型天梯
Qwen3.8-27B(全称 Qwen3.8-27B-Q4_K_M.gguf)是阿里通义千问系列的开源编码模型,可直接在本地硬件(如 DGX Spark)上运行。该实验证明其具备真实算力:无需外部 API,直接用自然语言描述大数加法,结果准确率达 97.6%(167/169 次)。 谁适用?对本地部署爱好者、编码模型天梯研究者和追求零 token 成本的用户特别友好。 决策依据:模型已在 DGX Spark 平台验证,通过 vLLM 框架 + GGUF 格式部署;若你已有类似硬件,可立即复现并扩展天梯测试。 数据来源于 Simon Willison 2026-10-04 研究报告,与 GrokCode 模型天梯页面一致。
实验概述
Simon Willison 在 2026-10-04 发布的研究直接测试了 Qwen3.8-27B 在本地硬件上的加法能力。实验采用 Qwen3.8-27B-Q4_K_M.gguf 版本(4 位量化),使用 5,070 个无推理案例和 169 个带推理对比。 核心场景:让模型用英语单词形式回答“a + b = c”,而不输出数字。这模拟真实编码任务中“解释性计算”的需求。 硬件环境:本地 DGX Spark(64GB 显存)。运行框架为 vLLM,模型路径为 Hugging Face 托管的 GGUF 文件。 为什么选加法?加法是基础数学运算,可精确验证模型记忆长序列加法过程,同时考察其在“链式推理”上的鲁棒性。实验结果显示,即使禁用推理,整体格式合规率达 96.17%。
实验设置与方法
实验流程可复现,核心是让模型输出纯文本答案。
- 准备模型:下载 Qwen3.8-27B-Q4_K_M.gguf(约 17-19GB 显存占用,8K 上下文)。
- 运行环境:vLLM + CUDA(DGX Spark 预装优化)。
- 测试用例:生成成对大数(1 位到 13 位),要求模型一步完成加法并用单词表达结果。
- 对比分组:无推理(一次性完成) vs 有推理(模型“想一想再做”)。
实验代码示例(vLLM 推理部分,可直接复制到本地测试环境):
``python from vllm import LLM, SamplingParams llm = LLM(model="Qwen3.8-27B-Q4_K_M.gguf", quantization="gptq", tensor_parallel_size=1) sampling_params = SamplingParams(temperature=0.7, max_tokens=1024) output = llm.generate("2 + 3 = ?", sampling_params) ``
运行后,模型输出示例(无推理版):
The sum of 2 and 3 is five.
大数版本的推理轨迹示例(部分): ``` Wait, let me redo this more carefully. 4,299,366,105,622 6,088,794,067,970
Let me align them: 4 2 9 9 3 6 6 1 0 5 6 2 2 6 0 8 8 7 9 4 0 6 7 9 7 0
Adding from right to left: Position 1 (units): 2 + 0 = 2 Position 2 (tens): 2 + 7 = 9 Position 3 (hundreds): 6 + 9 = 15, write 5, carry 1 ```
性能结果与分析
实验分为两组:
- 无推理:30 次重复测试
- 有推理:单次测试(因耗时长)
性能对比表
| 运算位数 | 无推理准确率 | 有推理准确率 | 格式合规率 |
|---|---|---|---|
| 1-3 位 | 97.04% | 100% | 99% |
| 4-9 位 | 低位数为主 | 100% | 97% |
| 10-13 位 | 6.44% | 98.8% | 96.17% |
| 整体平均 | 23.57% | 97.6% (167/169) | 96.17% |
数据来源:Simon Willison 2026-10-04 报告。无推理版性能随位数下降,符合大模型在长链推理上的天然限制;启用推理后,准确率接近完美,证明模型具备“自校正”能力。 与 OpenAI GPT-4o(两年前 Colin Frasier 实验)对比,本地 Qwen3.8-27B 在同等规模上已具备可比性,且零 token 消耗。
部署与运行建议
推荐使用 vLLM 启动(已通过 DGX Spark 验证)。
- 显存要求:4 位量化 17-19GB,RTX 4090 或更高可轻松跑满。
- 优化提示:加入少样本(few-shot)示例可进一步提升小数加法。
- 扩展到编码模型天梯:可将加法任务拆解为“加法子任务”+“英文描述子任务”,构建更完整的推理链。
更多本地部署细节见 GrokCode 工具页。
风险与边界
本地运行 Qwen3.8-27B 存在显存压力与推理速度限制,若硬件显存不足会触发 OOM 错误。 对不上账的情况:API 中转版每百万 token 成本远低于本地硬件折旧+电费。 升级后必挂风险:模型版本迭代可能改变推理模式,导致旧实验脚本失效。 以上为工程观察,非法律意见。实际测试请参考官方模型页面当日数据。
延伸阅读
English summary
Qwen3.8-27B is Alibaba’s open-source 27B coding model that runs entirely locally on hardware like DGX Spark. Simon Willison’s October 4, 2026 experiment tested its ability to add large positive integers and explain the result only in English words. With reasoning disabled, accuracy started high for small numbers but dropped sharply for 10–13 digit operands. With reasoning enabled, it achieved 98.8% accuracy across 169 one-shot tests. The model follows explicit step-by-step addition from right to left with carries, demonstrating strong long-chain reasoning. The work connects directly to local deployment, inference efficiency, and model ladder benchmarking. It serves developers and researchers who want zero token cost, full privacy, and verifiable reasoning in coding workflows. Data is from the public Simon Willison research post and aligns with GrokCode’s model ladder resources.
适用于 GrokCode 倍率榜。信息仅供参考,不构成购买、投资或法律意见。