Kevin589981 commited on
Commit
743a787
·
verified ·
1 Parent(s): 26776e9

Refresh dataset card and usage guide

Browse files
Files changed (1) hide show
  1. README.md +77 -98
README.md CHANGED
@@ -9,48 +9,51 @@ tags:
9
  - code-agents
10
  - scientific-computing
11
  - benchmark
 
 
12
  license: mit
13
  ---
14
 
15
  # SWE-bench Science
16
 
17
- SWE-bench Science evaluates coding agents on software-engineering problems from
18
- scientific computing repositories. The release contains 119 tasks. Each task
19
- has an isolated environment image and a separate verifier image, both pinned to
20
- immutable `linux/amd64` Docker Hub digests.
 
21
 
22
  ## Dataset Summary
23
 
24
  | Metric | Value |
25
  | --- | ---: |
26
- | Total tasks | 119 |
27
- | Default unrestricted-license tasks | 100 |
28
- | Restricted-license opt-in tasks | 19 |
29
  | GPL/LGPL/AGPL-family tasks | 18 |
30
- | Task environment images | 119 Docker Hub digests |
31
- | Separate verifier images | 119 Docker Hub digests |
32
- | `linux/amd64` coverage | 119/119 |
 
 
33
 
34
- The complete generated tables are in [`data/tasks.csv`](data/tasks.csv) and
35
- [`data/statistics.md`](data/statistics.md). License values are recorded from
36
- the upstream repository, source metadata, or source file headers; non-SPDX
37
- family labels are kept explicit when a project does not use a standard SPDX id.
38
 
39
- ## What Is In The Dataset
40
 
41
- The snapshot contains the task table, statistics, fixed selections, thin
42
- Harbor/Pier task bundles, and the helper tools under `tools/`. It does not
43
- contain reference-answer patches, credentials, agent trajectories, or private
44
- verifier tests. The environment image contains the baseline source and public
45
- dependencies. The verifier image contains held-out tests and the grader.
 
 
 
46
 
47
- Pier installs the selected agent harness at evaluation time. Codex, Claude Code,
48
- mini-swe-agent, and other Pier-supported agents are evaluation configuration,
49
- not per-task image variants.
50
 
51
  ## Quick Start
52
 
53
- ```bash
54
  python3 -m pip install "huggingface_hub[cli]"
55
  hf auth login
56
  hf download OpenMOSS-Team/SWE-bench-Science \
@@ -58,139 +61,115 @@ hf download OpenMOSS-Team/SWE-bench-Science \
58
  cd swe-bench-science
59
 
60
  uv tool install "datacurve-pier==0.3.0"
61
- # Without uv: python3 -m pip install "datacurve-pier==0.3.0"
62
  docker login
63
- ```
64
 
65
- Materialize the default 100-task selection:
66
 
67
- ```bash
68
- python3 tools/materialize.py --output tasks-selected --force
69
- ```
 
70
 
71
- Materialize a specific list, including inclusive ranges:
72
 
73
- ```bash
74
  python3 tools/materialize.py \
75
  --task-id 002,005-007 \
76
  --output tasks-selected-small --force
77
- ```
 
 
 
 
78
 
79
- Restricted-license tasks require an explicit gate. This includes GPL-family
80
- tasks and task 019, whose upstream license is academic non-commercial:
81
 
82
- ```bash
83
  python3 tools/materialize.py \
84
  --allow-restricted-licenses \
85
  --output tasks-selected-all --force
86
- ```
87
 
88
- The 18 GPL-family ids are `003, 020, 021, 023, 032, 057, 066, 074, 075, 082,
89
- 083, 084, 085, 096, 097, 098, 100, 118`. Task `019` uses an academic
90
- non-commercial license. All 19 ids require `--allow-restricted-licenses`.
91
- The materializer records the exact result in `selection.json`.
92
 
93
  ## Run An Evaluation
94
 
95
- Install Pier and run a no-op infrastructure smoke:
96
 
97
- ```bash
98
  pier run -p tasks-selected-small \
99
- --agent nop --env docker --n-concurrent 1 \
 
100
  --no-force-build --no-delete --yes
101
- ```
102
 
103
- Run Claude Code, Codex, or mini-swe-agent by changing only the harness, model,
104
- and provider profile:
105
 
106
- ```bash
107
  # Claude Code
108
- pier run -p tasks-selected-small --agent claude-code --env docker \
 
109
  --env-file ~/.config/swe-bench-science/claude.env \
110
  --model anthropic/claude-opus-4-7 --n-concurrent 1
111
 
112
  # mini-swe-agent
113
- pier run -p tasks-selected-small --agent mini-swe-agent --env docker \
 
114
  --env-file ~/.config/swe-bench-science/mini-swe-agent.env \
115
  --model openai/gpt-5 --n-concurrent 1
116
- ```
117
 
118
- The repository also provides an optional wrapper that pre-pulls every immutable
119
- image and writes a flat summary:
120
 
121
- ```bash
122
  python3 tools/run_batch.py \
123
  --path tasks-selected-small \
124
  --agent codex \
125
  --env-file ~/.config/swe-bench-science/codex.env \
126
  --n-concurrent 2 --n-attempts 1 \
127
  --jobs-dir jobs --job-name codex-small
128
- ```
129
 
130
- For a short agent smoke, add
131
- `--agent-timeout-multiplier 0.0223` (approximately 120 seconds against the
132
- default task timeout). This only limits the agent stage; scientific verifier
133
- builds and tests retain their own timeout.
134
 
135
  ## Provider Profiles
136
 
137
- The examples in [`profiles/`](profiles/) are templates only. Copy them outside
138
- the checkout and set permissions to `600`:
139
 
140
- ```bash
141
  mkdir -p ~/.config/swe-bench-science
142
  cp profiles/codex.env.example ~/.config/swe-bench-science/codex.env
143
  cp profiles/claude.env.example ~/.config/swe-bench-science/claude.env
144
  cp profiles/mini-swe-agent.env.example ~/.config/swe-bench-science/mini-swe-agent.env
145
  chmod 600 ~/.config/swe-bench-science/*.env
146
- ```
147
-
148
- For Codex, set `MODEL`, `OPENAI_API_KEY`, `CODEX_BASE_URL`,
149
- `CODEX_WIRE_API=responses|chat`, `CODEX_VERSION`, and
150
- `CODEX_REASONING_EFFORT`. `CODEX_WIRE_API=responses` selects the OpenAI
151
- Responses API; `chat` selects Chat Completions. For Claude Code, set
152
- `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_BASE_URL`, and optional
153
- `ANTHROPIC_CUSTOM_HEADERS`. mini-swe-agent uses the provider variables expected
154
- by its selected model adapter, commonly `OPENAI_API_KEY` and
155
- `OPENAI_BASE_URL`.
156
-
157
- The credential file is read by Pier at runtime. It is not written to task
158
- metadata, Dockerfiles, image layers, or result summaries. For Codex profiles
159
- using `CODEX_BASE_URL` or `CODEX_WIRE_API`, use `tools/run_batch.py`: it
160
- translates those fields into the Codex `config_toml` required by the gateway.
161
 
162
  ## Results
163
 
164
- Pier writes one aggregate result and one trial directory per task/attempt:
165
 
166
- ```text
167
  jobs/<job-name>/result.json
168
  jobs/<job-name>/<task>__<trial>/verifier/reward.json
169
  jobs/<job-name>/<task>__<trial>/verifier/ctrf.json
170
  jobs/<job-name>/<task>__<trial>/verifier/test-stdout.txt
171
- ```
172
 
173
- The wrapper additionally writes `jobs/summary.json` and `jobs/summary.csv`. For
174
- direct Pier runs, generate them with:
175
 
176
- ```bash
177
  python3 tools/summarize_results.py --jobs-dir jobs
178
- ```
179
 
180
- Use `pier view jobs` to inspect trajectories. Check `result.json`,
181
- `reward.json`, and `test-stdout.txt` together when an agent times out or a
182
- candidate fails.
183
 
184
- ## Reproducibility And Licensing
185
 
186
- `selection.json` records the exact task ids. Each row in `data/tasks.csv` records
187
- the upstream repository, base commit, implementation language, source license,
188
- material licenses and provenance, environment digest, and verifier digest. The
189
- project tools and metadata follow the release repository's MIT terms; task
190
- source and fixtures retain their upstream licenses. Dataset-level notices are
191
- in [`NOTICE.md`](NOTICE.md), and affected thin task bundles also include
192
- `fixtures/PROVENANCE.md`.
193
 
194
- The dataset is independent of GitHub at runtime. After this snapshot is
195
- downloaded, task materialization and evaluation use the local bundle plus Docker
196
- Hub image digests; no task definition is fetched from the authoring repository.
 
9
  - code-agents
10
  - scientific-computing
11
  - benchmark
12
+ size_categories:
13
+ - n<1K
14
  license: mit
15
  ---
16
 
17
  # SWE-bench Science
18
 
19
+ SWE-bench Science evaluates coding agents on software-engineering tasks drawn from scientific-computing repositories. The release contains 119 tasks with isolated environments and separate programmatic verifiers.
20
+
21
+ - **GitHub release repository:** [OpenMOSS/SWE-bench-Science](https://github.com/OpenMOSS/SWE-bench-Science)
22
+ - **Runtime images:** [Docker Hub](https://hub.docker.com/u/kevinxulearning), pinned by immutable `linux/amd64` digests
23
+ - **Evaluation framework:** [Pier](https://github.com/datacurve-ai/pier), compatible with Harbor task format
24
 
25
  ## Dataset Summary
26
 
27
  | Metric | Value |
28
  | --- | ---: |
29
+ | Tasks | 119 |
30
+ | Default selection | 97 unrestricted-license tasks |
31
+ | Restricted selection | 22 tasks |
32
  | GPL/LGPL/AGPL-family tasks | 18 |
33
+ | Environment images | 119 Docker Hub images |
34
+ | Verifier images | 119 Docker Hub images |
35
+ | Image platform | `linux/amd64` |
36
+
37
+ ## Dataset Viewer And Files
38
 
39
+ The Dataset Viewer table is backed by [`data/train-00000-of-00001.parquet`](data/train-00000-of-00001.parquet). It contains the same 119 rows as the canonical CSV export [`data/tasks.csv`](data/tasks.csv).
 
 
 
40
 
41
+ The repository also includes:
42
 
43
+ | Path | Purpose |
44
+ | --- | --- |
45
+ | `data/tasks.csv` | Human-readable task table |
46
+ | `data/statistics.md` | Generated release statistics |
47
+ | `manifests/tasks.jsonl` | Canonical machine-readable release manifest |
48
+ | `selections/` | Reproducible task selections |
49
+ | `tasks/task_NNN/` | Thin Harbor/Pier task bundles |
50
+ | `tools/` | Materialization, provider, batch, and summary tools |
51
 
52
+ The environment image contains the baseline source, public fixtures, dependencies, and compilers. The separate verifier image contains held-out tests and the grader. The dataset does not contain reference-answer patches, credentials, agent trajectories, or private verifier tests.
 
 
53
 
54
  ## Quick Start
55
 
56
+ ~~~bash
57
  python3 -m pip install "huggingface_hub[cli]"
58
  hf auth login
59
  hf download OpenMOSS-Team/SWE-bench-Science \
 
61
  cd swe-bench-science
62
 
63
  uv tool install "datacurve-pier==0.3.0"
 
64
  docker login
65
+ ~~~
66
 
67
+ Materialize the default selection:
68
 
69
+ ~~~bash
70
+ python3 tools/materialize.py \
71
+ --output tasks-selected --force
72
+ ~~~
73
 
74
+ Materialize one task, a comma-separated list, or inclusive ranges:
75
 
76
+ ~~~bash
77
  python3 tools/materialize.py \
78
  --task-id 002,005-007 \
79
  --output tasks-selected-small --force
80
+ ~~~
81
+
82
+ Every materialization writes `selection.json` with the exact task IDs used for the run.
83
+
84
+ ## Restricted Licenses
85
 
86
+ Twenty-two tasks are excluded from the default selection because they contain GPL/LGPL/AGPL-family code, academic non-commercial sources or materials, or restricted third-party data. Include them only after confirming that your use is permitted:
 
87
 
88
+ ~~~bash
89
  python3 tools/materialize.py \
90
  --allow-restricted-licenses \
91
  --output tasks-selected-all --force
92
+ ~~~
93
 
94
+ The GPL/LGPL/AGPL-family task IDs are `003, 020, 021, 023, 032, 057, 066, 074, 075, 082, 083, 084, 085, 096, 097, 098, 100, 118`. Tasks `019`, `026`, `101`, and `102` are restricted for other reasons. There is no `--allow-GPL` option. The selection flag controls which task bundles are materialized; it does not replace the upstream license obligations.
 
 
 
95
 
96
  ## Run An Evaluation
97
 
98
+ Run an infrastructure smoke with no model:
99
 
100
+ ~~~bash
101
  pier run -p tasks-selected-small \
102
+ --agent nop --env docker \
103
+ --n-concurrent 1 --n-attempts 1 \
104
  --no-force-build --no-delete --yes
105
+ ~~~
106
 
107
+ Run a real agent by selecting a harness, model, and provider profile:
 
108
 
109
+ ~~~bash
110
  # Claude Code
111
+ pier run -p tasks-selected-small \
112
+ --agent claude-code --env docker \
113
  --env-file ~/.config/swe-bench-science/claude.env \
114
  --model anthropic/claude-opus-4-7 --n-concurrent 1
115
 
116
  # mini-swe-agent
117
+ pier run -p tasks-selected-small \
118
+ --agent mini-swe-agent --env docker \
119
  --env-file ~/.config/swe-bench-science/mini-swe-agent.env \
120
  --model openai/gpt-5 --n-concurrent 1
121
+ ~~~
122
 
123
+ For Codex gateway profiles, use the included wrapper:
 
124
 
125
+ ~~~bash
126
  python3 tools/run_batch.py \
127
  --path tasks-selected-small \
128
  --agent codex \
129
  --env-file ~/.config/swe-bench-science/codex.env \
130
  --n-concurrent 2 --n-attempts 1 \
131
  --jobs-dir jobs --job-name codex-small
132
+ ~~~
133
 
134
+ For a short agent-stage smoke, add `--agent-timeout-multiplier 0.0223`, approximately 120 seconds for the default task timeout. Verifier and scientific-build timeouts remain independent.
 
 
 
135
 
136
  ## Provider Profiles
137
 
138
+ Create profiles outside the downloaded dataset:
 
139
 
140
+ ~~~bash
141
  mkdir -p ~/.config/swe-bench-science
142
  cp profiles/codex.env.example ~/.config/swe-bench-science/codex.env
143
  cp profiles/claude.env.example ~/.config/swe-bench-science/claude.env
144
  cp profiles/mini-swe-agent.env.example ~/.config/swe-bench-science/mini-swe-agent.env
145
  chmod 600 ~/.config/swe-bench-science/*.env
146
+ ~~~
147
+
148
+ Codex profiles use `MODEL`, `OPENAI_API_KEY`, `CODEX_BASE_URL`, `CODEX_WIRE_API`, `CODEX_VERSION`, and `CODEX_REASONING_EFFORT`. Set `CODEX_WIRE_API=responses` for the OpenAI Responses API or `chat` for Chat Completions. Claude Code uses `ANTHROPIC_AUTH_TOKEN`, `ANTHROPIC_BASE_URL`, and optional `ANTHROPIC_CUSTOM_HEADERS`. mini-swe-agent uses the provider variables expected by its selected model adapter.
149
+
150
+ Credentials are read at runtime. They are not stored in task metadata, Dockerfiles, image layers, or result summaries.
 
 
 
 
 
 
 
 
 
 
151
 
152
  ## Results
153
 
154
+ Pier writes one aggregate result and one trial directory per task and attempt:
155
 
156
+ ~~~text
157
  jobs/<job-name>/result.json
158
  jobs/<job-name>/<task>__<trial>/verifier/reward.json
159
  jobs/<job-name>/<task>__<trial>/verifier/ctrf.json
160
  jobs/<job-name>/<task>__<trial>/verifier/test-stdout.txt
161
+ ~~~
162
 
163
+ The wrapper additionally writes `jobs/summary.json` and `jobs/summary.csv`. For a direct Pier run, generate the same summaries with:
 
164
 
165
+ ~~~bash
166
  python3 tools/summarize_results.py --jobs-dir jobs
167
+ ~~~
168
 
169
+ Use `pier view jobs` to inspect trajectories.
 
 
170
 
171
+ ## Licensing And Attribution
172
 
173
+ The dataset card, release metadata, and helper tools use the repository's MIT terms. Task source, papers, figures, fixtures, and other third-party materials retain their upstream licenses. The source-license field does not automatically license copied scientific materials; audited material notices and modification notes are retained in the relevant task bundles.
 
 
 
 
 
 
174
 
175
+ The dataset is independent of GitHub at runtime. After download, materialization and evaluation use the local task bundle and the Docker Hub image digests recorded in `task.toml` and `data/tasks.csv`.