Measure training-window flatness for stories-pilot-s00-hessian_norm-r03
Browse files- README.md +1 -1
- logs/all-model-milestone-release.log +1 -0
- logs/checkpoint-flatness-20261125T163331Z-stderr.log +60 -0
- logs/checkpoint-flatness-20261125T163331Z.log +2 -0
- publication.json +57 -47
- research/README.md +1 -1
- research/docs/hub/archive.md +1 -1
- research/docs/study.json +0 -0
- research/reports/flatness.md +2 -1
- research/reports/paper.pdf +0 -0
- research/reports/progress.md +1 -1
- research/results/stories-pilot-s00-hessian_norm-r03/flatness.json +250 -0
- research/src/thirdloss/checkpoint_flatness.py +18 -0
- research/src/thirdloss/cli.py +4 -3
- research/src/thirdloss/hybrid.py +2 -2
- research/src/thirdloss/study.py +17 -15
- research/tests/test_flatness.py +15 -0
README.md
CHANGED
|
@@ -93,7 +93,7 @@ Each row uses the same fixed training windows and probe directions within its st
|
|
| 93 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 94 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 95 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 96 |
-
| Squared Hessian norm (3%) | 2,097,152 | 0 |
|
| 97 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 98 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 99 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
|
|
|
| 93 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 94 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 95 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 96 |
+
| Squared Hessian norm (3%) | 2,097,152 | 0 | 15.901 (1/1) | 0.42958 (1/1) | Pending |
|
| 97 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 98 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 99 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
logs/all-model-milestone-release.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
|
logs/checkpoint-flatness-20261125T163331Z-stderr.log
CHANGED
|
@@ -312,3 +312,63 @@ findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
|
|
| 312 |
|
| 313 |
: 100%|##########| 668kB / 668kB
|
| 314 |
|
| 315 |
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 317 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 318 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 319 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 320 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 321 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 322 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 323 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 324 |
: 84%|########4 | 562kB / 668kB [A[A
|
|
|
|
|
|
|
| 325 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
|
|
|
| 326 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
| 327 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
| 328 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
| 329 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
| 330 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
| 331 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 332 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
: 100%|##########| 668kB / 668kB [A[A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
: 100%|##########| 668kB / 668kB
|
|
|
|
|
|
| 312 |
|
| 313 |
: 100%|##########| 668kB / 668kB
|
| 314 |
|
| 315 |
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
|
| 320 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 321 |
+
|
| 322 |
+
|
| 323 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 324 |
+
|
| 325 |
+
|
| 326 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 327 |
+
|
| 328 |
+
|
| 329 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 330 |
+
|
| 331 |
+
|
| 332 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 333 |
+
|
| 334 |
+
|
| 335 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 336 |
+
|
| 337 |
+
|
| 338 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 339 |
+
|
| 340 |
+
|
| 341 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 342 |
+
|
| 343 |
+
|
| 344 |
: 84%|########4 | 562kB / 668kB [A[A
|
| 345 |
+
|
| 346 |
+
|
| 347 |
: 100%|##########| 668kB / 668kB [A[A
|
| 348 |
+
|
| 349 |
+
|
| 350 |
+
|
| 351 |
: 100%|##########| 668kB / 668kB [A[A
|
| 352 |
+
|
| 353 |
+
|
| 354 |
: 100%|##########| 668kB / 668kB [A[A
|
| 355 |
+
|
| 356 |
+
|
| 357 |
: 100%|##########| 668kB / 668kB [A[A
|
| 358 |
+
|
| 359 |
+
|
| 360 |
: 100%|##########| 668kB / 668kB [A[A
|
| 361 |
+
|
| 362 |
+
|
| 363 |
: 100%|##########| 668kB / 668kB [A[A
|
| 364 |
+
|
| 365 |
+
|
| 366 |
: 100%|##########| 668kB / 668kB [A[A
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
|
| 375 |
: 100%|##########| 668kB / 668kB [A[A
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
|
| 381 |
: 100%|##########| 668kB / 668kB [A[A
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
|
| 387 |
: 100%|##########| 668kB / 668kB [A[A
|
| 388 |
+
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
|
| 394 |
: 100%|##########| 668kB / 668kB
|
| 395 |
+
findfont: Failed to find font weight semibold for DejaVu Sans, now using 700.
|
logs/checkpoint-flatness-20261125T163331Z.log
CHANGED
|
@@ -12,3 +12,5 @@
|
|
| 12 |
2026-11-25T16:49:22+00:00 abstracts-pilot-s00-trace-r01-fp64 width=19.7509765625 RMS curvature=1.18181
|
| 13 |
2026-11-25T16:49:45+00:00 Measuring checkpoint flatness for abstracts-pilot-s00-third-r01-fp64
|
| 14 |
2026-11-25T16:52:21+00:00 abstracts-pilot-s00-third-r01-fp64 width=19.921875 RMS curvature=0.582266
|
|
|
|
|
|
|
|
|
| 12 |
2026-11-25T16:49:22+00:00 abstracts-pilot-s00-trace-r01-fp64 width=19.7509765625 RMS curvature=1.18181
|
| 13 |
2026-11-25T16:49:45+00:00 Measuring checkpoint flatness for abstracts-pilot-s00-third-r01-fp64
|
| 14 |
2026-11-25T16:52:21+00:00 abstracts-pilot-s00-third-r01-fp64 width=19.921875 RMS curvature=0.582266
|
| 15 |
+
2026-11-25T16:52:46+00:00 Measuring checkpoint flatness for stories-pilot-s00-hessian_norm-r03
|
| 16 |
+
2026-11-25T16:52:54+00:00 stories-pilot-s00-hessian_norm-r03 width=15.901123046875 RMS curvature=0.429575
|
publication.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378",
|
| 3 |
-
"git_revision": "
|
| 4 |
"repositories": {
|
| 5 |
"BurnyCoder/thirdloss-arxiv-abstracts-2024": {
|
| 6 |
"files": {
|
|
@@ -91,12 +91,12 @@
|
|
| 91 |
"size": 9809
|
| 92 |
},
|
| 93 |
"study.json": {
|
| 94 |
-
"git_blob": "
|
| 95 |
-
"sha256": "
|
| 96 |
-
"size":
|
| 97 |
}
|
| 98 |
},
|
| 99 |
-
"revision": "
|
| 100 |
"type": "space"
|
| 101 |
},
|
| 102 |
"BurnyCoder/thirdloss-pythia-410m-adapters": {
|
|
@@ -1419,9 +1419,9 @@
|
|
| 1419 |
"BurnyCoder/thirdloss-study": {
|
| 1420 |
"files": {
|
| 1421 |
"README.md": {
|
| 1422 |
-
"git_blob": "
|
| 1423 |
-
"sha256": "
|
| 1424 |
-
"size":
|
| 1425 |
},
|
| 1426 |
"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {
|
| 1427 |
"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",
|
|
@@ -1503,6 +1503,11 @@
|
|
| 1503 |
"sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6",
|
| 1504 |
"size": 79
|
| 1505 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1506 |
"logs/backfill-first-adapter.log": {
|
| 1507 |
"git_blob": "1a3a93a4c8f183b4dd24d429880022f4e6410290",
|
| 1508 |
"sha256": "2088274297f663dab5fa0b48e33456396ee7946758ba91f8bd96cb1718ac3198",
|
|
@@ -1514,14 +1519,14 @@
|
|
| 1514 |
"size": 164140
|
| 1515 |
},
|
| 1516 |
"logs/checkpoint-flatness-20261125T163331Z-stderr.log": {
|
| 1517 |
-
"git_blob": "
|
| 1518 |
-
"sha256": "
|
| 1519 |
-
"size":
|
| 1520 |
},
|
| 1521 |
"logs/checkpoint-flatness-20261125T163331Z.log": {
|
| 1522 |
-
"git_blob": "
|
| 1523 |
-
"sha256": "
|
| 1524 |
-
"size":
|
| 1525 |
},
|
| 1526 |
"logs/dashboard-20261125T151603Z-errors.log": {
|
| 1527 |
"git_blob": "05368bd6bcb80dae3bb7fee1ce931ef41f1811fe",
|
|
@@ -2009,9 +2014,9 @@
|
|
| 2009 |
"size": 786
|
| 2010 |
},
|
| 2011 |
"research/README.md": {
|
| 2012 |
-
"git_blob": "
|
| 2013 |
-
"sha256": "
|
| 2014 |
-
"size":
|
| 2015 |
},
|
| 2016 |
"research/docs/data.md": {
|
| 2017 |
"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",
|
|
@@ -2064,9 +2069,9 @@
|
|
| 2064 |
"size": 1583
|
| 2065 |
},
|
| 2066 |
"research/docs/hub/archive.md": {
|
| 2067 |
-
"git_blob": "
|
| 2068 |
-
"sha256": "
|
| 2069 |
-
"size":
|
| 2070 |
},
|
| 2071 |
"research/docs/hub/space.md": {
|
| 2072 |
"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",
|
|
@@ -2089,9 +2094,9 @@
|
|
| 2089 |
"size": 9578
|
| 2090 |
},
|
| 2091 |
"research/docs/study.json": {
|
| 2092 |
-
"git_blob": "
|
| 2093 |
-
"sha256": "
|
| 2094 |
-
"size":
|
| 2095 |
},
|
| 2096 |
"research/docs/third-derivative-penalty.md": {
|
| 2097 |
"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",
|
|
@@ -2549,9 +2554,9 @@
|
|
| 2549 |
"size": 236
|
| 2550 |
},
|
| 2551 |
"research/reports/flatness.md": {
|
| 2552 |
-
"git_blob": "
|
| 2553 |
-
"sha256": "
|
| 2554 |
-
"size":
|
| 2555 |
},
|
| 2556 |
"research/reports/hybrid/preregistration.md": {
|
| 2557 |
"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",
|
|
@@ -2569,9 +2574,9 @@
|
|
| 2569 |
"size": 7290
|
| 2570 |
},
|
| 2571 |
"research/reports/paper.pdf": {
|
| 2572 |
-
"git_blob": "
|
| 2573 |
-
"sha256": "
|
| 2574 |
-
"size":
|
| 2575 |
},
|
| 2576 |
"research/reports/plan.md": {
|
| 2577 |
"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",
|
|
@@ -2589,8 +2594,8 @@
|
|
| 2589 |
"size": 5234
|
| 2590 |
},
|
| 2591 |
"research/reports/progress.md": {
|
| 2592 |
-
"git_blob": "
|
| 2593 |
-
"sha256": "
|
| 2594 |
"size": 2289
|
| 2595 |
},
|
| 2596 |
"research/reports/reviews/adapter-verification.md": {
|
|
@@ -3903,6 +3908,11 @@
|
|
| 3903 |
"sha256": "f8c9194caa9b79f5fa13cb9373ffc3091cf772b9a90e976f31c62135c0181239",
|
| 3904 |
"size": 35148
|
| 3905 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3906 |
"research/results/stories-pilot-s00-hessian_norm-r03/samples.jsonl": {
|
| 3907 |
"git_blob": "10d0897b7d1960b108d53d8f5630d783d19ae2fa",
|
| 3908 |
"sha256": "113d594043eaa24be8252594c9e5dbba5e99dfbfd195e6df4cad6c610dc03082",
|
|
@@ -4144,14 +4154,14 @@
|
|
| 4144 |
"size": 9767
|
| 4145 |
},
|
| 4146 |
"research/src/thirdloss/checkpoint_flatness.py": {
|
| 4147 |
-
"git_blob": "
|
| 4148 |
-
"sha256": "
|
| 4149 |
-
"size":
|
| 4150 |
},
|
| 4151 |
"research/src/thirdloss/cli.py": {
|
| 4152 |
-
"git_blob": "
|
| 4153 |
-
"sha256": "
|
| 4154 |
-
"size":
|
| 4155 |
},
|
| 4156 |
"research/src/thirdloss/data.py": {
|
| 4157 |
"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",
|
|
@@ -4179,9 +4189,9 @@
|
|
| 4179 |
"size": 13687
|
| 4180 |
},
|
| 4181 |
"research/src/thirdloss/hybrid.py": {
|
| 4182 |
-
"git_blob": "
|
| 4183 |
-
"sha256": "
|
| 4184 |
-
"size":
|
| 4185 |
},
|
| 4186 |
"research/src/thirdloss/hybrid_results.py": {
|
| 4187 |
"git_blob": "751742c1cb1ead31b4940e9c3b0c98a9c9fc17d4",
|
|
@@ -4269,9 +4279,9 @@
|
|
| 4269 |
"size": 2205
|
| 4270 |
},
|
| 4271 |
"research/src/thirdloss/study.py": {
|
| 4272 |
-
"git_blob": "
|
| 4273 |
-
"sha256": "
|
| 4274 |
-
"size":
|
| 4275 |
},
|
| 4276 |
"research/src/thirdloss/train.py": {
|
| 4277 |
"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",
|
|
@@ -4309,9 +4319,9 @@
|
|
| 4309 |
"size": 16607
|
| 4310 |
},
|
| 4311 |
"research/tests/test_flatness.py": {
|
| 4312 |
-
"git_blob": "
|
| 4313 |
-
"sha256": "
|
| 4314 |
-
"size":
|
| 4315 |
},
|
| 4316 |
"research/tests/test_hub_archive.py": {
|
| 4317 |
"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4",
|
|
@@ -4393,5 +4403,5 @@
|
|
| 4393 |
"type": "dataset"
|
| 4394 |
}
|
| 4395 |
},
|
| 4396 |
-
"verified_at": "2026-11-25T16:
|
| 4397 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"collection": "BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378",
|
| 3 |
+
"git_revision": "44dfde83adcc4e011df6e0c81f8b47697d7d8c52",
|
| 4 |
"repositories": {
|
| 5 |
"BurnyCoder/thirdloss-arxiv-abstracts-2024": {
|
| 6 |
"files": {
|
|
|
|
| 91 |
"size": 9809
|
| 92 |
},
|
| 93 |
"study.json": {
|
| 94 |
+
"git_blob": "f26fbdec6abbb9af70e890ef9ab4728afb53f661",
|
| 95 |
+
"sha256": "3a2b7b973917c81185cdd7ba82588190f9ea5910d90474a2e9a88c2b493e5672",
|
| 96 |
+
"size": 2503781
|
| 97 |
}
|
| 98 |
},
|
| 99 |
+
"revision": "86353631f7f61985cf68fb2749545b49023a285c",
|
| 100 |
"type": "space"
|
| 101 |
},
|
| 102 |
"BurnyCoder/thirdloss-pythia-410m-adapters": {
|
|
|
|
| 1419 |
"BurnyCoder/thirdloss-study": {
|
| 1420 |
"files": {
|
| 1421 |
"README.md": {
|
| 1422 |
+
"git_blob": "918595c0fba5e932a16c91a6cb86af669cda2ced",
|
| 1423 |
+
"sha256": "ca1c9610dd0a0d8bf041589c23a0bf81fd801af159c7d52a23838b06f38cd71a",
|
| 1424 |
+
"size": 23619
|
| 1425 |
},
|
| 1426 |
"logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl": {
|
| 1427 |
"git_blob": "7afe7d20a699dfd5a611daca6298f2fa091c694c",
|
|
|
|
| 1503 |
"sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6",
|
| 1504 |
"size": 79
|
| 1505 |
},
|
| 1506 |
+
"logs/all-model-milestone-release.log": {
|
| 1507 |
+
"git_blob": "37bbb4bdbd164007d9e8e84ddbdb5e73b2a11e1d",
|
| 1508 |
+
"sha256": "2ae7e37a0d60013de1b3d6870314f24554d6f4af83d0ce06b372b1eed3a9b1c6",
|
| 1509 |
+
"size": 79
|
| 1510 |
+
},
|
| 1511 |
"logs/backfill-first-adapter.log": {
|
| 1512 |
"git_blob": "1a3a93a4c8f183b4dd24d429880022f4e6410290",
|
| 1513 |
"sha256": "2088274297f663dab5fa0b48e33456396ee7946758ba91f8bd96cb1718ac3198",
|
|
|
|
| 1519 |
"size": 164140
|
| 1520 |
},
|
| 1521 |
"logs/checkpoint-flatness-20261125T163331Z-stderr.log": {
|
| 1522 |
+
"git_blob": "855ca87ab4230a88241a64be15bcefcf12426533",
|
| 1523 |
+
"sha256": "615f2bd55bbd9b049fa0bcdd7f0eeb3b738e2da29e8d9c008ee0951a2da68140",
|
| 1524 |
+
"size": 27841
|
| 1525 |
},
|
| 1526 |
"logs/checkpoint-flatness-20261125T163331Z.log": {
|
| 1527 |
+
"git_blob": "89b0fb8d3dfde475c05f94a94ed8f4cd69afa0ab",
|
| 1528 |
+
"sha256": "d4684c5b7fecc7771a6818da343a4995b4be8da29b0da0f33a848315812b69c5",
|
| 1529 |
+
"size": 1489
|
| 1530 |
},
|
| 1531 |
"logs/dashboard-20261125T151603Z-errors.log": {
|
| 1532 |
"git_blob": "05368bd6bcb80dae3bb7fee1ce931ef41f1811fe",
|
|
|
|
| 2014 |
"size": 786
|
| 2015 |
},
|
| 2016 |
"research/README.md": {
|
| 2017 |
+
"git_blob": "f628fdce0d718416b336c900dcbd9af52f29c40b",
|
| 2018 |
+
"sha256": "7941d9028496fecaaf92c31964432815085f6aa67ce6d6ea341136fd4952c05d",
|
| 2019 |
+
"size": 37156
|
| 2020 |
},
|
| 2021 |
"research/docs/data.md": {
|
| 2022 |
"git_blob": "1d0a74102cee4ed06b783085ca2ce823c6bf3a42",
|
|
|
|
| 2069 |
"size": 1583
|
| 2070 |
},
|
| 2071 |
"research/docs/hub/archive.md": {
|
| 2072 |
+
"git_blob": "918595c0fba5e932a16c91a6cb86af669cda2ced",
|
| 2073 |
+
"sha256": "ca1c9610dd0a0d8bf041589c23a0bf81fd801af159c7d52a23838b06f38cd71a",
|
| 2074 |
+
"size": 23619
|
| 2075 |
},
|
| 2076 |
"research/docs/hub/space.md": {
|
| 2077 |
"git_blob": "156f128287f1772dc3f22b423fbfb268f53b0136",
|
|
|
|
| 2094 |
"size": 9578
|
| 2095 |
},
|
| 2096 |
"research/docs/study.json": {
|
| 2097 |
+
"git_blob": "f26fbdec6abbb9af70e890ef9ab4728afb53f661",
|
| 2098 |
+
"sha256": "3a2b7b973917c81185cdd7ba82588190f9ea5910d90474a2e9a88c2b493e5672",
|
| 2099 |
+
"size": 2503781
|
| 2100 |
},
|
| 2101 |
"research/docs/third-derivative-penalty.md": {
|
| 2102 |
"git_blob": "ef2f9eaf958073e25771c60e97a4ce10b2a1b687",
|
|
|
|
| 2554 |
"size": 236
|
| 2555 |
},
|
| 2556 |
"research/reports/flatness.md": {
|
| 2557 |
+
"git_blob": "b976319015260d8ead16804d86c7a59fc89d0cd1",
|
| 2558 |
+
"sha256": "e1c1b2bad16d530bc8588e0677d7e9ed75eb9fd0ea8025ee888d7dd4d5d82950",
|
| 2559 |
+
"size": 8124
|
| 2560 |
},
|
| 2561 |
"research/reports/hybrid/preregistration.md": {
|
| 2562 |
"git_blob": "0729e47d30933f401253bf21feac164c0217f7b4",
|
|
|
|
| 2574 |
"size": 7290
|
| 2575 |
},
|
| 2576 |
"research/reports/paper.pdf": {
|
| 2577 |
+
"git_blob": "dc4886cfd2d17842f79070f2294bc40c9867ab4a",
|
| 2578 |
+
"sha256": "37bf1fafab7402b74e5b9f90fd7fd8b100f2983a8b6936e82b0a3abd3ed24979",
|
| 2579 |
+
"size": 667966
|
| 2580 |
},
|
| 2581 |
"research/reports/plan.md": {
|
| 2582 |
"git_blob": "d15ec7b2f2324e3aedb389d2fd95208a31978596",
|
|
|
|
| 2594 |
"size": 5234
|
| 2595 |
},
|
| 2596 |
"research/reports/progress.md": {
|
| 2597 |
+
"git_blob": "8e936732664cc86f763a5ca13b0835308143377c",
|
| 2598 |
+
"sha256": "05b27d780b65bdf25be902dc074bda460bfb98a596df8fad9631ca01f602f7a0",
|
| 2599 |
"size": 2289
|
| 2600 |
},
|
| 2601 |
"research/reports/reviews/adapter-verification.md": {
|
|
|
|
| 3908 |
"sha256": "f8c9194caa9b79f5fa13cb9373ffc3091cf772b9a90e976f31c62135c0181239",
|
| 3909 |
"size": 35148
|
| 3910 |
},
|
| 3911 |
+
"research/results/stories-pilot-s00-hessian_norm-r03/flatness.json": {
|
| 3912 |
+
"git_blob": "783964bb15448278f850211e997cfffaf5f85504",
|
| 3913 |
+
"sha256": "e2c571793377d7293ff7c49299e2a9d86c5bdb81afd79cb2aa14b60d0589ebdd",
|
| 3914 |
+
"size": 5869
|
| 3915 |
+
},
|
| 3916 |
"research/results/stories-pilot-s00-hessian_norm-r03/samples.jsonl": {
|
| 3917 |
"git_blob": "10d0897b7d1960b108d53d8f5630d783d19ae2fa",
|
| 3918 |
"sha256": "113d594043eaa24be8252594c9e5dbba5e99dfbfd195e6df4cad6c610dc03082",
|
|
|
|
| 4154 |
"size": 9767
|
| 4155 |
},
|
| 4156 |
"research/src/thirdloss/checkpoint_flatness.py": {
|
| 4157 |
+
"git_blob": "9ab5da02f241e3c987cef29c668b056ad115e6b2",
|
| 4158 |
+
"sha256": "c17dae2fef3fb7b9730c4bdcd2d3de4462160e0d00a5478b472c6080e5b4db0f",
|
| 4159 |
+
"size": 10026
|
| 4160 |
},
|
| 4161 |
"research/src/thirdloss/cli.py": {
|
| 4162 |
+
"git_blob": "fa11ccb908839f87c184b6b2673880828b468ebd",
|
| 4163 |
+
"sha256": "f6f01ab3baff1e2ba1040e93d2e105b1961dd8a3d138584d11a463eb49b95f1d",
|
| 4164 |
+
"size": 8095
|
| 4165 |
},
|
| 4166 |
"research/src/thirdloss/data.py": {
|
| 4167 |
"git_blob": "9b06438a0bce64f8d491cd65156ebe8aa04e8916",
|
|
|
|
| 4189 |
"size": 13687
|
| 4190 |
},
|
| 4191 |
"research/src/thirdloss/hybrid.py": {
|
| 4192 |
+
"git_blob": "9999fd6e162e0093c430b24e0329cd114efc475c",
|
| 4193 |
+
"sha256": "c17935d62e457fa0fd8f7ea2a2e6edec43d824ec9e3b58c1f6c82afa9a49ff74",
|
| 4194 |
+
"size": 11084
|
| 4195 |
},
|
| 4196 |
"research/src/thirdloss/hybrid_results.py": {
|
| 4197 |
"git_blob": "751742c1cb1ead31b4940e9c3b0c98a9c9fc17d4",
|
|
|
|
| 4279 |
"size": 2205
|
| 4280 |
},
|
| 4281 |
"research/src/thirdloss/study.py": {
|
| 4282 |
+
"git_blob": "d1f98b90306c28d89dd2b117f515a095dc5f09e1",
|
| 4283 |
+
"sha256": "ffe7441f4453e5692755e6e1d49fb0ba1c26b2d6961ef961c0387fe962f4d666",
|
| 4284 |
+
"size": 12665
|
| 4285 |
},
|
| 4286 |
"research/src/thirdloss/train.py": {
|
| 4287 |
"git_blob": "3c16d7419d10d1709d4a168ad7765909fbef77a6",
|
|
|
|
| 4319 |
"size": 16607
|
| 4320 |
},
|
| 4321 |
"research/tests/test_flatness.py": {
|
| 4322 |
+
"git_blob": "5f4d714bff1d9438130922c0124e1d3398156bae",
|
| 4323 |
+
"sha256": "c4bbe4d629da22ad25936940be1256c3683097881d108e16e85179b5dfae3b14",
|
| 4324 |
+
"size": 6319
|
| 4325 |
},
|
| 4326 |
"research/tests/test_hub_archive.py": {
|
| 4327 |
"git_blob": "4c8dc24e6eb5f0aa7fc5e63be56ba0efa3ad4ec4",
|
|
|
|
| 4403 |
"type": "dataset"
|
| 4404 |
}
|
| 4405 |
},
|
| 4406 |
+
"verified_at": "2026-11-25T16:53:13+00:00"
|
| 4407 |
}
|
research/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Each row uses the same fixed training windows and probe directions within its st
|
|
| 136 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 137 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 138 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 139 |
-
| Squared Hessian norm (3%) | 2,097,152 | 0 |
|
| 140 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 141 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 142 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
|
|
|
| 136 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 137 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 138 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 139 |
+
| Squared Hessian norm (3%) | 2,097,152 | 0 | 15.901 (1/1) | 0.42958 (1/1) | Pending |
|
| 140 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 141 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 142 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
research/docs/hub/archive.md
CHANGED
|
@@ -93,7 +93,7 @@ Each row uses the same fixed training windows and probe directions within its st
|
|
| 93 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 94 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 95 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 96 |
-
| Squared Hessian norm (3%) | 2,097,152 | 0 |
|
| 97 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 98 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 99 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
|
|
|
| 93 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 94 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 95 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 96 |
+
| Squared Hessian norm (3%) | 2,097,152 | 0 | 15.901 (1/1) | 0.42958 (1/1) | Pending |
|
| 97 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 98 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 99 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
research/docs/study.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
research/reports/flatness.md
CHANGED
|
@@ -28,7 +28,7 @@ Parentheses give measured / planned seeds. A unigram has only the common score-s
|
|
| 28 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 29 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 30 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 31 |
-
| Squared Hessian norm (3%) | 2,097,152 | 0 |
|
| 32 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 33 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 34 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
|
@@ -91,5 +91,6 @@ Parentheses give measured / planned seeds. A unigram has only the common score-s
|
|
| 91 |
| abstracts | pilot | 0 | Hessian trace | 1% | 19.751 | 19.179–20.260 | 0/32 | 1.18181 | +0.00404879 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-trace-r01-fp64/flatness.json) |
|
| 92 |
| stories | control | 0 | Unigram | 0% | N/A | N/A | N/A | N/A | N/A | 0.915 | 0.913–0.920 | 0/32 | 0.989727 | [Score probes](../results/stories-control-s00-unigram-r00/score-flatness.json) |
|
| 93 |
| stories | pilot | 0 | Ordinary AdamW | 0% | 15.579 | 15.297–16.037 | 0/32 | 0.453288 | +0.0036281 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-ce-r00/flatness.json) |
|
|
|
|
| 94 |
| stories | pilot | 0 | Third derivative | 1% | 15.640 | 15.382–16.118 | 0/32 | 0.447394 | +0.00357761 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-third-r01/flatness.json) |
|
| 95 |
| stories | pilot | 0 | Hessian trace | 1% | 15.686 | 15.431–16.102 | 0/32 | 0.447721 | +0.00356145 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-trace-r01/flatness.json) |
|
|
|
|
| 28 |
| Ordinary AdamW | 2,097,152 | 0 | 15.579 (1/1) | 0.45329 (1/1) | Pending |
|
| 29 |
| Hessian trace (1%) | 2,097,152 | 0 | 15.686 (1/1) | 0.44772 (1/1) | Pending |
|
| 30 |
| Third derivative (1%) | 2,097,152 | 0 | 15.640 (1/1) | 0.44739 (1/1) | Pending |
|
| 31 |
+
| Squared Hessian norm (3%) | 2,097,152 | 0 | 15.901 (1/1) | 0.42958 (1/1) | Pending |
|
| 32 |
| Randomized gradient signs (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 33 |
| Trace + third derivative (1%) | 2,097,152 | 0 | Pending | Pending | Pending |
|
| 34 |
| Ordinary AdamW · confirmation | 16,777,216 | 1–8 | Pending | Pending | Pending |
|
|
|
|
| 91 |
| abstracts | pilot | 0 | Hessian trace | 1% | 19.751 | 19.179–20.260 | 0/32 | 1.18181 | +0.00404879 | Pending | Pending | Pending | Pending | [Weight probes](../results/abstracts-pilot-s00-trace-r01-fp64/flatness.json) |
|
| 92 |
| stories | control | 0 | Unigram | 0% | N/A | N/A | N/A | N/A | N/A | 0.915 | 0.913–0.920 | 0/32 | 0.989727 | [Score probes](../results/stories-control-s00-unigram-r00/score-flatness.json) |
|
| 93 |
| stories | pilot | 0 | Ordinary AdamW | 0% | 15.579 | 15.297–16.037 | 0/32 | 0.453288 | +0.0036281 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-ce-r00/flatness.json) |
|
| 94 |
+
| stories | pilot | 0 | Squared Hessian norm | 3% | 15.901 | 15.638–16.320 | 0/32 | 0.429575 | +0.00343614 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-hessian_norm-r03/flatness.json) |
|
| 95 |
| stories | pilot | 0 | Third derivative | 1% | 15.640 | 15.382–16.118 | 0/32 | 0.447394 | +0.00357761 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-third-r01/flatness.json) |
|
| 96 |
| stories | pilot | 0 | Hessian trace | 1% | 15.686 | 15.431–16.102 | 0/32 | 0.447721 | +0.00356145 | Pending | Pending | Pending | Pending | [Weight probes](../results/stories-pilot-s00-trace-r01/flatness.json) |
|
research/reports/paper.pdf
CHANGED
|
Binary files a/research/reports/paper.pdf and b/research/reports/paper.pdf differ
|
|
|
research/reports/progress.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# Study progress
|
| 2 |
|
| 3 |
-
Updated 2026-11-25T16:
|
| 4 |
|
| 5 |
21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
|
| 6 |
|
|
|
|
| 1 |
# Study progress
|
| 2 |
|
| 3 |
+
Updated 2026-11-25T16:53:01+00:00.
|
| 4 |
|
| 5 |
21 training/control records and 0 final evaluations are complete. This is 17.5% of 120 planned model milestones.
|
| 6 |
|
research/results/stories-pilot-s00-hessian_norm-r03/flatness.json
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"protocol": "checkpoint-flatness-v1",
|
| 3 |
+
"run": "stories-pilot-s00-hessian_norm-r03",
|
| 4 |
+
"checkpoint_file_sha256": "8273516a63c9fff5a1fd52f86224e82725d58466007344489dd7fb28dc9d5c2d",
|
| 5 |
+
"data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00",
|
| 6 |
+
"width_device": "cuda",
|
| 7 |
+
"timestamp": "2026-11-25T16:52:54+00:00",
|
| 8 |
+
"split": "train",
|
| 9 |
+
"probe_windows_sha256": "2b09cf8d13e4e0df411e816e32f1799f1ee165712973c51a09fc75d528c8c2b1",
|
| 10 |
+
"width_windows": 8,
|
| 11 |
+
"curvature_windows": 2,
|
| 12 |
+
"width": {
|
| 13 |
+
"baseline_nll": 3.848630428314209,
|
| 14 |
+
"delta_nll": 0.1,
|
| 15 |
+
"directions": [
|
| 16 |
+
{
|
| 17 |
+
"direction": 0,
|
| 18 |
+
"positive": {
|
| 19 |
+
"lower": 7.619140625,
|
| 20 |
+
"upper": 7.6201171875
|
| 21 |
+
},
|
| 22 |
+
"negative": {
|
| 23 |
+
"lower": 7.357421875,
|
| 24 |
+
"upper": 7.3583984375
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"direction": 1,
|
| 29 |
+
"positive": {
|
| 30 |
+
"lower": 7.814453125,
|
| 31 |
+
"upper": 7.8154296875
|
| 32 |
+
},
|
| 33 |
+
"negative": {
|
| 34 |
+
"lower": 8.556640625,
|
| 35 |
+
"upper": 8.55859375
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"direction": 2,
|
| 40 |
+
"positive": {
|
| 41 |
+
"lower": 8.310546875,
|
| 42 |
+
"upper": 8.3125
|
| 43 |
+
},
|
| 44 |
+
"negative": {
|
| 45 |
+
"lower": 7.54296875,
|
| 46 |
+
"upper": 7.5439453125
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"direction": 3,
|
| 51 |
+
"positive": {
|
| 52 |
+
"lower": 7.697265625,
|
| 53 |
+
"upper": 7.6982421875
|
| 54 |
+
},
|
| 55 |
+
"negative": {
|
| 56 |
+
"lower": 7.5185546875,
|
| 57 |
+
"upper": 7.51953125
|
| 58 |
+
}
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"direction": 4,
|
| 62 |
+
"positive": {
|
| 63 |
+
"lower": 8.490234375,
|
| 64 |
+
"upper": 8.4921875
|
| 65 |
+
},
|
| 66 |
+
"negative": {
|
| 67 |
+
"lower": 7.8056640625,
|
| 68 |
+
"upper": 7.806640625
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"direction": 5,
|
| 73 |
+
"positive": {
|
| 74 |
+
"lower": 8.201171875,
|
| 75 |
+
"upper": 8.203125
|
| 76 |
+
},
|
| 77 |
+
"negative": {
|
| 78 |
+
"lower": 8.21484375,
|
| 79 |
+
"upper": 8.216796875
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"direction": 6,
|
| 84 |
+
"positive": {
|
| 85 |
+
"lower": 8.0390625,
|
| 86 |
+
"upper": 8.041015625
|
| 87 |
+
},
|
| 88 |
+
"negative": {
|
| 89 |
+
"lower": 7.8369140625,
|
| 90 |
+
"upper": 7.837890625
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"direction": 7,
|
| 95 |
+
"positive": {
|
| 96 |
+
"lower": 8.3984375,
|
| 97 |
+
"upper": 8.400390625
|
| 98 |
+
},
|
| 99 |
+
"negative": {
|
| 100 |
+
"lower": 8.2578125,
|
| 101 |
+
"upper": 8.259765625
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"direction": 8,
|
| 106 |
+
"positive": {
|
| 107 |
+
"lower": 8.080078125,
|
| 108 |
+
"upper": 8.08203125
|
| 109 |
+
},
|
| 110 |
+
"negative": {
|
| 111 |
+
"lower": 8.388671875,
|
| 112 |
+
"upper": 8.390625
|
| 113 |
+
}
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"direction": 9,
|
| 117 |
+
"positive": {
|
| 118 |
+
"lower": 8.7578125,
|
| 119 |
+
"upper": 8.759765625
|
| 120 |
+
},
|
| 121 |
+
"negative": {
|
| 122 |
+
"lower": 6.919921875,
|
| 123 |
+
"upper": 6.9208984375
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"direction": 10,
|
| 128 |
+
"positive": {
|
| 129 |
+
"lower": 8.8203125,
|
| 130 |
+
"upper": 8.822265625
|
| 131 |
+
},
|
| 132 |
+
"negative": {
|
| 133 |
+
"lower": 7.48046875,
|
| 134 |
+
"upper": 7.4814453125
|
| 135 |
+
}
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"direction": 11,
|
| 139 |
+
"positive": {
|
| 140 |
+
"lower": 8.15625,
|
| 141 |
+
"upper": 8.158203125
|
| 142 |
+
},
|
| 143 |
+
"negative": {
|
| 144 |
+
"lower": 7.974609375,
|
| 145 |
+
"upper": 7.9755859375
|
| 146 |
+
}
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"direction": 12,
|
| 150 |
+
"positive": {
|
| 151 |
+
"lower": 7.9404296875,
|
| 152 |
+
"upper": 7.94140625
|
| 153 |
+
},
|
| 154 |
+
"negative": {
|
| 155 |
+
"lower": 7.3291015625,
|
| 156 |
+
"upper": 7.330078125
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"direction": 13,
|
| 161 |
+
"positive": {
|
| 162 |
+
"lower": 8.017578125,
|
| 163 |
+
"upper": 8.01953125
|
| 164 |
+
},
|
| 165 |
+
"negative": {
|
| 166 |
+
"lower": 7.82421875,
|
| 167 |
+
"upper": 7.8251953125
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"direction": 14,
|
| 172 |
+
"positive": {
|
| 173 |
+
"lower": 8.1328125,
|
| 174 |
+
"upper": 8.134765625
|
| 175 |
+
},
|
| 176 |
+
"negative": {
|
| 177 |
+
"lower": 7.3798828125,
|
| 178 |
+
"upper": 7.380859375
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"direction": 15,
|
| 183 |
+
"positive": {
|
| 184 |
+
"lower": 7.93359375,
|
| 185 |
+
"upper": 7.9345703125
|
| 186 |
+
},
|
| 187 |
+
"negative": {
|
| 188 |
+
"lower": 7.990234375,
|
| 189 |
+
"upper": 7.9912109375
|
| 190 |
+
}
|
| 191 |
+
}
|
| 192 |
+
],
|
| 193 |
+
"width_lower": 15.89990234375,
|
| 194 |
+
"width_upper": 15.90234375,
|
| 195 |
+
"width": 15.901123046875,
|
| 196 |
+
"censored_rays": 0,
|
| 197 |
+
"weights_sha256": "77504bb388ab8f71e716d18d6058c7fb67c4cdca2d7bf3313b2c8f88e68e9ea2",
|
| 198 |
+
"weights_restored": true,
|
| 199 |
+
"seconds": 6.752703199999814
|
| 200 |
+
},
|
| 201 |
+
"curvature": {
|
| 202 |
+
"dimensions": 2557632,
|
| 203 |
+
"draws": [
|
| 204 |
+
{
|
| 205 |
+
"index": 0,
|
| 206 |
+
"trace_per_parameter": 0.003268288693159581,
|
| 207 |
+
"squared_rms": 0.17177006895724128
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"index": 1,
|
| 211 |
+
"trace_per_parameter": 0.0039886520075528694,
|
| 212 |
+
"squared_rms": 0.27420783796122233
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"index": 2,
|
| 216 |
+
"trace_per_parameter": 0.0035730284173792247,
|
| 217 |
+
"squared_rms": 0.15216886934732035
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"index": 3,
|
| 221 |
+
"trace_per_parameter": 0.0037878669762238994,
|
| 222 |
+
"squared_rms": 0.18340641085781706
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"index": 4,
|
| 226 |
+
"trace_per_parameter": 0.0030685134702441532,
|
| 227 |
+
"squared_rms": 0.1563246571325188
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"index": 5,
|
| 231 |
+
"trace_per_parameter": 0.0032552364250553055,
|
| 232 |
+
"squared_rms": 0.17528429393142092
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"index": 6,
|
| 236 |
+
"trace_per_parameter": 0.002976663896750118,
|
| 237 |
+
"squared_rms": 0.14654677376863154
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"index": 7,
|
| 241 |
+
"trace_per_parameter": 0.003570846711261671,
|
| 242 |
+
"squared_rms": 0.21656902042191686
|
| 243 |
+
}
|
| 244 |
+
],
|
| 245 |
+
"device": "cuda:0",
|
| 246 |
+
"dtype": "torch.float64",
|
| 247 |
+
"trace_per_parameter": 0.0034361370747033526,
|
| 248 |
+
"rms_curvature": 0.4295750709099181
|
| 249 |
+
}
|
| 250 |
+
}
|
research/src/thirdloss/checkpoint_flatness.py
CHANGED
|
@@ -163,3 +163,21 @@ def flatness_study(project,storage,stages,phase,device,publish,run_id=None):
|
|
| 163 |
subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)
|
| 164 |
revision=publish_snapshot(project,f"Measure comparable flatness for {run}")
|
| 165 |
write_json(marker,{"artifacts":artifacts,"git_revision":revision})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)
|
| 164 |
revision=publish_snapshot(project,f"Measure comparable flatness for {run}")
|
| 165 |
write_json(marker,{"artifacts":artifacts,"git_revision":revision})
|
| 166 |
+
if rows and not publish:
|
| 167 |
+
subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
def geometry_milestone(project,storage,row,device,publish):
|
| 171 |
+
"""Keep checkpoint evaluation isolated from timed training and recover each missing publication."""
|
| 172 |
+
run=row["id"]
|
| 173 |
+
folder=project/"results"/run
|
| 174 |
+
paths=[folder/"score-flatness.json"]
|
| 175 |
+
if row["method"]!="unigram":
|
| 176 |
+
paths.append(folder/"flatness.json")
|
| 177 |
+
marker=storage/"releases"/("flatness-"+run+".json")
|
| 178 |
+
if all(p.is_file() for p in paths) and (not publish or (marker.is_file() and
|
| 179 |
+
read_json(marker).get("artifacts")=={p.name:sha256(p) for p in paths})):
|
| 180 |
+
return
|
| 181 |
+
cmd=[sys.executable,"-m","thirdloss.cli","--project",str(project),"flatness","--run-id",run,
|
| 182 |
+
"--stage",row["stage"],"--device",str(device)]
|
| 183 |
+
subprocess.run(cmd+(["--publish"] if publish else []),cwd=project,check=True)
|
research/src/thirdloss/cli.py
CHANGED
|
@@ -49,7 +49,8 @@ def parser():
|
|
| 49 |
sub.add_argument("--run-id",help="Measure a single completed run in the selected phase")
|
| 50 |
if action=="study":
|
| 51 |
sub.add_argument("--with-hybrid",action="store_true",help="Include the registered TinyStories hybrid follow-up on the same GPU")
|
| 52 |
-
|
|
|
|
| 53 |
if action=="verify":
|
| 54 |
sub.add_argument("--pretrained",action="store_true",help="Also compare a full joint derivative on the prepared adapter training corpus")
|
| 55 |
sub.add_argument("--reference",action="store_true",help="Compute the FP64 pretrained reference using the original CUDA signs")
|
|
@@ -141,9 +142,9 @@ def main(argv=None):
|
|
| 141 |
if args.action=="hybrid":
|
| 142 |
from .hybrid import run_hybrids
|
| 143 |
prepare_stage(project,storage,"stories")
|
| 144 |
-
run_hybrids(project,storage,device,args.publish)
|
| 145 |
else:
|
| 146 |
-
run_study(project,storage,stages,device,args.publish,with_hybrid=args.with_hybrid)
|
| 147 |
if args.with_flatness:
|
| 148 |
from .checkpoint_flatness import flatness_study
|
| 149 |
flatness_study(project,storage,stages,"all",device,args.publish)
|
|
|
|
| 49 |
sub.add_argument("--run-id",help="Measure a single completed run in the selected phase")
|
| 50 |
if action=="study":
|
| 51 |
sub.add_argument("--with-hybrid",action="store_true",help="Include the registered TinyStories hybrid follow-up on the same GPU")
|
| 52 |
+
if action in {"study","hybrid"}:
|
| 53 |
+
sub.add_argument("--with-flatness",action="store_true",help="Measure comparable training-window geometry at each completed checkpoint")
|
| 54 |
if action=="verify":
|
| 55 |
sub.add_argument("--pretrained",action="store_true",help="Also compare a full joint derivative on the prepared adapter training corpus")
|
| 56 |
sub.add_argument("--reference",action="store_true",help="Compute the FP64 pretrained reference using the original CUDA signs")
|
|
|
|
| 142 |
if args.action=="hybrid":
|
| 143 |
from .hybrid import run_hybrids
|
| 144 |
prepare_stage(project,storage,"stories")
|
| 145 |
+
run_hybrids(project,storage,device,args.publish,with_flatness=args.with_flatness)
|
| 146 |
else:
|
| 147 |
+
run_study(project,storage,stages,device,args.publish,with_hybrid=args.with_hybrid,with_flatness=args.with_flatness)
|
| 148 |
if args.with_flatness:
|
| 149 |
from .checkpoint_flatness import flatness_study
|
| 150 |
flatness_study(project,storage,stages,"all",device,args.publish)
|
research/src/thirdloss/hybrid.py
CHANGED
|
@@ -171,7 +171,7 @@ def match_stronger_trace(project,storage,trunk,cap,device):
|
|
| 171 |
return delta
|
| 172 |
|
| 173 |
|
| 174 |
-
def run_hybrids(project,storage,device,publish):
|
| 175 |
"""Run each trunk once; delay seed 21 replay until seed 28 has published its schedule."""
|
| 176 |
from .study import milestone, parent_restart_file
|
| 177 |
from .train import run_config
|
|
@@ -206,7 +206,7 @@ def run_hybrids(project,storage,device,publish):
|
|
| 206 |
config.update(donor=donor,donor_schedule_sha256=sha256(path))
|
| 207 |
replay = read_json(path)["changes"]
|
| 208 |
row = run_config(project,storage,config,device,protocol=HybridProtocol(project,storage,config,replay))
|
| 209 |
-
milestone(project,storage,row,publish)
|
| 210 |
for seed in SEEDS:
|
| 211 |
for arm in ("trunk","adaptive","late","trace","strong","always"):
|
| 212 |
run(seed,arm)
|
|
|
|
| 171 |
return delta
|
| 172 |
|
| 173 |
|
| 174 |
+
def run_hybrids(project,storage,device,publish,with_flatness=False):
|
| 175 |
"""Run each trunk once; delay seed 21 replay until seed 28 has published its schedule."""
|
| 176 |
from .study import milestone, parent_restart_file
|
| 177 |
from .train import run_config
|
|
|
|
| 206 |
config.update(donor=donor,donor_schedule_sha256=sha256(path))
|
| 207 |
replay = read_json(path)["changes"]
|
| 208 |
row = run_config(project,storage,config,device,protocol=HybridProtocol(project,storage,config,replay))
|
| 209 |
+
milestone(project,storage,row,publish,device if with_flatness else None)
|
| 210 |
for seed in SEEDS:
|
| 211 |
for arm in ("trunk","adaptive","late","trace","strong","always"):
|
| 212 |
run(seed,arm)
|
research/src/thirdloss/study.py
CHANGED
|
@@ -170,20 +170,22 @@ def evaluate_one(project, storage, run_id, device):
|
|
| 170 |
return summary
|
| 171 |
|
| 172 |
|
| 173 |
-
def milestone(project,storage,summary,publish):
|
| 174 |
path = project/"results"/summary["id"]/"summary.json"
|
| 175 |
marker = storage/"releases"/(summary["id"]+".json")
|
| 176 |
fingerprint = sha256(path)
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
|
|
|
|
|
|
| 187 |
|
| 188 |
|
| 189 |
def feasibility(project, stage):
|
|
@@ -202,11 +204,11 @@ def feasibility(project, stage):
|
|
| 202 |
return result
|
| 203 |
|
| 204 |
|
| 205 |
-
def run_study(project,storage,stages,device,publish,with_hybrid=False):
|
| 206 |
"""Retry-safe complete study. Cached milestones allow continuation after reboot or network loss."""
|
| 207 |
def run(stage,method,phase,seed,ratio):
|
| 208 |
row = run_one(project,storage,stage,method,phase,seed,ratio,device)
|
| 209 |
-
milestone(project,storage,row,publish)
|
| 210 |
return row
|
| 211 |
for stage in stages:
|
| 212 |
prepare_stage(project,storage,stage)
|
|
@@ -226,7 +228,7 @@ def run_study(project,storage,stages,device,publish,with_hybrid=False):
|
|
| 226 |
run(stage,method,"pilot",0,ratio)
|
| 227 |
if with_hybrid and stage=="stories":
|
| 228 |
from .hybrid import run_hybrids
|
| 229 |
-
run_hybrids(project,storage,device,publish)
|
| 230 |
for stage in stages:
|
| 231 |
selected = select(project,stage)
|
| 232 |
for seed in range(1,9):
|
|
@@ -237,4 +239,4 @@ def run_study(project,storage,stages,device,publish,with_hybrid=False):
|
|
| 237 |
publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation")
|
| 238 |
for run_id in sealed["runs"]:
|
| 239 |
row = evaluate_one(project,storage,run_id,device)
|
| 240 |
-
milestone(project,storage,row,publish)
|
|
|
|
| 170 |
return summary
|
| 171 |
|
| 172 |
|
| 173 |
+
def milestone(project,storage,summary,publish,flatness_device=None):
|
| 174 |
path = project/"results"/summary["id"]/"summary.json"
|
| 175 |
marker = storage/"releases"/(summary["id"]+".json")
|
| 176 |
fingerprint = sha256(path)
|
| 177 |
+
released=publish and marker.exists() and read_json(marker)["summary_sha256"]==fingerprint
|
| 178 |
+
if not released:
|
| 179 |
+
# Render the current checked-in report, even when the coordinator has run for days.
|
| 180 |
+
subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True)
|
| 181 |
+
if publish:
|
| 182 |
+
publish_weights(project,storage,summary)
|
| 183 |
+
label = "evaluation" if "test_nll" in summary else "development"
|
| 184 |
+
revision = publish_snapshot(project,f"Record {label} results for {summary['id']}")
|
| 185 |
+
write_json(marker,{"summary_sha256":fingerprint,"git_revision":revision})
|
| 186 |
+
if flatness_device is not None:
|
| 187 |
+
from .checkpoint_flatness import geometry_milestone
|
| 188 |
+
geometry_milestone(project,storage,summary,flatness_device,publish)
|
| 189 |
|
| 190 |
|
| 191 |
def feasibility(project, stage):
|
|
|
|
| 204 |
return result
|
| 205 |
|
| 206 |
|
| 207 |
+
def run_study(project,storage,stages,device,publish,with_hybrid=False,with_flatness=False):
|
| 208 |
"""Retry-safe complete study. Cached milestones allow continuation after reboot or network loss."""
|
| 209 |
def run(stage,method,phase,seed,ratio):
|
| 210 |
row = run_one(project,storage,stage,method,phase,seed,ratio,device)
|
| 211 |
+
milestone(project,storage,row,publish,device if with_flatness else None)
|
| 212 |
return row
|
| 213 |
for stage in stages:
|
| 214 |
prepare_stage(project,storage,stage)
|
|
|
|
| 228 |
run(stage,method,"pilot",0,ratio)
|
| 229 |
if with_hybrid and stage=="stories":
|
| 230 |
from .hybrid import run_hybrids
|
| 231 |
+
run_hybrids(project,storage,device,publish,with_flatness=with_flatness)
|
| 232 |
for stage in stages:
|
| 233 |
selected = select(project,stage)
|
| 234 |
for seed in range(1,9):
|
|
|
|
| 239 |
publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation")
|
| 240 |
for run_id in sealed["runs"]:
|
| 241 |
row = evaluate_one(project,storage,run_id,device)
|
| 242 |
+
milestone(project,storage,row,publish,device if with_flatness else None)
|
research/tests/test_flatness.py
CHANGED
|
@@ -94,3 +94,18 @@ def test_all_arm_table_keeps_weightless_reference_and_every_control(tmp_path):
|
|
| 94 |
assert all(name in text for name in ("Squared Hessian norm","Randomized gradient signs","Trace + third derivative",
|
| 95 |
"Cross-seed replay","Shared trace checkpoint","Always-on hybrid"))
|
| 96 |
assert "Hessian trace (10%)" in text and "Third derivative (1%)" in text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
assert all(name in text for name in ("Squared Hessian norm","Randomized gradient signs","Trace + third derivative",
|
| 95 |
"Cross-seed replay","Shared trace checkpoint","Always-on hybrid"))
|
| 96 |
assert "Hessian trace (10%)" in text and "Third derivative (1%)" in text
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def test_geometry_milestone_retries_missing_receipt_and_skips_a_verified_unigram(tmp_path,monkeypatch):
|
| 100 |
+
from thirdloss import checkpoint_flatness as geometry
|
| 101 |
+
from thirdloss.records import sha256,write_json
|
| 102 |
+
row={"id":"control","stage":"stories","method":"unigram"}
|
| 103 |
+
score=tmp_path/"results/control/score-flatness.json"
|
| 104 |
+
write_json(score,{"example":True})
|
| 105 |
+
calls=[]
|
| 106 |
+
monkeypatch.setattr(geometry.subprocess,"run",lambda cmd,**kw:calls.append(cmd))
|
| 107 |
+
geometry.geometry_milestone(tmp_path,tmp_path,row,"cpu",True)
|
| 108 |
+
assert len(calls)==1 and "--publish" in calls[0] and "control" in calls[0]
|
| 109 |
+
write_json(tmp_path/"releases/flatness-control.json",{"artifacts":{score.name:sha256(score)}})
|
| 110 |
+
geometry.geometry_milestone(tmp_path,tmp_path,row,"cpu",True)
|
| 111 |
+
assert len(calls)==1
|