File size: 3,359 Bytes
9a33fa7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c5e464a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
dataset_info:
  features:
  - name: text
    dtype: string
  splits:
  - name: train
    num_bytes: 171220127
    num_examples: 50661
  download_size: 43815818
  dataset_size: 171220127
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*

license: apache-2.0
language:
  - en
tags:
  - code
  - python
  - coding
  - instruction-tuning
  - chatml
  - qlora
  - atlas-coder
pretty_name: Atlas-Coder-50K-ChatML
size_categories:
  - 10K<n<100K
task_categories:
  - text-generation
---

# πŸ“š Atlas-Coder-50K-ChatML

A **50,000-sample execution-verified Python instruction dataset**, pre-formatted in **ChatML** for immediate supervised fine-tuning of coding language models.

This dataset accompanies **Atlas-Coder-2-0.5B** and represents the exact high-quality training subset used during instruction tuning.

---

## ✨ Highlights

- βœ… **50,000 curated Python instruction-response pairs**
- βœ… **Execution-verified** (compiled and tested before inclusion)
- βœ… **Pre-formatted in ChatML**
- βœ… **Ready for Hugging Face `Trainer` / `SFTTrainer`**
- βœ… **Decontaminated against HumanEval & MBPP**
- βœ… Optimized for **0.5B–3B parameter coding models**

---

## πŸ“– Dataset Description

Atlas-Coder-50K-ChatML is a carefully processed subset of the **bigcode/self-oss-instruct-sc2-exec-filter-50k** dataset.

Rather than increasing dataset size, the focus is on maximizing **signal quality**, enabling smaller language models to efficiently learn Python programming, algorithmic reasoning, and instruction following.

Each sample is already formatted in standard ChatML, eliminating the need for additional preprocessing before fine-tuning.

---

## πŸ“‚ Dataset Format

The dataset contains a single column:

| Column | Type | Description |
|--------|------|-------------|
| `text` | string | Complete ChatML conversation |

Example:

```text
<|im_start|>system
You are a helpful coding assistant.
<|im_end|>
<|im_start|>user
Write a function that returns the sum of all even numbers.
<|im_end|>
<|im_start|>assistant
def sum_even_numbers(lst):
    return sum(x for x in lst if x % 2 == 0)
<|im_end|>
```

---

## πŸš€ Loading the Dataset

```python
from datasets import load_dataset

dataset = load_dataset(
    "Siddh07ETH/Atlas-Coder-50K-ChatML",
    split="train"
)

print(dataset[0]["text"])
```

---

## πŸ›‘οΈ Benchmark Integrity

Before training Atlas-Coder-2, the dataset was **decontaminated** against:

- HumanEval
- MBPP

using an **8-gram Jaccard similarity filter** with a **0.30 overlap threshold**.

Samples with excessive similarity to benchmark prompts were removed to preserve fair evaluation and prevent benchmark leakage.

---

## 🎯 Intended Use

This dataset is designed for:

- Instruction tuning
- Supervised fine-tuning (SFT)
- QLoRA training
- Small Language Models (SLMs)
- Python code generation
- Code completion
- Algorithmic reasoning

Recommended model sizes:

- 0.5B
- 1B
- 1.5B
- 3B

---

## ⚠️ Limitations

- Python-only dataset
- Does not include multilingual programming languages
- Optimized for functional code generation rather than long-form software engineering discussions

---

## πŸ“„ License

This dataset is released under the **Apache-2.0** license and follows the licensing terms of the original **bigcode/self-oss-instruct-sc2-exec-filter-50k** dataset.