Add RESULTS.md
Browse files- RESULTS.md +7 -4
RESULTS.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
| 2 |
|
| 3 |
Run: 2026-10-11, `lesson_05.ipynb` executed end to end with papermill (kernel `tiny-storyteller`).
|
| 4 |
Device: Apple M4 Max, PyTorch 2.14.1, MPS, GPU shared with other jobs. Not run on Colab tonight
|
| 5 |
-
(T4 time not measured). Wall-clock, whole notebook: **
|
| 6 |
-
the
|
|
|
|
| 7 |
|
| 8 |
## Setup
|
| 9 |
- Start: `tiny-storyteller-v2` downloaded from the Hub repo `singhpratech/emc2-lesson-04-fine-tune`
|
|
@@ -20,6 +21,7 @@ the familiar-request contrast took 69.4 s and gave the same check numbers).
|
|
| 20 |
" Use the words a, b and c." when Words is present.
|
| 21 |
- 2,000 generator pairs: 1,000 Momo + 1,000 Zuri (`generator_pairs(1000, seed=5)`), instruction
|
| 22 |
"Write a story about {name} {scene gist} {setting}." (setting omitted if the story names no place).
|
|
|
|
| 23 |
- Held-out test: 50 instructions (25 Momo, 25 Zuri, seed 123), each a (character, scene, setting)
|
| 24 |
combination that appears in no training story (training stories of that character and scene containing
|
| 25 |
the held-out place anywhere were excluded). Every test instruction names a place.
|
|
@@ -49,7 +51,7 @@ Contrast sets:
|
|
| 49 |
- Cross-world, after: 5% both (1/20; character 100%, setting 5%).
|
| 50 |
|
| 51 |
Held-out masked loss: 2.540 before (v2 + two new rows) -> 2.145 after.
|
| 52 |
-
Training time:
|
| 53 |
|
| 54 |
## Observations (from the executed notebook)
|
| 55 |
- Typical held-out failure: right character and scene, practised place instead of the requested one
|
|
@@ -64,7 +66,8 @@ Training time: 37.4 s for 500 steps = 75 ms per step (first run: 36 s, 72 ms/ste
|
|
| 64 |
- `pairs/`: train.jsonl (4,000), heldout.jsonl (150), test50.jsonl, familiar50.jsonl, crossworld20.jsonl. 3.1 MB.
|
| 65 |
TinyStories-Instruct rows are derived from a CDLA-Sharing-1.0 dataset.
|
| 66 |
- `story_pairs.py`: the pair generator. `results.json`: all numbers and every generated test story.
|
| 67 |
-
- Masking widget checked in headless Chromium at 700 px: no console errors, no horizontal scroll.
|
|
|
|
| 68 |
|
| 69 |
## What went wrong / limits
|
| 70 |
- The TinyStories-Instruct files are not separate files in `roneneldan/TinyStories`; used the authors'
|
|
|
|
| 2 |
|
| 3 |
Run: 2026-10-11, `lesson_05.ipynb` executed end to end with papermill (kernel `tiny-storyteller`).
|
| 4 |
Device: Apple M4 Max, PyTorch 2.14.1, MPS, GPU shared with other jobs. Not run on Colab tonight
|
| 5 |
+
(T4 time not measured). Wall-clock, whole notebook: **139.6 s** (final run, after the grading fixes, GPU shared;
|
| 6 |
+
it trained from the final Lesson 04 v2). Earlier runs: 69.4 s (without the familiar-request contrast) and 102.1 s.
|
| 7 |
+
All three gave the same check numbers, held-out losses and samples.
|
| 8 |
|
| 9 |
## Setup
|
| 10 |
- Start: `tiny-storyteller-v2` downloaded from the Hub repo `singhpratech/emc2-lesson-04-fine-tune`
|
|
|
|
| 21 |
" Use the words a, b and c." when Words is present.
|
| 22 |
- 2,000 generator pairs: 1,000 Momo + 1,000 Zuri (`generator_pairs(1000, seed=5)`), instruction
|
| 23 |
"Write a story about {name} {scene gist} {setting}." (setting omitted if the story names no place).
|
| 24 |
+
840 of the 2,000 (446 Momo, 394 Zuri) name no place, so about 58% teach place-copying.
|
| 25 |
- Held-out test: 50 instructions (25 Momo, 25 Zuri, seed 123), each a (character, scene, setting)
|
| 26 |
combination that appears in no training story (training stories of that character and scene containing
|
| 27 |
the held-out place anywhere were excluded). Every test instruction names a place.
|
|
|
|
| 51 |
- Cross-world, after: 5% both (1/20; character 100%, setting 5%).
|
| 52 |
|
| 53 |
Held-out masked loss: 2.540 before (v2 + two new rows) -> 2.145 after.
|
| 54 |
+
Training time, final run: 50.9 s for 500 steps = 102 ms per step (GPU shared). Earlier: 37.4 s (75 ms/step) and 36 s (72 ms/step).
|
| 55 |
|
| 56 |
## Observations (from the executed notebook)
|
| 57 |
- Typical held-out failure: right character and scene, practised place instead of the requested one
|
|
|
|
| 66 |
- `pairs/`: train.jsonl (4,000), heldout.jsonl (150), test50.jsonl, familiar50.jsonl, crossworld20.jsonl. 3.1 MB.
|
| 67 |
TinyStories-Instruct rows are derived from a CDLA-Sharing-1.0 dataset.
|
| 68 |
- `story_pairs.py`: the pair generator. `results.json`: all numbers and every generated test story.
|
| 69 |
+
- Masking widget checked in headless Chromium at 390 px and 700 px: no console errors, no horizontal scroll.
|
| 70 |
+
- Grading fixes in the final run: "signs" instead of "cards" for the special tokens, completion vs following named, example cell prints only the instruction, commented login line, taller token box on narrow screens.
|
| 71 |
|
| 72 |
## What went wrong / limits
|
| 73 |
- The TinyStories-Instruct files are not separate files in `roneneldan/TinyStories`; used the authors'
|