amkyawdev commited on
Commit
ca1f4fc
·
verified ·
1 Parent(s): e686179

docs: rewrite README — focus on Myanmar Coder LLM purpose, document 4M bilingual data

Browse files
Files changed (1) hide show
  1. README.md +151 -44
README.md CHANGED
@@ -1,83 +1,190 @@
1
  ---
2
  license: apache-2.0
3
  language:
 
4
  - en
5
- multilinguality: monolingual
6
- size_categories: n_1M_to_n_10M
7
- datasets:
8
- - amkyawdev/mm-llm-coder-dataset
9
  tags:
10
- - code-generation
11
- - debugging
12
- - python
13
- - javascript
14
  - coding
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
 
17
- # Coder Dataset - code-skill.md
18
 
19
  ![License](https://img.shields.io/badge/License-Apache--2.0-yellow)
20
- ![Rows](https://img.shields.io/badge/Rows-2M-blue)
21
- ![Format](https://img.shields.io/badge/Format-JSON-blue)
 
22
 
23
- Code generation and debugging dataset for training coding LLMs. Contains programming Q&A and error fixing examples.
 
 
24
 
25
- ## Skill Type: Code/Skill
26
 
27
- This dataset is part of the combined Myanmar LLM dataset collection:
28
- - **chat-skill.md** - [amkyawdev/myanmar-llm-data](https://huggingface.co/datasets/amkyawdev/myanmar-llm-data)
29
- - **agent-skill.md** - [amkyawdev/mm-llm-coder-agent-dataset](https://huggingface.co/datasets/amkyawdev/mm-llm-coder-agent-dataset)
30
- - **code-skill.md** - Myanmar conversational data, translations, Q&A
31
 
32
- ## Overview
33
 
34
- This dataset contains code generation and debugging tasks:
35
- - 💻 **Code Generation**: Python, JavaScript, TypeScript, React
36
- - 🐛 **Debugging**: Error fixing patterns
37
- - 📝 **Q&A Format**: Programming questions and answers
38
- - 🔍 **Code Review**: Best practices and optimization
39
 
40
- ## Dataset Statistics
41
 
42
  | Metric | Value |
43
- |--------|-------|
44
- | Total Samples | ~2,000,000 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
- ## Data Format
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  ```json
49
  {
 
50
  "messages": [
51
- {"role": "user", "content": "Debug CORS error in production"},
52
- {"role": "assistant", "content": "Common causes: 1. Different domain..."}
53
  ],
54
  "category": "code_debugging",
55
  "language": "en",
56
- "difficulty": "intermediate"
 
57
  }
58
  ```
59
 
60
- ## Usage
61
 
 
62
  ```python
63
  from datasets import load_dataset
64
 
65
- dataset = load_dataset("amkyawdev/mm-llm-coder-dataset")
66
- print(dataset)
 
 
67
 
68
- # Access sample
69
- sample = dataset["train"][0]
70
- print("Messages:", sample["messages"])
71
- print("Category:", sample["category"])
 
 
 
 
 
 
 
 
 
 
 
72
  ```
73
 
74
- ## Use Cases
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
- 1. **Code Generation**: Train models for programming tasks
77
- 2. **Debugging**: Learn error fixing patterns
78
- 3. **Code Review**: Best practices training
79
- 4. **Q&A Systems**: Programming help chatbots
80
 
81
- ## License
82
 
83
- Apache 2.0 License
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  language:
4
+ - my
5
  - en
6
+ task_categories:
7
+ - text-generation
8
+ - question-answering
 
9
  tags:
10
+ - code
 
 
 
11
  - coding
12
+ - myanmar
13
+ - burmese
14
+ - llm
15
+ - instruction-tuning
16
+ - conversational
17
+ size_categories:
18
+ - 1M<n<10M
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: train
23
+ path: data/train-*
24
  ---
25
 
26
+ # 🇲🇲 Myanmar LLM Coder Dataset (mm-llm-coder-dataset)
27
 
28
  ![License](https://img.shields.io/badge/License-Apache--2.0-yellow)
29
+ ![Rows](https://img.shields.io/badge/Rows-4M-blue)
30
+ ![Languages](https://img.shields.io/badge/Languages-my%20%7C%20en-green)
31
+ ![Format](https://img.shields.io/badge/Format-Parquet-orange)
32
 
33
+ > **မြန်မာဘာသာ Coding LLM များ training အတွက် ရည်ရွယ်ထားသော dataset**
34
+ >
35
+ > A bilingual (Myanmar + English) coding instruction dataset designed primarily for training **Myanmar language Coder LLMs**.
36
 
37
+ ---
38
 
39
+ ## 🎯 ရည်ရွယ်ချက် / Purpose
 
 
 
40
 
41
+ dataset သည် **မြန်မာဘာသာ programming/coding LLM** များ training လုပ်ရန်အတွက် အဓိက ရည်ရွယ်ထားပါသည်။ မြန်မာ developer များ၏ မိခင်ဘာသာစကားဖြင့် coding အကူအညီပေးနိုင်သော AI assistant များကို ဖန်တီးနိုင်စေရန် Myanmar (my) နှင့် English (en) ဘာသာစကား နှစ်မျိုးဖြင့် pair training data ထည့်သွင်းထားပါသည်။
42
 
43
+ 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.
 
 
 
 
44
 
45
+ ## 📊 Dataset Statistics
46
 
47
  | Metric | Value |
48
+ | --- | --- |
49
+ | Total Samples | **4,000,000** |
50
+ | Myanmar (my) | 2,000,000 |
51
+ | English (en) | 2,000,000 |
52
+ | Format | Parquet (Snappy compressed) |
53
+ | Files | `data/train-00000-of-00004.parquet` … `data/train-00003-of-00004.parquet` |
54
+ | Splits | `train` (single split) |
55
+
56
+ ## 🗂️ Schema
57
+
58
+ ```python
59
+ {
60
+ "instruction": str, # Topic/title of the Q&A
61
+ "messages": [ # Multi-turn conversation
62
+ {"role": "user", "content": str},
63
+ {"role": "assistant", "content": str},
64
+ ... # 2 / 4 / 6 messages per sample
65
+ ],
66
+ "category": str, # See categories below
67
+ "language": str, # "my" or "en"
68
+ "difficulty": str, # "beginner" | "intermediate" | "advanced"
69
+ "response": str, # JSON-serialized messages (string form)
70
+ "task_type": str, # "qa_conversation"
71
+ }
72
+ ```
73
+
74
+ ### Categories (၉ မျိုး)
75
+
76
+ `code_debugging`, `mongodb_project`, `telegram_bot`, `ui_ux_design`,
77
+ `cloudflare_worker`, `deployment_help`, `api_integration`,
78
+ `firebase_project`, `website_builder`
79
+
80
+ ### Difficulty Levels
81
 
82
+ `beginner` · `intermediate` · `advanced`
83
 
84
+ ## 📝 Sample Examples
85
+
86
+ ### Myanmar (my)
87
+ ```json
88
+ {
89
+ "instruction": "React useEffect ကို StrictMode မှာ နှစ်ကြိမ် run တာ ဘယ်လိုဖြေရှင်းမလဲ?",
90
+ "messages": [
91
+ {"role": "user", "content": "ကျွန်တော့် useEffect က development မှာ နှစ်ကြိမ် run နေပါတယ်။ ဘာကြောင့်လဲ?"},
92
+ {"role": "assistant", "content": "React 18 StrictMode က side effects တွေကို detect လုပ်ဖို့အတွက် effects တွေကို နှစ်ကြိမ်ခေါ်ပါတယ်။\n\n**ဖြေရှင်းနည်း**: cleanup function ထည့်ပါ..."}
93
+ ],
94
+ "category": "code_debugging",
95
+ "language": "my",
96
+ "difficulty": "beginner",
97
+ "task_type": "qa_conversation"
98
+ }
99
+ ```
100
+
101
+ ### English (en)
102
  ```json
103
  {
104
+ "instruction": "React useEffect runs twice in StrictMode - how to fix?",
105
  "messages": [
106
+ {"role": "user", "content": "My useEffect is running twice in development. Why?"},
107
+ {"role": "assistant", "content": "React 18 StrictMode intentionally double-invokes effects to detect side effects..."}
108
  ],
109
  "category": "code_debugging",
110
  "language": "en",
111
+ "difficulty": "beginner",
112
+ "task_type": "qa_conversation"
113
  }
114
  ```
115
 
116
+ ## 🚀 Usage
117
 
118
+ ### Load full dataset
119
  ```python
120
  from datasets import load_dataset
121
 
122
+ ds = load_dataset("amkyawdev/mm-llm-coder-dataset")
123
+ print(ds)
124
+ # DatasetDict({ train: Dataset(num_rows=4000000, ...) })
125
+ ```
126
 
127
+ ### Filter by language
128
+
129
+ ```python
130
+ # Myanmar only — for Myanmar-focused fine-tuning
131
+ my_data = ds["train"].filter(lambda x: x["language"] == "my")
132
+
133
+ # English only — for cross-lingual / parallel training
134
+ en_data = ds["train"].filter(lambda x: x["language"] == "en")
135
+ ```
136
+
137
+ ### Filter by category & difficulty
138
+ ```python
139
+ debugging_advanced = ds["train"].filter(
140
+ lambda x: x["category"] == "code_debugging" and x["difficulty"] == "advanced"
141
+ )
142
  ```
143
 
144
+ ### Streaming (recommended for large-scale training)
145
+ ```python
146
+ ds = load_dataset("amkyawdev/mm-llm-coder-dataset", streaming=True)
147
+ for sample in ds["train"]:
148
+ print(sample["language"], sample["instruction"])
149
+ break
150
+ ```
151
+
152
+ ## 🎓 Use Cases
153
+
154
+ 1. **🇲🇲 Myanmar Coder LLM training** — fine-tune base models (Llama, Qwen, Mistral, etc.) into Myanmar-language coding assistants
155
+ 2. **Cross-lingual code Q&A** — train models that handle both Myanmar and English coding queries
156
+ 3. **Instruction tuning** — multi-turn conversation format suitable for chat models
157
+ 4. **Code debugging assistants** — error fixing patterns across React, Node.js, MongoDB, WebSocket, etc.
158
+ 5. **Topic-specific fine-tuning** — filter by category (e.g., MongoDB-only, Firebase-only)
159
 
160
+ ## 🔗 Related Datasets
 
 
 
161
 
162
+ This dataset is part of the combined Myanmar LLM dataset collection by [@amkyawdev](https://huggingface.co/amkyawdev):
163
 
164
+ - **chat-skill** → [amkyawdev/myanmar-llm-data](https://huggingface.co/datasets/amkyawdev/myanmar-llm-data) — conversational data, translations, general Q&A
165
+ - **agent-skill** → [amkyawdev/mm-llm-coder-agent-dataset](https://huggingface.co/datasets/amkyawdev/mm-llm-coder-agent-dataset) — agentic coding tasks
166
+ - **code-skill** → **this dataset** — code generation, debugging, and Q&A
167
+
168
+ ## ⚠️ Notes / Caveats
169
+
170
+ - 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.
171
+ - For higher-quality, more diverse Myanmar samples, you may consider augmenting with LLM-generated translations of curated English programming Q&A.
172
+ - Both `messages` (list) and `response` (JSON string) fields contain the same conversation — use whichever your training pipeline prefers.
173
+
174
+ ## 📄 License
175
+
176
+ Apache 2.0
177
+
178
+ ## 🙏 Citation
179
+
180
+ If you use this dataset in your work, please cite:
181
+
182
+ ```bibtex
183
+ @dataset{amkyawdev_mm_llm_coder_2025,
184
+ author = {amkyawdev},
185
+ title = {Myanmar LLM Coder Dataset (mm-llm-coder-dataset)},
186
+ year = {2025},
187
+ publisher = {Hugging Face},
188
+ url = {https://huggingface.co/datasets/amkyawdev/mm-llm-coder-dataset}
189
+ }
190
+ ```