File size: 1,447 Bytes
c225289
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language:
  - en
license: other
task_categories:
  - text-generation
tags:
  - python
  - code
  - pretraining
  - qwen3.5
  - conversation
  - instruction-tuning
size_categories:
  - 10K
---

# CodeParrot Clean Python (sample)

## Description

Teaches domain-specific instruction following and code generation for this expert.

## Source

- codeparrot/codeparrot-clean - 500 MB streamed sample of 12.8 GB; the per-file licence field is preserved in the text

Formatted for the MoE-orchestrator project
(https://github.com/michaelowusuntim6/MoE-orchestrator). Expert target:
`code_python`.

## Format

Each record is a JSON object with a `messages` field formatted for Qwen3.5's
native chat template:

```json
{"messages": [
  {"role": "system", "content": "..."},
  {"role": "user", "content": "..."},
  {"role": "assistant", "content": "..."}
]}
```

The records are consumed via `tokenizer.apply_chat_template()`. Special tokens
(`<|im_start|>`, `<|im_end|>`) are added by the template, never embedded in
content.

## Splits

- `train`: 47,048 records
- `val`: 975 records

## Usage

```python
from datasets import load_dataset
ds = load_dataset("michaelowusuntim6/python-codeparrot-qwen35", split="train")
print(ds[0]["messages"])
```

## License

per-file (mostly MIT/Apache-2.0). Upstream sources keep their own licences - see the source list
above and `docs/DATASET_SOURCES.md` in the MoE-orchestrator repository for
per-source detail.