File size: 1,678 Bytes
2d13384
 
 
 
 
 
 
 
 
 
 
f3ce60b
2d13384
 
 
 
 
 
 
 
 
 
 
7252984
 
 
1abdc2c
7252984
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2d13384
 
 
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
---
license: apache-2.0
---

# AReaL-boba-2-RL-Code Dataset

This dataset contains the training and testing data used for reinforcement learning in the **AReaL-boba-2** model on coding tasks.

## Dataset Structure

- `train/`: Contains the training data for RL fine-tuning.
- `code_benchmark/`: Contains the evaluation benchmark, organized into multiple subfolders, each corresponding to a specific coding benchmark suite, `Codeforces`, `Code Contests` and `LiveCodeBench (v5)` are supported now.

## How to Use

To train and evaluate models using this dataset with [AReaL](https://github.com/inclusionAI/AReaL):

1. **Download the dataset** from this page.
2. **Train the model** by following the [AReaL training guideline](https://inclusionai.github.io/AReaL/tutorial/quickstart.html).
3. **Prepare the evaluation data**:
   - Move each subfolder inside `code_benchmark/` to the `evaluation/data/` directory in the AReaL repository.
4. **Run evaluation** according to the [AReaL evaluation guideline](https://inclusionai.github.io/AReaL/tutorial/eval.html).

## Convert to Qwen3 prompt format

```
import json
with open("/path/to/raw.jsonl") as f, \
    open("/path/to/qwen3_data.jsonl", "w") as fout:

    for line in f:
        data = json.loads(line)

        prompt = data['prompt']
        prompt = prompt.replace(
            "<|User|>", "<|im_start|>user\n"
        ).replace(
            "<|Assistant|>", "\n/think<|im_end|>\n<|im_start|>assistant\n"
        )
        data['prompt'] = prompt

        print(json.dumps(data), file=fout)
```

## License

Please refer to the LICENSE file associated with this dataset or contact the maintainers for more details.