File size: 3,239 Bytes
5bba4aa
 
a18f901
5bba4aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a18f901
 
 
 
 
 
 
 
 
 
 
 
fb219f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5bba4aa
 
 
 
 
 
 
a18f901
 
 
 
fb219f0
 
 
 
5bba4aa
84f7518
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
dataset_info:
- config_name: default
  features:
  - name: source
    dtype: string
  - name: messages
    list:
    - name: role
      dtype: string
    - name: content
      dtype: string
  splits:
  - name: train
    num_bytes: 335668622
    num_examples: 23475
  - name: validation
    num_bytes: 6825452
    num_examples: 500
  download_size: 119197784
  dataset_size: 342494074
- config_name: opd_prompts
  features:
  - name: source
    dtype: string
  - name: prompt
    dtype: string
  splits:
  - name: train
    num_bytes: 7824598
    num_examples: 4000
  download_size: 3227874
  dataset_size: 7824598
- config_name: rlvr
  features:
  - name: task_kind
    dtype: string
  - name: filename
    dtype: string
  - name: prompt
    dtype: string
  - name: original_code
    dtype: string
  - name: test_code
    dtype: string
  - name: test_cases_json
    dtype: string
  splits:
  - name: train
    num_bytes: 6504400
    num_examples: 2500
  download_size: 2545458
  dataset_size: 6504400
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
- config_name: opd_prompts
  data_files:
  - split: train
    path: opd_prompts/train-*
- config_name: rlvr
  data_files:
  - split: train
    path: rlvr/train-*
---

# m4-coding-agent-v2-dataset

Training and verification dataset built for [`netm8/qwen3-8b-m4-agent-v2`](https://huggingface.co/netm8/qwen3-8b-m4-agent-v2), an 8B local coding agent based on `Qwen/Qwen3-8B`.

## What's in the dataset

The dataset has 30,475 rows organized into three configs matching the three training stages:

| Config | Rows | Purpose |
| :--- | :---: | :--- |
| `default` | 23,475 train / 500 val | Multi-turn coding trajectories and multi-language coding examples normalized into a single five-tool schema (`read_file`, `edit_file`, `grep_search`, `list_files`, `run_command`). |
| `opd_prompts` | 4,000 | Diverse coding prompts used for Stage 2 on-policy distillation from `Qwen3-Coder-30B-A3B-Instruct`. |
| `rlvr` | 2,500 | Executable verification tasks: 1,500 decontaminated competitive programming problems (`stdin`/`stdout` test cases) and 1,000 Python AST bug-mutation `edit_file` tasks where each bug was verified to fail tests before the fix and pass after. The final 100 bug-fix tasks were held out strictly for evaluation. |

### Key data engineering steps

- **Unified 5-tool schema:** Multi-turn trajectories from different agent harnesses (such as SWE-rebench and SWE-smith) were remapped into a single consistent Qwen3 `<tool_call>` JSON schema.
- **Execution-verified bug mutations:** Python AST mutations (off-by-one errors, boundary condition flips, operator bugs) were automatically executed against unit tests so only genuine, reproducible failing-to-passing fixes were kept.
- **Multi-language coverage:** Stage 1 SFT includes Python, C++, TypeScript/JavaScript, Rust, Go, Java, Bash, and SQL alongside tool-use trajectories.

## Loading

```python
from datasets import load_dataset

sft = load_dataset("netm8/m4-coding-agent-v2-dataset", "default")
opd = load_dataset("netm8/m4-coding-agent-v2-dataset", "opd_prompts")
rlvr = load_dataset("netm8/m4-coding-agent-v2-dataset", "rlvr")
```