thefinalboss commited on
Commit
daecccc
·
verified ·
1 Parent(s): 956bafb

v4 vs v3 eval on real-text val (DEEP_DIVE section 10, v4_eval.py, data, WORK_LOG row)

Browse files
docs/DEEP_DIVE_GENERATION.md CHANGED
@@ -332,3 +332,148 @@ Suggested next measurements (inference only):
332
  - whether copying works within the open 128-id chunk but fails across the chunk boundary, i.e. through the carry.
333
 
334
  **Does it speak?** No. With every decoder, the best output is template scaffolding with misspelled slot words. Beam and min-p change a few bytes, not the outcome.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
332
  - whether copying works within the open 128-id chunk but fails across the chunk boundary, i.e. through the carry.
333
 
334
  **Does it speak?** No. With every decoder, the best output is template scaffolding with misspelled slot words. Beam and min-p change a few bytes, not the outcome.
335
+
336
+ ## 10. v4 (real-text corpus) vs v3: generation, copy probe, val NLL (2026-10-19, ~01:15-02:35 ET)
337
+
338
+ Checkpoints (box copies, read-only):
339
+ - **v4 good**: pod `ckpt_v4/good`, step_00025000, 77,246,464 v4 ids (5,389,307,904 ids total, resumed from v3 step_330000), ema_tf 2.65. Copied from the pod with `nice`/`ionice cat`; md5 9235ea05... on box and pod. HF `checkpoints/atom_v4` still held the 20,480,000-id good checkpoint at the time.
340
+ - **v3 step_00330000** (5,312,061,440 ids, the v4 resume point): HF `checkpoints/atom_v3/step_00330000`, sha256 aada3965... verified.
341
+
342
+ Setup:
343
+ - fp32, fixed generation path (`fractus/fixed_generation.py`), decoders from `scripts/gen_best.py`.
344
+ - Warm start: the real 127-id tail of a v4 val doc.
345
+ - Val data: the per-source v4 val files (`fineweb_val.i16`, `wiki_val.i16`, `tinystories_val.i16`, `pg19_val.i16`; held out from training).
346
+ - Script: `scripts/v4_eval.py` (resumable). Summary: `scripts/v4_eval_summary.py`. Raw data: `docs/deep_dive_data/v4_eval_77M_vs_v3_330000.jsonl`.
347
+
348
+ PG-19 mean NLL is dominated by 2 of 8 windows taken from a book index (runs of spaces and page numbers). There v4 scores 13.6-14.6 nats/id: it is confidently wrong on whitespace runs. The median window (2.70) is in line with the other sources.
349
+
350
+ ### Val NLL per source (8 windows x 1024 scored ids each, 127-id context)
351
+
352
+ | model | source | NLL nats/id (mean of windows) | median window NLL | top-1 | bits/byte |
353
+ |---|---|---|---|---|---|
354
+ | v3_330000 | fineweb | 14.101 | 12.471 | 0.125 | 21.146 |
355
+ | v3_330000 | wiki | 46.647 | 19.752 | 0.107 | 70.480 |
356
+ | v3_330000 | tinystories | 15.937 | 14.396 | 0.128 | 23.981 |
357
+ | v3_330000 | pg19 | 113.505 | 12.808 | 0.089 | 171.499 |
358
+ | v4_77M | fineweb | 2.741 | 2.694 | 0.253 | 4.111 |
359
+ | v4_77M | wiki | 2.831 | 2.670 | 0.246 | 4.278 |
360
+ | v4_77M | tinystories | 2.508 | 2.443 | 0.289 | 3.773 |
361
+ | v4_77M | pg19 | 5.502 | 2.695 | 0.207 | 8.313 |
362
+
363
+ ### Copy probe on real text (words of >=5 letters in the scored region; previous occurrence in the same 128-id grid chunk vs only in an earlier chunk)
364
+
365
+ | model | class | words | NLL/id all bytes | top-1 all | NLL first byte | top-1 first byte | NLL bytes 2..n | top-1 bytes 2..n | median distance (ids) |
366
+ |---|---|---|---|---|---|---|---|---|---|
367
+ | v3_330000 | first | 1631 | 24.546 | 0.099 | 45.133 | 0.042 | 21.116 | 0.108 | - |
368
+ | v3_330000 | repeat_same_chunk | 80 | 26.789 | 0.094 | 43.475 | 0.025 | 23.755 | 0.107 | 37 |
369
+ | v3_330000 | repeat_earlier_chunk | 334 | 18.303 | 0.101 | 35.234 | 0.048 | 15.399 | 0.110 | 205 |
370
+ | v4_77M | first | 1631 | 3.131 | 0.116 | 4.180 | 0.044 | 2.956 | 0.128 | - |
371
+ | v4_77M | repeat_same_chunk | 80 | 3.014 | 0.123 | 3.884 | 0.025 | 2.856 | 0.141 | 37 |
372
+ | v4_77M | repeat_earlier_chunk | 334 | 3.048 | 0.103 | 3.757 | 0.036 | 2.926 | 0.114 | 205 |
373
+
374
+ ### Generation (fp32 fixed path, warm = real 127-id val tail; CONT = 256-id val prefix, 40 ids)
375
+
376
+ | model | decoder | CONT unique@40 | CONT exact /40 | CONT seqmatch | CONT real-word | prompt unique@40 | prompt real-word |
377
+ |---|---|---|---|---|---|---|---|
378
+ | v3_330000 | greedy | 14.0 | 1.67 | 0.292 | 0.38 | 14.0 | 0.18 |
379
+ | v3_330000 | beam8 | 14.3 | 3.33 | 0.258 | 0.28 | 13.3 | 0.08 |
380
+ | v3_330000 | minp_T0.7_p0.1_ng4 | 13.7 | 3.00 | 0.275 | 0.39 | 15.0 | 0.13 |
381
+ | v4_77M | greedy | 8.0 | 5.33 | 0.275 | 0.96 | 9.3 | 0.90 |
382
+ | v4_77M | beam8 | 10.7 | 4.67 | 0.183 | 0.63 | 11.3 | 0.87 |
383
+ | v4_77M | minp_T0.7_p0.1_ng4 | 14.0 | 4.33 | 0.225 | 0.40 | 13.0 | 0.64 |
384
+
385
+ ### Raw outputs (unedited, markers shown)
386
+
387
+ **v3_330000 / greedy**
388
+
389
+ | case | generated | true |
390
+ |---|---|---|
391
+ | fineweb_doc3 | `t 'r sofont <B1>br aleator lioaleatior <B1>gae` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
392
+ | wiki_doc3 | ` tom t t tha oo acof chatheathe <B1>bytheab` | `s are forest <B1>and shrubland, but it has ` |
393
+ | tinystories_doc3 | `oetoebas?<B2><B2>2? event? wove ero?? bebebefr` | `g, green thumb! <B1>It was so big, Bob had ` |
394
+ | The capital of France is | `alotl<B1>troky attion<B1>anglngl. ong. <B1>oook a` | |
395
+ | Once upon a time | `ttilltilet <B1>t..onon <B1>oon pk pt asaran <B1>p` | |
396
+ | Hello | `g tttebenabten<B1>yl.oon as <B1>g'ablool aiale` | |
397
+
398
+ **v3_330000 / beam8**
399
+
400
+ | case | generated | true |
401
+ |---|---|---|
402
+ | fineweb_doc3 | `t 's bthapoonc 'amol al <B1>ofofofir aleg a` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
403
+ | wiki_doc3 | ` tom t oom t a a cofrof thacheachathethe` | `s are forest <B1>and shrubland, but it has ` |
404
+ | tinystories_doc3 | `oetoebas?<B2><B2>2? event? wove ero?? bebebro?` | `g, green thumb! <B1>It was so big, Bob had ` |
405
+ | The capital of France is | `atlrt<B1>tonackting <B1>uglol. g.ooook <B1>a angl` | |
406
+ | Once upon a time | `ttilltilet <B1>tionsonan <B1>oook k <B1>n tobllea` | |
407
+ | Hello | `g tttebebenabe<B1>agyt. <B1>trooon all aslelg ` | |
408
+
409
+ **v3_330000 / minp_T0.7_p0.1_ng4**
410
+
411
+ | case | generated | true |
412
+ |---|---|---|
413
+ | fineweb_doc3 | `so'r wou t fr thamor <B1>troront aexcent fo` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
414
+ | wiki_doc3 | ` gom t t acom of o ha thachacon <B1>theor t` | `s are forest <B1>and shrubland, but it has ` |
415
+ | tinystories_doc3 | `ontoekenenesonegisoone <B1>e <B1>aent asas as ` | `g, green thumb! <B1>It was so big, Bob had ` |
416
+ | The capital of France is | `alotl<B1>troky atingg.<B2>fong. <B1>fofooa apugle` | |
417
+ | Once upon a time | `ttilltilet <B1>t..onons <B1>aooon a abllegleag` | |
418
+ | Hello | `g tttebenabten<B1>ytooo <B1>al al tlexag.oor a` | |
419
+
420
+ **v4_77M / greedy**
421
+
422
+ | case | generated | true |
423
+ |---|---|---|
424
+ | fineweb_doc3 | `th Seres teres the \| \| \|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|⏎` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
425
+ | wiki_doc3 | `s an an an ale alin <B1>aliand an ale ale ` | `s are forest <B1>and shrubland, but it has ` |
426
+ | tinystories_doc3 | `n a and a a and and <B1>ande ande and and ` | `g, green thumb! <B1>It was so big, Bob had ` |
427
+ | The capital of France is | ` <B1>ande and Mind are and and <B1>are ande an` | |
428
+ | Once upon a time | ` <B1>and and and bere and are <B1>ande and and` | |
429
+ | Hello | `ur the <B1>whe whe whe are are and <B1>and and` | |
430
+
431
+ **v4_77M / beam8**
432
+
433
+ | case | generated | true |
434
+ |---|---|---|
435
+ | fineweb_doc3 | `thhed \| \|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|⏎<B3>\|⏎<B3>\|\|⏎<B3>\|\|\|\|⏎` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
436
+ | wiki_doc3 | `s He He ale ale ale ande ande <B1>the are ` | `s are forest <B1>and shrubland, but it has ` |
437
+ | tinystories_doc3 | `s the the the <B1>Minde he he are are and ` | `g, green thumb! <B1>It was so big, Bob had ` |
438
+ | The capital of France is | ` and <B1>the thererere there <B1>where and are` | |
439
+ | Once upon a time | ` the <B1>the where whe ware <B1>there and the ` | |
440
+ | Hello | `und th!<B2>⏎<B3>Mind Mind and Mine Min Mind Mi` | |
441
+
442
+ **v4_77M / minp_T0.7_p0.1_ng4**
443
+
444
+ | case | generated | true |
445
+ |---|---|---|
446
+ | fineweb_doc3 | `Jeere Suntof Seteane Stato <B1>Sche tandest` | `Who Won!⏎<B3>is for all students. All <B1>stud` |
447
+ | wiki_doc3 | `s e t al <B1>ofhe he ar atato arero hand it` | `s are forest <B1>and shrubland, but it has ` |
448
+ | tinystories_doc3 | `s le al ale berea s athe <B1>arere tande t` | `g, green thumb! <B1>It was so big, Bob had ` |
449
+ | The capital of France is | ` <B1>whe wheromer be <B1>and ande bero tend s ` | |
450
+ | Once upon a time | ` <B1>whe wherome bre ar and be <B1>the thanes ` | |
451
+ | Hello | ` nd ther <B1>omerere an ande d hero than <B1>t` | |
452
+
453
+
454
+ ### Reading
455
+
456
+ - **Real text helps a lot, but it is very early.** v3 on real val text scores 12-20 nats/id (median window), worse than uniform (5.58). After 77M ids of real text, v4 is at 2.4-2.7 nats/id, about 3.8-4.3 bits/byte. That is still far from a usable byte-level model (~1-1.5 bits/byte), and top-1 is only 0.25.
457
+ - **Generation.**
458
+ - v4 greedy collapses into high-frequency fragments ("and and", "the the", `||||`).
459
+ - v4 min-p is more varied but stays non-words around real short words ("the", "and", "are", "he", "of").
460
+ - v3 is letter soup on real-text prompts.
461
+ - The high v4 greedy real-word rate (0.90-0.96) is an artifact of repeating "and"/"the".
462
+ - **Copy probe.** For words of 5 or more letters, a second mention is predicted no better than a first mention in v4:
463
+
464
+ | v4 | bytes 2..n NLL | first byte NLL |
465
+ |---|---|---|
466
+ | first mention | 2.96 | 4.18 |
467
+ | repeat, same chunk | 2.86 | 3.88 |
468
+ | repeat, earlier chunk | 2.93 | 3.76 |
469
+
470
+ A model that copies would bring the rest-of-word NLL of repeats close to 0. There is no gain even when the earlier occurrence is in the same 128-id chunk (median 37 ids back), where the linear attention sees it directly. So the absence of copying is not only a carry problem.
471
+ - v3 shows the same lack of copy behavior at a much worse level. Its earlier-chunk repeats look "better" (18 vs 25 nats) only because it is wildly miscalibrated.
472
+
473
+ **Does it speak?** No. v4 at 77M real-text ids produces short real function words in broken sequences, with no topical continuation and no prompt following.
474
+
475
+ **Bottleneck now.**
476
+ 1. **Data volume and optimization.** The model has seen only ~5% of the 1.4B-id v4 budget, and the pod log shows lr ≈ 1.16e-5. Val NLL is still in the regime where any byte model mostly learns unigram/bigram statistics.
477
+ 2. **Copying.** There is no in-context copying yet, not even within a chunk. Small attention models usually pick up copy behavior within a few hundred million tokens, so this alone does not prove a mechanism failure at 77M ids.
478
+
479
+ What would separate the two: rerun `scripts/v4_eval.py` on later v4 good checkpoints (for example every ~200M ids) and watch the gap between repeat and first-mention NLL. If val NLL keeps falling while the repeat gap stays near zero, the field/carry mechanism (elu+1 linear attention with level-mean carry) is the bottleneck rather than data.
docs/WORK_LOG.md CHANGED
@@ -115,3 +115,4 @@ Checkpoint `atom_latest` step_00770000 (2.455B ids, ema_tf 0.484), CPU. Full tab
115
  | **Corpus v4 build ~18:15-19:40 ET Oct 18 (real-language Atom corpus, box build, v3 untouched)** | User approved real language datasets ("oui pour les datasets de language go"): the template corpus (99.83% templated, 243,575 distinct 16-grams) is why the model cannot speak | `docs/CORPUS_V4.md`, `scripts/build_corpus_v4.py`, `scripts/atom_fast_ids.py` (ids-only Atomizer, checked id-for-id against AtomFractusTokenizer). **1,400,295,456 train ids, 503,263 docs, doc-level shuffle**: FineWeb-Edu 700,003,079 (50.0%), Wikipedia en 250,000,472 (17.9%), TinyStoriesV2 200,000,552 (14.3%), PG-19 150,085,320 (10.7%, 517 books), old corpus 100,206,033 (7.2%, whole docs from all 110 shards). Val `val.i16` 5,598,840 ids / 1,660 docs / 5.37 MB text (FineWeb 2.0, Wiki 1.5, PG-19 1.36, TinyStories 0.5 MB). Distinct 16-grams per 100M ids: v4 75,355,484 vs old 182,388 (413x). 7 shards + val on the pod `/workspace/atom_corpus_v4/` (sha256 OK) and on HF `atom_corpus_v4/` (commit 150fef55). CPU check of v3 step_85000 on v4 held-out text: 19.8-24.7 nats/id (PG-19 425) vs 2.85 on the old corpus, so v4 guards are relaxed for the switch. `fast4gpu_atom_v4.py` + `run_v4.py` (+ pusher, launcher) prepared on the pod, NOT launched. Full pass 36.7 h / $19.27 at 10.6k ids/s > credit $18.08; suggested `PLAN_IDS` ~1.1B (28.8 h, $15.13). v3 rate during the build 10,214-10,922 ids/s (baseline 10,240): no effect. |
116
  | **Switch v3 -> v4 (real-language corpus) 23:05 ET Oct 18** | User order 23:04 ET: stop v3, launch v4 on atom_corpus_v4, resume v3 weights + optimizer, same SS, `PLAN_IDS=1100000000` (fits credit) | Resume point: v3 good/ = v3-segment step_00330000, **5,312,061,440 ids**, ema_tf 0.526. It is newer than the last HF v3 push (5,025,341,440), so it is kept on the pod in `/workspace/ckpt_v3/good/`, hard-linked into `/workspace/ckpt_v4_from_v3/`; nothing was deleted. v3 runner/pusher/trainer were stopped (SIGTERM) at 03:05:14Z (23:05 ET) at ~5,318.2M ids; the ~6.1M ids since good/ are not kept. v4 was launched 03:05:23Z (23:05 ET) with `PLAN_IDS=1100000000 bash /workspace/launch_v4.sh`: 537,109 steps, LR 2.35e-5 cosine to 2.5e-6, warmup 500, SS_RATE 0.35, SS_TAIL_IDS 8, ss_p 0.85. Pre-step-1 **VAL ce 16.98 nats/id** (262,144 held-out ids). The first step had gn 1.88M (skipped, under the relaxed 1e6 grace threshold). ema_tf 12.35 -> 7.19 -> 5.17 -> 4.33 -> 3.79 -> 3.63 at 0.4/0.8/1.6/3.7/6.1/9.4M ids. ~10,400-10,560 ids/s, mem 29.2 GB, 0 non-finite, 0 rollbacks. 35 isolated GN skips by step ~4,600 (3 in the 2,000-step grace, then 1-25k and one 1.18M spike above 10x EMA; max 1 consecutive). The v4 pusher runs (`push_good_atom_v4.py`, RELAX_EMA_MAX 4.5, -> HF `checkpoints/atom_v4/`). Credit $16.13 at 23:16 ET. |
117
  | **Pod disk cleanup ~00:22-00:50 ET Oct 19 (v4 running, untouched)** | User order 00:21 ET: pod disk urgent (v4 ckpts ~15 GB each); delete ckpt_v2 + ckpt_v3_resume60k after HF backup, push v3 step_00330000 to HF, then delete old v3 ckpts that are on HF; keep ckpt_v3/good + ckpt_v4_from_v3; nice/ionice uploads | **HF backups (sha256 verified vs HF LFS):** `checkpoints/atom_v3/step_00330000/` @96ef43de (= v3 good / ckpt_v4_from_v3, 5,312,061,440 ids; .bin 7,560,913,383 B, .opt.bin 7,877,683,537 B, manifest, GOOD.json); `atom_v2/step_00075000` @b4bf60ec (pt+opt, = v2 good); `atom_v2/step_00060000` @15ccb5f9 (resume60k pt); `atom_v2/step_00070000` @6201f397; `atom_v3/step_00325000` @83fb6475. None of these had an HF copy before. **Deleted on pod:** `/workspace/ckpt_v3_resume60k/`, `/workspace/ckpt_v2/` (all), `ckpt_v3/step_00325000`, `ckpt_v3/step_00330000`, top-level ckpt_v3 .pt/.opt/RESUME_MANIFEST (hardlinks of good). **Kept:** `ckpt_v3/good`, `ckpt_v4_from_v3` (same inodes), staging hardlinks `/workspace/push_stage_v3_330000` (free nothing). **Freed ~38.1 GB; df 41G used / 60G free.** v4 untouched: 10.57k ids/s throughout; rollback #1 at 23:46 ET (51 consecutive GN skips, segment step 12,718), runner restarted from ckpt_v4/good, LR 1.175e-5; burst of skips (26 -> 163) ~00:40 ET, subsided, no 2nd rollback; VAL 2.77 @51.6M v4 ids, ema_tf ~2.7 | Watch for skip bursts (possible pathological docs); v4 ckpts can now be kept ~3 at a time |
 
 
115
  | **Corpus v4 build ~18:15-19:40 ET Oct 18 (real-language Atom corpus, box build, v3 untouched)** | User approved real language datasets ("oui pour les datasets de language go"): the template corpus (99.83% templated, 243,575 distinct 16-grams) is why the model cannot speak | `docs/CORPUS_V4.md`, `scripts/build_corpus_v4.py`, `scripts/atom_fast_ids.py` (ids-only Atomizer, checked id-for-id against AtomFractusTokenizer). **1,400,295,456 train ids, 503,263 docs, doc-level shuffle**: FineWeb-Edu 700,003,079 (50.0%), Wikipedia en 250,000,472 (17.9%), TinyStoriesV2 200,000,552 (14.3%), PG-19 150,085,320 (10.7%, 517 books), old corpus 100,206,033 (7.2%, whole docs from all 110 shards). Val `val.i16` 5,598,840 ids / 1,660 docs / 5.37 MB text (FineWeb 2.0, Wiki 1.5, PG-19 1.36, TinyStories 0.5 MB). Distinct 16-grams per 100M ids: v4 75,355,484 vs old 182,388 (413x). 7 shards + val on the pod `/workspace/atom_corpus_v4/` (sha256 OK) and on HF `atom_corpus_v4/` (commit 150fef55). CPU check of v3 step_85000 on v4 held-out text: 19.8-24.7 nats/id (PG-19 425) vs 2.85 on the old corpus, so v4 guards are relaxed for the switch. `fast4gpu_atom_v4.py` + `run_v4.py` (+ pusher, launcher) prepared on the pod, NOT launched. Full pass 36.7 h / $19.27 at 10.6k ids/s > credit $18.08; suggested `PLAN_IDS` ~1.1B (28.8 h, $15.13). v3 rate during the build 10,214-10,922 ids/s (baseline 10,240): no effect. |
116
  | **Switch v3 -> v4 (real-language corpus) 23:05 ET Oct 18** | User order 23:04 ET: stop v3, launch v4 on atom_corpus_v4, resume v3 weights + optimizer, same SS, `PLAN_IDS=1100000000` (fits credit) | Resume point: v3 good/ = v3-segment step_00330000, **5,312,061,440 ids**, ema_tf 0.526. It is newer than the last HF v3 push (5,025,341,440), so it is kept on the pod in `/workspace/ckpt_v3/good/`, hard-linked into `/workspace/ckpt_v4_from_v3/`; nothing was deleted. v3 runner/pusher/trainer were stopped (SIGTERM) at 03:05:14Z (23:05 ET) at ~5,318.2M ids; the ~6.1M ids since good/ are not kept. v4 was launched 03:05:23Z (23:05 ET) with `PLAN_IDS=1100000000 bash /workspace/launch_v4.sh`: 537,109 steps, LR 2.35e-5 cosine to 2.5e-6, warmup 500, SS_RATE 0.35, SS_TAIL_IDS 8, ss_p 0.85. Pre-step-1 **VAL ce 16.98 nats/id** (262,144 held-out ids). The first step had gn 1.88M (skipped, under the relaxed 1e6 grace threshold). ema_tf 12.35 -> 7.19 -> 5.17 -> 4.33 -> 3.79 -> 3.63 at 0.4/0.8/1.6/3.7/6.1/9.4M ids. ~10,400-10,560 ids/s, mem 29.2 GB, 0 non-finite, 0 rollbacks. 35 isolated GN skips by step ~4,600 (3 in the 2,000-step grace, then 1-25k and one 1.18M spike above 10x EMA; max 1 consecutive). The v4 pusher runs (`push_good_atom_v4.py`, RELAX_EMA_MAX 4.5, -> HF `checkpoints/atom_v4/`). Credit $16.13 at 23:16 ET. |
117
  | **Pod disk cleanup ~00:22-00:50 ET Oct 19 (v4 running, untouched)** | User order 00:21 ET: pod disk urgent (v4 ckpts ~15 GB each); delete ckpt_v2 + ckpt_v3_resume60k after HF backup, push v3 step_00330000 to HF, then delete old v3 ckpts that are on HF; keep ckpt_v3/good + ckpt_v4_from_v3; nice/ionice uploads | **HF backups (sha256 verified vs HF LFS):** `checkpoints/atom_v3/step_00330000/` @96ef43de (= v3 good / ckpt_v4_from_v3, 5,312,061,440 ids; .bin 7,560,913,383 B, .opt.bin 7,877,683,537 B, manifest, GOOD.json); `atom_v2/step_00075000` @b4bf60ec (pt+opt, = v2 good); `atom_v2/step_00060000` @15ccb5f9 (resume60k pt); `atom_v2/step_00070000` @6201f397; `atom_v3/step_00325000` @83fb6475. None of these had an HF copy before. **Deleted on pod:** `/workspace/ckpt_v3_resume60k/`, `/workspace/ckpt_v2/` (all), `ckpt_v3/step_00325000`, `ckpt_v3/step_00330000`, top-level ckpt_v3 .pt/.opt/RESUME_MANIFEST (hardlinks of good). **Kept:** `ckpt_v3/good`, `ckpt_v4_from_v3` (same inodes), staging hardlinks `/workspace/push_stage_v3_330000` (free nothing). **Freed ~38.1 GB; df 41G used / 60G free.** v4 untouched: 10.57k ids/s throughout; rollback #1 at 23:46 ET (51 consecutive GN skips, segment step 12,718), runner restarted from ckpt_v4/good, LR 1.175e-5; burst of skips (26 -> 163) ~00:40 ET, subsided, no 2nd rollback; VAL 2.77 @51.6M v4 ids, ema_tf ~2.7 | Watch for skip bursts (possible pathological docs); v4 ckpts can now be kept ~3 at a time |
118
+ | **v4 eval vs v3 ~01:15-02:35 ET Oct 19 (v4 good step_25000, 77,246,464 v4 ids; v3 step_330000)** | User: does v4 (real-text corpus) speak? Generation, copy probe, val NLL per source | `docs/DEEP_DIVE_GENERATION.md` section 10, `scripts/v4_eval.py`. Val NLL per source (median window, nats/id): v4 fineweb 2.69, wiki 2.67, tinystories 2.44, pg19 2.70 (3.8-4.3 bits/byte, top-1 ~0.25); v3 12.5-19.8. Generation: v4 greedy collapses to 'and and', min-p gives real short words in broken sequences, v3 letter soup. Copy probe (words of 5+ letters): v4 repeat vs first mention, rest-of-word NLL 2.86-2.93 vs 2.96, same chunk or earlier chunk: no copying yet. Verdict: does not speak; under-trained (5% of the 1.4B budget, lr 1.16e-5). Rerun the probe on later checkpoints to tell data apart from mechanism. Box: deleted ckpt_v3_latest (on HF atom_v3, sha c82b9afb). Trainer untouched. |
docs/deep_dive_data/v4_eval_77M_vs_v3_330000.jsonl ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:0", "src": "fineweb", "start": 1769459, "nll": 2.6902031898498535, "top1": 0.267578125, "bytes": 984, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 48, "nll": 139.46027183532715, "top1": 8.0, "n_rest": 41, "nll_rest": 111.6762113571167, "top1_rest": 8.0, "n_first": 7, "nll_first": 27.784066677093506, "top1_first": 0.0, "dists": [31, 151, 152, 101, 63, 859, 136]}, "first": {"n": 428, "nll": 1280.487572669983, "top1": 56.0, "n_rest": 367, "nll_rest": 1019.154260635376, "top1_rest": 56.0, "n_first": 61, "nll_first": 261.33331823349, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 15, "nll": 40.24147987365723, "top1": 2.0, "n_rest": 12, "nll_rest": 31.374893188476562, "top1_rest": 2.0, "n_first": 3, "nll_first": 8.866587162017822, "top1_first": 0.0, "dists": [15, 101, 36]}}, "secs": 15.0}
2
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:1", "src": "fineweb", "start": 1325000, "nll": 2.6856470108032227, "top1": 0.2626953125, "bytes": 987, "ids": 1024, "words": {"first": {"n": 398, "nll": 1102.3921012878418, "top1": 54.0, "n_rest": 344, "nll_rest": 890.8116436004639, "top1_rest": 54.0, "n_first": 54, "nll_first": 211.58045434951782, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 64, "nll": 159.7016773223877, "top1": 12.0, "n_rest": 56, "nll_rest": 128.45225620269775, "top1_rest": 12.0, "n_first": 8, "nll_first": 31.249420881271362, "top1_first": 0.0, "dists": [17, 36, 19, 22, 10, 24, 47, 68]}, "repeat_earlier_chunk": {"n": 133, "nll": 382.79986667633057, "top1": 21.0, "n_rest": 116, "nll_rest": 315.6101932525635, "top1_rest": 21.0, "n_first": 17, "nll_first": 67.18967485427856, "top1_first": 0.0, "dists": [326, 70, 46, 440, 394, 115, 115, 94, 95, 210, 943, 88, 293, 296, 1030, 155, 314]}}, "secs": 10.9}
3
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:2", "src": "fineweb", "start": 1063260, "nll": 2.8655312061309814, "top1": 0.2470703125, "bytes": 985, "ids": 1024, "words": {"first": {"n": 442, "nll": 1308.1658296585083, "top1": 52.0, "n_rest": 383, "nll_rest": 1041.725269317627, "top1_rest": 50.0, "n_first": 59, "nll_first": 266.4405685663223, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 102, "nll": 312.06968212127686, "top1": 9.0, "n_rest": 88, "nll_rest": 240.8911428451538, "top1_rest": 9.0, "n_first": 14, "nll_first": 71.17854523658752, "top1_first": 0.0, "dists": [111, 469, 408, 409, 408, 171, 138, 129, 48, 179, 321, 320, 313, 483]}, "repeat_same_chunk": {"n": 10, "nll": 28.647093772888184, "top1": 2.0, "n_rest": 8, "nll_rest": 18.99666976928711, "top1_rest": 2.0, "n_first": 2, "nll_first": 9.650425672531128, "top1_first": 0.0, "dists": [30, 30]}}, "secs": 11.1}
4
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:3", "src": "fineweb", "start": 561207, "nll": 2.7048726081848145, "top1": 0.26953125, "bytes": 986, "ids": 1024, "words": {"first": {"n": 478, "nll": 1456.141212463379, "top1": 55.0, "n_rest": 411, "nll_rest": 1168.5340671539307, "top1_rest": 51.0, "n_first": 67, "nll_first": 287.60713016986847, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 47, "nll": 125.60602474212646, "top1": 6.0, "n_rest": 41, "nll_rest": 104.59713745117188, "top1_rest": 6.0, "n_first": 6, "nll_first": 21.00888466835022, "top1_first": 0.0, "dists": [70, 238, 185, 210, 155, 126]}, "repeat_same_chunk": {"n": 6, "nll": 18.388702392578125, "top1": 0.0, "n_rest": 5, "nll_rest": 14.554149627685547, "top1_rest": 0.0, "n_first": 1, "nll_first": 3.8345513343811035, "top1_first": 0.0, "dists": [40]}}, "secs": 13.0}
5
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:4", "src": "fineweb", "start": 640343, "nll": 3.0819876194000244, "top1": 0.2041015625, "bytes": 987, "ids": 1024, "words": {"first": {"n": 445, "nll": 1415.6463031768799, "top1": 37.0, "n_rest": 388, "nll_rest": 1184.064112663269, "top1_rest": 36.0, "n_first": 57, "nll_first": 231.58219957351685, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 141, "nll": 431.8219118118286, "top1": 17.0, "n_rest": 125, "nll_rest": 373.8074960708618, "top1_rest": 17.0, "n_first": 16, "nll_first": 58.01440238952637, "top1_first": 0.0, "dists": [104, 196, 119, 189, 312, 107, 382, 59, 462, 100, 397, 440, 492, 457, 119, 532]}, "repeat_same_chunk": {"n": 8, "nll": 28.14711570739746, "top1": 0.0, "n_rest": 7, "nll_rest": 24.411130905151367, "top1_rest": 0.0, "n_first": 1, "nll_first": 3.7359862327575684, "top1_first": 0.0, "dists": [29]}}, "secs": 12.6}
6
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:5", "src": "fineweb", "start": 85232, "nll": 2.6970674991607666, "top1": 0.244140625, "bytes": 986, "ids": 1024, "words": {"first": {"n": 461, "nll": 1368.214035987854, "top1": 56.0, "n_rest": 398, "nll_rest": 1141.8288836479187, "top1_rest": 53.0, "n_first": 63, "nll_first": 226.38515150547028, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 136, "nll": 417.98235607147217, "top1": 11.0, "n_rest": 116, "nll_rest": 353.4954481124878, "top1_rest": 9.0, "n_first": 20, "nll_first": 64.48689770698547, "top1_first": 2.0, "dists": [184, 185, 176, 177, 176, 188, 189, 319, 444, 271, 490, 179, 458, 213, 301, 301, 411, 21, 125, 125]}, "repeat_same_chunk": {"n": 8, "nll": 25.901803970336914, "top1": 0.0, "n_rest": 7, "nll_rest": 22.27376937866211, "top1_rest": 0.0, "n_first": 1, "nll_first": 3.6280336380004883, "top1_first": 0.0, "dists": [57]}}, "secs": 14.0}
7
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:6", "src": "fineweb", "start": 156513, "nll": 2.6132819652557373, "top1": 0.27734375, "bytes": 982, "ids": 1024, "words": {"first": {"n": 450, "nll": 1348.8195314407349, "top1": 53.0, "n_rest": 385, "nll_rest": 1115.520257949829, "top1_rest": 49.0, "n_first": 65, "nll_first": 233.2992753982544, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 29, "nll": 92.65748119354248, "top1": 4.0, "n_rest": 24, "nll_rest": 71.58513450622559, "top1_rest": 4.0, "n_first": 5, "nll_first": 21.072345972061157, "top1_first": 0.0, "dists": [317, 190, 243, 318, 1006]}}, "secs": 16.4}
8
+ {"tag": "v4_77M", "kind": "valwin", "key": "fineweb:7", "src": "fineweb", "start": 34380, "nll": 2.592747211456299, "top1": 0.251953125, "bytes": 984, "ids": 1024, "words": {"first": {"n": 434, "nll": 1322.9844312667847, "top1": 33.0, "n_rest": 372, "nll_rest": 1093.4226570129395, "top1_rest": 30.0, "n_first": 62, "nll_first": 229.5617777109146, "top1_first": 3.0, "dists": []}, "repeat_same_chunk": {"n": 6, "nll": 15.856094360351562, "top1": 1.0, "n_rest": 5, "nll_rest": 12.928327560424805, "top1_rest": 1.0, "n_first": 1, "nll_first": 2.9277689456939697, "top1_first": 0.0, "dists": [26]}, "repeat_earlier_chunk": {"n": 43, "nll": 133.64838027954102, "top1": 2.0, "n_rest": 38, "nll_rest": 117.11222267150879, "top1_rest": 2.0, "n_first": 5, "nll_first": 16.536156177520752, "top1_first": 0.0, "dists": [227, 63, 443, 400, 478]}}, "secs": 16.0}
9
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:0", "src": "wiki", "start": 275510, "nll": 2.532910108566284, "top1": 0.2763671875, "bytes": 980, "ids": 1024, "words": {"first": {"n": 461, "nll": 1352.4942560195923, "top1": 45.0, "n_rest": 400, "nll_rest": 1121.6298170089722, "top1_rest": 43.0, "n_first": 61, "nll_first": 230.86442935466766, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 115, "nll": 322.4405679702759, "top1": 12.0, "n_rest": 98, "nll_rest": 261.10155963897705, "top1_rest": 11.0, "n_first": 17, "nll_first": 61.33900284767151, "top1_first": 1.0, "dists": [106, 83, 289, 123, 266, 266, 177, 162, 155, 711, 11, 571, 212, 166, 681, 42, 42]}, "repeat_same_chunk": {"n": 15, "nll": 42.350789070129395, "top1": 3.0, "n_rest": 13, "nll_rest": 34.87783908843994, "top1_rest": 3.0, "n_first": 2, "nll_first": 7.472950458526611, "top1_first": 0.0, "dists": [45, 32]}}, "secs": 14.9}
10
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:1", "src": "wiki", "start": 1278417, "nll": 2.79378080368042, "top1": 0.2265625, "bytes": 979, "ids": 1024, "words": {"first": {"n": 361, "nll": 1059.3850412368774, "top1": 33.0, "n_rest": 316, "nll_rest": 887.2407054901123, "top1_rest": 31.0, "n_first": 45, "nll_first": 172.14432990550995, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 150, "nll": 424.4304962158203, "top1": 17.0, "n_rest": 133, "nll_rest": 366.5962886810303, "top1_rest": 15.0, "n_first": 17, "nll_first": 57.83421611785889, "top1_first": 2.0, "dists": [34, 114, 405, 87, 99, 415, 206, 206, 639, 186, 163, 339, 154, 309, 476, 22, 907]}, "repeat_same_chunk": {"n": 48, "nll": 140.7928009033203, "top1": 8.0, "n_rest": 42, "nll_rest": 119.60935497283936, "top1_rest": 8.0, "n_first": 6, "nll_first": 21.183444023132324, "top1_first": 0.0, "dists": [28, 26, 97, 31, 61, 51]}}, "secs": 13.6}
11
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:2", "src": "wiki", "start": 1020847, "nll": 2.593916416168213, "top1": 0.2841796875, "bytes": 984, "ids": 1024, "words": {"first": {"n": 422, "nll": 1227.5631170272827, "top1": 55.0, "n_rest": 361, "nll_rest": 966.1293592453003, "top1_rest": 53.0, "n_first": 61, "nll_first": 261.43376564979553, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 54, "nll": 172.26072216033936, "top1": 4.0, "n_rest": 46, "nll_rest": 138.8856143951416, "top1_rest": 4.0, "n_first": 8, "nll_first": 33.37510347366333, "top1_first": 0.0, "dists": [140, 145, 52, 142, 134, 208, 242, 392]}, "repeat_same_chunk": {"n": 6, "nll": 21.09904670715332, "top1": 1.0, "n_rest": 5, "nll_rest": 18.80438995361328, "top1_rest": 0.0, "n_first": 1, "nll_first": 2.2946557998657227, "top1_first": 1.0, "dists": [114]}}, "secs": 21.2}
12
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:3", "src": "wiki", "start": 1434803, "nll": 3.4062018394470215, "top1": 0.19140625, "bytes": 983, "ids": 1024, "words": {"first": {"n": 287, "nll": 984.1940927505493, "top1": 20.0, "n_rest": 245, "nll_rest": 801.0883598327637, "top1_rest": 17.0, "n_first": 42, "nll_first": 183.10574388504028, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 141, "nll": 489.06577587127686, "top1": 2.0, "n_rest": 121, "nll_rest": 406.3540782928467, "top1_rest": 2.0, "n_first": 20, "nll_first": 82.71171188354492, "top1_first": 0.0, "dists": [124, 124, 150, 150, 370, 368, 465, 133, 189, 194, 314, 76, 121, 273, 179, 104, 382, 310, 135, 102]}, "repeat_same_chunk": {"n": 9, "nll": 29.622802734375, "top1": 2.0, "n_rest": 8, "nll_rest": 26.172700881958008, "top1_rest": 2.0, "n_first": 1, "nll_first": 3.450100898742676, "top1_first": 0.0, "dists": [88]}}, "secs": 18.3}
13
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:4", "src": "wiki", "start": 791674, "nll": 2.7259292602539062, "top1": 0.267578125, "bytes": 973, "ids": 1024, "words": {"first": {"n": 470, "nll": 1412.6981010437012, "top1": 47.0, "n_rest": 407, "nll_rest": 1156.4116191864014, "top1_rest": 44.0, "n_first": 63, "nll_first": 256.2864887714386, "top1_first": 3.0, "dists": []}, "repeat_same_chunk": {"n": 5, "nll": 16.476511001586914, "top1": 0.0, "n_rest": 4, "nll_rest": 11.672941207885742, "top1_rest": 0.0, "n_first": 1, "nll_first": 4.803569793701172, "top1_first": 0.0, "dists": [18]}, "repeat_earlier_chunk": {"n": 23, "nll": 76.8011703491211, "top1": 1.0, "n_rest": 19, "nll_rest": 57.575873374938965, "top1_rest": 1.0, "n_first": 4, "nll_first": 19.225295782089233, "top1_first": 0.0, "dists": [116, 458, 828, 481]}}, "secs": 16.2}
14
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:5", "src": "wiki", "start": 953599, "nll": 3.4007232189178467, "top1": 0.2001953125, "bytes": 957, "ids": 1024, "words": {"first": {"n": 426, "nll": 1423.1944303512573, "top1": 39.0, "n_rest": 368, "nll_rest": 1162.8737564086914, "top1_rest": 39.0, "n_first": 58, "nll_first": 260.320677280426, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 57, "nll": 207.97417831420898, "top1": 2.0, "n_rest": 50, "nll_rest": 161.34308338165283, "top1_rest": 2.0, "n_first": 7, "nll_first": 46.63109564781189, "top1_first": 0.0, "dists": [10, 19, 8, 40, 36, 54, 40]}, "repeat_earlier_chunk": {"n": 58, "nll": 218.80554389953613, "top1": 3.0, "n_rest": 49, "nll_rest": 189.74938488006592, "top1_rest": 1.0, "n_first": 9, "nll_first": 29.056156158447266, "top1_first": 2.0, "dists": [26, 37, 162, 162, 126, 122, 83, 254, 255]}}, "secs": 19.0}
15
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:6", "src": "wiki", "start": 1525956, "nll": 2.6147046089172363, "top1": 0.26953125, "bytes": 987, "ids": 1024, "words": {"first": {"n": 400, "nll": 1152.275281906128, "top1": 49.0, "n_rest": 341, "nll_rest": 923.2747392654419, "top1_rest": 47.0, "n_first": 59, "nll_first": 229.00053668022156, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 80, "nll": 237.4932918548584, "top1": 12.0, "n_rest": 70, "nll_rest": 193.70035934448242, "top1_rest": 12.0, "n_first": 10, "nll_first": 43.79293751716614, "top1_first": 0.0, "dists": [110, 194, 257, 465, 244, 451, 314, 558, 345, 257]}, "repeat_same_chunk": {"n": 15, "nll": 49.475486755371094, "top1": 2.0, "n_rest": 12, "nll_rest": 36.45866870880127, "top1_rest": 1.0, "n_first": 3, "nll_first": 13.016818523406982, "top1_first": 1.0, "dists": [12, 66, 28]}}, "secs": 14.8}
16
+ {"tag": "v4_77M", "kind": "valwin", "key": "wiki:7", "src": "wiki", "start": 1146729, "nll": 2.580843925476074, "top1": 0.2509765625, "bytes": 979, "ids": 1024, "words": {"first": {"n": 502, "nll": 1417.8399305343628, "top1": 73.0, "n_rest": 431, "nll_rest": 1162.322112083435, "top1_rest": 66.0, "n_first": 71, "nll_first": 255.51781916618347, "top1_first": 7.0, "dists": []}, "repeat_earlier_chunk": {"n": 76, "nll": 200.948805809021, "top1": 9.0, "n_rest": 65, "nll_rest": 165.11745643615723, "top1_rest": 8.0, "n_first": 11, "nll_first": 35.83134603500366, "top1_first": 1.0, "dists": [93, 58, 351, 102, 789, 439, 188, 362, 618, 267, 665]}, "repeat_same_chunk": {"n": 29, "nll": 80.02340126037598, "top1": 6.0, "n_rest": 25, "nll_rest": 63.407958984375, "top1_rest": 6.0, "n_first": 4, "nll_first": 16.615442752838135, "top1_first": 0.0, "dists": [48, 11, 73, 31]}}, "secs": 21.8}
17
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:0", "src": "tinystories", "start": 329278, "nll": 2.4354262351989746, "top1": 0.2890625, "bytes": 980, "ids": 1024, "words": {"first": {"n": 203, "nll": 579.379506111145, "top1": 27.0, "n_rest": 170, "nll_rest": 468.7633557319641, "top1_rest": 25.0, "n_first": 33, "nll_first": 110.61614227294922, "top1_first": 2.0, "dists": []}, "repeat_same_chunk": {"n": 44, "nll": 130.7485179901123, "top1": 3.0, "n_rest": 36, "nll_rest": 105.2839412689209, "top1_rest": 3.0, "n_first": 8, "nll_first": 25.464576959609985, "top1_first": 0.0, "dists": [13, 18, 53, 57, 11, 55, 63, 24]}, "repeat_earlier_chunk": {"n": 56, "nll": 168.00854206085205, "top1": 4.0, "n_rest": 46, "nll_rest": 131.64249324798584, "top1_rest": 4.0, "n_first": 10, "nll_first": 36.366047620773315, "top1_first": 0.0, "dists": [199, 166, 166, 230, 55, 34, 128, 80, 369, 539]}}, "secs": 14.0}
18
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:1", "src": "tinystories", "start": 283112, "nll": 2.379610300064087, "top1": 0.3193359375, "bytes": 983, "ids": 1024, "words": {"first": {"n": 232, "nll": 673.0936498641968, "top1": 31.0, "n_rest": 193, "nll_rest": 536.5984144210815, "top1_rest": 27.0, "n_first": 39, "nll_first": 136.49523746967316, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 76, "nll": 225.4645872116089, "top1": 8.0, "n_rest": 62, "nll_rest": 181.52783584594727, "top1_rest": 8.0, "n_first": 14, "nll_first": 43.93674874305725, "top1_first": 0.0, "dists": [67, 34, 273, 144, 164, 159, 31, 87, 179, 136, 104, 52, 242, 45]}, "repeat_same_chunk": {"n": 37, "nll": 105.09127235412598, "top1": 5.0, "n_rest": 30, "nll_rest": 86.11406135559082, "top1_rest": 5.0, "n_first": 7, "nll_first": 18.97720742225647, "top1_first": 0.0, "dists": [39, 12, 16, 56, 56, 73, 34]}}, "secs": 10.9}
19
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:2", "src": "tinystories", "start": 291597, "nll": 2.880237340927124, "top1": 0.2421875, "bytes": 979, "ids": 1024, "words": {"first": {"n": 176, "nll": 539.3450059890747, "top1": 21.0, "n_rest": 149, "nll_rest": 432.37042474746704, "top1_rest": 20.0, "n_first": 27, "nll_first": 106.97457218170166, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 31, "nll": 107.01949310302734, "top1": 1.0, "n_rest": 26, "nll_rest": 82.50194358825684, "top1_rest": 1.0, "n_first": 5, "nll_first": 24.517547845840454, "top1_first": 0.0, "dists": [157, 267, 70, 205, 693]}, "repeat_same_chunk": {"n": 11, "nll": 45.75023651123047, "top1": 1.0, "n_rest": 9, "nll_rest": 35.100897789001465, "top1_rest": 1.0, "n_first": 2, "nll_first": 10.649339199066162, "top1_first": 0.0, "dists": [60, 21]}}, "secs": 13.0}
20
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:3", "src": "tinystories", "start": 486973, "nll": 2.4182581901550293, "top1": 0.3125, "bytes": 984, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 104, "nll": 294.8602685928345, "top1": 17.0, "n_rest": 87, "nll_rest": 241.9588179588318, "top1_rest": 16.0, "n_first": 17, "nll_first": 52.901455879211426, "top1_first": 1.0, "dists": [75, 231, 230, 305, 230, 233, 556, 475, 173, 434, 585, 849, 848, 349, 672, 672, 223]}, "first": {"n": 174, "nll": 496.58488845825195, "top1": 24.0, "n_rest": 145, "nll_rest": 385.3331880569458, "top1_rest": 24.0, "n_first": 29, "nll_first": 111.25170540809631, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 13, "nll": 38.948845863342285, "top1": 2.0, "n_rest": 11, "nll_rest": 32.399399757385254, "top1_rest": 2.0, "n_first": 2, "nll_first": 6.549445390701294, "top1_first": 0.0, "dists": [15, 28]}}, "secs": 14.4}
21
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:4", "src": "tinystories", "start": 144438, "nll": 2.391533374786377, "top1": 0.3134765625, "bytes": 980, "ids": 1024, "words": {"first": {"n": 183, "nll": 509.4259657859802, "top1": 24.0, "n_rest": 152, "nll_rest": 407.6667671203613, "top1_rest": 22.0, "n_first": 31, "nll_first": 101.75920295715332, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 82, "nll": 244.33507537841797, "top1": 8.0, "n_rest": 69, "nll_rest": 200.79284477233887, "top1_rest": 8.0, "n_first": 13, "nll_first": 43.54223155975342, "top1_first": 0.0, "dists": [121, 201, 282, 245, 527, 354, 129, 436, 637, 396, 150, 102, 116]}, "repeat_same_chunk": {"n": 10, "nll": 25.782123565673828, "top1": 2.0, "n_rest": 8, "nll_rest": 19.464659690856934, "top1_rest": 2.0, "n_first": 2, "nll_first": 6.3174638748168945, "top1_first": 0.0, "dists": [43, 29]}}, "secs": 13.4}
22
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:5", "src": "tinystories", "start": 424885, "nll": 2.6319007873535156, "top1": 0.26171875, "bytes": 983, "ids": 1024, "words": {"first": {"n": 233, "nll": 679.1893281936646, "top1": 38.0, "n_rest": 196, "nll_rest": 546.6747274398804, "top1_rest": 34.0, "n_first": 37, "nll_first": 132.51459217071533, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 84, "nll": 274.40048122406006, "top1": 7.0, "n_rest": 71, "nll_rest": 225.2026081085205, "top1_rest": 7.0, "n_first": 13, "nll_first": 49.19787120819092, "top1_first": 0.0, "dists": [144, 98, 88, 84, 87, 100, 260, 597, 82, 621, 785, 164, 140]}, "repeat_same_chunk": {"n": 20, "nll": 65.91992950439453, "top1": 0.0, "n_rest": 17, "nll_rest": 53.202375411987305, "top1_rest": 0.0, "n_first": 3, "nll_first": 12.717556476593018, "top1_first": 0.0, "dists": [32, 52, 68]}}, "secs": 14.2}
23
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:6", "src": "tinystories", "start": 349383, "nll": 2.473635196685791, "top1": 0.294921875, "bytes": 982, "ids": 1024, "words": {"first": {"n": 190, "nll": 559.7957496643066, "top1": 21.0, "n_rest": 160, "nll_rest": 452.2109136581421, "top1_rest": 20.0, "n_first": 30, "nll_first": 107.58483505249023, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 55, "nll": 166.91499519348145, "top1": 8.0, "n_rest": 45, "nll_rest": 137.2094612121582, "top1_rest": 6.0, "n_first": 10, "nll_first": 29.70553469657898, "top1_first": 2.0, "dists": [100, 810, 139, 47, 143, 552, 494, 78, 940, 274]}, "repeat_same_chunk": {"n": 16, "nll": 55.449429512023926, "top1": 2.0, "n_rest": 13, "nll_rest": 44.988497734069824, "top1_rest": 2.0, "n_first": 3, "nll_first": 10.460931777954102, "top1_first": 0.0, "dists": [43, 57, 22]}}, "secs": 12.9}
24
+ {"tag": "v4_77M", "kind": "valwin", "key": "tinystories:7", "src": "tinystories", "start": 1426, "nll": 2.450115203857422, "top1": 0.275390625, "bytes": 983, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 56, "nll": 154.11316299438477, "top1": 6.0, "n_rest": 47, "nll_rest": 124.90487384796143, "top1_rest": 6.0, "n_first": 9, "nll_first": 29.208290576934814, "top1_first": 0.0, "dists": [63, 88, 248, 564, 556, 226, 164, 85, 170]}, "first": {"n": 251, "nll": 707.2238788604736, "top1": 29.0, "n_rest": 213, "nll_rest": 574.8370041847229, "top1_rest": 29.0, "n_first": 38, "nll_first": 132.3868763446808, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 12, "nll": 31.93007755279541, "top1": 1.0, "n_rest": 10, "nll_rest": 25.54957389831543, "top1_rest": 1.0, "n_first": 2, "nll_first": 6.38050103187561, "top1_first": 0.0, "dists": [93, 100]}}, "secs": 12.7}
25
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:0", "src": "pg19", "start": 560207, "nll": 2.646965265274048, "top1": 0.2724609375, "bytes": 979, "ids": 1024, "words": {"first": {"n": 379, "nll": 1140.0140924453735, "top1": 38.0, "n_rest": 324, "nll_rest": 940.3135385513306, "top1_rest": 36.0, "n_first": 55, "nll_first": 199.70055413246155, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 58, "nll": 179.5239963531494, "top1": 4.0, "n_rest": 47, "nll_rest": 128.26777839660645, "top1_rest": 4.0, "n_first": 11, "nll_first": 51.2562198638916, "top1_first": 0.0, "dists": [39, 76, 133, 125, 493, 125, 316, 301, 340, 274, 233]}, "repeat_same_chunk": {"n": 12, "nll": 34.50150680541992, "top1": 2.0, "n_rest": 10, "nll_rest": 24.675994873046875, "top1_rest": 2.0, "n_first": 2, "nll_first": 9.825510025024414, "top1_first": 0.0, "dists": [76, 85]}}, "secs": 11.9}
26
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:1", "src": "pg19", "start": 1218636, "nll": 2.621070146560669, "top1": 0.287109375, "bytes": 984, "ids": 1024, "words": {"first": {"n": 442, "nll": 1245.0533084869385, "top1": 79.0, "n_rest": 380, "nll_rest": 1009.3307723999023, "top1_rest": 74.0, "n_first": 62, "nll_first": 235.7225331068039, "top1_first": 5.0, "dists": []}, "repeat_same_chunk": {"n": 13, "nll": 36.57678413391113, "top1": 3.0, "n_rest": 11, "nll_rest": 29.25179100036621, "top1_rest": 3.0, "n_first": 2, "nll_first": 7.324992656707764, "top1_first": 0.0, "dists": [30, 96]}, "repeat_earlier_chunk": {"n": 41, "nll": 114.37235832214355, "top1": 6.0, "n_rest": 35, "nll_rest": 89.48648071289062, "top1_rest": 6.0, "n_first": 6, "nll_first": 24.88587522506714, "top1_first": 0.0, "dists": [314, 229, 250, 294, 187, 704]}}, "secs": 12.0}
27
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:2", "src": "pg19", "start": 787852, "nll": 2.749786376953125, "top1": 0.2265625, "bytes": 982, "ids": 1024, "words": {"first": {"n": 373, "nll": 1136.5850629806519, "top1": 29.0, "n_rest": 323, "nll_rest": 941.0381960868835, "top1_rest": 27.0, "n_first": 50, "nll_first": 195.54685616493225, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 114, "nll": 341.15659046173096, "top1": 9.0, "n_rest": 96, "nll_rest": 279.63633155822754, "top1_rest": 8.0, "n_first": 18, "nll_first": 61.52025771141052, "top1_first": 1.0, "dists": [192, 118, 230, 103, 184, 348, 333, 277, 262, 274, 44, 880, 302, 413, 151, 47, 705, 537]}, "repeat_same_chunk": {"n": 25, "nll": 73.15528869628906, "top1": 1.0, "n_rest": 21, "nll_rest": 60.29046821594238, "top1_rest": 1.0, "n_first": 4, "nll_first": 12.864821195602417, "top1_first": 0.0, "dists": [65, 75, 88, 45]}}, "secs": 16.0}
28
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:3", "src": "pg19", "start": 47735, "nll": 2.5388119220733643, "top1": 0.2841796875, "bytes": 984, "ids": 1024, "words": {"first": {"n": 412, "nll": 1227.9775495529175, "top1": 54.0, "n_rest": 348, "nll_rest": 989.1893138885498, "top1_rest": 48.0, "n_first": 64, "nll_first": 238.7882423400879, "top1_first": 6.0, "dists": []}, "repeat_earlier_chunk": {"n": 43, "nll": 122.5320930480957, "top1": 5.0, "n_rest": 36, "nll_rest": 95.4678053855896, "top1_rest": 5.0, "n_first": 7, "nll_first": 27.06428337097168, "top1_first": 0.0, "dists": [83, 314, 159, 99, 784, 581, 193]}}, "secs": 19.1}
29
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:4", "src": "pg19", "start": 1087144, "nll": 13.567157745361328, "top1": 0.0244140625, "bytes": 965, "ids": 1024, "words": {"first": {"n": 238, "nll": 1816.9221849441528, "top1": 21.0, "n_rest": 204, "nll_rest": 1369.4417324066162, "top1_rest": 21.0, "n_first": 34, "nll_first": 447.4804096221924, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 5, "nll": 99.01324462890625, "top1": 0.0, "n_rest": 4, "nll_rest": 78.75468444824219, "top1_rest": 0.0, "n_first": 1, "nll_first": 20.25855827331543, "top1_first": 0.0, "dists": [70]}}, "secs": 18.3}
30
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:5", "src": "pg19", "start": 1037065, "nll": 14.610223770141602, "top1": 0.015625, "bytes": 965, "ids": 1024, "words": {"first": {"n": 155, "nll": 1068.008560180664, "top1": 11.0, "n_rest": 132, "nll_rest": 812.4656572341919, "top1_rest": 10.0, "n_first": 23, "nll_first": 255.54290491342545, "top1_first": 1.0, "dists": []}}, "secs": 15.1}
31
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:6", "src": "pg19", "start": 1203245, "nll": 2.7426962852478027, "top1": 0.248046875, "bytes": 978, "ids": 1024, "words": {"first": {"n": 511, "nll": 1554.287880897522, "top1": 58.0, "n_rest": 440, "nll_rest": 1258.9288125038147, "top1_rest": 57.0, "n_first": 71, "nll_first": 295.35905718803406, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 62, "nll": 167.38145446777344, "top1": 6.0, "n_rest": 54, "nll_rest": 135.10097885131836, "top1_rest": 6.0, "n_first": 8, "nll_first": 32.28047013282776, "top1_first": 0.0, "dists": [407, 767, 150, 150, 150, 61, 658, 318]}}, "secs": 12.4}
32
+ {"tag": "v4_77M", "kind": "valwin", "key": "pg19:7", "src": "pg19", "start": 249660, "nll": 2.5364534854888916, "top1": 0.298828125, "bytes": 985, "ids": 1024, "words": {"first": {"n": 405, "nll": 1198.234263420105, "top1": 58.0, "n_rest": 345, "nll_rest": 984.9356861114502, "top1_rest": 56.0, "n_first": 60, "nll_first": 213.29858112335205, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 38, "nll": 115.27153301239014, "top1": 7.0, "n_rest": 32, "nll_rest": 97.37142658233643, "top1_rest": 7.0, "n_first": 6, "nll_first": 17.900104761123657, "top1_first": 0.0, "dists": [216, 226, 739, 81, 280, 1052]}, "repeat_same_chunk": {"n": 6, "nll": 18.686214447021484, "top1": 1.0, "n_rest": 5, "nll_rest": 14.874049186706543, "top1_rest": 1.0, "n_first": 1, "nll_first": 3.812167167663574, "top1_first": 0.0, "dists": [17]}}, "secs": 12.7}
33
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:fineweb_doc3", "decoder": "greedy", "case": "fineweb_doc3", "unique40": 9, "generated": "th Seres teres the | | ||||||||||||||||\n", "text": "th Seres teres the | | ||||||||||||||||\n", "real_word_rate": 1.0, "secs": 23.9, "exact": 2, "seqmatch": 0.225, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
34
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:wiki_doc3", "decoder": "greedy", "case": "wiki_doc3", "unique40": 9, "generated": "s an an an ale alin <B1>aliand an ale ale ", "text": "s an an an ale alin aliand an ale ale ", "real_word_rate": 0.8888888888888888, "secs": 22.2, "exact": 7, "seqmatch": 0.4, "true": "s are forest <B1>and shrubland, but it has "}
35
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:tinystories_doc3", "decoder": "greedy", "case": "tinystories_doc3", "unique40": 6, "generated": "n a and a a and and <B1>ande ande and and ", "text": "n a and a a and and ande ande and and ", "real_word_rate": 1.0, "secs": 22.1, "exact": 7, "seqmatch": 0.2, "true": "g, green thumb! <B1>It was so big, Bob had "}
36
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:The capital of France is", "decoder": "greedy", "case": "The capital of France is", "unique40": 9, "generated": " <B1>ande and Mind are and and <B1>are ande an", "text": " ande and Mind are and and are ande an", "real_word_rate": 1.0, "secs": 23.3}
37
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:Once upon a time", "decoder": "greedy", "case": "Once upon a time", "unique40": 8, "generated": " <B1>and and and bere and are <B1>ande and and", "text": " and and and bere and are ande and and", "real_word_rate": 1.0, "secs": 22.9}
38
+ {"tag": "v4_77M", "kind": "gen", "key": "greedy:Hello", "decoder": "greedy", "case": "Hello", "unique40": 11, "generated": "ur the <B1>whe whe whe are are and <B1>and and", "text": "ur the whe whe whe are are and and and", "real_word_rate": 0.7, "secs": 16.1}
39
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:fineweb_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "fineweb_doc3", "unique40": 16, "generated": "Jeere Suntof Seteane Stato <B1>Sche tandest", "text": "Jeere Suntof Seteane Stato Sche tandest", "real_word_rate": 0.0, "secs": 20.6, "exact": 4, "seqmatch": 0.2, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
40
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:wiki_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "wiki_doc3", "unique40": 14, "generated": "s e t al <B1>ofhe he ar atato arero hand it", "text": "s e t al ofhe he ar atato arero hand it", "real_word_rate": 0.625, "secs": 22.7, "exact": 5, "seqmatch": 0.325, "true": "s are forest <B1>and shrubland, but it has "}
41
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:tinystories_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "tinystories_doc3", "unique40": 12, "generated": "s le al ale berea s athe <B1>arere tande t", "text": "s le al ale berea s athe arere tande t", "real_word_rate": 0.5714285714285714, "secs": 19.3, "exact": 4, "seqmatch": 0.15, "true": "g, green thumb! <B1>It was so big, Bob had "}
42
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:The capital of France is", "decoder": "minp_T0.7_p0.1_ng4", "case": "The capital of France is", "unique40": 14, "generated": " <B1>whe wheromer be <B1>and ande bero tend s ", "text": " whe wheromer be and ande bero tend s ", "real_word_rate": 0.5714285714285714, "secs": 22.3}
43
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:Once upon a time", "decoder": "minp_T0.7_p0.1_ng4", "case": "Once upon a time", "unique40": 14, "generated": " <B1>whe wherome bre ar and be <B1>the thanes ", "text": " whe wherome bre ar and be the thanes ", "real_word_rate": 0.625, "secs": 20.5}
44
+ {"tag": "v4_77M", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:Hello", "decoder": "minp_T0.7_p0.1_ng4", "case": "Hello", "unique40": 11, "generated": " nd ther <B1>omerere an ande d hero than <B1>t", "text": " nd ther omerere an ande d hero than t", "real_word_rate": 0.7142857142857143, "secs": 19.3}
45
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:fineweb_doc3", "decoder": "beam8", "case": "fineweb_doc3", "unique40": 8, "generated": "thhed | ||||||||||||||||||\n<B3>|\n<B3>||\n<B3>||||\n", "text": "thhed | ||||||||||||||||||\n|\n||\n||||\n", "real_word_rate": 0.0, "secs": 71.9, "exact": 1, "seqmatch": 0.1, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
46
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:wiki_doc3", "decoder": "beam8", "case": "wiki_doc3", "unique40": 12, "generated": "s He He ale ale ale ande ande <B1>the are ", "text": "s He He ale ale ale ande ande the are ", "real_word_rate": 1.0, "secs": 67.0, "exact": 7, "seqmatch": 0.15, "true": "s are forest <B1>and shrubland, but it has "}
47
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:tinystories_doc3", "decoder": "beam8", "case": "tinystories_doc3", "unique40": 12, "generated": "s the the the <B1>Minde he he are are and ", "text": "s the the the Minde he he are are and ", "real_word_rate": 0.8888888888888888, "secs": 70.7, "exact": 6, "seqmatch": 0.3, "true": "g, green thumb! <B1>It was so big, Bob had "}
48
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:The capital of France is", "decoder": "beam8", "case": "The capital of France is", "unique40": 10, "generated": " and <B1>the thererere there <B1>where and are", "text": " and the thererere there where and are", "real_word_rate": 0.8571428571428571, "secs": 118.6}
49
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:Once upon a time", "decoder": "beam8", "case": "Once upon a time", "unique40": 10, "generated": " the <B1>the where whe ware <B1>there and the ", "text": " the the where whe ware there and the ", "real_word_rate": 0.875, "secs": 93.6}
50
+ {"tag": "v4_77M", "kind": "gen", "key": "beam8:Hello", "decoder": "beam8", "case": "Hello", "unique40": 14, "generated": "und th!<B2>\n<B3>Mind Mind and Mine Min Mind Mi", "text": "und th!\nMind Mind and Mine Min Mind Mi", "real_word_rate": 0.8888888888888888, "secs": 68.1}
51
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:0", "src": "fineweb", "start": 1769459, "nll": 15.756948471069336, "top1": 0.1171875, "bytes": 984, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 48, "nll": 874.7453422546387, "top1": 6.0, "n_rest": 41, "nll_rest": 760.3628063201904, "top1_rest": 5.0, "n_first": 7, "nll_first": 114.38252711296082, "top1_first": 1.0, "dists": [31, 151, 152, 101, 63, 859, 136]}, "first": {"n": 428, "nll": 5940.409152984619, "top1": 43.0, "n_rest": 367, "nll_rest": 4736.942716598511, "top1_rest": 39.0, "n_first": 61, "nll_first": 1203.4664351591491, "top1_first": 4.0, "dists": []}, "repeat_same_chunk": {"n": 15, "nll": 131.41901016235352, "top1": 1.0, "n_rest": 12, "nll_rest": 104.4215202331543, "top1_rest": 1.0, "n_first": 3, "nll_first": 26.99748659133911, "top1_first": 0.0, "dists": [15, 101, 36]}}, "secs": 13.9}
52
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:1", "src": "fineweb", "start": 1325000, "nll": 15.313251495361328, "top1": 0.095703125, "bytes": 987, "ids": 1024, "words": {"first": {"n": 398, "nll": 5780.209499359131, "top1": 30.0, "n_rest": 344, "nll_rest": 4428.51658821106, "top1_rest": 28.0, "n_first": 54, "nll_first": 1351.6929144486785, "top1_first": 2.0, "dists": []}, "repeat_same_chunk": {"n": 64, "nll": 1307.6209716796875, "top1": 1.0, "n_rest": 56, "nll_rest": 911.7147483825684, "top1_rest": 1.0, "n_first": 8, "nll_first": 395.9062204360962, "top1_first": 0.0, "dists": [17, 36, 19, 22, 10, 24, 47, 68]}, "repeat_earlier_chunk": {"n": 133, "nll": 1426.4736881256104, "top1": 13.0, "n_rest": 116, "nll_rest": 1145.9365196228027, "top1_rest": 13.0, "n_first": 17, "nll_first": 280.5371627807617, "top1_first": 0.0, "dists": [326, 70, 46, 440, 394, 115, 115, 94, 95, 210, 943, 88, 293, 296, 1030, 155, 314]}}, "secs": 10.0}
53
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:2", "src": "fineweb", "start": 1063260, "nll": 13.239995002746582, "top1": 0.13671875, "bytes": 985, "ids": 1024, "words": {"first": {"n": 442, "nll": 5141.101165771484, "top1": 43.0, "n_rest": 383, "nll_rest": 3847.619016647339, "top1_rest": 42.0, "n_first": 59, "nll_first": 1293.482151389122, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 102, "nll": 1108.2637176513672, "top1": 11.0, "n_rest": 88, "nll_rest": 786.7485065460205, "top1_rest": 11.0, "n_first": 14, "nll_first": 321.515202999115, "top1_first": 0.0, "dists": [111, 469, 408, 409, 408, 171, 138, 129, 48, 179, 321, 320, 313, 483]}, "repeat_same_chunk": {"n": 10, "nll": 79.64372253417969, "top1": 3.0, "n_rest": 8, "nll_rest": 34.54570960998535, "top1_rest": 3.0, "n_first": 2, "nll_first": 45.0980167388916, "top1_first": 0.0, "dists": [30, 30]}}, "secs": 10.1}
54
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:3", "src": "fineweb", "start": 561207, "nll": 10.545293807983398, "top1": 0.1318359375, "bytes": 986, "ids": 1024, "words": {"first": {"n": 478, "nll": 5273.002180099487, "top1": 57.0, "n_rest": 411, "nll_rest": 3891.786383152008, "top1_rest": 52.0, "n_first": 67, "nll_first": 1381.215843622016, "top1_first": 5.0, "dists": []}, "repeat_earlier_chunk": {"n": 47, "nll": 400.8048210144043, "top1": 4.0, "n_rest": 41, "nll_rest": 311.9561309814453, "top1_rest": 4.0, "n_first": 6, "nll_first": 88.84869575500488, "top1_first": 0.0, "dists": [70, 238, 185, 210, 155, 126]}, "repeat_same_chunk": {"n": 6, "nll": 31.794919967651367, "top1": 1.0, "n_rest": 5, "nll_rest": 27.702680587768555, "top1_rest": 1.0, "n_first": 1, "nll_first": 4.092238903045654, "top1_first": 0.0, "dists": [40]}}, "secs": 9.4}
55
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:4", "src": "fineweb", "start": 640343, "nll": 25.096651077270508, "top1": 0.0986328125, "bytes": 987, "ids": 1024, "words": {"first": {"n": 445, "nll": 11278.705154418945, "top1": 30.0, "n_rest": 388, "nll_rest": 9169.167892456055, "top1_rest": 30.0, "n_first": 57, "nll_first": 2109.537038087845, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 141, "nll": 2392.817470550537, "top1": 8.0, "n_rest": 125, "nll_rest": 1966.9755086898804, "top1_rest": 8.0, "n_first": 16, "nll_first": 425.841938495636, "top1_first": 0.0, "dists": [104, 196, 119, 189, 312, 107, 382, 59, 462, 100, 397, 440, 492, 457, 119, 532]}, "repeat_same_chunk": {"n": 8, "nll": 101.02178192138672, "top1": 1.0, "n_rest": 7, "nll_rest": 81.66072082519531, "top1_rest": 1.0, "n_first": 1, "nll_first": 19.361066818237305, "top1_first": 0.0, "dists": [29]}}, "secs": 10.6}
56
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:5", "src": "fineweb", "start": 85232, "nll": 11.30120849609375, "top1": 0.1435546875, "bytes": 986, "ids": 1024, "words": {"first": {"n": 461, "nll": 4852.407541275024, "top1": 50.0, "n_rest": 398, "nll_rest": 3955.46600151062, "top1_rest": 47.0, "n_first": 63, "nll_first": 896.9414874017239, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 136, "nll": 1401.825044631958, "top1": 19.0, "n_rest": 116, "nll_rest": 1164.2630577087402, "top1_rest": 15.0, "n_first": 20, "nll_first": 237.5619838219136, "top1_first": 4.0, "dists": [184, 185, 176, 177, 176, 188, 189, 319, 444, 271, 490, 179, 458, 213, 301, 301, 411, 21, 125, 125]}, "repeat_same_chunk": {"n": 8, "nll": 43.42076110839844, "top1": 2.0, "n_rest": 7, "nll_rest": 41.970420837402344, "top1_rest": 2.0, "n_first": 1, "nll_first": 1.4503419399261475, "top1_first": 0.0, "dists": [57]}}, "secs": 12.7}
57
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:6", "src": "fineweb", "start": 156513, "nll": 11.702402114868164, "top1": 0.1181640625, "bytes": 982, "ids": 1024, "words": {"first": {"n": 450, "nll": 4752.517448425293, "top1": 53.0, "n_rest": 385, "nll_rest": 3948.8354997634888, "top1_rest": 50.0, "n_first": 65, "nll_first": 803.6819711364806, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 29, "nll": 220.73028469085693, "top1": 4.0, "n_rest": 24, "nll_rest": 180.9090232849121, "top1_rest": 3.0, "n_first": 5, "nll_first": 39.821265280246735, "top1_first": 1.0, "dists": [317, 190, 243, 318, 1006]}}, "secs": 10.0}
58
+ {"tag": "v3_330000", "kind": "valwin", "key": "fineweb:7", "src": "fineweb", "start": 34380, "nll": 9.852768898010254, "top1": 0.158203125, "bytes": 984, "ids": 1024, "words": {"first": {"n": 434, "nll": 3893.2827281951904, "top1": 55.0, "n_rest": 372, "nll_rest": 3243.281898498535, "top1_rest": 47.0, "n_first": 62, "nll_first": 650.000833934173, "top1_first": 8.0, "dists": []}, "repeat_same_chunk": {"n": 6, "nll": 89.81285095214844, "top1": 1.0, "n_rest": 5, "nll_rest": 64.12689971923828, "top1_rest": 1.0, "n_first": 1, "nll_first": 25.685958862304688, "top1_first": 0.0, "dists": [26]}, "repeat_earlier_chunk": {"n": 43, "nll": 408.74455642700195, "top1": 4.0, "n_rest": 38, "nll_rest": 353.35507583618164, "top1_rest": 4.0, "n_first": 5, "nll_first": 55.38948726654053, "top1_first": 0.0, "dists": [227, 63, 443, 400, 478]}}, "secs": 9.4}
59
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:0", "src": "wiki", "start": 275510, "nll": 8.881473541259766, "top1": 0.14453125, "bytes": 980, "ids": 1024, "words": {"first": {"n": 461, "nll": 4758.790113449097, "top1": 50.0, "n_rest": 400, "nll_rest": 3951.1813735961914, "top1_rest": 47.0, "n_first": 61, "nll_first": 807.6087367886212, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 115, "nll": 851.4644966125488, "top1": 11.0, "n_rest": 98, "nll_rest": 687.4791431427002, "top1_rest": 10.0, "n_first": 17, "nll_first": 163.98536503314972, "top1_first": 1.0, "dists": [106, 83, 289, 123, 266, 266, 177, 162, 155, 711, 11, 571, 212, 166, 681, 42, 42]}, "repeat_same_chunk": {"n": 15, "nll": 105.02323913574219, "top1": 3.0, "n_rest": 13, "nll_rest": 93.97934341430664, "top1_rest": 3.0, "n_first": 2, "nll_first": 11.043899536132812, "top1_first": 0.0, "dists": [45, 32]}}, "secs": 10.2}
60
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:1", "src": "wiki", "start": 1278417, "nll": 17.132930755615234, "top1": 0.1083984375, "bytes": 979, "ids": 1024, "words": {"first": {"n": 361, "nll": 5444.297073364258, "top1": 27.0, "n_rest": 316, "nll_rest": 4566.1592445373535, "top1_rest": 25.0, "n_first": 45, "nll_first": 878.1377902700569, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 150, "nll": 1985.0805130004883, "top1": 16.0, "n_rest": 133, "nll_rest": 1784.7283973693848, "top1_rest": 15.0, "n_first": 17, "nll_first": 200.35214963555336, "top1_first": 1.0, "dists": [34, 114, 405, 87, 99, 415, 206, 206, 639, 186, 163, 339, 154, 309, 476, 22, 907]}, "repeat_same_chunk": {"n": 48, "nll": 767.5447273254395, "top1": 4.0, "n_rest": 42, "nll_rest": 686.7889099121094, "top1_rest": 3.0, "n_first": 6, "nll_first": 80.7558166384697, "top1_first": 1.0, "dists": [28, 26, 97, 31, 61, 51]}}, "secs": 10.3}
61
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:2", "src": "wiki", "start": 1020847, "nll": 22.370384216308594, "top1": 0.115234375, "bytes": 984, "ids": 1024, "words": {"first": {"n": 422, "nll": 7898.417766571045, "top1": 52.0, "n_rest": 361, "nll_rest": 5130.128273010254, "top1_rest": 52.0, "n_first": 61, "nll_first": 2768.2894752025604, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 54, "nll": 1148.3216934204102, "top1": 1.0, "n_rest": 46, "nll_rest": 607.898265838623, "top1_rest": 1.0, "n_first": 8, "nll_first": 540.4234247207642, "top1_first": 0.0, "dists": [140, 145, 52, 142, 134, 208, 242, 392]}, "repeat_same_chunk": {"n": 6, "nll": 84.20629119873047, "top1": 0.0, "n_rest": 5, "nll_rest": 74.0643081665039, "top1_rest": 0.0, "n_first": 1, "nll_first": 10.141982078552246, "top1_first": 0.0, "dists": [114]}}, "secs": 10.4}
62
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:3", "src": "wiki", "start": 1434803, "nll": 142.95423889160156, "top1": 0.0849609375, "bytes": 983, "ids": 1024, "words": {"first": {"n": 287, "nll": 30164.901428222656, "top1": 10.0, "n_rest": 245, "nll_rest": 19191.20366668701, "top1_rest": 10.0, "n_first": 42, "nll_first": 10973.697845458984, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 141, "nll": 12314.925506591797, "top1": 19.0, "n_rest": 121, "nll_rest": 7214.429265975952, "top1_rest": 19.0, "n_first": 20, "nll_first": 5100.4962158203125, "top1_first": 0.0, "dists": [124, 124, 150, 150, 370, 368, 465, 133, 189, 194, 314, 76, 121, 273, 179, 104, 382, 310, 135, 102]}, "repeat_same_chunk": {"n": 9, "nll": 1223.6611328125, "top1": 0.0, "n_rest": 8, "nll_rest": 849.2141723632812, "top1_rest": 0.0, "n_first": 1, "nll_first": 374.4470520019531, "top1_first": 0.0, "dists": [88]}}, "secs": 9.6}
63
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:4", "src": "wiki", "start": 791674, "nll": 31.967422485351562, "top1": 0.1015625, "bytes": 973, "ids": 1024, "words": {"first": {"n": 470, "nll": 11080.757789611816, "top1": 30.0, "n_rest": 407, "nll_rest": 8368.356053352356, "top1_rest": 29.0, "n_first": 63, "nll_first": 2712.4016400277615, "top1_first": 1.0, "dists": []}, "repeat_same_chunk": {"n": 5, "nll": 163.04360961914062, "top1": 1.0, "n_rest": 4, "nll_rest": 138.92535400390625, "top1_rest": 1.0, "n_first": 1, "nll_first": 24.11824607849121, "top1_first": 0.0, "dists": [18]}, "repeat_earlier_chunk": {"n": 23, "nll": 274.2801208496094, "top1": 3.0, "n_rest": 19, "nll_rest": 135.43457412719727, "top1_rest": 3.0, "n_first": 4, "nll_first": 138.8455457687378, "top1_first": 0.0, "dists": [116, 458, 828, 481]}}, "secs": 9.8}
64
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:5", "src": "wiki", "start": 953599, "nll": 128.05499267578125, "top1": 0.076171875, "bytes": 957, "ids": 1024, "words": {"first": {"n": 426, "nll": 42528.897872924805, "top1": 23.0, "n_rest": 368, "nll_rest": 31135.632598876953, "top1_rest": 23.0, "n_first": 58, "nll_first": 11393.26487159729, "top1_first": 0.0, "dists": []}, "repeat_same_chunk": {"n": 57, "nll": 6645.966705322266, "top1": 8.0, "n_rest": 50, "nll_rest": 4849.204345703125, "top1_rest": 8.0, "n_first": 7, "nll_first": 1796.7624702453613, "top1_first": 0.0, "dists": [10, 19, 8, 40, 36, 54, 40]}, "repeat_earlier_chunk": {"n": 58, "nll": 3725.648880004883, "top1": 4.0, "n_rest": 49, "nll_rest": 2605.561149597168, "top1_rest": 4.0, "n_first": 9, "nll_first": 1120.0877952575684, "top1_first": 0.0, "dists": [26, 37, 162, 162, 126, 122, 83, 254, 255]}}, "secs": 9.8}
65
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:6", "src": "wiki", "start": 1525956, "nll": 11.705906867980957, "top1": 0.107421875, "bytes": 987, "ids": 1024, "words": {"first": {"n": 400, "nll": 3626.4581909179688, "top1": 52.0, "n_rest": 341, "nll_rest": 2766.9585752487183, "top1_rest": 48.0, "n_first": 59, "nll_first": 859.499607488513, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 80, "nll": 654.3366050720215, "top1": 12.0, "n_rest": 70, "nll_rest": 510.07287788391113, "top1_rest": 11.0, "n_first": 10, "nll_first": 144.2637377679348, "top1_first": 1.0, "dists": [110, 194, 257, 465, 244, 451, 314, 558, 345, 257]}, "repeat_same_chunk": {"n": 15, "nll": 223.33541107177734, "top1": 1.0, "n_rest": 12, "nll_rest": 141.23533630371094, "top1_rest": 0.0, "n_first": 3, "nll_first": 82.10006731748581, "top1_first": 1.0, "dists": [12, 66, 28]}}, "secs": 10.9}
66
+ {"tag": "v3_330000", "kind": "valwin", "key": "wiki:7", "src": "wiki", "start": 1146729, "nll": 10.105022430419922, "top1": 0.1181640625, "bytes": 979, "ids": 1024, "words": {"first": {"n": 502, "nll": 4951.6168575286865, "top1": 49.0, "n_rest": 431, "nll_rest": 3943.182569503784, "top1_rest": 43.0, "n_first": 71, "nll_first": 1008.4343067072332, "top1_first": 6.0, "dists": []}, "repeat_earlier_chunk": {"n": 76, "nll": 588.228759765625, "top1": 6.0, "n_rest": 65, "nll_rest": 457.67808532714844, "top1_rest": 5.0, "n_first": 11, "nll_first": 130.55067619681358, "top1_first": 1.0, "dists": [93, 58, 351, 102, 789, 439, 188, 362, 618, 267, 665]}, "repeat_same_chunk": {"n": 29, "nll": 326.97485733032227, "top1": 4.0, "n_rest": 25, "nll_rest": 225.76952362060547, "top1_rest": 4.0, "n_first": 4, "nll_first": 101.20532608032227, "top1_first": 0.0, "dists": [48, 11, 73, 31]}}, "secs": 10.5}
67
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:0", "src": "tinystories", "start": 329278, "nll": 13.02122688293457, "top1": 0.1259765625, "bytes": 980, "ids": 1024, "words": {"first": {"n": 203, "nll": 2581.8721885681152, "top1": 27.0, "n_rest": 170, "nll_rest": 2189.4084453582764, "top1_rest": 26.0, "n_first": 33, "nll_first": 392.46376621723175, "top1_first": 1.0, "dists": []}, "repeat_same_chunk": {"n": 44, "nll": 561.1867580413818, "top1": 4.0, "n_rest": 36, "nll_rest": 462.1592273712158, "top1_rest": 4.0, "n_first": 8, "nll_first": 99.02751636505127, "top1_first": 0.0, "dists": [13, 18, 53, 57, 11, 55, 63, 24]}, "repeat_earlier_chunk": {"n": 56, "nll": 672.931282043457, "top1": 8.0, "n_rest": 46, "nll_rest": 551.4536199569702, "top1_rest": 5.0, "n_first": 10, "nll_first": 121.47767238179222, "top1_first": 3.0, "dists": [199, 166, 166, 230, 55, 34, 128, 80, 369, 539]}}, "secs": 10.1}
68
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:1", "src": "tinystories", "start": 283112, "nll": 15.608416557312012, "top1": 0.16015625, "bytes": 983, "ids": 1024, "words": {"first": {"n": 232, "nll": 3577.7997398376465, "top1": 25.0, "n_rest": 193, "nll_rest": 2806.722827911377, "top1_rest": 24.0, "n_first": 39, "nll_first": 771.0769775209192, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 76, "nll": 1122.7967262268066, "top1": 10.0, "n_rest": 62, "nll_rest": 926.6642990112305, "top1_rest": 10.0, "n_first": 14, "nll_first": 196.13244473934174, "top1_first": 0.0, "dists": [67, 34, 273, 144, 164, 159, 31, 87, 179, 136, 104, 52, 242, 45]}, "repeat_same_chunk": {"n": 37, "nll": 433.511661529541, "top1": 3.0, "n_rest": 30, "nll_rest": 362.40418815612793, "top1_rest": 3.0, "n_first": 7, "nll_first": 71.10747456550598, "top1_first": 0.0, "dists": [39, 12, 16, 56, 56, 73, 34]}}, "secs": 13.1}
69
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:2", "src": "tinystories", "start": 291597, "nll": 25.980396270751953, "top1": 0.1064453125, "bytes": 979, "ids": 1024, "words": {"first": {"n": 176, "nll": 3215.6992683410645, "top1": 22.0, "n_rest": 149, "nll_rest": 2487.0575275421143, "top1_rest": 22.0, "n_first": 27, "nll_first": 728.6417815685272, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 31, "nll": 564.0247268676758, "top1": 2.0, "n_rest": 26, "nll_rest": 484.71724700927734, "top1_rest": 2.0, "n_first": 5, "nll_first": 79.30749893188477, "top1_first": 0.0, "dists": [157, 267, 70, 205, 693]}, "repeat_same_chunk": {"n": 11, "nll": 160.91474533081055, "top1": 2.0, "n_rest": 9, "nll_rest": 145.43410873413086, "top1_rest": 2.0, "n_first": 2, "nll_first": 15.480633735656738, "top1_first": 0.0, "dists": [60, 21]}}, "secs": 12.2}
70
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:3", "src": "tinystories", "start": 486973, "nll": 13.570452690124512, "top1": 0.119140625, "bytes": 984, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 104, "nll": 1116.227255821228, "top1": 11.0, "n_rest": 87, "nll_rest": 926.4641237258911, "top1_rest": 11.0, "n_first": 17, "nll_first": 189.76311540603638, "top1_first": 0.0, "dists": [75, 231, 230, 305, 230, 233, 556, 475, 173, 434, 585, 849, 848, 349, 672, 672, 223]}, "first": {"n": 174, "nll": 1812.3643293380737, "top1": 23.0, "n_rest": 145, "nll_rest": 1410.1936044692993, "top1_rest": 22.0, "n_first": 29, "nll_first": 402.17071309685707, "top1_first": 1.0, "dists": []}, "repeat_same_chunk": {"n": 13, "nll": 130.06932830810547, "top1": 1.0, "n_rest": 11, "nll_rest": 102.53739547729492, "top1_rest": 1.0, "n_first": 2, "nll_first": 27.53193187713623, "top1_first": 0.0, "dists": [15, 28]}}, "secs": 11.4}
71
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:4", "src": "tinystories", "start": 144438, "nll": 15.221572875976562, "top1": 0.1279296875, "bytes": 980, "ids": 1024, "words": {"first": {"n": 183, "nll": 2160.679958343506, "top1": 24.0, "n_rest": 152, "nll_rest": 1633.0437455177307, "top1_rest": 24.0, "n_first": 31, "nll_first": 527.6362013816833, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 82, "nll": 715.8520240783691, "top1": 9.0, "n_rest": 69, "nll_rest": 574.1116275787354, "top1_rest": 8.0, "n_first": 13, "nll_first": 141.74037957191467, "top1_first": 1.0, "dists": [121, 201, 282, 245, 527, 354, 129, 436, 637, 396, 150, 102, 116]}, "repeat_same_chunk": {"n": 10, "nll": 96.93770217895508, "top1": 0.0, "n_rest": 8, "nll_rest": 68.53772354125977, "top1_rest": 0.0, "n_first": 2, "nll_first": 28.399977684020996, "top1_first": 0.0, "dists": [43, 29]}}, "secs": 11.0}
72
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:5", "src": "tinystories", "start": 424885, "nll": 13.2044038772583, "top1": 0.1201171875, "bytes": 983, "ids": 1024, "words": {"first": {"n": 233, "nll": 2204.444648742676, "top1": 24.0, "n_rest": 196, "nll_rest": 1676.6853504180908, "top1_rest": 22.0, "n_first": 37, "nll_first": 527.7592916391004, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 84, "nll": 907.9305381774902, "top1": 9.0, "n_rest": 71, "nll_rest": 700.5808773040771, "top1_rest": 9.0, "n_first": 13, "nll_first": 207.3496594429016, "top1_first": 0.0, "dists": [144, 98, 88, 84, 87, 100, 260, 597, 82, 621, 785, 164, 140]}, "repeat_same_chunk": {"n": 20, "nll": 193.83874320983887, "top1": 1.0, "n_rest": 17, "nll_rest": 170.9899024963379, "top1_rest": 1.0, "n_first": 3, "nll_first": 22.848830223083496, "top1_first": 0.0, "dists": [32, 52, 68]}}, "secs": 12.1}
73
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:6", "src": "tinystories", "start": 349383, "nll": 18.137928009033203, "top1": 0.1357421875, "bytes": 982, "ids": 1024, "words": {"first": {"n": 190, "nll": 2956.8887481689453, "top1": 23.0, "n_rest": 160, "nll_rest": 2408.113607406616, "top1_rest": 22.0, "n_first": 30, "nll_first": 548.7751212306321, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 55, "nll": 621.4233627319336, "top1": 6.0, "n_rest": 45, "nll_rest": 499.54564666748047, "top1_rest": 6.0, "n_first": 10, "nll_first": 121.87769508361816, "top1_first": 0.0, "dists": [100, 810, 139, 47, 143, 552, 494, 78, 940, 274]}, "repeat_same_chunk": {"n": 16, "nll": 198.4345588684082, "top1": 2.0, "n_rest": 13, "nll_rest": 139.67955780029297, "top1_rest": 2.0, "n_first": 3, "nll_first": 58.75499725341797, "top1_first": 0.0, "dists": [43, 57, 22]}}, "secs": 10.2}
74
+ {"tag": "v3_330000", "kind": "valwin", "key": "tinystories:7", "src": "tinystories", "start": 1426, "nll": 12.748541831970215, "top1": 0.125, "bytes": 983, "ids": 1024, "words": {"repeat_earlier_chunk": {"n": 56, "nll": 591.0711402893066, "top1": 7.0, "n_rest": 47, "nll_rest": 514.5140037536621, "top1_rest": 6.0, "n_first": 9, "nll_first": 76.55712090618908, "top1_first": 1.0, "dists": [63, 88, 248, 564, 556, 226, 164, 85, 170]}, "first": {"n": 251, "nll": 3108.495861053467, "top1": 28.0, "n_rest": 213, "nll_rest": 2548.9961919784546, "top1_rest": 27.0, "n_first": 38, "nll_first": 559.4996283352375, "top1_first": 1.0, "dists": []}, "repeat_same_chunk": {"n": 12, "nll": 226.12577056884766, "top1": 1.0, "n_rest": 10, "nll_rest": 187.1853485107422, "top1_rest": 1.0, "n_first": 2, "nll_first": 38.94040870666504, "top1_first": 0.0, "dists": [93, 100]}}, "secs": 9.9}
75
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:0", "src": "pg19", "start": 560207, "nll": 9.559804916381836, "top1": 0.1220703125, "bytes": 979, "ids": 1024, "words": {"first": {"n": 379, "nll": 3406.8210487365723, "top1": 47.0, "n_rest": 324, "nll_rest": 2788.5185899734497, "top1_rest": 41.0, "n_first": 55, "nll_first": 618.3024282379774, "top1_first": 6.0, "dists": []}, "repeat_earlier_chunk": {"n": 58, "nll": 630.4528999328613, "top1": 4.0, "n_rest": 47, "nll_rest": 397.36651611328125, "top1_rest": 4.0, "n_first": 11, "nll_first": 233.08636951446533, "top1_first": 0.0, "dists": [39, 76, 133, 125, 493, 125, 316, 301, 340, 274, 233]}, "repeat_same_chunk": {"n": 12, "nll": 102.2927131652832, "top1": 3.0, "n_rest": 10, "nll_rest": 61.257843017578125, "top1_rest": 3.0, "n_first": 2, "nll_first": 41.034868240356445, "top1_first": 0.0, "dists": [76, 85]}}, "secs": 10.0}
76
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:1", "src": "pg19", "start": 1218636, "nll": 12.867844581604004, "top1": 0.1123046875, "bytes": 984, "ids": 1024, "words": {"first": {"n": 442, "nll": 5488.786209106445, "top1": 46.0, "n_rest": 380, "nll_rest": 4515.269857406616, "top1_rest": 43.0, "n_first": 62, "nll_first": 973.5164082944393, "top1_first": 3.0, "dists": []}, "repeat_same_chunk": {"n": 13, "nll": 141.99031448364258, "top1": 0.0, "n_rest": 11, "nll_rest": 118.7864761352539, "top1_rest": 0.0, "n_first": 2, "nll_first": 23.203839778900146, "top1_first": 0.0, "dists": [30, 96]}, "repeat_earlier_chunk": {"n": 41, "nll": 558.6640205383301, "top1": 3.0, "n_rest": 35, "nll_rest": 462.69282150268555, "top1_rest": 3.0, "n_first": 6, "nll_first": 95.9712176322937, "top1_first": 0.0, "dists": [314, 229, 250, 294, 187, 704]}}, "secs": 12.1}
77
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:2", "src": "pg19", "start": 787852, "nll": 11.720149040222168, "top1": 0.1064453125, "bytes": 982, "ids": 1024, "words": {"first": {"n": 373, "nll": 4338.811096191406, "top1": 43.0, "n_rest": 323, "nll_rest": 3458.3941917419434, "top1_rest": 41.0, "n_first": 50, "nll_first": 880.4168638846604, "top1_first": 2.0, "dists": []}, "repeat_earlier_chunk": {"n": 114, "nll": 1014.7164611816406, "top1": 11.0, "n_rest": 96, "nll_rest": 807.3561210632324, "top1_rest": 10.0, "n_first": 18, "nll_first": 207.36035731434822, "top1_first": 1.0, "dists": [192, 118, 230, 103, 184, 348, 333, 277, 262, 274, 44, 880, 302, 413, 151, 47, 705, 537]}, "repeat_same_chunk": {"n": 25, "nll": 299.44977951049805, "top1": 1.0, "n_rest": 21, "nll_rest": 259.90087890625, "top1_rest": 1.0, "n_first": 4, "nll_first": 39.54888200759888, "top1_first": 0.0, "dists": [65, 75, 88, 45]}}, "secs": 12.2}
78
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:3", "src": "pg19", "start": 47735, "nll": 12.747751235961914, "top1": 0.1181640625, "bytes": 984, "ids": 1024, "words": {"first": {"n": 412, "nll": 5490.559698104858, "top1": 35.0, "n_rest": 348, "nll_rest": 4553.258403778076, "top1_rest": 32.0, "n_first": 64, "nll_first": 937.3012959808111, "top1_first": 3.0, "dists": []}, "repeat_earlier_chunk": {"n": 43, "nll": 530.3115406036377, "top1": 3.0, "n_rest": 36, "nll_rest": 461.20883560180664, "top1_rest": 3.0, "n_first": 7, "nll_first": 69.10269057750702, "top1_first": 0.0, "dists": [83, 314, 159, 99, 784, 581, 193]}}, "secs": 10.0}
79
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:4", "src": "pg19", "start": 1087144, "nll": 380.1514892578125, "top1": 0.0224609375, "bytes": 965, "ids": 1024, "words": {"first": {"n": 238, "nll": 41225.277893066406, "top1": 16.0, "n_rest": 204, "nll_rest": 27988.474990844727, "top1_rest": 16.0, "n_first": 34, "nll_first": 13236.802333831787, "top1_first": 0.0, "dists": []}, "repeat_earlier_chunk": {"n": 5, "nll": 1131.8343505859375, "top1": 0.0, "n_rest": 4, "nll_rest": 686.971923828125, "top1_rest": 0.0, "n_first": 1, "nll_first": 444.8623352050781, "top1_first": 0.0, "dists": [70]}}, "secs": 10.0}
80
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:5", "src": "pg19", "start": 1037065, "nll": 453.2767333984375, "top1": 0.0146484375, "bytes": 965, "ids": 1024, "words": {"first": {"n": 155, "nll": 28716.08428955078, "top1": 13.0, "n_rest": 132, "nll_rest": 19963.72998046875, "top1_rest": 13.0, "n_first": 23, "nll_first": 8752.354591369629, "top1_first": 0.0, "dists": []}}, "secs": 13.2}
81
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:6", "src": "pg19", "start": 1203245, "nll": 17.368982315063477, "top1": 0.095703125, "bytes": 978, "ids": 1024, "words": {"first": {"n": 511, "nll": 8481.714267730713, "top1": 28.0, "n_rest": 440, "nll_rest": 6549.012733459473, "top1_rest": 27.0, "n_first": 71, "nll_first": 1932.7015307677211, "top1_first": 1.0, "dists": []}, "repeat_earlier_chunk": {"n": 62, "nll": 1284.5741653442383, "top1": 4.0, "n_rest": 54, "nll_rest": 867.8119201660156, "top1_rest": 4.0, "n_first": 8, "nll_first": 416.76221466064453, "top1_first": 0.0, "dists": [407, 767, 150, 150, 150, 61, 658, 318]}}, "secs": 11.2}
82
+ {"tag": "v3_330000", "kind": "valwin", "key": "pg19:7", "src": "pg19", "start": 249660, "nll": 10.349115371704102, "top1": 0.1181640625, "bytes": 985, "ids": 1024, "words": {"first": {"n": 405, "nll": 4230.018337249756, "top1": 48.0, "n_rest": 345, "nll_rest": 3498.4150581359863, "top1_rest": 44.0, "n_first": 60, "nll_first": 731.6033085105446, "top1_first": 4.0, "dists": []}, "repeat_earlier_chunk": {"n": 38, "nll": 510.10086822509766, "top1": 3.0, "n_rest": 32, "nll_rest": 446.2513847351074, "top1_rest": 3.0, "n_first": 6, "nll_first": 63.8494930267334, "top1_first": 0.0, "dists": [216, 226, 739, 81, 280, 1052]}, "repeat_same_chunk": {"n": 6, "nll": 61.10390853881836, "top1": 0.0, "n_rest": 5, "nll_rest": 48.18918228149414, "top1_rest": 0.0, "n_first": 1, "nll_first": 12.914727210998535, "top1_first": 0.0, "dists": [17]}}, "secs": 10.6}
83
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:fineweb_doc3", "decoder": "greedy", "case": "fineweb_doc3", "unique40": 15, "generated": "t 'r sofont <B1>br aleator lioaleatior <B1>gae", "text": "t 'r sofont br aleator lioaleatior gae", "real_word_rate": 0.4, "secs": 21.5, "exact": 0, "seqmatch": 0.375, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
84
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:wiki_doc3", "decoder": "greedy", "case": "wiki_doc3", "unique40": 12, "generated": " tom t t tha oo acof chatheathe <B1>bytheab", "text": " tom t t tha oo acof chatheathe bytheab", "real_word_rate": 0.3333333333333333, "secs": 18.8, "exact": 2, "seqmatch": 0.25, "true": "s are forest <B1>and shrubland, but it has "}
85
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:tinystories_doc3", "decoder": "greedy", "case": "tinystories_doc3", "unique40": 15, "generated": "oetoebas?<B2><B2>2? event? wove ero?? bebebefr", "text": "oetoebas?2? event? wove ero?? bebebefr", "real_word_rate": 0.4, "secs": 18.1, "exact": 3, "seqmatch": 0.25, "true": "g, green thumb! <B1>It was so big, Bob had "}
86
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:The capital of France is", "decoder": "greedy", "case": "The capital of France is", "unique40": 13, "generated": "alotl<B1>troky attion<B1>anglngl. ong. <B1>oook a", "text": "alotltroky attionanglngl. ong. oook a", "real_word_rate": 0.0, "secs": 21.8}
87
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:Once upon a time", "decoder": "greedy", "case": "Once upon a time", "unique40": 14, "generated": "ttilltilet <B1>t..onon <B1>oon pk pt asaran <B1>p", "text": "ttilltilet t..onon oon pk pt asaran p", "real_word_rate": 0.3333333333333333, "secs": 19.2}
88
+ {"tag": "v3_330000", "kind": "gen", "key": "greedy:Hello", "decoder": "greedy", "case": "Hello", "unique40": 15, "generated": "g tttebenabten<B1>yl.oon as <B1>g'ablool aiale", "text": "g tttebenabtenyl.oon as g'ablool aiale", "real_word_rate": 0.2, "secs": 15.6}
89
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:fineweb_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "fineweb_doc3", "unique40": 17, "generated": "so'r wou t fr thamor <B1>troront aexcent fo", "text": "so'r wou t fr thamor troront aexcent fo", "real_word_rate": 0.42857142857142855, "secs": 16.3, "exact": 2, "seqmatch": 0.275, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
90
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:wiki_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "wiki_doc3", "unique40": 13, "generated": " gom t t acom of o ha thachacon <B1>theor t", "text": " gom t t acom of o ha thachacon theor t", "real_word_rate": 0.5, "secs": 16.6, "exact": 2, "seqmatch": 0.25, "true": "s are forest <B1>and shrubland, but it has "}
91
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:tinystories_doc3", "decoder": "minp_T0.7_p0.1_ng4", "case": "tinystories_doc3", "unique40": 11, "generated": "ontoekenenesonegisoone <B1>e <B1>aent asas as ", "text": "ontoekenenesonegisoone e aent asas as ", "real_word_rate": 0.25, "secs": 16.2, "exact": 5, "seqmatch": 0.3, "true": "g, green thumb! <B1>It was so big, Bob had "}
92
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:The capital of France is", "decoder": "minp_T0.7_p0.1_ng4", "case": "The capital of France is", "unique40": 18, "generated": "alotl<B1>troky atingg.<B2>fong. <B1>fofooa apugle", "text": "alotltroky atingg.fong. fofooa apugle", "real_word_rate": 0.0, "secs": 18.4}
93
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:Once upon a time", "decoder": "minp_T0.7_p0.1_ng4", "case": "Once upon a time", "unique40": 13, "generated": "ttilltilet <B1>t..onons <B1>aooon a abllegleag", "text": "ttilltilet t..onons aooon a abllegleag", "real_word_rate": 0.0, "secs": 18.0}
94
+ {"tag": "v3_330000", "kind": "gen", "key": "minp_T0.7_p0.1_ng4:Hello", "decoder": "minp_T0.7_p0.1_ng4", "case": "Hello", "unique40": 14, "generated": "g tttebenabten<B1>ytooo <B1>al al tlexag.oor a", "text": "g tttebenabtenytooo al al tlexag.oor a", "real_word_rate": 0.4, "secs": 15.2}
95
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:fineweb_doc3", "decoder": "beam8", "case": "fineweb_doc3", "unique40": 19, "generated": "t 's bthapoonc 'amol al <B1>ofofofir aleg a", "text": "t 's bthapoonc 'amol al ofofofir aleg a", "real_word_rate": 0.2, "secs": 75.3, "exact": 2, "seqmatch": 0.275, "true": "Who Won!\n<B3>is for all students. All <B1>stud"}
96
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:wiki_doc3", "decoder": "beam8", "case": "wiki_doc3", "unique40": 10, "generated": " tom t oom t a a cofrof thacheachathethe", "text": " tom t oom t a a cofrof thacheachathethe", "real_word_rate": 0.25, "secs": 76.1, "exact": 5, "seqmatch": 0.25, "true": "s are forest <B1>and shrubland, but it has "}
97
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:tinystories_doc3", "decoder": "beam8", "case": "tinystories_doc3", "unique40": 14, "generated": "oetoebas?<B2><B2>2? event? wove ero?? bebebro?", "text": "oetoebas?2? event? wove ero?? bebebro?", "real_word_rate": 0.4, "secs": 76.0, "exact": 3, "seqmatch": 0.25, "true": "g, green thumb! <B1>It was so big, Bob had "}
98
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:The capital of France is", "decoder": "beam8", "case": "The capital of France is", "unique40": 14, "generated": "atlrt<B1>tonackting <B1>uglol. g.ooook <B1>a angl", "text": "atlrttonackting uglol. g.ooook a angl", "real_word_rate": 0.0, "secs": 130.9}
99
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:Once upon a time", "decoder": "beam8", "case": "Once upon a time", "unique40": 12, "generated": "ttilltilet <B1>tionsonan <B1>oook k <B1>n tobllea", "text": "ttilltilet tionsonan oook k n tobllea", "real_word_rate": 0.0, "secs": 107.7}
100
+ {"tag": "v3_330000", "kind": "gen", "key": "beam8:Hello", "decoder": "beam8", "case": "Hello", "unique40": 14, "generated": "g tttebebenabe<B1>agyt. <B1>trooon all aslelg ", "text": "g tttebebenabeagyt. trooon all aslelg ", "real_word_rate": 0.25, "secs": 77.0}
scripts/v4_eval.py ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """v4 evaluation on real-text val data (inference only; fp32, fixed generation path; trainer untouched).
2
+
3
+ Per checkpoint (CKPT, TAG), resumable (records already in OUT are skipped), checkpointed per record:
4
+ * val windows: 8 random windows of 127+1024 ids from each per-source val file; TF NLL/top-1 on the last 1024 ids.
5
+ The same TF pass feeds the copy probe: words (ASCII letters, >=5) in the scored region are classed as
6
+ first mention / repeat whose previous occurrence is in the SAME 128-id grid chunk / repeat whose previous occurrence
7
+ is only in an EARLIER chunk (reachable only through the carry); NLL/top-1 over the word's bytes, and over bytes 2..n.
8
+ * generation: greedy, beam 8, min-p T0.7 p0.1 no-repeat-4 on 3 CONT val docs (256-id prefix, 40 ids) and 3 short
9
+ prompts, warm start = real 127-id tail of a val doc (ending <B6><EOS>).
10
+ """
11
+ import os, sys, json, time, re, difflib
12
+ import numpy as np, torch, torch.nn.functional as F
13
+ sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..'))
14
+ from fractus.fixed_generation import load_checkpoint, FixedGenerator, SEQ, show
15
+ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
16
+ from gen_best import Decoder
17
+
18
+ torch.set_num_threads(int(os.environ.get('THREADS', '7')))
19
+ CK, TAG = os.environ['CKPT'], os.environ['TAG']
20
+ OUT = os.environ.get('OUT', '/workspace/scratch/dec/v4_eval.jsonl')
21
+ VB = '/workspace/v4build'
22
+ SRC = ['fineweb', 'wiki', 'tinystories', 'pg19']
23
+ NW, W, L = int(os.environ.get('NWIN', 8)), 127, 1024
24
+ done = set()
25
+ if os.path.exists(OUT):
26
+ for l in open(OUT):
27
+ try: d = json.loads(l); done.add((d['tag'], d['kind'], d['key']))
28
+ except Exception: pass
29
+ def emit(r):
30
+ open(OUT, 'a').write(json.dumps(r, ensure_ascii=False) + '\n'); print(json.dumps(r, ensure_ascii=False)[:300], flush=True)
31
+ eng, cfg = load_checkpoint(CK, torch.float32); G = FixedGenerator(eng, warm=W); dec = Decoder(G)
32
+ words_ok = set(open('/workspace/words_alpha.txt').read().split())
33
+ val = {s: np.fromfile(f'{VB}/{s}_val.i16', dtype=np.int16).astype(np.int64) for s in SRC}
34
+
35
+ def word_classes(ctx, start):
36
+ """yield (class, [id positions of the word bytes]) for words whose first byte index >= start."""
37
+ pos = [i for i, t in enumerate(ctx) if t < 256]; b = bytes(ctx[i] for i in pos)
38
+ last = {}
39
+ for m in re.finditer(rb'[A-Za-z]{5,}', b):
40
+ w = m.group(); ids = [pos[k] for k in range(m.start(), m.end())]
41
+ prev = last.get(w); last[w] = ids[0]
42
+ if ids[0] < start or ids[0] == 0: continue
43
+ if prev is None: c = 'first'
44
+ elif prev // SEQ == ids[0] // SEQ: c = 'repeat_same_chunk'
45
+ else: c = 'repeat_earlier_chunk'
46
+ yield c, ids, (ids[0] - prev) if prev is not None else None
47
+
48
+ rng = np.random.default_rng(0)
49
+ for s in SRC:
50
+ a = val[s]; starts = rng.integers(0, len(a) - (W + L + 1), NW)
51
+ for wi, st in enumerate(starts):
52
+ key = f'{s}:{wi}'
53
+ if (TAG, 'valwin', key) in done: continue
54
+ t = time.time(); ctx = a[st:st + W + L].tolist()
55
+ lg = G.tf_logits(ctx)[:-1]; tgt = torch.tensor(ctx[1:])
56
+ nll = F.cross_entropy(lg, tgt, reduction='none'); t1 = (lg.argmax(-1) == tgt).float()
57
+ sc = slice(W - 1, None) # rows predicting ctx[W:]
58
+ acc = {}
59
+ for c, ids, dist in word_classes(ctx, W):
60
+ rows = [i - 1 for i in ids]; rest = rows[1:]
61
+ e = acc.setdefault(c, dict(n=0, nll=0.0, top1=0.0, n_rest=0, nll_rest=0.0, top1_rest=0.0, n_first=0, nll_first=0.0, top1_first=0.0, dists=[]))
62
+ e['n'] += len(rows); e['nll'] += float(nll[rows].sum()); e['top1'] += float(t1[rows].sum())
63
+ e['n_rest'] += len(rest); e['nll_rest'] += float(nll[rest].sum()); e['top1_rest'] += float(t1[rest].sum())
64
+ e['n_first'] += 1; e['nll_first'] += float(nll[rows[0]]); e['top1_first'] += float(t1[rows[0]])
65
+ if dist is not None: e['dists'].append(dist)
66
+ emit(dict(tag=TAG, kind='valwin', key=key, src=s, start=int(st), nll=float(nll[sc].mean()), top1=float(t1[sc].mean()),
67
+ bytes=int(sum(1 for x in ctx[W:] if x < 256)), ids=L, words=acc, secs=round(time.time() - t, 1)))
68
+
69
+ # ---- generation
70
+ fw = val['fineweb']; bos = np.flatnonzero(fw == 257)
71
+ WARM = fw[bos[1] - W:bos[1]].tolist() # real tail of val doc 0 (ends <B6><EOS>)
72
+ cont = []
73
+ for src in ('fineweb', 'wiki', 'tinystories'):
74
+ a = val[src]; b = np.flatnonzero(a == 257); lens = np.diff(np.append(b, len(a)))
75
+ k = int(np.flatnonzero(lens > 400)[3])
76
+ cont.append((f'{src}_doc{k}', a[b[k] - W:b[k]].tolist() + a[b[k]:b[k] + 256].tolist(), a[b[k] + 256:b[k] + 296].tolist()))
77
+ prompts = [(p, WARM + G.encode_prompt(p), None) for p in ['The capital of France is', 'Once upon a time', 'Hello']]
78
+ DECS = [('greedy', 'greedy', {}), ('minp_T0.7_p0.1_ng4', 'sample', dict(T=0.7, min_p=0.1, ngram=4)), ('beam8', 'beam', dict(W=8))]
79
+ for name, fn, kw in DECS:
80
+ for label, ctx, true in cont + prompts:
81
+ key = f'{name}:{label}'
82
+ if (TAG, 'gen', key) in done: continue
83
+ t = time.time(); gen = getattr(dec, fn)(ctx, n=40, **kw)
84
+ txt = bytes(i for i in gen if i < 256).decode('utf-8', 'replace'); ws = re.findall(r'[A-Za-z]{2,}', txt)
85
+ r = dict(tag=TAG, kind='gen', key=key, decoder=name, case=label, unique40=len(set(gen[:40])), generated=show(gen), text=txt,
86
+ real_word_rate=(sum(w.lower() in words_ok for w in ws) / len(ws)) if ws else None, secs=round(time.time() - t, 1))
87
+ if true is not None:
88
+ r.update(exact=sum(p == q for p, q in zip(gen, true)), seqmatch=difflib.SequenceMatcher(None, gen, true).ratio(), true=show(true))
89
+ emit(r)
90
+ print('ALLDONE', TAG, flush=True)
scripts/v4_eval_summary.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import json, sys, collections, numpy as np
2
+ P = sys.argv[1] if len(sys.argv) > 1 else '/workspace/scratch/dec/v4_eval.jsonl'
3
+ R = [json.loads(l) for l in open(P) if l.strip()]
4
+ tags = sorted({r['tag'] for r in R}, key=lambda t: (t != 'v3_330000', t))
5
+ out = []
6
+ out.append('### Val NLL per source (8 windows x 1024 scored ids each, 127-id context)\n')
7
+ out.append('| model | source | NLL nats/id (mean of windows) | median window NLL | top-1 | bits/byte |'); out.append('|---|---|---|---|---|---|')
8
+ for t in tags:
9
+ for s in ['fineweb', 'wiki', 'tinystories', 'pg19']:
10
+ w = [r for r in R if r['tag'] == t and r['kind'] == 'valwin' and r['src'] == s]
11
+ if not w: continue
12
+ nll = np.mean([x['nll'] for x in w]); tot = sum(x['nll'] * x['ids'] for x in w) / np.log(2); by = sum(x['bytes'] for x in w)
13
+ out.append(f"| {t} | {s} | {nll:.3f} | {np.median([x['nll'] for x in w]):.3f} | {np.mean([x['top1'] for x in w]):.3f} | {tot / by:.3f} |")
14
+ out.append('\n### Copy probe on real text (words of >=5 letters in the scored region; previous occurrence in the same 128-id grid chunk vs only in an earlier chunk)\n')
15
+ out.append('| model | class | words | NLL/id all bytes | top-1 all | NLL first byte | top-1 first byte | NLL bytes 2..n | top-1 bytes 2..n | median distance (ids) |')
16
+ out.append('|---|---|---|---|---|---|---|---|---|---|')
17
+ for t in tags:
18
+ acc = collections.defaultdict(lambda: collections.Counter()); D = collections.defaultdict(list)
19
+ for r in R:
20
+ if r['tag'] == t and r['kind'] == 'valwin':
21
+ for c, e in r['words'].items():
22
+ for k, v in e.items():
23
+ if k == 'dists': D[c] += v
24
+ else: acc[c][k] += v
25
+ for c in ['first', 'repeat_same_chunk', 'repeat_earlier_chunk']:
26
+ e = acc[c]
27
+ if not e['n']: continue
28
+ md = int(np.median(D[c])) if D[c] else '-'
29
+ out.append(f"| {t} | {c} | {e['n_first']} | {e['nll'] / e['n']:.3f} | {e['top1'] / e['n']:.3f} | {e['nll_first'] / e['n_first']:.3f} | {e['top1_first'] / e['n_first']:.3f} | "
30
+ f"{e['nll_rest'] / max(1, e['n_rest']):.3f} | {e['top1_rest'] / max(1, e['n_rest']):.3f} | {md} |")
31
+ out.append('\n### Generation (fp32 fixed path, warm = real 127-id val tail; CONT = 256-id val prefix, 40 ids)\n')
32
+ out.append('| model | decoder | CONT unique@40 | CONT exact /40 | CONT seqmatch | CONT real-word | prompt unique@40 | prompt real-word |')
33
+ out.append('|---|---|---|---|---|---|---|---|')
34
+ for t in tags:
35
+ for d in ['greedy', 'beam8', 'minp_T0.7_p0.1_ng4']:
36
+ g = [r for r in R if r['tag'] == t and r['kind'] == 'gen' and r['decoder'] == d]
37
+ if not g: continue
38
+ c = [x for x in g if 'exact' in x]; p = [x for x in g if 'exact' not in x]
39
+ f = lambda L, k: np.mean([x[k] or 0 for x in L]) if L else float('nan')
40
+ out.append(f"| {t} | {d} | {f(c,'unique40'):.1f} | {f(c,'exact'):.2f} | {f(c,'seqmatch'):.3f} | {f(c,'real_word_rate'):.2f} | {f(p,'unique40'):.1f} | {f(p,'real_word_rate'):.2f} |")
41
+ out.append('\n### Raw outputs (unedited, markers shown)\n')
42
+ for t in tags:
43
+ for d in ['greedy', 'beam8', 'minp_T0.7_p0.1_ng4']:
44
+ g = [r for r in R if r['tag'] == t and r['kind'] == 'gen' and r['decoder'] == d]
45
+ if not g: continue
46
+ out.append(f'**{t} / {d}**\n'); out.append('| case | generated | true |'); out.append('|---|---|---|')
47
+ for x in g:
48
+ esc = lambda s: s.replace('|', '\\|').replace('\n', '⏎').replace('`', "'")
49
+ out.append(f"| {x['case']} | `{esc(x['generated'])}` | " + (f"`{esc(x['true'])}` |" if 'true' in x else ' |'))
50
+ out.append('')
51
+ print('\n'.join(out))