muzammil-eds commited on
Commit
d1ed77c
·
verified ·
1 Parent(s): 3ff8b92

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -0
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: apache-2.0
4
+ language:
5
+ - en
6
+ pretty_name: Reddit QA Dataset
7
+ task_categories:
8
+ - question-answering
9
+ - conversational
10
+ - text-generation
11
+ tags:
12
+ - reddit
13
+ - qa
14
+ - conversational
15
+ - dialogue
16
+ - sft
17
+ size_categories:
18
+ - 100K<n<1M # Adjust this bracket based on your actual row count
19
+ ---
20
+
21
+ # Reddit QA Dataset
22
+
23
+ ## Dataset Summary
24
+
25
+ The **Reddit QA Dataset** by EnDevSols is a large-scale, conversational dataset curated from diverse community discussions on Reddit. It is designed to capture the authentic, natural flow of human dialogue, making it an excellent resource for training Large Language Models (LLMs) to handle casual, unstructured queries and complex, multi-turn community interactions.
26
+
27
+ By leveraging highly upvoted answers and community-vetted knowledge, this dataset bridges the gap between rigid, academic Q&A formats and the way humans actually communicate online.
28
+
29
+ ## Dataset Structure
30
+
31
+ ### Data Fields
32
+
33
+ *(Note: Verify these column names against your exact PyArrow/Parquet schema)*
34
+
35
+ * **`question`** *(string)*: The initial post title, prompt, or user query.
36
+ * **`answer`** *(string)*: The top-voted or most relevant community response.
37
+ * **`subreddit`** *(string)*: The specific community the data was sourced from (useful for domain-specific filtering or conditional training).
38
+ * **`score`** *(int)*: The net upvote score of the answer, serving as a proxy for human preference and response quality.
39
+
40
+ ## Motivation & Use Cases
41
+
42
+ While technical reasoning datasets (like `[Multi-Domain-Reasoning-SFT](https://huggingface.co/datasets/EnDevSols/Multi-Domain-Reasoning-SFT)`) teach models *how* to think, the **Reddit QA Dataset** teaches models *how to speak to humans naturally*.
43
+
44
+ ### Primary Use Cases:
45
+ 1. **Conversational Fine-Tuning:** Trains models to understand colloquialisms, internet slang, and casual phrasing, resulting in a more approachable and fluid AI persona.
46
+ 2. **Preference Alignment (DPO/RLHF):** The inherent scoring system of Reddit data makes it an excellent foundation for Direct Preference Optimization (DPO), teaching the model what types of answers humans naturally prefer.
47
+ 3. **Diverse Knowledge Retrieval:** Covers a massive breadth of topics, from troubleshooting niche tech issues to general life advice, expanding the model's zero-shot conversational capabilities.
48
+
49
+ ## Usage
50
+
51
+ ### Loading the Dataset
52
+
53
+ You can easily load this dataset using the Hugging Face `datasets` library:
54
+
55
+ ```python
56
+ from datasets import load_dataset
57
+
58
+ # Load the training split
59
+ dataset = load_dataset("EnDevSols/reddit-qa-dataset", split="train")
60
+
61
+ print(dataset.column_names)
62
+
63
+ ```
64
+
65
+ ### Example Formatting for ChatML
66
+
67
+ If you are formatting this dataset for ChatML fine-tuning (e.g., Unsloth/TRL), you can map the questions and answers seamlessly:
68
+
69
+ ```python
70
+ def format_chatml(example):
71
+ q = example["question"]
72
+ a = example["answer"]
73
+
74
+ return {
75
+ "messages": [
76
+ {"role": "user", "content": q},
77
+ {"role": "assistant", "content": a}
78
+ ]
79
+ }
80
+
81
+ formatted_dataset = dataset.map(format_chatml)
82
+
83
+ ```
84
+
85
+ ## License and Attribution
86
+
87
+ Created and maintained by **[EnDevSols](https://endevsols.com/)**. This dataset is built on publicly available internet data. Users should ensure compliance with relevant platform terms of service and standard data privacy guidelines when utilizing this dataset for commercial applications.