Arko007 commited on
Commit
85e0dc7
·
verified ·
1 Parent(s): 5fd7d8d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +95 -56
README.md CHANGED
@@ -1,58 +1,97 @@
1
  ---
2
- dataset_info:
3
- - config_name: humour_chat
4
- features:
5
- - name: messages
6
- list:
7
- - name: role
8
- dtype: string
9
- - name: content
10
- dtype: string
11
- splits:
12
- - name: train
13
- num_bytes: 2133898
14
- num_examples: 5017
15
- download_size: 2134780
16
- dataset_size: 2133898
17
- - config_name: math_reasoning
18
- features:
19
- - name: messages
20
- list:
21
- - name: role
22
- dtype: string
23
- - name: content
24
- dtype: string
25
- splits:
26
- - name: train
27
- num_bytes: 8603561
28
- num_examples: 20504
29
- download_size: 8604153
30
- dataset_size: 8603561
31
- - config_name: merged_genz_chat
32
- features:
33
- - name: messages
34
- list:
35
- - name: role
36
- dtype: string
37
- - name: content
38
- dtype: string
39
- splits:
40
- - name: train
41
- num_bytes: 1087638
42
- num_examples: 4590
43
- download_size: 1075799
44
- dataset_size: 1087638
45
- configs:
46
- - config_name: humour_chat
47
- data_files:
48
- - split: train
49
- path: humour_chat/train-*
50
- - config_name: math_reasoning
51
- data_files:
52
- - split: train
53
- path: math_reasoning/train-*
54
- - config_name: merged_genz_chat
55
- data_files:
56
- - split: train
57
- path: merged_genz_chat/train-*
58
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - sft
9
+ - conversational
10
+ - instruction-tuning
11
+ - multi-genre
12
+ - math-reasoning
13
+ - humour
14
+ - genz
15
+ size_categories:
16
+ - 10K-100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
+
19
+ # Filthy-data-SFT
20
+
21
+ This is a highly curated, cleaned, and professionally reformatted multi-genre conversational dataset prepared specifically for **Supervised Fine-Tuning (SFT)** of custom LLMs.
22
+
23
+ The original repository (`Arko007/Filthy-data`) contained unstructured files with heterogeneous schemas (e.g., nesting fields, different keys, varied turn structures). This version standardizes everything into clean, unified message list-of-dicts structures.
24
+
25
+ ## Subsets Available
26
+ This dataset is divided into three major target configurations:
27
+ 1. **`math_reasoning`** (20504 rows): Complex math and step-by-step reasoning sequences.
28
+ 2. **`humour_chat`** (5017 rows): Humorous conversational pairs.
29
+ 3. **`merged_genz_chat`** (4590 rows): Unified and cleaned dialogue incorporating both normal GenZ slang dialogues and the extreme colloquial dialogue sets.
30
+
31
+ ---
32
+
33
+ ## Dataset Anatomy & Features
34
+
35
+ Every example in any of the subsets strictly follows the uniform schema:
36
+ - `messages` (list of dicts):
37
+ - `role` (string): Either `"user"` or `"assistant"`.
38
+ - `content` (string): Text content of the dialogue turn.
39
+
40
+ ### Sample Data Structure
41
+ ```json
42
+ {
43
+ "messages": [
44
+ {
45
+ "role": "user",
46
+ "content": "Yo, what is the vibe today?"
47
+ },
48
+ {
49
+ "role": "assistant",
50
+ "content": "No cap, we are just cooling out and vibing!"
51
+ }
52
+ ]
53
+ }
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Quick Start & Usage
59
+
60
+ You can load individual subsets directly from the Hugging Face Hub using the `datasets` library:
61
+
62
+ ```python
63
+ from datasets import load_dataset
64
+
65
+ # Load math reasoning
66
+ math_ds = load_dataset("Arko007/Filthy-data-SFT", "math_reasoning")
67
+
68
+ # Load merged GenZ chats
69
+ genz_ds = load_dataset("Arko007/Filthy-data-SFT", "merged_genz_chat")
70
+
71
+ print(genz_ds["train"][0])
72
+ ```
73
+
74
+ ### Finetuning Template (SFTTrainer)
75
+ This dataset format is instantly compatible with Hugging Face's `SFTTrainer` and respects models' chat templates natively:
76
+
77
+ ```python
78
+ from trl import SFTTrainer
79
+ from transformers import TrainingArguments
80
+
81
+ trainer = SFTTrainer(
82
+ model=model,
83
+ train_dataset=genz_ds["train"],
84
+ max_seq_length=1024,
85
+ dataset_text_field="messages",
86
+ packing=False,
87
+ args=TrainingArguments(
88
+ output_dir="./sft_results",
89
+ per_device_train_batch_size=4,
90
+ gradient_accumulation_steps=4,
91
+ logging_steps=10,
92
+ save_steps=100,
93
+ learning_rate=2e-5
94
+ )
95
+ )
96
+ trainer.train()
97
+ ```