File size: 7,329 Bytes
abd8759
9cf84fa
 
ca1f4fc
9cf84fa
ca1f4fc
 
 
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
abd8759
9cf84fa
ca1f4fc
9cf84fa
 
ca1f4fc
 
 
9cf84fa
ca1f4fc
 
 
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
 
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9cf84fa
 
ca1f4fc
9cf84fa
ca1f4fc
 
9cf84fa
 
 
ca1f4fc
 
9cf84fa
 
 
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
 
 
ca1f4fc
 
 
 
9cf84fa
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9cf84fa
 
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
9cf84fa
ca1f4fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
---
license: apache-2.0
language:
- my
- en
task_categories:
- text-generation
- question-answering
tags:
- code
- coding
- myanmar
- burmese
- llm
- instruction-tuning
- conversational
size_categories:
- 1M<n<10M
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
---

# 🇲🇲 Myanmar LLM Coder Dataset (mm-llm-coder-dataset)

![License](https://img.shields.io/badge/License-Apache--2.0-yellow)
![Rows](https://img.shields.io/badge/Rows-4M-blue)
![Languages](https://img.shields.io/badge/Languages-my%20%7C%20en-green)
![Format](https://img.shields.io/badge/Format-Parquet-orange)

> **မြန်မာဘာသာ Coding LLM များ training အတွက် ရည်ရွယ်ထားသော dataset**
>
> A bilingual (Myanmar + English) coding instruction dataset designed primarily for training **Myanmar language Coder LLMs**.

---

## 🎯 ရည်ရွယ်ချက် / Purpose

ဤ dataset သည် **မြန်မာဘာသာ programming/coding LLM** များ training လုပ်ရန်အတွက် အဓိက ရည်ရွယ်ထားပါသည်။ မြန်မာ developer များ၏ မိခင်ဘာသာစကားဖြင့် coding အကူအညီပေးနိုင်သော AI assistant များကို ဖန်တီးနိုင်စေရန် Myanmar (my) နှင့် English (en) ဘာသာစကား နှစ်မျိုးဖြင့် pair training data ထည့်သွင်းထားပါသည်။

This dataset is primarily intended for training **Myanmar (Burmese) language Coder LLMs** — enabling AI coding assistants that natively understand and respond in မြန်မာဘာသာ. Both English and Myanmar examples share the same schema for parallel/cross-lingual training.

## 📊 Dataset Statistics

| Metric | Value |
| --- | --- |
| Total Samples | **4,000,000** |
| Myanmar (my) | 2,000,000 |
| English (en) | 2,000,000 |
| Format | Parquet (Snappy compressed) |
| Files | `data/train-00000-of-00004.parquet``data/train-00003-of-00004.parquet` |
| Splits | `train` (single split) |

## 🗂️ Schema

```python
{
    "instruction": str,          # Topic/title of the Q&A
    "messages": [                # Multi-turn conversation
        {"role": "user", "content": str},
        {"role": "assistant", "content": str},
        ...                      # 2 / 4 / 6 messages per sample
    ],
    "category": str,             # See categories below
    "language": str,             # "my" or "en"
    "difficulty": str,           # "beginner" | "intermediate" | "advanced"
    "response": str,             # JSON-serialized messages (string form)
    "task_type": str,            # "qa_conversation"
}
```

### Categories (၉ မျိုး)

`code_debugging`, `mongodb_project`, `telegram_bot`, `ui_ux_design`,
`cloudflare_worker`, `deployment_help`, `api_integration`,
`firebase_project`, `website_builder`

### Difficulty Levels

`beginner` · `intermediate` · `advanced`

## 📝 Sample Examples

### Myanmar (my)
```json
{
  "instruction": "React useEffect ကို StrictMode မှာ နှစ်ကြိမ် run တာ ဘယ်လိုဖြေရှင်းမလဲ?",
  "messages": [
    {"role": "user", "content": "ကျွန်တော့် useEffect က development မှာ နှစ်ကြိမ် run နေပါတယ်။ ဘာကြောင့်လဲ?"},
    {"role": "assistant", "content": "React 18 StrictMode က side effects တွေကို detect လုပ်ဖို့အတွက် effects တွေကို နှစ်ကြိမ်ခေါ်ပါတယ်။\n\n**ဖြေရှင်းနည်း**: cleanup function ထည့်ပါ..."}
  ],
  "category": "code_debugging",
  "language": "my",
  "difficulty": "beginner",
  "task_type": "qa_conversation"
}
```

### English (en)
```json
{
  "instruction": "React useEffect runs twice in StrictMode - how to fix?",
  "messages": [
    {"role": "user", "content": "My useEffect is running twice in development. Why?"},
    {"role": "assistant", "content": "React 18 StrictMode intentionally double-invokes effects to detect side effects..."}
  ],
  "category": "code_debugging",
  "language": "en",
  "difficulty": "beginner",
  "task_type": "qa_conversation"
}
```

## 🚀 Usage

### Load full dataset
```python
from datasets import load_dataset

ds = load_dataset("amkyawdev/mm-llm-coder-dataset")
print(ds)
# DatasetDict({ train: Dataset(num_rows=4000000, ...) })
```

### Filter by language

```python
# Myanmar only — for Myanmar-focused fine-tuning
my_data = ds["train"].filter(lambda x: x["language"] == "my")

# English only — for cross-lingual / parallel training
en_data = ds["train"].filter(lambda x: x["language"] == "en")
```

### Filter by category & difficulty
```python
debugging_advanced = ds["train"].filter(
    lambda x: x["category"] == "code_debugging" and x["difficulty"] == "advanced"
)
```

### Streaming (recommended for large-scale training)
```python
ds = load_dataset("amkyawdev/mm-llm-coder-dataset", streaming=True)
for sample in ds["train"]:
    print(sample["language"], sample["instruction"])
    break
```

## 🎓 Use Cases

1. **🇲🇲 Myanmar Coder LLM training** — fine-tune base models (Llama, Qwen, Mistral, etc.) into Myanmar-language coding assistants
2. **Cross-lingual code Q&A** — train models that handle both Myanmar and English coding queries
3. **Instruction tuning** — multi-turn conversation format suitable for chat models
4. **Code debugging assistants** — error fixing patterns across React, Node.js, MongoDB, WebSocket, etc.
5. **Topic-specific fine-tuning** — filter by category (e.g., MongoDB-only, Firebase-only)

## 🔗 Related Datasets

This dataset is part of the combined Myanmar LLM dataset collection by [@amkyawdev](https://huggingface.co/amkyawdev):

- **chat-skill** → [amkyawdev/myanmar-llm-data](https://huggingface.co/datasets/amkyawdev/myanmar-llm-data) — conversational data, translations, general Q&A
- **agent-skill** → [amkyawdev/mm-llm-coder-agent-dataset](https://huggingface.co/datasets/amkyawdev/mm-llm-coder-agent-dataset) — agentic coding tasks
- **code-skill****this dataset** — code generation, debugging, and Q&A

## ⚠️ Notes / Caveats

- The dataset is **template-based**: the 4M samples are produced by combining a curated set of coding instructions with category × difficulty × conversation-length variations. This makes the dataset large and structurally consistent, but with limited semantic diversity per topic.
- For higher-quality, more diverse Myanmar samples, you may consider augmenting with LLM-generated translations of curated English programming Q&A.
- Both `messages` (list) and `response` (JSON string) fields contain the same conversation — use whichever your training pipeline prefers.

## 📄 License

Apache 2.0

## 🙏 Citation

If you use this dataset in your work, please cite:

```bibtex
@dataset{amkyawdev_mm_llm_coder_2025,
  author    = {amkyawdev},
  title     = {Myanmar LLM Coder Dataset (mm-llm-coder-dataset)},
  year      = {2025},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/amkyawdev/mm-llm-coder-dataset}
}
```