# SERA（Ai2 开源编程智能体）

SERA（Soft-verified Efficient Repository Agents，软验证高效仓库智能体）是[艾伦人工智能研究所](https://www.edgepedia.org/zh/allen-institute-for-ai)（Allen Institute for AI，Ai2）于 2026 年发布的一系列开放权重编程智能体模型，基于 [Qwen](https://www.edgepedia.org/zh/qwen-model-family) 3 基座模型构建，并用一种名为“软验证生成”（Soft Verified Generation）的低成本合成数据方法训练而成。此次发布将模型本身与数据生成代码、训练代码、一个大型合成轨迹数据集，以及与 [Claude Code](https://www.edgepedia.org/zh/claude-code) 智能体框架的集成都打包在一起；模型以 Apache 2.0 许可证发布，Ai2 声明发布的每一个组件都是开放的。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[2](https://allenai.org/blog/open-coding-agents)</sup><sup> • </sup><sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup>

该系列覆盖 8B 至 32B 参数。其中最大的模型 SERA-32B，据 Ai2 报告，在 64K 上下文下可解决 SWE-bench Verified（真实 GitHub 缺陷修复任务基准）中 54.2% 的问题，作者称这一成绩在完全开源（开放数据、方法、代码）的模型中处于最先进水平。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[2](https://allenai.org/blog/open-coding-agents)</sup> 所有公布的分数均为厂商自报；截至 2026 年 9 月可获得的资料中，未见任何独立评测。

| 事实 | 数值 |
|---|---|
| 开发方 | 艾伦人工智能研究所（Ai2）<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> |
| 基座模型 | Qwen 3（8B、14B、32B）<sup>[2](https://allenai.org/blog/open-coding-agents)</sup><sup> • </sup><sup>[4](https://huggingface.co/allenai/SERA-8B)</sup> |
| 教师模型 | SERA-32B/8B 使用 GLM-4.6（357B）；GA 版本使用 GLM-4.5-Air<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> |
| SWE-bench Verified（32B，厂商自报） | 32K 上下文下 49.5% ± 1.9%；64K 上下文下 54.2% ± 1.4%<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[2](https://allenai.org/blog/open-coding-agents)</sup> |
| 许可证 | Apache 2.0，依 Ai2《负责任使用指南》可商用<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> |
| 训练成本 | 数据生成与训练共 2,000 美元（40 GPU 天）<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> |
| 作者 | Ethan Shen、Daniel Tormoen、Saurabh Shah、Ali Farhadi、Tim Dettmers<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> |

## SERA 是什么

SERA 既是一个模型系列，也是一套开放配方。这些模型是经过监督微调的 Qwen 3 检查点，旨在驱动一个可编辑代码仓库并提交补丁的智能体框架。Ai2 随模型一并提供 Claude Code 集成，意味着 SERA 检查点可以不经适配直接放入该框架；同时提供把模型特化到私有代码库的完整流程。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[2](https://allenai.org/blog/open-coding-agents)</sup> 该公司将 SERA 描述为其“开源编程智能体”系列中的首个发布。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup>

这次发布刻意求全：除模型权重外，Ai2 还公开了全部代码、20 万条合成编程智能体轨迹以及 Claude Code 集成。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> 作者在宣称“在完全开源（开放数据、方法、代码）的模型中”领先时，正是以这种完整性为依据。<sup>[5](https://icml.cc/virtual/2026/poster/65153)</sup>

## 发布时间线与版本

有日期可考的记录始于 2026 年 1 月，技术报告当时出现在 arXiv 上，共同作者 Tim Dettmers 于 2026 年 1 月 27 日发布了一篇项目说明。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[6](https://timdettmers.com/2026/01/27/building-open-coding-agent-sera/)</sup> SERA-32B 是那次发布的主打模型。<sup>[2](https://allenai.org/blog/open-coding-agents)</sup>

2026 年晚些时候，Ai2 扩充了该系列。被称为系列第三款模型的 SERA-8B，在 SWE-bench Verified 上取得厂商自报的 31.7%。<sup>[4](https://huggingface.co/allenai/SERA-8B)</sup> Ai2 还发布了 SERA-14B——一款 140 亿参数的补充型号，以及一份刷新过的、与模型无关的训练数据集，其中包含逐样本的验证阈值。<sup>[2](https://allenai.org/blog/open-coding-agents)</sup> 现有证据无法确定 SERA-8B、SERA-14B 或数据集刷新的确切发布月份。该工作被 ICML 2026 接收为海报展示。<sup>[5](https://icml.cc/virtual/2026/poster/65153)</sup>

## 已公开的架构与训练

SERA-32B 是对 Qwen 3-32B 的全参数微调，训练至 Qwen 3 原生的 32,768 token 上下文，共 3 轮，学习率 1e-5，权重衰减 0.01，使用 Axolotl 训练框架，并以 vLLM 托管。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> 模型卡将 GLM-4.6（357B 参数）列为教师模型。<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> 这些模型是纯文本编程智能体；资料未披露任何其他模态。

**软验证生成（Soft Verified Generation，SVG）** 是训练数据方法。它是一条两轮生成的流水线，基于行级召回率进行软验证，产出合成编程智能体轨迹，无需执行测试。<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> 模型卡称 SERA-32B 是在 25,000 条此类轨迹上训练的，而论文与 ICML 摘要则称生成并公开了 20 万条以上轨迹。<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup><sup> • </sup><sup>[1](https://arxiv.org/html/2601.20789v3)</sup><sup> • </sup><sup>[5](https://icml.cc/virtual/2026/poster/65153)</sup>

**代码库特化** 在规模与针对性上都不同于普通的代码预训练或指令微调。它不是教模型通用编程能力，而是在由单一目标仓库生成的轨迹上微调模型：约 8,000 条轨迹，成本约 1,300 美元，从随机选取的函数中抽取，且不含任何关于评测问题及其解法的信息。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> Ai2 报告称，经过这种训练，特化后的 SERA-32B 在 Django、[SymPy](https://www.edgepedia.org/zh/sympy) 等代码库上可以超过其 110B 参数的教师模型 GLM-4.5-Air。<sup>[2](https://allenai.org/blog/open-coding-agents)</sup>

## 基准结果：厂商自报，尚无独立复现

下文所有 SERA 分数均为厂商自报。核心结果是 SERA-32B 在 SWE-bench Verified 上 32K 上下文下 49.5%、64K 上下文下 54.2%。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> 模型卡补充：SERA-32B-GA（教师模型 GLM-4.5-Air）为 46.6% ± 0.7%，SERA-8B 与 SERA-8B-GA 均为 31.7%。<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> 另外，GitHub 仓库描述了一个由 GLM 4.6 轨迹构成的 48,000 样本数据集，使 32B 模型在 32K 上下文下取得厂商自报的 51.7%，高于 SERA-32B 检查点自身的 49.5%；资料未解释这一差异。<sup>[7](https://github.com/allenai/sera)</sup><sup> • </sup><sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup>

**同等条件下的比较。** Ai2 报告称，在 32K 上下文下，SERA-32B（49.5% ± 1.9%）与 Devstral Small 2（50.0% ± 1.3%）和 GLM-4.5-Air（50.5% ± 1.3%）相当。在 64K 下，SERA-32B 达到 54.2% ± 1.4%，但落后 Devstral Small 2 约 4.9 个百分点，尽管它只是纯监督微调、且仅训练至 32K token。<sup>[2](https://allenai.org/blog/open-coding-agents)</sup> ICML 摘要的表述更为收敛：仅用 SFT 训练即可比肩 Devstral-Small-2 等开放权重模型，同时在完全开源模型中领先。<sup>[5](https://icml.cc/virtual/2026/poster/65153)</sup>

**特化结果。** 针对每个仓库用 8,000 条合成轨迹训练出的特化 SERA-32B，在 Django 上得 52.23% ± 1.64%，在 SymPy 上得 51.11% ± 1.54%；教师模型 GLM-4.5-Air 相应为 51.20% ± 1.80% 与 48.89% ± 3.08%。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> 作者自己披露了一个保留意见：Django、SymPy 和 Sphinx 都是公开仓库，很可能已包含在基座模型的训练数据中，因此特化实验可能存在偏差，且特化尚未在真正私有的代码库上得到验证。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup>

现有证据中未见任何第三方评测、排行榜收录，或对这些数字的任何复现。

## 许可、可得性与成本

SERA 模型以 Apache 2.0 许可发布，允许依照 Ai2《负责任使用指南》进行商业使用；模型卡声明这些模型面向研究与教育用途。<sup>[3](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)</sup> 权重托管在 [Hugging Face](https://www.edgepedia.org/zh/hugging-face) 的 allenai 组织下。

**算力与成本。** Ai2 报告 SERA-32B 的数据生成与训练总成本为 2,000 美元，即 40 GPU 天，并称在通过 vLLM 自托管推理时，SVG 以 SkyRL 的 1/26 的成本达到与其相当的性能，以 SWE-smith 的 1/57 的成本达到与其相当的性能。<sup>[1](https://arxiv.org/html/2601.20789v3)</sup> 博客文章称训练在由 2 块 NVIDIA Hopper 或 RTX PRO 6000 Blackwell GPU 组成的集群上用了不超过 40 GPU 天，并估计在通用云 GPU 上复现此前最佳开源结果约需 400 美元（成本低于先前方法的 1/25），而复现 Devstral Small 2 级别的性能则需 12,000 美元。<sup>[2](https://allenai.org/blog/open-coding-agents)</sup>

**运行方式。** 官方 SERA 命令行工具在 Modal 上运行模型；首次运行会下载约 65GB 的模型权重，耗时约 10 分钟，此后运行会使用缓存。<sup>[8](https://github.com/allenai/sera-cli)</sup> 除权重下载与训练集群细节外，资料未给出托管 API 定价或本地硬件要求。

## References

1. [SERA: Soft-Verified Efficient Repository Agents (technical report)](https://arxiv.org/html/2601.20789v3)
2. [Open Coding Agents: Fast, accessible coding agents that adapt to any repo | Ai2](https://allenai.org/blog/open-coding-agents)
3. [allenai/SERA-32B model card](https://huggingface.co/allenai/SERA-32B/blob/main/README.md)
4. [allenai/SERA-8B model card](https://huggingface.co/allenai/SERA-8B)
5. [ICML 2026 Poster: SERA: Soft-Verified Efficient Repository Agents](https://icml.cc/virtual/2026/poster/65153)
6. [My Journey Towards Coding Agents: Building SERA — Tim Dettmers](https://timdettmers.com/2026/01/27/building-open-coding-agent-sera/)
7. [allenai/SERA — data generation and training repository](https://github.com/allenai/sera)
8. [allenai/sera-cli](https://github.com/allenai/sera-cli)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Code models and coding agents

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sera-ai2-open-coding-agents

English original: https://www.edgepedia.org/sera-ai2-open-coding-agents
