|
Download README.md from Areej0/EmergencyDialogue: direct link, hf CLI and curl.
- Browser
- Download file 2.29 kB
-
https://huggingface.co/datasets/Areej0/EmergencyDialogue/resolve/main/README.md
- Command line
-
hf download hf://datasets/Areej0/EmergencyDialogue/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Areej0/EmergencyDialogue/resolve/main/README.md
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 | |
| ``` | |