Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
configs:
|
| 3 |
+
- config_name: default
|
| 4 |
+
data_files:
|
| 5 |
+
- split: train
|
| 6 |
+
path: index.csv
|
| 7 |
+
tags: [cooperbench, cooperdata, coop, mini-swe-agent, qwen, contract-first]
|
| 8 |
+
size_categories: [n<1K]
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
## What this is
|
| 12 |
+
|
| 13 |
+
Cooperative two-agent coding dataset: 36 task pairs across 13 repos (random-50 subset), generated
|
| 14 |
+
with `mini_swe_agent` on `Qwen/Qwen3.5-9B` in `coop` setting using a **contract-first prompt variant** —
|
| 15 |
+
agents first agree on a shared interface contract (function signatures, data structures, API
|
| 16 |
+
boundaries) before independently implementing their respective features. All 36 pairs were
|
| 17 |
+
successfully evaluated.
|
| 18 |
+
|
| 19 |
+
## At a glance
|
| 20 |
+
|
| 21 |
+
| Field | Value |
|
| 22 |
+
|---|---|
|
| 23 |
+
| Model | Qwen/Qwen3.5-9B |
|
| 24 |
+
| Agent | mini_swe_agent (contract-first prompt) |
|
| 25 |
+
| Setting | coop |
|
| 26 |
+
| Subset | random-50 (36 completed) |
|
| 27 |
+
| Repos | 13 |
|
| 28 |
+
| Pairs evaluated | 36 |
|
| 29 |
+
| Both-pass | 5.6% (2/36) |
|
| 30 |
+
| Per-feature pass | 20.8% (15/72) |
|
| 31 |
+
| Merge clean rate | 69.4% (25/36) |
|
| 32 |
+
| Merge conflict rate | 30.6% (11/36) |
|
| 33 |
+
| Total tokens | ~20.2M (in+out, from traj files) |
|
| 34 |
+
| Owner | Arya Prabhudesai |
|
| 35 |
+
| Date | 2026-06-02 |
|
| 36 |
+
|
| 37 |
+
## How it was generated
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
cooperbench run --setting coop -a mini_swe_agent -c 30 qwen35-9b-contract-first-coop-random-50
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
Model served via vLLM OpenAI-compatible endpoint (`openai/Qwen/Qwen3.5-9B`).
|
| 44 |
+
Contract-first variant: agents negotiate and agree on a shared interface contract before
|
| 45 |
+
beginning implementation, aiming to reduce integration conflicts.
|
| 46 |
+
|
| 47 |
+
## File layout
|
| 48 |
+
|
| 49 |
+
- `index.csv` — one row per task pair; HF Dataset Viewer entry point
|
| 50 |
+
- `qwen35-9b-contract-first-coop-random-50/coop/<repo>/<task_id>/<features>/` — raw per-pair artifacts:
|
| 51 |
+
`result.json`, `eval.json`, `agent1_traj.json`, `agent2_traj.json`, `agent{1,2}.patch`, `conversation.json`
|
| 52 |
+
|
| 53 |
+
`log_dir` column in `index.csv` points to the per-pair subdirectory.
|
| 54 |
+
|
| 55 |
+
## Schema highlights for mid-training
|
| 56 |
+
|
| 57 |
+
Filter on: `both_passed=true`, `model`, `agent_framework`.
|
| 58 |
+
|
| 59 |
+
`metadata` JSON carries per-agent statuses, steps, merge outcome, per-feature pass — use
|
| 60 |
+
`json.loads(row["metadata"])` without following the pointer.
|
| 61 |
+
|
| 62 |
+
**Note:** `total_tokens` is 0 for this run — token counts are in `agent_full_traj.json`
|
| 63 |
+
under `messages[*].extra.response.usage` (~20.2M total in+out).
|
| 64 |
+
|
| 65 |
+
## Caveats
|
| 66 |
+
|
| 67 |
+
- random-50 subset — 36 tasks completed
|
| 68 |
+
- 16.7% LimitsExceeded exits (12/72 agent slots); 1.4% Error (1/72)
|
| 69 |
+
- 30.6% merge conflict rate (11/36)
|
| 70 |
+
- Token fields in `result.json` are 0; aggregate from `agent_full_traj.json` if needed
|
| 71 |
+
|
| 72 |
+
## Citation
|
| 73 |
+
|
| 74 |
+
```bibtex
|
| 75 |
+
@dataset{qwen35_9b_contract_first_coop_random_50,
|
| 76 |
+
title = {qwen35-9b-contract-first-coop-random-50},
|
| 77 |
+
author = {Arya Prabhudesai},
|
| 78 |
+
year = {2026},
|
| 79 |
+
url = {https://huggingface.co/datasets/CooperBench/qwen35-9b-contract-first-coop-random-50}
|
| 80 |
+
}
|
| 81 |
+
```
|