Update README.md
Browse filesguideline: convert to Qwen3 prompt format
README.md
CHANGED
|
@@ -21,6 +21,26 @@ To train and evaluate models using this dataset with [AReaL](https://github.com/
|
|
| 21 |
- Move each subfolder inside `code_benchmark/` to the `evaluation/data/` directory in the AReaL repository.
|
| 22 |
4. **Run evaluation** according to the [AReaL evaluation guideline](https://inclusionai.github.io/AReaL/tutorial/eval.html).
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
## License
|
| 25 |
|
| 26 |
Please refer to the LICENSE file associated with this dataset or contact the maintainers for more details.
|
|
|
|
| 21 |
- Move each subfolder inside `code_benchmark/` to the `evaluation/data/` directory in the AReaL repository.
|
| 22 |
4. **Run evaluation** according to the [AReaL evaluation guideline](https://inclusionai.github.io/AReaL/tutorial/eval.html).
|
| 23 |
|
| 24 |
+
## Convert to Qwen3 prompt format
|
| 25 |
+
|
| 26 |
+
```
|
| 27 |
+
with open("/path/to/raw.jsonl") as f, \
|
| 28 |
+
open("/path/to/qwen3_data.jsonl", "w") as fout:
|
| 29 |
+
|
| 30 |
+
for line in f:
|
| 31 |
+
data = json.loads(line)
|
| 32 |
+
|
| 33 |
+
prompt = data['prompt']
|
| 34 |
+
prompt = prompt.replace(
|
| 35 |
+
"<|User|>", "<|im_start|>user\n"
|
| 36 |
+
).replace(
|
| 37 |
+
"<|Assistant|>", "\n/think<|im_end|>\n<|im_start|>assistant\n"
|
| 38 |
+
)
|
| 39 |
+
data['prompt'] = prompt
|
| 40 |
+
|
| 41 |
+
print(json.dumps(data), file=fout)
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
## License
|
| 45 |
|
| 46 |
Please refer to the LICENSE file associated with this dataset or contact the maintainers for more details.
|