> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/dynamic-3.0-ggufs/dong-tai-3.1-gguf.md).

# 动态 3.1 GGUF

我们新方法的预览，旨在让量化模型更小，并最大化智能体性能

### Qwen3.8-27B

我们发布了新的 Qwen3.8-27B GGUF，采用了全新的 [**Unsloth Dynamic**](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/dynamic-3.0-ggufs.md) **V3.1（预览版）算法** 该算法在几乎所有基准测试中都能提升 Unsloth 量化模型的表现，并且在帕累托效率前沿上优于其他提供方，达到业界最佳水平。详见 [Qwen3.8-27B](https://unsloth.ai/docs/zh/mo-xing/qwen3.8.md) 了解更多详情。我们也很期待 Qwen-4，并将进一步改进方法，让量化模型更加高效！

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FRHyZ5X7qYZAdCQsgKT7R%2Ffour(1).png?alt=media&amp;token=3c563d60-5767-437a-a704-98fffecb04f8" alt="" width="563"><figcaption></figcaption></figure>

### DeepSeek-V4.1-Flash-1017

我们发布了新的 DeepSeek-V4.1-Flash-1017 GGUF，采用了全新的 [**Unsloth Dynamic**](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/dynamic-3.0-ggufs.md) **V3.1（预览版）算法** 该算法在几乎所有基准测试中都能提升 Unsloth 量化模型的表现，并且优于其他提供方，达到业界最佳水平。详见 [DeepSeek-V4.1-Flash](https://unsloth.ai/docs/zh/mo-xing/deepseek-v4.1-flash.md) 了解更多详情。

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fe3HYFau6qEpkFwkLVwru%2FCoder%20benchmark.png?alt=media&amp;token=59e2ab09-3f42-4226-bd03-3b5a8d109e6a" alt=""><figcaption></figcaption></figure>

### Qwen3.8-Flash-Next

我们还为 Qwen3.8-Flash-Next 提供了新的量化模型，并展示了我们的量化模型在各方面都表现最佳：

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FqdXHweLFGzUhUcqj7jZX%2Ffinal%20key%204.png?alt=media&amp;token=8e3249b1-e26c-4a04-82ba-7cfdef952fe6" alt=""><figcaption></figcaption></figure>

### 基准测试所用的评分器

<table><thead><tr><th width="269.95001220703125">基准测试</th><th width="172.35003662109375">评分内容</th><th>评分器</th></tr></thead><tbody><tr><td>DeepSWE v1.1</td><td>最终仓库补丁</td><td>任务的 fail-to-pass 和 pass-to-pass 测试在其容器中运行；全部通过才算通过（已验证：黄金补丁 113/113 通过，空补丁 0/113）</td></tr><tr><td>Terminal-Bench 2.1</td><td>代理停止时的容器状态</td><td>每项任务自己的验证器测试（harbor）；基础设施故障会重新运行，不计分</td></tr><tr><td>AutomationBench v1.0.6</td><td>回合结束后的应用状态</td><td>每项任务自己的检查；中止的回合不计入并会重新运行</td></tr><tr><td>Aider Polyglot</td><td>已编辑文件</td><td>练习单元测试，pass@2（看到失败的测试输出后可重试一次）</td></tr><tr><td>LiveCodeBench v6</td><td>最后两个 ``` 围栏之间的代码（官方 LCB 提取方式）</td><td>官方 LCB <code>run_test</code> 对隐藏测试进行评分；使用沙箱，并设置每项测试的超时、8 GB 内存上限、禁用网络并清理环境变量</td></tr><tr><td>AIME 2025、HMMT Feb 2025 / 2026、MATH-500 L5</td><td>最后一项 <code>\boxed{}</code></td><td><code>math_verify</code> （HF 排行榜验证器），然后进行精确形式规范化（修复 4），最后匹配整数 / 规范化字符串</td></tr><tr><td>SciCode</td><td>每个子步骤一个函数</td><td>官方测试用例（inspect_ai），无背景信息；主问题 = 所有子步骤均通过（已验证参考解答）</td></tr><tr><td>HLE 纯文本</td><td>最终答案</td><td>LLM 评审，官方 HLE 评审提示词，gpt-6-luna xhigh</td></tr><tr><td>GPQA-Diamond</td><td>字母 A-D</td><td>最后一项 <code>Answer: X</code>，然后是方框中的字母，再然后是“答案是 X”，最后是单独一行的答案</td></tr><tr><td>MMLU-Pro</td><td>字母 A-J</td><td>按题目选项字母采用相同的提取链</td></tr><tr><td>IFEval</td><td>响应</td><td>Google <code>instruction_following_eval</code>，按提示级别进行严格评分（也会存储宽松评分）</td></tr></tbody></table>

### 基础设施与基准测试问题及修复

1. LiveCodeBench：许多运行出现了 `Time Limit Exceeded` 问题；我们发现机器上的 CPU 使用率过高，因此在完整 CPU 亲和性设置下重新评分，有 385 个答案从错误变为正确
2. LiveCodeBench：官方测试框架的 `stdin.buffer` 模拟对象每次 readline 都返回第一行，而且捕获的 stdout 没有 `.buffer` 。我们通过忠实替换 stdin / stdout 修复了这个问题。468 个答案从错误变为正确。
3. AIME / HMMT / MATH-500： `math_verify` 超时使用 `signal.alarm`，它在主线程之外会失效；多线程评分器退回到精确字符串匹配（`\frac14` 与 `\frac{1}{4}` 不匹配）。我们修复了这个问题：主线程之外不设置超时。8,520 个答案从错误变为正确（HMMT26 4,196，MATH-500 2,949，HMMT25 1,375）
4. MATH-500 / HMMT：math\_verify 无法解析的精确形式（矩阵间距、 `\displaystyle`、末尾标点、千位分隔符、 `a = b` 链、不等式与区间、列向量与元组）。我们只通过精确改写修复，绝不使用近似；共 18 个 fixture 测试。由此有 309 个答案从错误变为正确（MATH-500 198，HMMT25 89，HMMT26 22）。

### DeepSWE 基准测试设置

<table><thead><tr><th width="199.79998779296875"></th><th width="245.699951171875">官方（Pier + mini-swe-agent，task.toml）</th><th>我们的配置</th></tr></thead><tbody><tr><td>智能体 / 配置</td><td>mini-swe-agent，Pier 的默认配置 <code>mini.yaml</code> （原生 bash 工具调用）</td><td>相同的智能体和配置；在主机上运行，并通过 <code>docker exec</code> 驱动任务容器（Pier 在容器内安装该工具）</td></tr><tr><td>步骤上限</td><td>无（<code>step_limit: 0</code>)</td><td>500（最长运行 334 步，从未达到上限）</td></tr><tr><td>智能体运行时限</td><td>每项任务 10,800 秒</td><td>86,400 秒（最长运行 3,509 秒，因此不会触及 10,800 秒上限）</td></tr><tr><td>网络 / 评分</td><td>智能体离线；使用单独的离线验证器（测试 + grader.py）</td><td>相同</td></tr><tr><td>命令超时</td><td>30 秒（mini 默认值）</td><td>30 秒</td></tr><tr><td>采样</td><td>未指定</td><td>temperature 1.0、top_p 0.95、每次回复 65,536 个 token、512K 上下文、推理强度 50</td></tr><tr><td>任务数 / 轮次</td><td>113</td><td>113 项 × 至少 3 轮</td></tr></tbody></table>

### 用于基准测试的 Terminal Bench 设置

|               | 官方 TB 2.1                      | DeepSeek V4.1 报告（第 5.3.4 节） | 我们的配置                                                  |
| ------------- | ------------------------------ | --------------------------- | ------------------------------------------------------ |
| 智能体           | 任意（排行榜上大多使用 Terminus 2）        | mini-swe-agent              | mini-swe-agent 2.4.6，原生工具调用                            |
| 步骤上限          | 无                              | 500                         | 150（超时情况下，Unsloth 量化版本最多有 5% 的试验达到上限，而 GSQ 为 7%）       |
| 智能体运行时限       | 每项任务 600 至 12,000 秒（中位数 900 秒） | 未说明                         | 无（86,400 秒）                                            |
| 智能体运行期间的互联网访问 | 允许                             | 无                           | 无（设置和验证器仍可访问互联网）                                       |
| 任务数           | 89                             | 89                          | 82 项（排除在此主机上无法由预言机求解的 7 项）                             |
| 采样            | 不适用                            | T 1.0、top\_p 0.95           | T 1.0、top\_p 0.95、每次回复 65,536 个 token、512K 上下文、推理强度 50 |
| 尝试次数          | 1+                             | 未说明                         | 每项任务 3 次。基础设施故障时重新运行                                   |

### 因问题而排除的 Terminal Bench 任务

<table><thead><tr><th width="201.25">排除的任务</th><th>参考解答在此处失败的原因</th></tr></thead><tbody><tr><td>qemu-alpine-ssh</td><td>验证器的 <code>apt-get install curl</code> 返回 404（Debian bullseye 安全软件包已被更新版本取代），因此无法安装其测试工具</td></tr><tr><td>qemu-startup</td><td>同样返回 404</td></tr><tr><td>mcmc-sampling-stan</td><td>参考实现需要 RcppParallel，而它又需要 cmake；镜像中没有 cmake，因此无法安装 rstan</td></tr><tr><td>protein-assembly</td><td>参考实现因 dnachisel 而失败 <code>NoSolutionError</code> （EnforceTranslation）：自编写任务以来依赖项已发生变化</td></tr><tr><td>build-cython-ext</td><td>参考构建完成后，上游 pyknotid 测试套件有 18 项测试中的 1 项失败</td></tr><tr><td>install-windows-3.11</td><td>参考 QEMU 构建进程因内存不足被终止（该构建在 4 GB 容器中按每个主机核心运行一个任务，共 192 个任务）</td></tr><tr><td>torch-pipeline-parallelism</td><td>验证器超出自身的 900 秒超时时限（两次运行均如此）</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/zh/ji-chu-zhi-shi/dynamic-3.0-ggufs/dong-tai-3.1-gguf.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
