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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: TinySFT
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- zh
|
| 6 |
+
license: other
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-generation
|
| 9 |
+
tags:
|
| 10 |
+
- sft
|
| 11 |
+
- chain-of-thought
|
| 12 |
+
- reasoning-effort
|
| 13 |
+
- tool-calling
|
| 14 |
+
- agentic
|
| 15 |
+
size_categories:
|
| 16 |
+
- 100K<n<1M
|
| 17 |
+
configs:
|
| 18 |
+
- config_name: default
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: data/train-*.parquet
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# TinySFT
|
| 25 |
+
|
| 26 |
+
TinySFT contains 848,063 supervised fine-tuning samples for **SFT of small models**. Each sample includes a system message, preserves the native tool-calling structure, and every assistant turn carries a `reasoning_effort` label (`none` / `low` / `high` / `max`) indicating how much thinking that turn should require.
|
| 27 |
+
|
| 28 |
+
The dataset has 848,063 rows / 980,750 assistant turns / 1 parquet file, about 1.4 GiB in total. Rows are globally shuffled; each file is a random sample of the full corpus. The maximum length per row is 8,000 length units (≈ tokens).
|
| 29 |
+
|
| 30 |
+
## Quick Start
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
from datasets import load_dataset
|
| 34 |
+
|
| 35 |
+
ds = load_dataset('CodonProject/TinySFT', split='train')
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
cols = ['id', 'source', 'subset', 'domain', 'language', 'system',
|
| 40 |
+
'system_synth', 'tool_json', 'session', 'n_turns', 'n_assistant',
|
| 41 |
+
'effort_none', 'effort_low', 'effort_high', 'effort_max', 'est_len']
|
| 42 |
+
ds = ds.select_columns(cols)
|
| 43 |
+
|
| 44 |
+
row = ds[0]
|
| 45 |
+
print(row['system'][:200])
|
| 46 |
+
for turn in row['session']:
|
| 47 |
+
print(turn['role'], turn['reasoning_effort'], len(turn['cot']))
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
Tool-calling argument schemas differ across sources, so they are stored as JSON strings and must be parsed by the user:
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
import json
|
| 54 |
+
|
| 55 |
+
for name in row['tool_json']: # declared tools
|
| 56 |
+
spec = json.loads(name)
|
| 57 |
+
|
| 58 |
+
for turn in row['session']: # tool calls issued by the model
|
| 59 |
+
if turn['tool_call_json']:
|
| 60 |
+
for call in json.loads(turn['tool_call_json']):
|
| 61 |
+
print(call.get('name'), call.get('param') or call.get('arguments'))
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Fields
|
| 65 |
+
|
| 66 |
+
| Column | Type | Description |
|
| 67 |
+
|---|---|---|
|
| 68 |
+
| `id` | int64 | Row identifier, unique across the dataset |
|
| 69 |
+
| `type` | str | Always `"SFT"` |
|
| 70 |
+
| `source` | str | Source dataset `owner/name` |
|
| 71 |
+
| `subset` | str | Source subset name (only some sources have it; otherwise an empty string) |
|
| 72 |
+
| `domain` | str | `agentic` / `medical` / `math` / `general` / `science` / `code` / `safety` / `psychology` |
|
| 73 |
+
| `language` | str | `en` or `zh` |
|
| 74 |
+
| `system` | str | System message, always non-empty |
|
| 75 |
+
| `system_synth` | bool | `true` = the original sample had no system message; this one was written based on the domain |
|
| 76 |
+
| `tool_json` | list<str> | Declared tool schemas, each element is a JSON string; empty list = no tools used |
|
| 77 |
+
| `session` | list<struct> | Conversation turns, see below |
|
| 78 |
+
| `n_turns` / `n_assistant` | int32 | Total turns / assistant turns |
|
| 79 |
+
| `effort_none` … `effort_max` | int32 | Number of assistant turns in this row for each effort level, convenient for direct filtering in SQL |
|
| 80 |
+
| `est_len` | int32 | Estimated length for this row (length unit ≈ token), max 8000 |
|
| 81 |
+
| `dropped_turns` / `cut_chars` | int32 | Number of turns dropped / characters cut to meet the length limit; both 0 means kept as is |
|
| 82 |
+
| `system_cut` / `tools_cut` | bool | Whether the system / tool declarations were truncated |
|
| 83 |
+
| `file_idx` / `offset` | int32 / int64 | Used to trace back to the source file and row offset |
|
| 84 |
+
|
| 85 |
+
Each turn in `session` has the following structure:
|
| 86 |
+
|
| 87 |
+
| Field | Type | Description |
|
| 88 |
+
|---|---|---|
|
| 89 |
+
| `role` | str | `human` (user) / `model` (assistant) / `tool_response` (tool return) |
|
| 90 |
+
| `content` | str | Turn content |
|
| 91 |
+
| `cot` | str | Thought block for this turn; empty string when `reasoning_effort == "none"` |
|
| 92 |
+
| `reasoning_effort` | str | Only present on `role == "model"` turns: `none` / `low` / `high` / `max` |
|
| 93 |
+
| `tool_call_json` | str | Tool call issued in this turn (JSON string); empty string if none |
|
| 94 |
+
|
| 95 |
+
## What Is `reasoning_effort`?
|
| 96 |
+
|
| 97 |
+
It is a reasoning-effort label on each assistant turn, indicating how much thinking should be spent on that turn.
|
| 98 |
+
|
| 99 |
+
| Level | Meaning | Turns | Share | Average `cot` characters |
|
| 100 |
+
|---|---|---|---|---|
|
| 101 |
+
| `none` | No thought block; the model directly answers or issues a tool call (`cot` is always empty). | 158,131 | 16.1% | 0 |
|
| 102 |
+
| `low` | Short thinking: one or two sentences to confirm constraints or directly apply a known solution, without elaboration. | 376,072 | 38.3% | 489 |
|
| 103 |
+
| `high` | Medium thinking: step-by-step derivation or bullet-point planning, but without exhaustive enumeration or repeated self-checking. | 352,051 | 35.9% | 1,233 |
|
| 104 |
+
| `max` | Long thinking: comparing multiple approaches, item-by-item enumeration and verification, drafting first and then looking for counterexamples, or long-horizon tool planning. | 94,496 | 9.6% | 4,439 |
|
| 105 |
+
|
| 106 |
+
## Common Filters
|
| 107 |
+
|
| 108 |
+
```python
|
| 109 |
+
# Samples with at least one turn of high/max thinking
|
| 110 |
+
ds_deep = ds.filter(lambda r: r['effort_high'] + r['effort_max'] > 0)
|
| 111 |
+
|
| 112 |
+
# Samples with tool declarations (agentic / tool calling)
|
| 113 |
+
ds_tools = ds.filter(lambda r: len(r['tool_json']) > 0)
|
| 114 |
+
|
| 115 |
+
# Chinese / English only
|
| 116 |
+
ds_zh = ds.filter(lambda r: r['language'] == 'zh')
|
| 117 |
+
ds_en = ds.filter(lambda r: r['language'] == 'en')
|
| 118 |
+
|
| 119 |
+
# Avoid long samples; suitable for models with short context
|
| 120 |
+
ds_short = ds.filter(lambda r: r['est_len'] <= 2048)
|
| 121 |
+
|
| 122 |
+
# Single-turn QA only
|
| 123 |
+
ds_single = ds.filter(lambda r: r['n_assistant'] == 1)
|
| 124 |
+
|
| 125 |
+
# Extract effort per turn for length-bucketed training
|
| 126 |
+
def turns(rows):
|
| 127 |
+
for row in rows:
|
| 128 |
+
for turn in row['session']:
|
| 129 |
+
if turn['role'] == 'model':
|
| 130 |
+
yield {
|
| 131 |
+
'effort': turn['reasoning_effort'],
|
| 132 |
+
'cot_chars': len(turn['cot']),
|
| 133 |
+
'domain': row['domain'],
|
| 134 |
+
}
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
## Scale and Distribution
|
| 138 |
+
|
| 139 |
+
### By Domain
|
| 140 |
+
|
| 141 |
+
| Domain | Rows | Share |
|
| 142 |
+
|---|---|---|
|
| 143 |
+
| Math (`math`) | 401,504 | 47.3% |
|
| 144 |
+
| General (`general`) | 141,394 | 16.7% |
|
| 145 |
+
| Medical (`medical`) | 101,775 | 12.0% |
|
| 146 |
+
| Tool / multi-turn agent (`agentic`) | 96,593 | 11.4% |
|
| 147 |
+
| Science (`science`) | 69,435 | 8.2% |
|
| 148 |
+
| Psychology (`psychology`) | 15,328 | 1.8% |
|
| 149 |
+
| Code (`code`) | 12,670 | 1.5% |
|
| 150 |
+
| Safety / values (`safety`) | 9,364 | 1.1% |
|
| 151 |
+
|
| 152 |
+
### By Language
|
| 153 |
+
|
| 154 |
+
| Language | Rows | Share |
|
| 155 |
+
|---|---|---|
|
| 156 |
+
| English (`en`) | 696,496 | 82.1% |
|
| 157 |
+
| Chinese (`zh`) | 151,567 | 17.9% |
|
| 158 |
+
|
| 159 |
+
## Example
|
| 160 |
+
|
| 161 |
+
```json
|
| 162 |
+
{
|
| 163 |
+
"id": 9896351587098,
|
| 164 |
+
"type": "SFT",
|
| 165 |
+
"source": "cs-giung/math-think-sft-mini",
|
| 166 |
+
"subset": "",
|
| 167 |
+
"domain": "math",
|
| 168 |
+
"language": "en",
|
| 169 |
+
"system": "You are a careful mathematical problem solver. Work through the problem step by step and state the final answer clearly.",
|
| 170 |
+
"system_synth": true,
|
| 171 |
+
"system_cut": false,
|
| 172 |
+
"tools_cut": false,
|
| 173 |
+
"tool_json": [],
|
| 174 |
+
"session": [
|
| 175 |
+
{
|
| 176 |
+
"role": "human",
|
| 177 |
+
"content": "Can the number of diagonals of a polygon be exactly twice the number of its sides?",
|
| 178 |
+
"cot": "",
|
| 179 |
+
"reasoning_effort": "",
|
| 180 |
+
"tool_call_json": ""
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"role": "model",
|
| 184 |
+
"content": "To determine if a polygon can have exactly twice as many diagonals as its number of sides, let's analyze the relationship mathematically.\n\n### Step 1: Understanding the Formula for Diagonals\nThe number of diagonals \\( D … [849 more chars]",
|
| 185 |
+
"cot": "First, I recall that the number of diagonals in a polygon can be calculated using the formula \\( \\frac{n(n - 3)}{2} \\), where \\( n \\) is the number of sides.\nThe problem states that the number of diagonals is exactly twi… [576 more chars]",
|
| 186 |
+
"reasoning_effort": "low",
|
| 187 |
+
"tool_call_json": ""
|
| 188 |
+
}
|
| 189 |
+
],
|
| 190 |
+
"n_turns": 2,
|
| 191 |
+
"n_assistant": 1,
|
| 192 |
+
"effort_none": 0,
|
| 193 |
+
"effort_low": 1,
|
| 194 |
+
"effort_high": 0,
|
| 195 |
+
"effort_max": 0,
|
| 196 |
+
"est_len": 626,
|
| 197 |
+
"dropped_turns": 0,
|
| 198 |
+
"cut_chars": 0,
|
| 199 |
+
"file_idx": 9,
|
| 200 |
+
"offset": 746937114
|
| 201 |
+
}
|
| 202 |
+
```
|
| 203 |
+
|
| 204 |
+
## About the Content
|
| 205 |
+
|
| 206 |
+
- **Tool samples**: 39,495 rows (4.7%). `tool_json` contains tool declarations, `tool_call_json` in `session` contains the model's calls, and `tool_response` turns contain execution results. Tool names and parameter schemas preserve each source's native format.
|
| 207 |
+
- **Supplemented system messages**: 727,277 rows (85.8%). These source samples originally had no system message. A 1–2 sentence short system message was written based on domain and language, marked with `system_synth: true`, so users can choose whether to include it.
|
| 208 |
+
- **Tool result length limit is 2000 characters**; longer results (e.g., full articles or complete files) are truncated. This is the largest source of information loss in long trajectories.
|
| 209 |
+
- **Reasoning labels are generated by rule-based heuristics**, based on length, structure, and wording signals (self-correction, verification, multiple approaches, planning, number of tool turns, and domain difficulty). This method is an approximate annotation, not human annotation; within the same level, the depth of thinking may still vary, especially at the `low` / `high` boundary.
|
| 210 |
+
|
| 211 |
+
## Sources
|
| 212 |
+
|
| 213 |
+
| Source | Rows | Language | Domain |
|
| 214 |
+
|---|---|---|---|
|
| 215 |
+
| `cs-giung/math-think-sft-mini` | 352,425 | en | math |
|
| 216 |
+
| `CodonProject/Organic-Reasoning-195k#general` | 68,832 | zh | general+math+science+psychology+medical+code+agentic |
|
| 217 |
+
| `lingshu-medical-mllm/ReasonMed` | 65,329 | en | medical |
|
| 218 |
+
| `Glint-Research/Complete-FABLE.5-traces-2M` | 57,213 | en | agentic |
|
| 219 |
+
| `zake7749/OpenScience-Chinese-Reasoning-SFT` | 49,999 | zh | science |
|
| 220 |
+
| `r0b0tlab/qwen3.8-max-distillation-50k` | 49,758 | en | general |
|
| 221 |
+
| `faunix/Qwen3.8-27B-Distillation-40K` | 39,994 | en | general |
|
| 222 |
+
| `zake7749/Qwen3.6-35B-A3B-Tool-Calling` | 28,271 | en | agentic |
|
| 223 |
+
| `CodonProject/Organic-Reasoning-195k#values_safety` | 27,032 | zh | science+safety+psychology+medical+code+math+agentic |
|
| 224 |
+
| `stindardlogic/math-reasoning-sft-100k` | 19,786 | en | math |
|
| 225 |
+
| `qiaojin/PubMedQA` | 19,656 | en | medical |
|
| 226 |
+
| `OysterCoreAI/SFT-General-Simplified.Chinese-10K` | 10,049 | zh | general |
|
| 227 |
+
| `TeichAI/Ox-Alpha-10k` | 9,954 | en | general |
|
| 228 |
+
| `FreedomIntelligence/medical-o1-reasoning-SFT` | 8,183 | en | medical |
|
| 229 |
+
| `r0b0tlab/deepseek-v4-pro-0813-agentic` | 8,097 | en | agentic |
|
| 230 |
+
| `CodonProject/Organic-Reasoning-195k#math` | 7,966 | zh | math+science+code |
|
| 231 |
+
| `CodonProject/Organic-Reasoning-195k#psychology` | 6,970 | zh | psychology+medical+science |
|
| 232 |
+
| `nvidia/Nemotron-SFT-SWE-v3.5` | 5,115 | en | code |
|
| 233 |
+
| `hotdogs/code-analysis-sft-qwen38-v2` | 4,375 | en | code |
|
| 234 |
+
| `zake7749/Qwen-3.5-Reasonlite-Verified` | 4,310 | en | general |
|
| 235 |
+
| `TeichAI/DeepSeek-v4-Pro-Agent` | 2,575 | en | agentic |
|
| 236 |
+
| `CodonProject/Organic-Reasoning-195k#frontier` | 1,893 | zh | science+code+math+psychology+medical+agentic |
|
| 237 |
+
| `TeichAI/Fable-5-Cursor-Traces` | 244 | en | agentic |
|
| 238 |
+
| `Glint-Research/Fable-5-traces` | 30 | en | agentic |
|
| 239 |
+
| `greghavens/kimi-k3-coding-and-debugging-traces` | 7 | en | code |
|
| 240 |
+
|
| 241 |
+
Each source's original copyright and license are on its own dataset page. This dataset is a derivative work of these sources and does not declare a separate unified license; please follow each source's terms when using it.
|