Add the TokenWave logo, link icons and a Chinese version to the dataset card
Browse files- README.md +20 -1
- README.zh-CN.md +129 -0
- assets/brand/tokenwave-dark.png +3 -0
- assets/brand/tokenwave.png +3 -0
- assets/icons/arxiv.png +3 -0
- assets/icons/github-dark.png +3 -0
- assets/icons/github.png +3 -0
- assets/icons/tokenwave.png +3 -0
README.md
CHANGED
|
@@ -14,8 +14,24 @@ tags:
|
|
| 14 |
- repository-generation
|
| 15 |
---
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# NL2Repo-Pro
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
NL2Repo-Pro is a benchmark for coding agents: given a natural-language specification, write a whole repository from scratch. Each of its 150 tasks comes from a public GitHub repository at a fixed commit. The agent gets a task statement and a set of chapter-by-chapter design documents, and writes the implementation. The repository's own tests, held out from the agent, grade the result feature by feature.
|
| 20 |
|
| 21 |
| | Python | Go | Rust | Java | JavaScript | Total |
|
|
@@ -31,8 +47,9 @@ Mean reward, one answer per task, all 150 tasks.
|
|
| 31 |
| Model | Agent harness | All | Python | Go | Rust | Java | JavaScript |
|
| 32 |
|---|---|--:|--:|--:|--:|--:|--:|
|
| 33 |
| claude-opus-5-5 | Claude Code 2.1.311, effort xhigh | 0.617 | 0.589 | 0.576 | 0.592 | 0.610 | 0.786 |
|
| 34 |
-
| gpt-6.1-sol | Codex 0.164, effort xhigh | 0.471 | 0.396 | 0.497 | 0.499 | 0.432 | 0.717 |
|
| 35 |
| deepseek-v4.1-flash | Claude Code 2.1.311, effort xhigh | 0.377 | 0.315 | 0.434 | 0.350 | 0.329 | 0.615 |
|
|
|
|
| 36 |
|
| 37 |
All runs used the task settings below, with web search and web fetch turned off. Every answer was reviewed for reward hacking.
|
| 38 |
|
|
@@ -40,6 +57,8 @@ All runs used the task settings below, with web search and web fetch turned off.
|
|
| 40 |
|
| 41 |
```
|
| 42 |
README.md
|
|
|
|
|
|
|
| 43 |
LICENSE Apache-2.0, for the parts we wrote (see Licensing)
|
| 44 |
SHA256SUMS sha256 of every file below
|
| 45 |
tasks/<lang>/<instance_id>.tar.zst the task directory (4.3 GB for all 150)
|
|
|
|
| 14 |
- repository-generation
|
| 15 |
---
|
| 16 |
|
| 17 |
+
<p align="right"><b>English</b> · <a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a></p>
|
| 18 |
+
|
| 19 |
+
<p align="center">
|
| 20 |
+
<picture>
|
| 21 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave-dark.png">
|
| 22 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave.png" alt="TokenWave" height="44">
|
| 23 |
+
</picture>
|
| 24 |
+
</p>
|
| 25 |
+
|
| 26 |
# NL2Repo-Pro
|
| 27 |
|
| 28 |
+
<p align="center">
|
| 29 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" height="16" align="absmiddle"> Blog ·
|
| 30 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" height="16" align="absmiddle"> Paper ·
|
| 31 |
+
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" height="16" align="absmiddle"></picture> Code</a> ·
|
| 32 |
+
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a>
|
| 33 |
+
</p>
|
| 34 |
+
|
| 35 |
NL2Repo-Pro is a benchmark for coding agents: given a natural-language specification, write a whole repository from scratch. Each of its 150 tasks comes from a public GitHub repository at a fixed commit. The agent gets a task statement and a set of chapter-by-chapter design documents, and writes the implementation. The repository's own tests, held out from the agent, grade the result feature by feature.
|
| 36 |
|
| 37 |
| | Python | Go | Rust | Java | JavaScript | Total |
|
|
|
|
| 47 |
| Model | Agent harness | All | Python | Go | Rust | Java | JavaScript |
|
| 48 |
|---|---|--:|--:|--:|--:|--:|--:|
|
| 49 |
| claude-opus-5-5 | Claude Code 2.1.311, effort xhigh | 0.617 | 0.589 | 0.576 | 0.592 | 0.610 | 0.786 |
|
| 50 |
+
| gpt-6.1-sol | Codex CLI 0.164.0, effort xhigh | 0.471 | 0.396 | 0.497 | 0.499 | 0.432 | 0.717 |
|
| 51 |
| deepseek-v4.1-flash | Claude Code 2.1.311, effort xhigh | 0.377 | 0.315 | 0.434 | 0.350 | 0.329 | 0.615 |
|
| 52 |
+
| grok-4.7 | Claude Code 2.1.311, effort xhigh | 0.225 | 0.155 | 0.251 | 0.185 | 0.233 | 0.474 |
|
| 53 |
|
| 54 |
All runs used the task settings below, with web search and web fetch turned off. Every answer was reviewed for reward hacking.
|
| 55 |
|
|
|
|
| 57 |
|
| 58 |
```
|
| 59 |
README.md
|
| 60 |
+
README.zh-CN.md this card in Chinese
|
| 61 |
+
assets/ the logo and icons of this card
|
| 62 |
LICENSE Apache-2.0, for the parts we wrote (see Licensing)
|
| 63 |
SHA256SUMS sha256 of every file below
|
| 64 |
tasks/<lang>/<instance_id>.tar.zst the task directory (4.3 GB for all 150)
|
README.zh-CN.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<p align="right"><a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro">English</a> · <b>中文</b></p>
|
| 2 |
+
|
| 3 |
+
<p align="center">
|
| 4 |
+
<picture>
|
| 5 |
+
<source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave-dark.png">
|
| 6 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/brand/tokenwave.png" alt="TokenWave" height="44">
|
| 7 |
+
</picture>
|
| 8 |
+
</p>
|
| 9 |
+
|
| 10 |
+
# NL2Repo-Pro
|
| 11 |
+
|
| 12 |
+
<p align="center">
|
| 13 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" height="16" align="absmiddle"> 博客 ·
|
| 14 |
+
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" height="16" align="absmiddle"> 论文 ·
|
| 15 |
+
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" height="16" align="absmiddle"></picture> 代码</a> ·
|
| 16 |
+
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro">English</a>
|
| 17 |
+
</p>
|
| 18 |
+
|
| 19 |
+
NL2Repo-Pro 是一个面向编程 agent 的基准:根据自然语言规格,从零写出一个完整的代码仓库。150 道题都来自固定 commit 的公开 GitHub 仓库。agent 拿到一份题目说明和一套按章节划分的设计文档,据此写出实现。仓库原有的测试不对 agent 开放,用来逐个 feature 给结果评分。
|
| 20 |
+
|
| 21 |
+
| | Python | Go | Rust | Java | JavaScript | 合计 |
|
| 22 |
+
|---|--:|--:|--:|--:|--:|--:|
|
| 23 |
+
| 题数 | 70 | 20 | 20 | 20 | 20 | 150 |
|
| 24 |
+
|
| 25 |
+
每道题都是标准的 [Harbor](https://github.com/laude-institute/harbor) 题目目录,用 `harbor run` 运行。
|
| 26 |
+
|
| 27 |
+
## 结果
|
| 28 |
+
|
| 29 |
+
平均 reward,全部 150 道题,每道题作答一次。
|
| 30 |
+
|
| 31 |
+
| 模型 | Agent harness | 全部 | Python | Go | Rust | Java | JavaScript |
|
| 32 |
+
|---|---|--:|--:|--:|--:|--:|--:|
|
| 33 |
+
| claude-opus-5-5 | Claude Code 2.1.311,推理强度 xhigh | 0.617 | 0.589 | 0.576 | 0.592 | 0.610 | 0.786 |
|
| 34 |
+
| gpt-6.1-sol | Codex CLI 0.164.0,推理强度 xhigh | 0.471 | 0.396 | 0.497 | 0.499 | 0.432 | 0.717 |
|
| 35 |
+
| deepseek-v4.1-flash | Claude Code 2.1.311,推理强度 xhigh | 0.377 | 0.315 | 0.434 | 0.350 | 0.329 | 0.615 |
|
| 36 |
+
| grok-4.7 | Claude Code 2.1.311,推理强度 xhigh | 0.225 | 0.155 | 0.251 | 0.185 | 0.233 | 0.474 |
|
| 37 |
+
|
| 38 |
+
所有运行都使用下文的题目设置,并关闭了网页搜索和网页抓取。每一份作答都检查过有没有 reward hacking。
|
| 39 |
+
|
| 40 |
+
## 内容
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
README.md
|
| 44 |
+
README.zh-CN.md 本卡片的中文版
|
| 45 |
+
assets/ 本卡片用到的 logo 和图标
|
| 46 |
+
LICENSE Apache-2.0,适用于我们编写的部分(见许可)
|
| 47 |
+
SHA256SUMS 下面每个文件的 sha256
|
| 48 |
+
tasks/<lang>/<instance_id>.tar.zst 题目目录(150 道共 4.3 GB)
|
| 49 |
+
images/<lang>/<instance_id>.tar 该题的两个 Docker 镜像(150 道共 83 GB,最大的 4.7 GB)
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
`<lang>` 是 `python`、`go`、`rust`、`java` 或 `javascript`,`<instance_id>` 的格式是 `<owner>__<repo>__<commit prefix>`。一个题目目录包含:
|
| 53 |
+
|
| 54 |
+
```
|
| 55 |
+
<instance_id>/
|
| 56 |
+
├── task.toml 镜像、资源、限制、来源仓库和许可证
|
| 57 |
+
├── instruction.md 题目说明
|
| 58 |
+
├── environment/ 空目录(Harbor 需要它,请保持为空)
|
| 59 |
+
├── image_build/ agent 镜像的构建方式,docs/ 是 agent 在 /docs 看到的内容
|
| 60 |
+
├── solution/ 参考答案(原始源码)
|
| 61 |
+
└── tests/ 评分脚本、计分表和原始测试
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## 快速开始
|
| 65 |
+
|
| 66 |
+
需要 Docker、Python 3.12 和 Harbor 0.23.0(`pip install harbor==0.23.0`),这是我们运行时使用的版本。
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
# 1. 下载一道题(不写文件名则下载全部)
|
| 70 |
+
hf download Tokenwave-AI/NL2Repo-Pro SHA256SUMS tasks/python/<instance_id>.tar.zst images/python/<instance_id>.tar \
|
| 71 |
+
--repo-type dataset --revision v1.0 --local-dir NL2Repo-Pro
|
| 72 |
+
cd NL2Repo-Pro
|
| 73 |
+
sha256sum -c SHA256SUMS --ignore-missing
|
| 74 |
+
|
| 75 |
+
# 2. 解压题目并加载它的镜像
|
| 76 |
+
mkdir -p run && tar -I zstd -xf tasks/python/<instance_id>.tar.zst -C run
|
| 77 |
+
docker load -i images/python/<instance_id>.tar
|
| 78 |
+
|
| 79 |
+
# 3. 检查题目:参考答案得 1.0,空答案得 0
|
| 80 |
+
harbor run -p run/<instance_id> -a oracle -y -o jobs
|
| 81 |
+
harbor run -p run/<instance_id> -a nop -y -o jobs
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
镜像没有发布到任何镜像仓库:`docker load` 会给它们加上 `task.toml` 里使用的本地名称,用这些名称 `docker pull` 会失败。请保持镜像名称和 `task.toml` 不变,改过名的镜像或编辑过的 `task.toml` 就不再是这里计分的那道题。
|
| 85 |
+
|
| 86 |
+
### 运行 agent
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
# 与我们的运行相同,使用 Claude Code。M:模型(Opus 5.5 为 'claude-opus-5-5[1m]');W:它的上下文窗口,���位是 token
|
| 90 |
+
harbor run -p run/<instance_id> -a claude-code -m "$M" \
|
| 91 |
+
--ak version=2.1.311 --ak reasoning_effort=xhigh --ak disallowed_tools=WebSearch,WebFetch \
|
| 92 |
+
--ae ANTHROPIC_API_KEY=<key> --ae ANTHROPIC_BASE_URL=https://<endpoint host> \
|
| 93 |
+
--ae CLAUDE_CODE_MAX_CONTEXT_TOKENS=$W --ae CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 \
|
| 94 |
+
--ae ANTHROPIC_DEFAULT_FABLE_MODEL="$M" --ae ANTHROPIC_SMALL_FAST_MODEL="$M" \
|
| 95 |
+
--allow-agent-host <endpoint host> \
|
| 96 |
+
--agent-setup-timeout-multiplier 10 -n 1 -y -o jobs
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
`-p run` 会运行所有已解压的题目,`-n` 设置同时运行的数量。一次运行的分数是 `jobs/<job>/<trial>/verifier/reward.json` 里的 `reward`。
|
| 100 |
+
|
| 101 |
+
- agent 作答期间没有网络,`--allow-agent-host` 只放行它的模型 endpoint。
|
| 102 |
+
- 有些模型网关会在服务端执行 Claude Code 的 WebSearch 等工具,绕过容器的网络规则。我们的运行关闭了 WebSearch 和 WebFetch,要得到可比的结果也请这样做。
|
| 103 |
+
- 对于不认识的模型,Claude Code 默认上下文窗口是 200K,`CLAUDE_CODE_MAX_CONTEXT_TOKENS` 用来给出真实值(模型名带 `[1m]` 时不需要)。等待上限的设置让后台 subagent 在运行结束前完成。设置了 base URL 时,Harbor 会把 opus、sonnet、haiku 和 subagent 的别名都指向 `-m`,其余的由两个 `--ae` 模型变量覆盖。测试非 Claude 模型时,加上 `--ae CLAUDE_CODE_NO_MODEL_FALLBACK=1`,避免由 Claude 模型代替它作答。
|
| 104 |
+
|
| 105 |
+
## 运行环境
|
| 106 |
+
|
| 107 |
+
| | 作答(agent) | 评分(verifier) |
|
| 108 |
+
|---|---|---|
|
| 109 |
+
| CPU / 内存 / 磁盘 | 4 核 / 32 GB / 64 GB | 4 核 / 32 GB / 64 GB |
|
| 110 |
+
| 时间限制 | 10 小时 | 6.5 小时(测试在 6 小时时停止,未运行到的测试按失败计) |
|
| 111 |
+
| 网络 | 无(仅模型 endpoint) | 公网 |
|
| 112 |
+
|
| 113 |
+
少数题目评分时内存接近 32 GB 的上限。
|
| 114 |
+
|
| 115 |
+
## 评分
|
| 116 |
+
|
| 117 |
+
每道题的文档按章节划分,每章对应一个 feature。一个 feature 的所有计分测试都通过,它才算通过。reward 是通过的 feature 所占的比例,取值 0 到 1。
|
| 118 |
+
|
| 119 |
+
## 许可
|
| 120 |
+
|
| 121 |
+
我们编写的部分采用 Apache-2.0(`LICENSE`)。每道题的源码和文字沿用来源仓库的许可证,写在 `task.toml` 里。有三道题限制商业使用(mmr、Draftpaper_loop、drusniel-gods-end),另有六道题来自没有许可证的仓库(cg、Zetta-Embodiment、scansci-harness、Chunklate、benson.github.io、lire-compter-samuser),仅供评测使用,权利人要求时会移除。
|
| 122 |
+
|
| 123 |
+
## 移除请求
|
| 124 |
+
|
| 125 |
+
如果你是某个来源仓库的作者,希望修改或移除对应的题目,请发邮件到 heli.qi@riken.jp,或者在本数据集下发起讨论(discussion)。
|
| 126 |
+
|
| 127 |
+
## 引用
|
| 128 |
+
|
| 129 |
+
论文发布后补充。
|
assets/brand/tokenwave-dark.png
ADDED
|
Git LFS Details
|
assets/brand/tokenwave.png
ADDED
|
Git LFS Details
|
assets/icons/arxiv.png
ADDED
|
|
Git LFS Details
|
assets/icons/github-dark.png
ADDED
|
|
Git LFS Details
|
assets/icons/github.png
ADDED
|
|
Git LFS Details
|
assets/icons/tokenwave.png
ADDED
|
|
Git LFS Details
|