Dhevenddra commited on
Commit
d64c019
·
verified ·
1 Parent(s): 3929838

add phase05.md

Browse files
Files changed (1) hide show
  1. results/phase05.md +213 -0
results/phase05.md ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Phase 05 — post-training a 12.6M-parameter model
2
+
3
+ Mid-training, supervised fine-tuning, and a 50-prompt evaluation scored on three
4
+ axes separately. **The headline is the dissociation:** the model learns the chat
5
+ protocol well (72%) and learns to answer badly (38%), and those two numbers moving
6
+ independently is the finding.
7
+
8
+ ## Exit criteria
9
+
10
+ | Criterion | Result | |
11
+ |---|---|---|
12
+ | Mid-training complete, forgetting trade measured on both validation sets | −2.5222 nats conversational, **+0.5544** TinyStories | ✅ |
13
+ | SFT masking test passes | gated before any GPU time, on this run's own tokenizer and data | ✅ |
14
+ | SFT complete | 465 steps, 3 epochs, 2,488 examples | ✅ |
15
+ | 50-prompt evaluation, three rates reported separately | 72% / 72% / 38% | ✅ |
16
+ | Base vs SFT on identical prompts | all three models, byte-identical prompts | ✅ |
17
+ | `results/phase05.md` states plainly what the model can and cannot do | this document | ✅ |
18
+
19
+ ## The three rates
20
+
21
+ 50 instructions across 8 categories, temperature 0.8, top-p 0.9, fixed seed, at
22
+ most 240 new tokens. Every model saw byte-identical prompts.
23
+
24
+ | model | format | stopped at `<\|end\|>` | **responsive** | leaked a role token | mean new tokens |
25
+ |---|---|---|---|---|---|
26
+ | base (Phase 03, step 6000) | 0% | 0% | 14% | 0% | 240 |
27
+ | mid-trained (step 500) | 0% | 0% | 16% | 0% | 240 |
28
+ | **SFT (step 507)** | **72%** | **72%** | **38%** | 0% | 128 |
29
+
30
+ `format` requires a well-formed assistant turn: content, then `<|end|>`, and no
31
+ other role token anywhere. `responsive` is **hand-scored** — see the rubric below.
32
+
33
+ **This is the dissociation the phase predicts, and it is clean.** Format
34
+ compliance goes 0% → 0% → 72%: nothing but SFT produces the protocol, and it
35
+ produces it in three epochs over 2,488 examples. Responsiveness goes 14% → 16% →
36
+ 38%: it more than doubles, but it starts from a floor that is not zero and ends
37
+ well below format. Instruction-following *format* and instruction-following
38
+ *capability* are separable, and only the second is still missing at this scale.
39
+
40
+ **Zero role-token leakage across all 150 generations.** The masking held. That was
41
+ the failure the phase doc singles out — a model that writes its own user turns —
42
+ and it is the one thing here that went right first time.
43
+
44
+ ### Why the base model scores 14% rather than 0% on responsiveness
45
+
46
+ Because it is *continuing text*, and the prompt is in its context. Asked
47
+ `What do bees make?` it emits `"I smell honey," said the bee.` — on topic, and
48
+ entirely accidental. That is worth stating rather than rounding to zero: it sets
49
+ the floor any responsiveness number has to beat, and a phase that reported
50
+ "0% → 38%" would be claiming 14 points it did not earn.
51
+
52
+ ## Mid-training, and the forgetting trade
53
+
54
+ 20,137,800 tokens of filtered SmolTalk, 500 steps at 49,152 tokens/step (1.22
55
+ epochs), constant learning rate at Phase 03's `min_lr` of 4e-5 with no new warmup.
56
+ Both validation sets scored on byte-identically seeded batches, before and after.
57
+
58
+ | held-out set | before | after | delta |
59
+ |---|---|---|---|
60
+ | conversational | 5.4059 | 2.8836 | **−2.5222 nats** |
61
+ | TinyStories | 1.5732 | 2.1276 | **+0.5544 nats** |
62
+
63
+ Conversational loss falls by 2.5 nats; TinyStories loss rises by 0.55. Against
64
+ Phase 04's measured seed noise floor of 0.0146 nats, that degradation is **38× the
65
+ floor** — this is not drift, it is the model trading one distribution for another.
66
+ **Catastrophic forgetting, measured, in six minutes of T4 time.**
67
+
68
+ The `before` TinyStories loss of 1.5732 sits within 0.002 of Phase 03's reported
69
+ 1.5763, which is an independent check that the right checkpoint was loaded.
70
+
71
+ In bits per byte, each split converted with **its own** tokens-per-byte (see the
72
+ correction below): TinyStories **0.5540 → 0.7493**, conversational **2.3780 →
73
+ 1.2685**. The conversational figure stays far above the TinyStories one because
74
+ the corpus is well out of domain — a tokenizer learned on TinyStories spends
75
+ **0.3049 tokens per byte** on SmolTalk against **0.2441** on TinyStories, **24.9%
76
+ more** of the context window for the same text. That ratio is the out-of-domain
77
+ cost, stated as a number rather than as an adjective.
78
+
79
+ **The template tokens never appear in this corpus.** Conversations are rendered as
80
+ plain speaker-prefixed prose (`User: …` / `Assistant: …`). That was deliberate, and
81
+ it is what makes the 72% attributable to SFT alone: after mid-training the model
82
+ has met dialogue but not the protocol. You can see it working in the mid-trained
83
+ model's outputs, which are full of `Assistant:` and `User:` in plain text and
84
+ contain no `<|end|>` at all.
85
+
86
+ ## SFT
87
+
88
+ 2,488 short instruction pairs, 3 epochs, 465 steps, LR 3e-5 cosine to 3e-6 with 20
89
+ warmup steps, loss on assistant content only.
90
+
91
+ | | |
92
+ |---|---|
93
+ | Validation loss (response tokens only) | 4.0842 → **1.9476** (−2.1366) |
94
+ | Wall clock | 73 seconds |
95
+ | Peak memory | 1,894 MB of 15,637 |
96
+
97
+ That loss is not comparable with any pretraining loss in this project: different
98
+ token population, different denominator. It says the model learned something. It
99
+ does not say the model follows instructions — which is the entire reason the
100
+ evaluation is separate.
101
+
102
+ ## Two measurement errors found in this phase
103
+
104
+ Both are the same species: the instrument was wrong in a way that looked like a
105
+ result.
106
+
107
+ ### The 80-token budget was measuring itself
108
+
109
+ The first evaluation reported **36%** format compliance. Then `stopped` (36%) and
110
+ `ran_to_limit` (64%) were noticed to sum to exactly 100% — meaning *every*
111
+ generation that failed to emit `<|end|>` had simply been truncated at the budget.
112
+ The measurement could not distinguish a model that will not stop from a budget that
113
+ never let it finish.
114
+
115
+ Measuring the trained response lengths gave a defensible budget rather than merely
116
+ a bigger one: p50 **9** tokens, p90 104, p99 155, max 248, and 21% exceed 80. At
117
+ 240 tokens — about 1.5× p99 — format compliance is **72%**, and `ran_to_limit`
118
+ falls to 28%. Half the reported failure was the instrument.
119
+
120
+ What remains is real: 28% still run past 240 tokens while only ~1% of trained
121
+ responses are that long, so the model generates well beyond the length distribution
122
+ it was taught. That is now measurable instead of confounded.
123
+
124
+ ### Bits per byte was per-token loss in disguise
125
+
126
+ Found here, but it originated in Phase 03 and it **reversed a Phase 04 finding**.
127
+ `bits_per_byte(loss, n_tokens, n_bytes)` was called everywhere with the tokens the
128
+ evaluation had *scored* against the byte count of the *whole* held-out split. For
129
+ the vocabulary ablation both are identical across arms, so BPB was per-token loss
130
+ times one shared constant — preserving exactly the artifact it exists to remove.
131
+
132
+ | vocab | mean loss | tokens/byte | reported bpb | **correct bpb** |
133
+ |---|---|---|---|---|
134
+ | 2,048 | 1.6804 | 0.2777 | 0.0775 | **0.6732** |
135
+ | 8,192 | 1.8112 | 0.2441 | 0.0835 | **0.6378** |
136
+ | 32,768 | 1.8099 | 0.2418 | 0.0835 | **0.6314** |
137
+
138
+ Phase 04 reported *"vocab 2048 better by 0.0060 bits/byte"*. Corrected, **vocab
139
+ 2,048 is the worst of the three** — 0.0354 bpb behind 8,192 and 0.0418 behind
140
+ 32,768, at 3.8× and 4.5× the largest seed spread. And 8,192 versus 32,768, reported
141
+ as tied, is 0.0064 apart against a 0.0092 spread: **not measured**. Details and the
142
+ full post-mortem are in FAILURES.md 017; Phase 04's tables on the Hub have been
143
+ regenerated from the stored losses, with no GPU time required.
144
+
145
+ ## What this model can and cannot do
146
+
147
+ **Can:** produce a syntactically correct chat turn and stop, 72% of the time.
148
+ Answer a handful of very simple questions — *"What colour is the sky?"*, *"Is the
149
+ sun hot or cold?"* → `The sun is warm and hot.`, *"Describe what a park looks
150
+ like"* → `The park has a slide, swings, and a sandbox.`, *"What is your name?"* →
151
+ `My name is Sarah.` Hold a conversational register.
152
+
153
+ **Cannot:** arithmetic of any kind (0/5). Follow a constraint — *"Answer with only
154
+ yes or no"*, *"Say hello in one word"*, *"Name three animals"* all fail. Recall a
155
+ fact — *"What is the capital city of France?"* → `The cap screen of Aance is a
156
+ beautiful town`. Avoid degeneration: *"What season comes after summer?"* →
157
+ `The season season season is one of the season season, and the season season is a
158
+ basil.`
159
+
160
+ Of the 19 responsive generations, roughly 9 would be accepted by a reader and about
161
+ 4 are factually right. **A 12.6M-parameter model trained on 295M tokens of
162
+ children's stories can be taught the shape of an answer and cannot be taught the
163
+ answer.** This is what the Phase 04 scaling curve predicted and what Phase 09 will
164
+ measure against the benchmark floor.
165
+
166
+ ## How responsiveness was scored
167
+
168
+ Not automatable at this quality level: a heuristic for "is this answer relevant" is
169
+ itself a language model, and using one would report the heuristic's opinion as a
170
+ measurement. So all 150 generations were read.
171
+
172
+ **Criterion, applied identically to every model:** the content addresses the
173
+ instruction *and* reads as an attempt to answer it. Not correctness — a wrong
174
+ answer that engages with the question counts; on-topic text that never attempts an
175
+ answer does not. So `The week is 7500.` counts for *"How many days are in a week?"*
176
+ and a formula salad does not.
177
+
178
+ Scored by Claude (the assistant that built this phase), by index, recorded in
179
+ `results/phase05_scores.jsonl` alongside the exact generation each score belongs
180
+ to. A score is dropped automatically if the text it was given for ever changes, and
181
+ `--score-only` recomputes the rates from the stored generations without a GPU, so
182
+ re-scoring by a second reader costs nothing. **Until a generation is scored the
183
+ column reads `unscored`, never 0** — zero is a finding, absent is an absence.
184
+
185
+ ## Artifacts
186
+
187
+ - `Dhevenddra/slm-lab-chat-15m` — mid-trained checkpoints, `midtrain_results.json`
188
+ - `Dhevenddra/slm-lab-sft-15m` — SFT checkpoints, `sft_results.json`,
189
+ `generations.jsonl`
190
+ - `Dhevenddra/slm-lab-data` — `chat_8192_v2_*` corpus, `sft_v2_*.jsonl`,
191
+ `results/phase05_eval.json`, `results/phase05_generations.md`,
192
+ `results/phase05_scores.jsonl`, `results/PHASE05_COMPLETE`
193
+
194
+ Config hashes: mid-training `d61efcdb4a2f`, SFT `8a091c5b81a7`. Total cost about
195
+ 1.4 T4-hours across two runs, roughly 2 compute units.
196
+
197
+ ## What the re-run bought
198
+
199
+ The first run mid-trained on **0.6M** tokens because one over-strict filter — a
200
+ 600-character per-turn limit meant for SFT — was also applied to the packed
201
+ mid-training stream, where long turns cost nothing. `cap_steps_to_corpus` correctly
202
+ refused to loop it and mid-training got 19 steps.
203
+
204
+ | | run A (0.6M tokens) | run B (20.1M tokens) |
205
+ |---|---|---|
206
+ | conversational delta | −1.7632 | **−2.5222** |
207
+ | TinyStories delta | +0.0739 | **+0.5544** |
208
+ | SFT val loss | 2.3591 | **1.9476** |
209
+ | format compliance | 36% at 80 tokens | **72%** at 240 |
210
+
211
+ Run A's forgetting was only 5× the noise floor; run B's is 38×. Both are real, and
212
+ the pair is the more useful result: it shows how much of "catastrophic" forgetting
213
+ is a function of how much shifted data you actually train on.