跳到主要内容Skip to main content
评测与可观测Evaluation & Observability生产可用Production

SWE-bench

SWE-bench / SWE-bench

软件工程 agent 的基准与评测 harness:从真实 GitHub issue 与对应 PR 构造任务,测模型能否生成通过测试的 patch。A software-engineering benchmark and evaluation harness built from real GitHub issues and their pull requests, testing whether a model can produce a patch that passes the tests.

6.2k stars 1066 forks Python 语言Language MIT 许可License 最近推送Last push 2026-09-18

为什么选Why choose it

  • 任务来自真实仓库与测试,比合成题更接近工程。Tasks come from real repositories and issues.
  • 提供 Docker 评测环境与失败日志,适合做 agent 回归。Passing tests is the success criterion, not a judge model.
  • Lite / Verified 等子集让成本与难度可选。A standard baseline for coding agents.

不适合Not for

不是产品榜单;分数受 scaffold、重试预算与模型版本影响。You need a quick smoke test for a chat model.
测试通过不等于代码可维护。You cannot run repository test suites in isolation.
仓库镜像与评测环境占磁盘,首次跑成本不低。仓库镜像与评测环境占磁盘,首次跑成本不低。

最小上手Minimum setup

  1. 装 SWE-bench harness,拉一个 Lite 实例。Run one repository’s test suite on the base commit.
  2. 用官方 Docker 环境跑模型 patch,记录 resolved/unresolved。Evaluate one agent patch and inspect the failure logs.
  3. 看失败日志,区分定位错、改错与测试环境问题。Record the harness version, test command and environment.

依赖与成本Dependencies and cost

Docker;Python;模型 API 或本地模型;数据集与仓库镜像,磁盘占用大。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

MIT;仓库代码、issue/PR 文本与测试数据各自许可。Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • LM Evaluation Harness — 生产可用Production,标准 LLM 评测框架,覆盖数百任务、few-shot、loglikelihood 与生成式指标,支持 HF、vLLM 和 API 后端。A standard LLM evaluation harness covering hundreds of tasks, few-shot settings, log-likelihood and generative metrics, with HF, vLLM and API backends.
  • Inspect AI — 特定场景Niche,英国 AI 安全研究院的评测框架,适合做严谨、可复现的任务评测。An evaluation framework from the UK AI Safety Institute for rigorous, reproducible task evaluation.
  • Ragas — 先试这个Start here,RAG 评测库:检索相关性、答案忠实度、上下文召回等指标。A RAG evaluation library covering retrieval relevance, answer faithfulness and context recall.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.