EmergencyDialogue / README.md
Areej0's picture
Update README.md
90b4ace verified
|
Raw History Blame Contribute Delete
2.29 kB
## πŸ“„ README.md
````markdown
---
language:
- en
-Ar
tags:
- conversational
- chatml
- instruction-tuning
- sft
- dialogue
license: apache-2.0
task_categories:
- text-generation
- conversational
pretty_name: EmergencyDialogue SFT Dataset
size_categories:
- 10K<n<100K
---
# EmergencyDialogue SFT Dataset
## πŸ“Œ Overview
This dataset contains conversational data formatted in **ChatML style**, designed for **Supervised Fine-Tuning (SFT)** of large language models.
The dataset is an **English/Arabic**.
It is suitable for:
- Instruction tuning
- Chatbot training
- Dialogue modeling
- Conversational AI research
---
## πŸ“‚ Dataset Structure
The dataset is provided in **JSONL format**, where each line represents a conversation.
### Example:
```json
{
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello"},
{"role": "assistant", "content": "Hi! How can I help you?"}
]
}
````
---
## 🧱 Format Details
Each record contains:
* `messages`: List of message objects
* `role`: One of:
* `system`
* `user`
* `assistant`
* `content`: Text content of the message (in English)
This format is compatible with:
* OpenAI ChatML format
* Hugging Face conversational fine-tuning pipelines
* Libraries like `transformers`, `trl`, and `llama-factory`
---
## βš™οΈ Usage
### Load with πŸ€— Datasets
```python
from datasets import load_dataset
dataset = load_dataset("YOUR_USERNAME/YOUR_DATASET_NAME")
print(dataset["train"][0])
```
### Training Example (Transformers)
```python
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("model-name")
def format_chat(example):
return tokenizer.apply_chat_template(example["messages"], tokenize=False)
dataset = dataset.map(lambda x: {"text": format_chat(x)})
```
---
## 🎯 Intended Use
This dataset is intended for:
* Supervised fine-tuning (SFT)
* Instruction-following models
* Chat-based applications
---
## ⚠️ Limitations
* Some domain-specific phrases may not perfectly map to English.
* No guarantee of factual correctness.
---
## πŸ” License
This dataset is released under the **Apache 2.0 License**.
---
## πŸ™Œ Acknowledgements
* EmergencyDialogue Team
* Data Annotater Team
```