Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- ps
|
| 5 |
+
tags:
|
| 6 |
+
- conversational
|
| 7 |
+
- pashto
|
| 8 |
+
- clean
|
| 9 |
+
- instruction-tuning
|
| 10 |
+
- chatml
|
| 11 |
+
size_categories:
|
| 12 |
+
- n < 1K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Pashto Clean Conversations Dataset 🇦🇫✨
|
| 16 |
+
|
| 17 |
+
This is a highly curated, deduplicated, and linguistically sanitized conversational dataset in **Pashto**. It is specifically structured for instruction tuning, alignment, and perfecting the conversational capabilities of local Large Language Models (LLMs) in the Pashto language.
|
| 18 |
+
|
| 19 |
+
## Dataset Summary
|
| 20 |
+
|
| 21 |
+
- **Total Conversations:** 722 unique multi-turn/single-turn interactions (derived from 907 raw instances).
|
| 22 |
+
- **Format:** OpenAI / Hugging Face standard `messages` format (`role` and `content`).
|
| 23 |
+
- **Language:** 100% Pashto (پښتو) text.
|
| 24 |
+
- **Data Quality:** 185 duplicates removed (~20% noise reduction). Pure machine-translated artifacts and sub-standard spelling errors (like *پښتونانو*, *پاشتو*, *پشتو*) have been algorithmically hunted and corrected into pure, native standard Pashto.
|
| 25 |
+
|
| 26 |
+
## Structure & Schema
|
| 27 |
+
|
| 28 |
+
Each row is formatted as a JSON object inside a `.jsonl` file with a top-level `messages` array, making it natively compatible with **Unsloth**, Hugging Face Trainer, and Axolotl.
|
| 29 |
+
|
| 30 |
+
### Example Entry:
|
| 31 |
+
```json
|
| 32 |
+
{
|
| 33 |
+
"messages": [
|
| 34 |
+
{"role": "user", "content": "سلام علیکم ماښام مو پخیر"},
|
| 35 |
+
{"role": "assistant", "content": "وعلیکم السلام، ماښام مو پخیر! زه څنګه کولای شم نن ستاسو کومک وکړم؟"}
|
| 36 |
+
]
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## Data Cleansing & Sanitization Process
|
| 42 |
+
|
| 43 |
+
1. **Aggregation:** Merged 10 distinct conversational JSON source tracks into a single unified workspace.
|
| 44 |
+
2. **Deduplication:** Hashed exact string matches of the conversation bodies to eliminate duplicate training patterns.
|
| 45 |
+
3. **Linguistic Deep Hunt:** Executed a specialized Regex pipeline targeting the tokenization anomalies and keyboard errors often generated by foreign local models when rendering Pashto script.
|
| 46 |
+
* Non-standard plurals (e.g., `پښتونانو` corrected to `پښتنو`).
|
| 47 |
+
* Persian/Urdu script overlaps (e.g., `پشتو` corrected to `پښتو`).
|
| 48 |
+
* Phonetic translation spelling errors (e.g., `پاشتو` corrected to `پښتو`).
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
## Usage & Unsloth Integration
|
| 53 |
+
|
| 54 |
+
You can easily load this dataset using the Hugging Face `datasets` library:
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from datasets import load_dataset
|
| 58 |
+
|
| 59 |
+
dataset = load_dataset("nassimjp/pashto-clean-conversations", split="train")
|
| 60 |
+
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
For **Unsloth** users applying a chat template (e.g., Llama-3 or ChatML):
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
from unsloth import get_chat_template
|
| 67 |
+
|
| 68 |
+
dataset = get_chat_template(
|
| 69 |
+
dataset,
|
| 70 |
+
chat_template = "llama-3",
|
| 71 |
+
mapping = {"role" : "role", "content" : "content", "user" : "user", "assistant" : "assistant"},
|
| 72 |
+
mapping_column = "messages",
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
## License
|
| 78 |
+
|
| 79 |
+
This dataset is distributed under the **Apache-2.0** license. Feel free to use it for training and refining your Pashto AI architectures!
|
| 80 |
+
|
| 81 |
+
```
|