skyzhou06 commited on
Commit
c17eece
·
verified ·
1 Parent(s): 43d217d

v0.2: Natural-language reasoning, cleaned public schema, SFT-ready

Browse files
.gitattributes CHANGED
@@ -61,3 +61,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
61
  data/eval.jsonl filter=lfs diff=lfs merge=lfs -text
62
  data/train.jsonl filter=lfs diff=lfs merge=lfs -text
63
  data/train_high_quality.jsonl filter=lfs diff=lfs merge=lfs -text
 
 
 
 
61
  data/eval.jsonl filter=lfs diff=lfs merge=lfs -text
62
  data/train.jsonl filter=lfs diff=lfs merge=lfs -text
63
  data/train_high_quality.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ eval.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ high_quality_train.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ train.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,78 +1,138 @@
1
- ---
2
- pretty_name: LifeTextSingleTurnStreamingCoT
3
- language:
4
- - en
5
- license: apache-2.0
6
- version: "v0.4.1"
7
- configs:
8
- - config_name: default
9
- data_files:
10
- - split: train
11
- path: data/train.parquet
12
- - split: test
13
- path: data/eval.parquet
14
- - config_name: high_quality
15
- data_files:
16
- - split: train
17
- path: data/train_high_quality.parquet
18
- - split: test
19
- path: data/eval_high_quality.parquet
20
- task_categories:
21
- - text-generation
22
- tags:
23
- - streaming-reasoning
24
- - supervised-fine-tuning
25
- - life-assistant
26
- ---
27
  # LifeTextSingleTurnStreamingCoT
28
 
29
- LifeTextSingleTurnStreamingCoT is the canonical text/single-turn member of the Life Streaming CoT family. It supersedes the older `LifeStreamingCoT` name while preserving the existing v0.4.1 data and backward-compatible fields.
 
 
 
30
 
31
- ## Summary
32
 
33
- - Modality: text
34
- - Turn type: single_turn
35
- - Version: v0.4.1
36
- - HF repo: `skyzhou06/LifeTextSingleTurnStreamingCoT`
37
- - Rows: 9322 total, 7457 train, 1865 eval
38
- - High-quality rows: 2570 train, 634 eval
39
- - Source distribution: `{"b-mc2/wikihow_lists": 622, "pietrolesci/multiwoz_all_versions": 2987, "pixelsandpointers/better_daily_dialog": 3713, "pixelsandpointers/empathetic_dialogues_for_lm": 2000}`
40
- - Category distribution: `{"daily_life": 2987, "information_extraction": 622, "social_communication": 5713}`
41
- - Length buckets: `{"short": 5575, "short_medium": 1345, "very_short": 2402}`
 
 
 
 
 
 
 
 
 
42
 
43
  ## Schema
44
 
45
- Core legacy fields include `id`, `domain`, `source_dataset`, `instruction`, `context`, `context_chunks`, `streaming_reasoning`, `deep_reasoning`, `answer`, `messages`, `text`, `quality_flags`, `quality_score`, `is_high_quality`, and `split`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- Normalized backward-compatible fields were added where feasible: `modality`, `turn_type`, `taxonomy`, `input`, `streaming`, `output`, and `quality`.
48
 
49
- ## Taxonomy
50
 
51
- Rows include normalized `taxonomy.category`, `taxonomy.subcategory`, `taxonomy.intent_type`, and `taxonomy.difficulty`. Existing `domain` remains available for backward compatibility.
 
52
 
53
- ## Streaming and Deep Reasoning
54
 
55
- Streaming reasoning is deterministic, selective, and chunk-aligned. Deep reasoning is a compact full-context summary. No `sft_messages` field is required.
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  ## Quality Filters
58
 
59
- The release keeps quality scores, high-quality split files, quality flags, source attribution, and validation scripts. The high-quality config is recommended for stricter SFT experiments.
 
 
 
 
 
 
 
 
 
 
 
 
 
60
 
61
- ## How to use for SFT
62
 
63
- - Input: `input.instruction` plus `input.context` or legacy `instruction` plus `context`.
64
- - Target: `output.answer` or legacy `answer`.
65
- - Optional reasoning target: `streaming.streaming_reasoning`, `output.deep_reasoning`, then `output.answer`.
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  ```python
68
  from datasets import load_dataset
69
 
70
- full = load_dataset("skyzhou06/LifeTextSingleTurnStreamingCoT", "default")
71
- hq = load_dataset("skyzhou06/LifeTextSingleTurnStreamingCoT", "high_quality")
72
  ```
73
 
74
- ## Limitations
75
 
76
- - Reasoning is deterministic/rule-based unless optional LLM augmentation is run separately.
77
- - Some rows originate from dialogue-style sources and may not perfectly match direct assistant behavior.
78
- - Not intended for expert medical, legal, financial, emergency, or safety-critical advice.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # LifeTextSingleTurnStreamingCoT
2
 
3
+ **Version:** v0.2
4
+ **Modality:** text
5
+ **Turn type:** single_turn
6
+ **HF Repo:** [skyzhou06/LifeTextSingleTurnStreamingCoT](https://huggingface.co/datasets/skyzhou06/LifeTextSingleTurnStreamingCoT)
7
 
8
+ ## Dataset Overview
9
 
10
+ LifeTextSingleTurnStreamingCoT is a single-turn text dataset for streaming chain-of-thought (CoT) training. Each example simulates gradually revealed information — the model sees the input in chunks and must produce streaming reasoning that evolves as more context becomes available. The dataset is designed for supervised fine-tuning (SFT) of language models that need to reason step-by-step over incrementally disclosed user requests.
11
+
12
+ ## Intended Use
13
+
14
+ - Supervised fine-tuning of language models for streaming reasoning
15
+ - Training models to produce natural-language chain-of-thought over partial inputs
16
+ - Research on incremental understanding and progressive reasoning
17
+
18
+ ## Source Datasets and Licenses
19
+
20
+ | Source | Domain | Rows | License |
21
+ |--------|--------|------|---------|
22
+ | b-mc2/wikihow_lists | how_to_guidance | 622 | varies |
23
+ | pietrolesci/multiwoz_all_versions | task_oriented_assistant | 2,987 | varies |
24
+ | pixelsandpointers/better_daily_dialog | daily_dialogue | 3,713 | varies |
25
+ | pixelsandpointers/empathetic_dialogues_for_lm | emotional_support | 2,000 | varies |
26
+
27
+ This dataset inherits licenses from its upstream sources. Users are responsible for complying with source dataset terms.
28
 
29
  ## Schema
30
 
31
+ Each row contains:
32
+
33
+ | Field | Type | Description |
34
+ |-------|------|-------------|
35
+ | `id` | string | Unique row identifier |
36
+ | `version` | string | Dataset version (`v0.2`) |
37
+ | `split` | string | `train` or `eval` |
38
+ | `modality` | string | `text` |
39
+ | `turn_type` | string | `single_turn` |
40
+ | `input` | object | Input fields (instruction, context, token count) |
41
+ | `output` | object | Target fields (deep_reasoning, answer) |
42
+ | `streaming` | object | Streaming reasoning and checkpoints |
43
+ | `taxonomy` | object | Category, subcategory, intent type |
44
+ | `quality` | object | Quality flags, score, high-quality marker |
45
+ | `metadata` | object | Source dataset, original version |
46
+
47
+ ### Input Fields
48
+
49
+ - `input.instruction`: Task instruction
50
+ - `input.context`: Full input context
51
+ - `input.input_token_count`: Approximate token count
52
+ - `input.length_bucket`: Length category
53
+
54
+ ### Output Fields (Recommended SFT Targets)
55
+
56
+ - `output.deep_reasoning`: **Natural-language deep reasoning** — summarizes the user goal, known constraints, missing information, and answer plan.
57
+ - `output.answer`: The final assistant response.
58
+
59
+ ### Streaming Fields
60
+
61
+ - `streaming.streaming_reasoning`: **Natural-language streaming reasoning** — describes how understanding evolves as each input chunk is revealed.
62
+ - `streaming.checkpoints`: Per-chunk checkpoints with individual reasoning.
63
+ - `streaming.trace`: Original slot-style trace (auxiliary, not recommended for training).
64
 
65
+ ### Legacy / Trace Fields
66
 
67
+ The original dataset (v0.4.1) used slot-style reasoning (e.g., `domain=restaurant; goal=search`). In v0.2, these have been converted to natural language. The original traces are preserved under:
68
 
69
+ - `streaming.trace`: Original slot-style streaming reasoning
70
+ - `output.deep_reasoning_trace`: Original slot-style deep reasoning
71
 
72
+ These trace fields are **not recommended** as SFT targets.
73
 
74
+ ## Recommended Fields for SFT
75
+
76
+ For supervised fine-tuning:
77
+
78
+ - **Input:** `input.context`
79
+ - **Streaming reasoning:** `streaming.streaming_reasoning` or `streaming.checkpoints[*].streaming_reasoning`
80
+ - **Deep reasoning:** `output.deep_reasoning`
81
+ - **Answer:** `output.answer`
82
+
83
+ ## Natural-Language Reasoning (v0.2)
84
+
85
+ v0.2 uses **natural-language reasoning** as the primary training target. All slot-style reasoning has been converted to flowing natural language.
86
 
87
  ## Quality Filters
88
 
89
+ - `quality.is_high_quality`: Boolean, stricter quality checks
90
+ - `quality.quality_score`: Numeric score (0.0–1.0)
91
+ - `quality.quality_flags`: List of quality flags
92
+ - High-quality subsets: `high_quality_train.parquet`, `high_quality_eval.parquet`
93
+
94
+ ## Split Counts
95
+
96
+ | Split | Rows |
97
+ |-------|------|
98
+ | train | 7,457 |
99
+ | eval | 1,865 |
100
+ | high_quality_train | 2,570 |
101
+ | high_quality_eval | 634 |
102
+ | **Total** | **9,322** |
103
 
104
+ ## Category Distribution
105
 
106
+ | Category | Rows |
107
+ |----------|------|
108
+ | social_communication | 5,713 |
109
+ | daily_life | 2,987 |
110
+ | information_extraction | 622 |
111
+
112
+ ## Known Limitations
113
+
114
+ - Primarily rule-based. Reasoning quality varies with source data.
115
+ - The high-quality subset is recommended for serious SFT experiments.
116
+ - Some source datasets are dialogue-style and may not match ideal assistant behavior.
117
+ - Not intended for expert medical, legal, financial, or safety-critical advice.
118
+
119
+ ## How to Load
120
 
121
  ```python
122
  from datasets import load_dataset
123
 
124
+ dataset = load_dataset("skyzhou06/LifeTextSingleTurnStreamingCoT", split="train")
125
+ print(dataset[0])
126
  ```
127
 
128
+ ## How to Map to SFT
129
 
130
+ ```python
131
+ def format_sft_sample(row):
132
+ return {
133
+ "messages": [
134
+ {"role": "user", "content": row["input"]["context"]},
135
+ {"role": "assistant", "content": row["output"]["deep_reasoning"] + "\n\n" + row["output"]["answer"]}
136
+ ]
137
+ }
138
+ ```
build_report.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "LifeTextSingleTurnStreamingCoT",
3
+ "version": "v0.2",
4
+ "modality": "text",
5
+ "turn_type": "single_turn",
6
+ "build_timestamp": "2026-06-06T22:01:31.021319",
7
+ "row_counts": {
8
+ "train": 7457,
9
+ "eval": 1865,
10
+ "high_quality_train": 2570,
11
+ "high_quality_eval": 634,
12
+ "high_quality_total": 3204,
13
+ "total": 9322
14
+ },
15
+ "reasoning_conversion": {
16
+ "slot_style_sr_before": 200,
17
+ "slot_style_dr_before": 62,
18
+ "slot_style_sr_after": 0,
19
+ "slot_style_dr_after": 0,
20
+ "natural_language_pass": true
21
+ },
22
+ "schema_changes": {
23
+ "fields_removed": [
24
+ "reasoning_token_budget",
25
+ "chunk_labels",
26
+ "skip_chunks",
27
+ "skip_reasons",
28
+ "chunk_split_count",
29
+ "original_num_chunks",
30
+ "generation_method",
31
+ "reasoning_policy",
32
+ "chunking_method",
33
+ "refinement_method",
34
+ "llm_augmented",
35
+ "llm_augmentation_model",
36
+ "state_tracking_confidence",
37
+ "rejected_reason"
38
+ ],
39
+ "fields_before_count": 40,
40
+ "fields_after_count": 23,
41
+ "fields_before": [
42
+ "answer",
43
+ "chunk_labels",
44
+ "chunk_split_count",
45
+ "chunking_method",
46
+ "context",
47
+ "context_chunks",
48
+ "deep_reasoning",
49
+ "domain",
50
+ "generation_method",
51
+ "id",
52
+ "input",
53
+ "instruction",
54
+ "is_high_quality",
55
+ "language",
56
+ "llm_augmentation_model",
57
+ "llm_augmented",
58
+ "messages",
59
+ "modality",
60
+ "num_chunks",
61
+ "original_num_chunks",
62
+ "output",
63
+ "quality",
64
+ "quality_flags",
65
+ "quality_score",
66
+ "reasoning_policy",
67
+ "reasoning_token_budget",
68
+ "refinement_method",
69
+ "rejected_reason",
70
+ "response",
71
+ "skip_chunks",
72
+ "skip_reasons",
73
+ "source_dataset",
74
+ "split",
75
+ "state_tracking_confidence",
76
+ "streaming",
77
+ "streaming_reasoning",
78
+ "taxonomy",
79
+ "text",
80
+ "turn_type",
81
+ "version"
82
+ ],
83
+ "fields_after": [
84
+ "answer",
85
+ "context",
86
+ "deep_reasoning",
87
+ "domain",
88
+ "id",
89
+ "input",
90
+ "instruction",
91
+ "is_high_quality",
92
+ "language",
93
+ "messages",
94
+ "metadata",
95
+ "modality",
96
+ "output",
97
+ "quality",
98
+ "quality_flags",
99
+ "quality_score",
100
+ "source_dataset",
101
+ "split",
102
+ "streaming",
103
+ "streaming_reasoning",
104
+ "taxonomy",
105
+ "turn_type",
106
+ "version"
107
+ ]
108
+ },
109
+ "source_distribution": {
110
+ "pixelsandpointers/better_daily_dialog": 3713,
111
+ "pietrolesci/multiwoz_all_versions": 2987,
112
+ "pixelsandpointers/empathetic_dialogues_for_lm": 2000,
113
+ "b-mc2/wikihow_lists": 622
114
+ },
115
+ "hq_before_vs_after": {
116
+ "before": 3204,
117
+ "after": 3204
118
+ }
119
+ }
eval.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:57c3b1696abfce5146a6ac04b06b97c23c4459460e8ca2738f49c8168ae30ecb
3
+ size 11032440
eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3945706b6817f157201baa0fab37e99921f88183f16f60c941565f17087ebb0d
3
+ size 2750452
high_quality_eval.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
high_quality_eval.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7898581422ea0eb41bff56e642a83b4ffa549a9c2a3d10ea804bfdb9faf5ac2c
3
+ size 908174
high_quality_train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f068d8de07fb01436c0b9528548f97615d18e01b81a515af1a1ae7f6669ebf15
3
+ size 16550697
high_quality_train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17012e97fe1b0e352f7ed5e3fc69f646f2aa3b91c3cdfd8cc4257035ffcb51f9
3
+ size 3537033
inspect_report.json ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "LifeTextSingleTurnStreamingCoT",
3
+ "version": "v0.2",
4
+ "modality": "text",
5
+ "turn_type": "single_turn",
6
+ "inspect_timestamp": "2026-06-06T22:09:59.314820",
7
+ "checks": {
8
+ "data_load": {
9
+ "status": "PASS",
10
+ "train_rows": 7457,
11
+ "eval_rows": 1865,
12
+ "total_rows": 9322
13
+ },
14
+ "required_fields": {
15
+ "status": "PASS",
16
+ "missing": [],
17
+ "total_fields": 23,
18
+ "all_fields": [
19
+ "answer",
20
+ "context",
21
+ "deep_reasoning",
22
+ "domain",
23
+ "id",
24
+ "input",
25
+ "instruction",
26
+ "is_high_quality",
27
+ "language",
28
+ "messages",
29
+ "metadata",
30
+ "modality",
31
+ "output",
32
+ "quality",
33
+ "quality_flags",
34
+ "quality_score",
35
+ "source_dataset",
36
+ "split",
37
+ "streaming",
38
+ "streaming_reasoning",
39
+ "taxonomy",
40
+ "turn_type",
41
+ "version"
42
+ ]
43
+ },
44
+ "forbidden_fields": {
45
+ "status": "PASS",
46
+ "forbidden_found": []
47
+ },
48
+ "answer_nonempty": {
49
+ "status": "PASS",
50
+ "train_nonempty": 7457,
51
+ "train_empty": 0,
52
+ "eval_nonempty": 1865,
53
+ "eval_empty": 0
54
+ },
55
+ "natural_language_reasoning": {
56
+ "status": "PASS",
57
+ "streaming_slot_style_count": 0,
58
+ "deep_slot_style_count": 0,
59
+ "sample_size": 500,
60
+ "streaming_pass": true,
61
+ "deep_pass": true
62
+ },
63
+ "sft_readiness": {
64
+ "status": "PASS",
65
+ "has_input_field": true,
66
+ "has_output_field": true,
67
+ "has_deep_reasoning_in_output": true
68
+ },
69
+ "quality_fields": {
70
+ "status": "PASS",
71
+ "has_is_high_quality": true,
72
+ "has_quality_score": true
73
+ },
74
+ "source_license": {
75
+ "status": "PASS",
76
+ "has_source": true,
77
+ "has_license": true
78
+ },
79
+ "taxonomy": {
80
+ "status": "PASS",
81
+ "has_taxonomy_field": true,
82
+ "category_nonempty_pct": 100
83
+ },
84
+ "splits": {
85
+ "train_split_distribution": {
86
+ "train": 7457
87
+ },
88
+ "eval_split_distribution": {
89
+ "eval": 1865
90
+ }
91
+ },
92
+ "high_quality": {
93
+ "has_high_quality_split": true,
94
+ "high_quality_rows": 3204
95
+ }
96
+ },
97
+ "publishability_status": "PASS",
98
+ "publishability_limitations": []
99
+ }
train.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a10e6a5fa2c97d39c6713ba14e9507ab461aefc1f440ce63bd260d339b8682c
3
+ size 44469780
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:776cbf3a3ba79ae1d6627de0f5f83be06f60274ab6e4fd20ac7fe8feb5fded13
3
+ size 10983685