artindnr commited on
Commit
8617767
·
verified ·
1 Parent(s): f1525b0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -31
README.md CHANGED
@@ -1,33 +1,107 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: reasoning_language
5
- dtype: string
6
- - name: developer
7
- dtype: string
8
- - name: user
9
- dtype: string
10
- - name: analysis
11
- dtype: string
12
- - name: final
13
- dtype: string
14
- - name: messages
15
- list:
16
- - name: content
17
- dtype: string
18
- - name: role
19
- dtype: string
20
- - name: thinking
21
- dtype: string
22
- splits:
23
- - name: train
24
- num_bytes: 10382294
25
- num_examples: 999
26
- download_size: 7687863
27
- dataset_size: 10382294
28
- configs:
29
- - config_name: default
30
- data_files:
31
- - split: train
32
- path: data/train-*
33
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - fa
4
+ license: apache-2.0
5
+ size_categories:
6
+ - n<1K
7
+ task_categories:
8
+ - text-generation
9
+ - question-answering
10
+ tags:
11
+ - persian
12
+ - farsi
13
+ - reasoning
14
+ - thinking
15
+ - sft
16
+ - synthetic
17
+ pretty_name: Persian Thinking
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
+
20
+ # Persian-Thinking
21
+
22
+ **Persian-Thinking** is a small Persian-language reasoning/thinking dataset created by sampling and translating a subset of [SmolTalk2](https://huggingface.co/datasets/HuggingFaceTB/smoltalk2).
23
+
24
+ ## Dataset Details
25
+
26
+ - **1,000 samples** (999 after processing) drawn from the [`smoltalk_systemchats_Qwen3_32B_think`](https://huggingface.co/datasets/HuggingFaceTB/smoltalk2/viewer/SFT/smoltalk_systemchats_Qwen3_32B_think) subset of SmolTalk2, part of its `SFT` split.
27
+ - That source subset consists of system-chat conversations generated with **Qwen3-32B in thinking mode**, meaning each assistant response includes an explicit reasoning trace before the final answer.
28
+ - All text (system prompt, user message, reasoning trace, and final response) was **translated into Persian using a language model**.
29
+ - The dataset preserves the original three-turn structure (system → user → assistant) but with all content localized to Persian.
30
+
31
+ ## Dataset Creation
32
+
33
+ 1. 1,000 rows were randomly sampled from the SmolTalk2 `smoltalk_systemchats_Qwen3_32B_think` subset (itself generated by HuggingFaceTB using Qwen3-32B on prompts from the original [SmolTalk](https://huggingface.co/datasets/HuggingFaceTB/smoltalk) systemchats-30k data).
34
+ 2. Each sample's system prompt, user turn, reasoning trace (`thinking`), and final assistant response were translated to Persian with a language model.
35
+ 3. The translated conversations were reshaped into flat columns (in addition to keeping the original nested `messages` structure) for easier downstream use in SFT pipelines.
36
+
37
+ No additional filtering, deduplication, or quality review beyond the source dataset's own decontamination was performed — see **Limitations** below.
38
+
39
+ ## Dataset Structure
40
+
41
+ Each row contains:
42
+
43
+ | Column | Type | Description |
44
+ |---|---|---|
45
+ | `reasoning_language` | string | Always `"persian"` — the language of the `analysis` field. |
46
+ | `developer` | string | The system prompt (persona/instructions given to the assistant). |
47
+ | `user` | string | The user's message/question. |
48
+ | `analysis` | string | The assistant's Persian reasoning trace (chain-of-thought) before answering. |
49
+ | `final` | string | The assistant's final Persian response shown to the user. |
50
+ | `messages` | list | The original chat-formatted conversation (`system`, `user`, `assistant` turns), with the assistant turn carrying its `thinking` field separately from `content`. |
51
+
52
+ ### Example
53
+
54
+ ```json
55
+ {
56
+ "reasoning_language": "persian",
57
+ "developer": "تو یک دستیار هوش مصنوعی هستی که ...",
58
+ "user": "می‌تونی کمکم کنی ...",
59
+ "analysis": "خب، کاربر می‌خواد ...",
60
+ "final": "حتماً ...",
61
+ "messages": [
62
+ {"role": "system", "content": "...", "thinking": null},
63
+ {"role": "user", "content": "...", "thinking": null},
64
+ {"role": "assistant", "content": "...", "thinking": "..."}
65
+ ]
66
+ }
67
+ ```
68
+
69
+ ## Usage
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ ds = load_dataset("artindnr/Persian-Thinking", split="train")
75
+ print(ds[0]["analysis"]) # Persian reasoning trace
76
+ print(ds[0]["final"]) # Persian final answer
77
+ ```
78
+
79
+ The `messages` column can be fed directly into chat-template-based SFT pipelines (e.g. TRL's `SFTTrainer`), while the flat `developer` / `user` / `analysis` / `final` columns are convenient for custom formatting, reasoning-specific training objectives, or inspection/filtering.
80
+
81
+ ## Source Data
82
+
83
+ - **Base dataset:** [HuggingFaceTB/smoltalk2](https://huggingface.co/datasets/HuggingFaceTB/smoltalk2), subset [`smoltalk_systemchats_Qwen3_32B_think`](https://huggingface.co/datasets/HuggingFaceTB/smoltalk2/viewer/SFT/smoltalk_systemchats_Qwen3_32B_think) (`SFT` split), which HuggingFaceTB generated by running the prompts from [SmolTalk](https://huggingface.co/datasets/HuggingFaceTB/smoltalk) (systemchats-30k) through Qwen3-32B in reasoning mode.
84
+ - **Translation:** performed with a separate LLM, translating all conversation fields into Persian.
85
+
86
+ ## Limitations
87
+
88
+ - The translation was performed by a language model and has not been manually reviewed; translation errors, awkward phrasing, or loss of nuance may be present.
89
+ - At 999 rows, this is a small sample intended for experimentation (e.g. quick fine-tuning trials, format prototyping) rather than large-scale training.
90
+ - Reasoning traces (`analysis`) reflect the original Qwen3-32B outputs translated to Persian, not reasoning generated natively in Persian — cultural/linguistic reasoning patterns may reflect English-first generation.
91
+ - No decontamination was independently re-verified for this subset beyond what SmolTalk2 already performed upstream.
92
+
93
+ ## License
94
+
95
+ Inherits Apache 2.0 from the source `smoltalk-systemchats-Qwen3-32B` subset of SmolTalk2. Please also refer to the [SmolTalk2 license section](https://huggingface.co/datasets/HuggingFaceTB/smoltalk2#license) for details on upstream components.
96
+
97
+ ## Citation
98
+
99
+ If you use this dataset, please also credit the original SmolTalk2 dataset:
100
+
101
+ ```bibtex
102
+ @misc{smoltalk2,
103
+ author = {HuggingFaceTB},
104
+ title = {SmolTalk2},
105
+ howpublished = {\url{https://huggingface.co/datasets/HuggingFaceTB/smoltalk2}}
106
+ }
107
+ ```