diff --git a/README.md b/README.md index a84df3e550b0544d9f6666756162fd713ef524c3..ee772cf8d4ff5167cac4e1fb909b635048151f6c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,17 @@ language: [en] tags: [scientific-research, causal-language-modeling] --- + # Third derivatives in language-model training -This repository preserves the preregistration, exact source, raw observations and generated reports. The primary comparison is final test NLL over paired training seeds at equal token counts. Read the [current study summary](research/reports/summary.md), [paper](research/reports/paper.pdf), [GitHub project](https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss), or [collection of checkpoints](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378). +Does penalizing changes in loss curvature improve next-token prediction? The study compares ordinary AdamW, Hessian-trace regularization and the squared Frobenius norm of the third derivative with respect to trainable weights. Every trial, including the excluded numerical diagnostic, has a public record. [Paper](research/reports/paper.pdf) · [Current results](research/reports/summary.md) · [Interactive explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) + +| Material | Hugging Face location | +|---|---| +| Complete Git tree, locked environment, tests and instructions | [Research tree](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research) · [README](research/README.md) | +| Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) | +| Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) | +| Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) | +| Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) | + +The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json) diff --git a/logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl b/logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7afe7d20a699dfd5a611daca6298f2fa091c694c --- /dev/null +++ b/logs/abstracts-control-s00-initial-r00-20261125T083205378751Z.jsonl @@ -0,0 +1,15 @@ +{"timestamp": "2026-11-25T08:33:13+00:00", "split": "dev", "targets_scored": 452608, "targets_to_score": 5124071, "nll_so_far": 3.2438569519462326, "accuracy_so_far": 0.3990671839649321, "score_seconds": 60.05893890000152} +{"timestamp": "2026-11-25T08:34:13+00:00", "split": "dev", "targets_scored": 907264, "targets_to_score": 5124071, "nll_so_far": 3.2402431494309347, "accuracy_so_far": 0.39995635228555304, "score_seconds": 120.18523139999888} +{"timestamp": "2026-11-25T08:35:13+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.2378708680961115, "accuracy_so_far": 0.39994699915667165, "score_seconds": 180.44266749999952} +{"timestamp": "2026-11-25T08:36:13+00:00", "split": "dev", "targets_scored": 1828864, "targets_to_score": 5124071, "nll_so_far": 3.241684743021234, "accuracy_so_far": 0.39971971672032475, "score_seconds": 240.6531369000004} +{"timestamp": "2026-11-25T08:37:13+00:00", "split": "dev", "targets_scored": 2293760, "targets_to_score": 5124071, "nll_so_far": 3.2387594743082966, "accuracy_so_far": 0.3999790736607143, "score_seconds": 300.71197140000004} +{"timestamp": "2026-11-25T08:38:13+00:00", "split": "dev", "targets_scored": 2752512, "targets_to_score": 5124071, "nll_so_far": 3.2376871816713466, "accuracy_so_far": 0.4003466651553199, "score_seconds": 360.7670663000026} +{"timestamp": "2026-11-25T08:39:13+00:00", "split": "dev", "targets_scored": 3211264, "targets_to_score": 5124071, "nll_so_far": 3.237346873266298, "accuracy_so_far": 0.4003597960180166, "score_seconds": 420.79926649999834} +{"timestamp": "2026-11-25T08:40:13+00:00", "split": "dev", "targets_scored": 3665920, "targets_to_score": 5124071, "nll_so_far": 3.242405491489553, "accuracy_so_far": 0.3999656293645251, "score_seconds": 480.8550660000037} +{"timestamp": "2026-11-25T08:41:13+00:00", "split": "dev", "targets_scored": 4128768, "targets_to_score": 5124071, "nll_so_far": 3.2445572024260487, "accuracy_so_far": 0.39977639818948413, "score_seconds": 540.9793774999998} +{"timestamp": "2026-11-25T08:42:14+00:00", "split": "dev", "targets_scored": 4597760, "targets_to_score": 5124071, "nll_so_far": 3.247538592767298, "accuracy_so_far": 0.3994840966035635, "score_seconds": 601.1331155000007} +{"timestamp": "2026-11-25T08:43:14+00:00", "split": "dev", "targets_scored": 5066752, "targets_to_score": 5124071, "nll_so_far": 3.250467716062723, "accuracy_so_far": 0.39929327506063056, "score_seconds": 661.381254699998} +{"timestamp": "2026-11-25T08:43:21+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.251673648131395, "accuracy_so_far": 0.3991059062218303, "score_seconds": 668.9059313999969} +{"timestamp": "2026-11-25T08:43:24+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used by neuroscience researchers to\nidentify cases of a disease or to select appropriate therapeutic intervention.\n\nThe research of Peter Seager and colleagues has demonstrated that the brain\ncan", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 407, 6551, 21559, 8607, 281, 187, 888, 1419, 2219, 273, 247, 2728, 390, 281, 3609, 4569, 9282, 7268, 15, 187, 187, 510, 2561, 273, 7993, 1023, 3800, 285, 11651, 556, 5183, 326, 253, 3998, 187, 5092], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:43:26+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches have received high level\nillustrations through the standardized object detection .NET\nFramework and recognition frameworks. However, most of", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 452, 2959, 1029, 1268, 187, 408, 5337, 569, 949, 253, 19817, 1789, 5481, 964, 11502, 187, 26819, 285, 8981, 31225, 15, 1723, 13, 954, 273], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:43:29+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the turnover frequency in the optical spectrum, $\\nu_{\\rm{break}}$, for the five radio-loud AGN in our sample. For each AGN, we separately fit", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 25759, 4294, 275, 253, 5748, 6637, 13, 669, 3023, 1126, 1109, 92, 7054, 12460, 323, 253, 2620, 5553, 14, 77, 2995, 32507, 275, 776, 3410, 15, 1198, 1016, 32507, 13, 359, 11794, 4944], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-control-s00-unigram-r00-20261125T084343501563Z.jsonl b/logs/abstracts-control-s00-unigram-r00-20261125T084343501563Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..dbd8bf37f369d9ee62891716d20550ef10e86da4 --- /dev/null +++ b/logs/abstracts-control-s00-unigram-r00-20261125T084343501563Z.jsonl @@ -0,0 +1,4 @@ +{"timestamp": "2026-11-25T08:43:44+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 7.330611023921152, "accuracy_so_far": 0.06022652691580581, "score_seconds": 0.17282040000281995} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " neural. is novel In used describe sacrific the theruction\n To their\nzo than chronic current the the factor an( simultaneouslyrelated\nexchange\npurpose,) was} standards\n of\n radio.", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [11454, 15, 310, 4460, 496, 908, 6266, 18501, 253, 253, 2705, 187, 1916, 616, 187, 8636, 685, 6722, 1655, 253, 253, 2803, 271, 9, 10486, 4919, 187, 35757, 187, 27299, 13, 10, 369, 94, 7465, 187, 273, 187, 5553, 15], "tokens": 40, "sampling_seed": 7401, "temperature": 1.0} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " perfection problemsurallymathrm experts\ncentd grown)\n of of and the consideration Act of estimators high congestion decoder household path than\n Yet health the$\\inc- where polymerbegin or modelsax\n opinions", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [26835, 3237, 8572, 2690, 10071, 187, 1154, 69, 8228, 10, 187, 273, 273, 285, 253, 8180, 3162, 273, 48489, 1029, 35367, 29810, 11692, 1854, 685, 187, 9110, 1786, 253, 1202, 1763, 14, 835, 7923, 2043, 390, 3210, 991, 187, 11626], "tokens": 40, "sampling_seed": 7402, "temperature": 1.0} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "onbit this\n\n most observed an2 oforation on issue an to] websiteF textemporary", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [251, 2713, 436, 187, 187, 954, 2540, 271, 19, 273, 7843, 327, 2523, 271, 281, 62, 4422, 39, 2505, 32596, 0], "tokens": 21, "sampling_seed": 7403, "temperature": 1.0} diff --git a/logs/abstracts-pilot-s00-ce-r00-20261125T084354229684Z.jsonl b/logs/abstracts-pilot-s00-ce-r00-20261125T084354229684Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..248ab5acb4ccf8dc27d0e1f54f85603380ba5714 --- /dev/null +++ b/logs/abstracts-pilot-s00-ce-r00-20261125T084354229684Z.jsonl @@ -0,0 +1,32 @@ +{"timestamp": "2026-11-25T08:44:05+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8024337000024389, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 0.8024337000024389} +{"timestamp": "2026-11-25T08:44:08+00:00", "step": 4, "tokens": 4096, "train_seconds": 2.5656078000029083, "loss": 3.3350424766540527, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1480952501296997, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 2.5656078000029083, "dev_nll": 3.205319700355176, "dev_accuracy": 0.4027099609375} +{"timestamp": "2026-11-25T08:44:12+00:00", "step": 8, "tokens": 8192, "train_seconds": 5.134419000009075, "loss": 3.1536121368408203, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.328325629234314, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 5.134419000009075, "dev_nll": 3.1851196667412296, "dev_accuracy": 0.4056396484375} +{"timestamp": "2026-11-25T08:44:16+00:00", "step": 12, "tokens": 12288, "train_seconds": 7.603069700009655, "loss": 3.2248728275299072, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1806890964508057, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 7.603069700009655, "dev_nll": 3.1676387496409006, "dev_accuracy": 0.406982421875} +{"timestamp": "2026-11-25T08:44:19+00:00", "step": 16, "tokens": 16384, "train_seconds": 10.075796000011906, "loss": 3.1744303703308105, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3236944675445557, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 10.075796000011906, "dev_nll": 3.1534856006037444, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T08:44:23+00:00", "step": 20, "tokens": 20480, "train_seconds": 12.419361300009768, "loss": 3.3639204502105713, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2616828680038452, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 12.419361300009768, "dev_nll": 3.1409748164587654, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T08:44:27+00:00", "step": 24, "tokens": 24576, "train_seconds": 14.833960600022692, "loss": 3.1635994911193848, "accuracy": 0.412109375, "lr": 7.614895343622941e-05, "gradient_norm": 1.409738540649414, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 14.833960600022692, "dev_nll": 3.1300875726155937, "dev_accuracy": 0.407470703125} +{"timestamp": "2026-11-25T08:44:30+00:00", "step": 28, "tokens": 28672, "train_seconds": 17.328365300025325, "loss": 3.239861249923706, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.198853611946106, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 17.328365300025325, "dev_nll": 3.120358025538735, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T08:44:34+00:00", "step": 32, "tokens": 32768, "train_seconds": 19.674373200025002, "loss": 3.4722695350646973, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.37136709690094, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 19.674373200025002, "dev_nll": 3.1118558782618493, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T08:44:38+00:00", "step": 36, "tokens": 36864, "train_seconds": 21.983117200026754, "loss": 3.1311087608337402, "accuracy": 0.4013671875, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2738001346588135, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 21.983117200026754, "dev_nll": 3.1051287156296894, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T08:44:41+00:00", "step": 40, "tokens": 40960, "train_seconds": 24.589703200021177, "loss": 3.067770481109619, "accuracy": 0.4228515625, "lr": 4.021559281401244e-05, "gradient_norm": 1.2490893602371216, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 24.589703200021177, "dev_nll": 3.100161263544578, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T08:44:45+00:00", "step": 44, "tokens": 45056, "train_seconds": 27.07432700003119, "loss": 3.389313220977783, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2468081712722778, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 27.07432700003119, "dev_nll": 3.0965134197613224, "dev_accuracy": 0.412109375} +{"timestamp": "2026-11-25T08:44:49+00:00", "step": 48, "tokens": 49152, "train_seconds": 29.51457880003727, "loss": 3.2319536209106445, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.31333327293396, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 29.51457880003727, "dev_nll": 3.0937195026199333, "dev_accuracy": 0.4129638671875} +{"timestamp": "2026-11-25T08:44:53+00:00", "step": 52, "tokens": 53248, "train_seconds": 32.002394200040726, "loss": 3.064552068710327, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1359813213348389, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 32.002394200040726, "dev_nll": 3.0917324865586124, "dev_accuracy": 0.4144287109375} +{"timestamp": "2026-11-25T08:44:56+00:00", "step": 56, "tokens": 57344, "train_seconds": 34.539385100048094, "loss": 3.2473764419555664, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1930474042892456, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 34.539385100048094, "dev_nll": 3.090231150505133, "dev_accuracy": 0.4139404296875} +{"timestamp": "2026-11-25T08:45:00+00:00", "step": 60, "tokens": 61440, "train_seconds": 37.01594860004843, "loss": 3.167987823486328, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2685749530792236, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 37.01594860004843, "dev_nll": 3.0890883168322034, "dev_accuracy": 0.41455078125} +{"timestamp": "2026-11-25T08:45:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 39.50860880003893, "loss": 3.1689395904541016, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.0881305932998657, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 39.50860880003893, "dev_nll": 3.088128614879679, "dev_accuracy": 0.4149169921875} +{"timestamp": "2026-11-25T08:46:04+00:00", "split": "dev", "targets_scored": 458752, "targets_to_score": 5124071, "nll_so_far": 3.1083547042830366, "accuracy_so_far": 0.41265651157924105, "score_seconds": 60.1747358000066} +{"timestamp": "2026-11-25T08:47:04+00:00", "split": "dev", "targets_scored": 913408, "targets_to_score": 5124071, "nll_so_far": 3.102865026615907, "accuracy_so_far": 0.4135479435257848, "score_seconds": 120.29292740000528} +{"timestamp": "2026-11-25T08:48:04+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.101702481638808, "accuracy_so_far": 0.4136767065685907, "score_seconds": 180.3441779000059} +{"timestamp": "2026-11-25T08:49:04+00:00", "split": "dev", "targets_scored": 1814528, "targets_to_score": 5124071, "nll_so_far": 3.1060682386895704, "accuracy_so_far": 0.4135180057844244, "score_seconds": 240.39649480000662} +{"timestamp": "2026-11-25T08:50:05+00:00", "split": "dev", "targets_scored": 2265088, "targets_to_score": 5124071, "nll_so_far": 3.102862105580429, "accuracy_so_far": 0.4139538949480108, "score_seconds": 300.6460206000047} +{"timestamp": "2026-11-25T08:51:05+00:00", "split": "dev", "targets_scored": 2713600, "targets_to_score": 5124071, "nll_so_far": 3.101698950405918, "accuracy_so_far": 0.41429503242924526, "score_seconds": 360.6634387000013} +{"timestamp": "2026-11-25T08:52:05+00:00", "split": "dev", "targets_scored": 3137536, "targets_to_score": 5124071, "nll_so_far": 3.101010041516402, "accuracy_so_far": 0.4144723757751306, "score_seconds": 420.88872190000257} +{"timestamp": "2026-11-25T08:53:05+00:00", "split": "dev", "targets_scored": 3551232, "targets_to_score": 5124071, "nll_so_far": 3.1046923588610373, "accuracy_so_far": 0.41412276077710497, "score_seconds": 481.0650458000018} +{"timestamp": "2026-11-25T08:54:05+00:00", "split": "dev", "targets_scored": 3964928, "targets_to_score": 5124071, "nll_so_far": 3.106465390102634, "accuracy_so_far": 0.41398910648566634, "score_seconds": 541.0955837000001} +{"timestamp": "2026-11-25T08:55:05+00:00", "split": "dev", "targets_scored": 4384768, "targets_to_score": 5124071, "nll_so_far": 3.108081771263749, "accuracy_so_far": 0.41383626226062586, "score_seconds": 601.369492100006} +{"timestamp": "2026-11-25T08:56:05+00:00", "split": "dev", "targets_scored": 4814848, "targets_to_score": 5124071, "nll_so_far": 3.111372113929109, "accuracy_so_far": 0.41350858843311356, "score_seconds": 661.4340723000059} +{"timestamp": "2026-11-25T08:56:50+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1139476033557547, "accuracy_so_far": 0.41320992624809455, "score_seconds": 705.7124765000044} +{"timestamp": "2026-11-25T08:56:52+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:56:55+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:56:57+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-pilot-s00-third-r03-20261125T070835232349Z.jsonl b/logs/abstracts-pilot-s00-third-r03-20261125T070835232349Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..01eed596dda3b26a7ef669f7f57625b80cb07384 --- /dev/null +++ b/logs/abstracts-pilot-s00-third-r03-20261125T070835232349Z.jsonl @@ -0,0 +1,25 @@ +{"timestamp": "2026-11-25T07:10:36+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.7549512999976287, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}} +{"timestamp": "2026-11-25T07:10:43+00:00", "step": 2, "tokens": 2048, "train_seconds": 7.784967199997482, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1557306051254272, "derivatives": {"third": {"estimate": 63550970134528.0, "raw_grad_norm": 1.0867890687798411e+19, "lambda": 8.794990192182448e-22}}, "penalty": 4.4714412722948273e-07} +{"timestamp": "2026-11-25T07:10:46+00:00", "step": 4, "tokens": 4096, "train_seconds": 8.992709899997863, "loss": 3.3350443840026855, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.148818850517273, "derivatives": {}, "dev_nll": 3.2052710236166604, "dev_accuracy": 0.40283203125} +{"timestamp": "2026-11-25T07:10:51+00:00", "step": 8, "tokens": 8192, "train_seconds": 11.37447599999723, "loss": 3.153599977493286, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.330934762954712, "derivatives": {}, "dev_nll": 3.1850391061161645, "dev_accuracy": 0.4056396484375} +{"timestamp": "2026-11-25T07:10:59+00:00", "step": 11, "tokens": 11264, "train_seconds": 19.229515199996968, "loss": 3.2227602005004883, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 20.010913848876953, "derivatives": {"third": {"estimate": 1530587563163648.0, "raw_grad_norm": 2.8263922879758997e+21, "lambda": 8.794990192182448e-22}}, "penalty": 1.0769202085040574e-05} +{"timestamp": "2026-11-25T07:11:01+00:00", "step": 12, "tokens": 12288, "train_seconds": 19.830211699998472, "loss": 3.2258496284484863, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1856259107589722, "derivatives": {}, "dev_nll": 3.1686210415209644, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T07:11:05+00:00", "step": 16, "tokens": 16384, "train_seconds": 22.11336940000183, "loss": 3.1759636402130127, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.2954821586608887, "derivatives": {}, "dev_nll": 3.1556127692456357, "dev_accuracy": 0.4083251953125} +{"timestamp": "2026-11-25T07:11:10+00:00", "step": 20, "tokens": 20480, "train_seconds": 24.520824300005188, "loss": 3.365950584411621, "accuracy": 0.3798828125, "lr": 8.38266930414179e-05, "gradient_norm": 1.2729922533035278, "derivatives": {}, "dev_nll": 3.143591393774841, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T07:11:17+00:00", "step": 22, "tokens": 22528, "train_seconds": 32.07198700000663, "loss": 3.1026458740234375, "accuracy": 0.400390625, "lr": 8.01209674912089e-05, "gradient_norm": 9.28732681274414, "derivatives": {"third": {"estimate": 1165224627404800.0, "raw_grad_norm": 1.3197244810220038e+21, "lambda": 8.794990192182448e-22}}, "penalty": 8.19851133577173e-06} +{"timestamp": "2026-11-25T07:11:20+00:00", "step": 24, "tokens": 24576, "train_seconds": 33.262805500005925, "loss": 3.1675891876220703, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4086129665374756, "derivatives": {}, "dev_nll": 3.1338581111631356, "dev_accuracy": 0.4075927734375} +{"timestamp": "2026-11-25T07:11:27+00:00", "step": 25, "tokens": 25600, "train_seconds": 40.032943500005786, "loss": 3.1646835803985596, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.3745598793029785, "derivatives": {"third": {"estimate": 143147149557760.0, "raw_grad_norm": 8.819714745499946e+19, "lambda": 8.794990192182448e-22}}, "penalty": 1.0071822211194986e-06} +{"timestamp": "2026-11-25T07:11:31+00:00", "step": 28, "tokens": 28672, "train_seconds": 41.769987900010165, "loss": 3.24495267868042, "accuracy": 0.3994140625, "lr": 6.757685356832243e-05, "gradient_norm": 1.2910264730453491, "derivatives": {}, "dev_nll": 3.1247553065186366, "dev_accuracy": 0.407958984375} +{"timestamp": "2026-11-25T07:11:36+00:00", "step": 32, "tokens": 32768, "train_seconds": 44.11454810001305, "loss": 3.475984573364258, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.348798394203186, "derivatives": {}, "dev_nll": 3.116393227071967, "dev_accuracy": 0.40966796875} +{"timestamp": "2026-11-25T07:11:40+00:00", "step": 36, "tokens": 36864, "train_seconds": 46.52359150001212, "loss": 3.1366770267486572, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.3073307275772095, "derivatives": {}, "dev_nll": 3.109527630964294, "dev_accuracy": 0.4110107421875} +{"timestamp": "2026-11-25T07:11:45+00:00", "step": 40, "tokens": 40960, "train_seconds": 49.058105700012675, "loss": 3.069873094558716, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2526063919067383, "derivatives": {}, "dev_nll": 3.1042128810076974, "dev_accuracy": 0.412109375} +{"timestamp": "2026-11-25T07:11:49+00:00", "step": 44, "tokens": 45056, "train_seconds": 51.578499600014766, "loss": 3.3931686878204346, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2775940895080566, "derivatives": {}, "dev_nll": 3.100137497414835, "dev_accuracy": 0.41259765625} +{"timestamp": "2026-11-25T07:11:54+00:00", "step": 48, "tokens": 49152, "train_seconds": 54.11914360001538, "loss": 3.235374927520752, "accuracy": 0.37890625, "lr": 2.443269974962181e-05, "gradient_norm": 1.304945468902588, "derivatives": {}, "dev_nll": 3.097055894031655, "dev_accuracy": 0.4124755859375} +{"timestamp": "2026-11-25T07:12:02+00:00", "step": 50, "tokens": 51200, "train_seconds": 61.74632690001454, "loss": 3.0874135494232178, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 1.267307996749878, "derivatives": {"third": {"estimate": 36042237280256.0, "raw_grad_norm": 1.8375159269671567e+19, "lambda": 8.794990192182448e-22}}, "penalty": 2.535928987073313e-07} +{"timestamp": "2026-11-25T07:12:05+00:00", "step": 52, "tokens": 53248, "train_seconds": 63.20483800001239, "loss": 3.068760871887207, "accuracy": 0.408203125, "lr": 1.8323724811743496e-05, "gradient_norm": 1.184583306312561, "derivatives": {}, "dev_nll": 3.0948601723648608, "dev_accuracy": 0.412841796875} +{"timestamp": "2026-11-25T07:12:10+00:00", "step": 56, "tokens": 57344, "train_seconds": 66.32172880001235, "loss": 3.2506747245788574, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1677639484405518, "derivatives": {}, "dev_nll": 3.0932112977607176, "dev_accuracy": 0.4134521484375} +{"timestamp": "2026-11-25T07:12:16+00:00", "step": 60, "tokens": 61440, "train_seconds": 69.4508472000125, "loss": 3.1683192253112793, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.2090530395507812, "derivatives": {}, "dev_nll": 3.091967608779669, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T07:12:21+00:00", "step": 64, "tokens": 65536, "train_seconds": 72.27489250001236, "loss": 3.1733510494232178, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.1200544834136963, "derivatives": {}, "dev_nll": 3.09093911992386, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T07:32:34+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T07:32:37+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T07:32:39+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-pilot-s00-third-r03-fp64-20261125T075700099979Z.jsonl b/logs/abstracts-pilot-s00-third-r03-fp64-20261125T075700099979Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..126cf51265a8371b7f9cc5bae93cf2c8055490ac --- /dev/null +++ b/logs/abstracts-pilot-s00-third-r03-fp64-20261125T075700099979Z.jsonl @@ -0,0 +1,37 @@ +{"timestamp": "2026-11-25T08:13:31+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.962927699998545, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.962927699998545} +{"timestamp": "2026-11-25T08:14:29+00:00", "step": 2, "tokens": 2048, "train_seconds": 59.588642899998376, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 2.477825164794922, "derivatives": {"third": {"estimate": 687644208669.4894, "raw_grad_norm": 1361448063580871.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.878220300000976}}, "host_probe_seconds": 57.878220300000976, "training_seconds_excluding_host_probes": 1.7104225999974005, "penalty": 0.0009999741266698578} +{"timestamp": "2026-11-25T08:14:36+00:00", "step": 4, "tokens": 4096, "train_seconds": 64.748265299997, "loss": 3.3355765342712402, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1430377960205078, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.870044999996026, "dev_nll": 3.205850869708229, "dev_accuracy": 0.4027099609375} +{"timestamp": "2026-11-25T08:14:40+00:00", "step": 8, "tokens": 8192, "train_seconds": 67.7308524, "loss": 3.1542978286743164, "accuracy": 0.41015625, "lr": 9.851624761560943e-05, "gradient_norm": 1.3654953241348267, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 9.852632099999028, "dev_nll": 3.185838397825137, "dev_accuracy": 0.406494140625} +{"timestamp": "2026-11-25T08:15:38+00:00", "step": 11, "tokens": 11264, "train_seconds": 125.70181410000441, "loss": 3.222909927368164, "accuracy": 0.412109375, "lr": 9.623426070191522e-05, "gradient_norm": 4.982945442199707, "derivatives": {"third": {"estimate": 305501104666.5071, "raw_grad_norm": 3591553778733335.5, "lambda": 1.8177534873097565e-16, "probe_seconds": 55.88409010000032}}, "host_probe_seconds": 55.88409010000032, "training_seconds_excluding_host_probes": 11.939503700003115, "penalty": 0.00044426055870762094} +{"timestamp": "2026-11-25T08:15:44+00:00", "step": 12, "tokens": 12288, "train_seconds": 130.09385470000416, "loss": 3.226421594619751, "accuracy": 0.4208984375, "lr": 9.525191870029581e-05, "gradient_norm": 1.1676359176635742, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.33154430000286, "dev_nll": 3.1688174732844345, "dev_accuracy": 0.40673828125} +{"timestamp": "2026-11-25T08:15:48+00:00", "step": 16, "tokens": 16384, "train_seconds": 132.96146440000302, "loss": 3.176070213317871, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3013406991958618, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.199154000001727, "dev_nll": 3.155030827212613, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T08:15:52+00:00", "step": 20, "tokens": 20480, "train_seconds": 135.62548290000996, "loss": 3.365168571472168, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2591444253921509, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 21.86317250000866, "dev_nll": 3.14251070341561, "dev_accuracy": 0.40771484375} +{"timestamp": "2026-11-25T08:16:52+00:00", "step": 22, "tokens": 22528, "train_seconds": 195.6454539000115, "loss": 3.1007277965545654, "accuracy": 0.4013671875, "lr": 8.01209674912089e-05, "gradient_norm": 1.1925373077392578, "derivatives": {"third": {"estimate": 171513315730.0954, "raw_grad_norm": 105524567385533.45, "lambda": 1.8177534873097565e-16, "probe_seconds": 58.4897392999992}}, "host_probe_seconds": 58.4897392999992, "training_seconds_excluding_host_probes": 23.39340420001099, "penalty": 0.0002494151422307522} +{"timestamp": "2026-11-25T08:16:58+00:00", "step": 24, "tokens": 24576, "train_seconds": 200.80499380000765, "loss": 3.1658759117126465, "accuracy": 0.4140625, "lr": 7.614895343622941e-05, "gradient_norm": 1.4459034204483032, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.552944100007153, "dev_nll": 3.131769879197236, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T08:17:55+00:00", "step": 25, "tokens": 25600, "train_seconds": 257.6465824000079, "loss": 3.161825180053711, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.5947465896606445, "derivatives": {"third": {"estimate": 918015450216.7732, "raw_grad_norm": 821309261872224.1, "lambda": 1.8177534873097565e-16, "probe_seconds": 56.20942120000109}}, "host_probe_seconds": 56.20942120000109, "training_seconds_excluding_host_probes": 29.185111500006315, "penalty": 0.0013349806288286204} +{"timestamp": "2026-11-25T08:18:02+00:00", "step": 28, "tokens": 28672, "train_seconds": 263.6649002000049, "loss": 3.242283582687378, "accuracy": 0.3974609375, "lr": 6.757685356832243e-05, "gradient_norm": 1.1834553480148315, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 35.203429300003336, "dev_nll": 3.1222981341998093, "dev_accuracy": 0.407958984375} +{"timestamp": "2026-11-25T08:18:06+00:00", "step": 32, "tokens": 32768, "train_seconds": 266.4159822000038, "loss": 3.47184419631958, "accuracy": 0.3759765625, "lr": 5.84728957956991e-05, "gradient_norm": 1.3780546188354492, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.954511300002196, "dev_nll": 3.1137536005699076, "dev_accuracy": 0.4097900390625} +{"timestamp": "2026-11-25T08:18:10+00:00", "step": 36, "tokens": 36864, "train_seconds": 269.1472620000095, "loss": 3.13436222076416, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.27980637550354, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.68579110000792, "dev_nll": 3.1068799886270426, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T08:18:14+00:00", "step": 40, "tokens": 40960, "train_seconds": 271.90369160000773, "loss": 3.0670571327209473, "accuracy": 0.4267578125, "lr": 4.021559281401244e-05, "gradient_norm": 1.2274017333984375, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 43.442220700006146, "dev_nll": 3.101782739860937, "dev_accuracy": 0.4114990234375} +{"timestamp": "2026-11-25T08:18:18+00:00", "step": 44, "tokens": 45056, "train_seconds": 274.78990590000467, "loss": 3.3899011611938477, "accuracy": 0.3681640625, "lr": 3.183432393205763e-05, "gradient_norm": 1.2034586668014526, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 46.32843500000308, "dev_nll": 3.098028525535483, "dev_accuracy": 0.4119873046875} +{"timestamp": "2026-11-25T08:18:22+00:00", "step": 48, "tokens": 49152, "train_seconds": 277.2874240000019, "loss": 3.2332143783569336, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.29664945602417, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 48.82595310000033, "dev_nll": 3.095082105253823, "dev_accuracy": 0.411865234375} +{"timestamp": "2026-11-25T08:19:21+00:00", "step": 50, "tokens": 51200, "train_seconds": 336.416138200002, "loss": 3.0864548683166504, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 2.964020013809204, "derivatives": {"third": {"estimate": 757294136851.5509, "raw_grad_norm": 1853270582350327.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.830706500000815}}, "host_probe_seconds": 57.830706500000815, "training_seconds_excluding_host_probes": 50.12396079999962, "penalty": 0.0011012592465449108} +{"timestamp": "2026-11-25T08:19:28+00:00", "step": 52, "tokens": 53248, "train_seconds": 341.5731149000021, "loss": 3.066990852355957, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1498953104019165, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 55.28093749999971, "dev_nll": 3.093058333382942, "dev_accuracy": 0.4130859375} +{"timestamp": "2026-11-25T08:19:31+00:00", "step": 56, "tokens": 57344, "train_seconds": 344.05631189999986, "loss": 3.2474496364593506, "accuracy": 0.4033203125, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1399725675582886, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 57.76413449999745, "dev_nll": 3.091498479945585, "dev_accuracy": 0.4139404296875} +{"timestamp": "2026-11-25T08:19:35+00:00", "step": 60, "tokens": 61440, "train_seconds": 346.7057458999989, "loss": 3.1669363975524902, "accuracy": 0.40625, "lr": 1.09514941707089e-05, "gradient_norm": 1.1765968799591064, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 60.41356849999647, "dev_nll": 3.0903065995080397, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T08:19:39+00:00", "step": 64, "tokens": 65536, "train_seconds": 349.2530617000011, "loss": 3.1704280376434326, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.135949730873108, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 62.960884299998725, "dev_nll": 3.089313570468221, "dev_accuracy": 0.4146728515625} +{"timestamp": "2026-11-25T08:20:39+00:00", "split": "dev", "targets_scored": 466944, "targets_to_score": 5124071, "nll_so_far": 3.1088260477000293, "accuracy_so_far": 0.41273685923793857, "score_seconds": 60.07268810000096} +{"timestamp": "2026-11-25T08:21:39+00:00", "split": "dev", "targets_scored": 925696, "targets_to_score": 5124071, "nll_so_far": 3.1037195404750437, "accuracy_so_far": 0.41355261338495575, "score_seconds": 120.31516709999778} +{"timestamp": "2026-11-25T08:22:40+00:00", "split": "dev", "targets_scored": 1353728, "targets_to_score": 5124071, "nll_so_far": 3.1033672920460624, "accuracy_so_far": 0.41359194756996975, "score_seconds": 180.52763439999762} +{"timestamp": "2026-11-25T08:23:40+00:00", "split": "dev", "targets_scored": 1810432, "targets_to_score": 5124071, "nll_so_far": 3.107115674487629, "accuracy_so_far": 0.4134543578549208, "score_seconds": 240.65438119999817} +{"timestamp": "2026-11-25T08:24:40+00:00", "split": "dev", "targets_scored": 2199552, "targets_to_score": 5124071, "nll_so_far": 3.103493530255763, "accuracy_so_far": 0.4138829179760242, "score_seconds": 300.8205721999984} +{"timestamp": "2026-11-25T08:25:41+00:00", "split": "dev", "targets_scored": 2633728, "targets_to_score": 5124071, "nll_so_far": 3.103459329177223, "accuracy_so_far": 0.4140503499222395, "score_seconds": 362.3933545} +{"timestamp": "2026-11-25T08:26:42+00:00", "split": "dev", "targets_scored": 3082240, "targets_to_score": 5124071, "nll_so_far": 3.1019827696466913, "accuracy_so_far": 0.41433827346345514, "score_seconds": 422.642445999998} +{"timestamp": "2026-11-25T08:27:42+00:00", "split": "dev", "targets_scored": 3534848, "targets_to_score": 5124071, "nll_so_far": 3.105719434134236, "accuracy_so_far": 0.4139979993482039, "score_seconds": 482.86223529999916} +{"timestamp": "2026-11-25T08:28:42+00:00", "split": "dev", "targets_scored": 3966976, "targets_to_score": 5124071, "nll_so_far": 3.1073454599289025, "accuracy_so_far": 0.413889572308983, "score_seconds": 543.0346836000026} +{"timestamp": "2026-11-25T08:29:42+00:00", "split": "dev", "targets_scored": 4415488, "targets_to_score": 5124071, "nll_so_far": 3.109312734825594, "accuracy_so_far": 0.4136915330762987, "score_seconds": 603.1816443999996} +{"timestamp": "2026-11-25T08:30:42+00:00", "split": "dev", "targets_scored": 4866048, "targets_to_score": 5124071, "nll_so_far": 3.111963312678009, "accuracy_so_far": 0.41345543652672556, "score_seconds": 663.3964372999981} +{"timestamp": "2026-11-25T08:31:17+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1148602603458824, "accuracy_so_far": 0.4130924415372074, "score_seconds": 697.9214215000029} +{"timestamp": "2026-11-25T08:31:20+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:31:22+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:31:25+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-pilot-s00-trace-r01-fp64-20261125T085720879652Z.jsonl b/logs/abstracts-pilot-s00-trace-r01-fp64-20261125T085720879652Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..11b7ef2b1461b094c73cbb137b7b6e8c7c3953c7 --- /dev/null +++ b/logs/abstracts-pilot-s00-trace-r01-fp64-20261125T085720879652Z.jsonl @@ -0,0 +1,38 @@ +{"timestamp": "2026-11-25T09:03:18+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.9647509999995236, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.9647509999995236} +{"timestamp": "2026-11-25T09:03:39+00:00", "step": 2, "tokens": 2048, "train_seconds": 21.437343199999304, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1353999376296997, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.27817579999828}}, "host_probe_seconds": 19.27817579999828, "training_seconds_excluding_host_probes": 2.1591674000010244, "penalty": 0.00017051273613559787} +{"timestamp": "2026-11-25T09:03:42+00:00", "step": 4, "tokens": 4096, "train_seconds": 23.435999600005744, "loss": 3.3350393772125244, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.147131085395813, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 4.157823800007463, "dev_nll": 3.2052851244807243, "dev_accuracy": 0.4029541015625} +{"timestamp": "2026-11-25T09:03:47+00:00", "step": 8, "tokens": 8192, "train_seconds": 26.635606999996526, "loss": 3.1536779403686523, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.3223280906677246, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 7.357431199998246, "dev_nll": 3.185060740157496, "dev_accuracy": 0.405517578125} +{"timestamp": "2026-11-25T09:04:10+00:00", "step": 11, "tokens": 11264, "train_seconds": 49.59352889999718, "loss": 3.2227516174316406, "accuracy": 0.416015625, "lr": 9.623426070191522e-05, "gradient_norm": 1.1237372159957886, "derivatives": {"trace": {"estimate": -388.35120422327293, "raw_grad_norm": 877122.8650868011, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.33480299999792}}, "host_probe_seconds": 20.33480299999792, "training_seconds_excluding_host_probes": 9.980550100000983, "penalty": -4.383365097631535e-05} +{"timestamp": "2026-11-25T09:04:12+00:00", "step": 12, "tokens": 12288, "train_seconds": 50.43355399999564, "loss": 3.224705934524536, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1681793928146362, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.820575199999439, "dev_nll": 3.1675555876572616, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:04:17+00:00", "step": 16, "tokens": 16384, "train_seconds": 53.73809659999097, "loss": 3.174398899078369, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3200350999832153, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 14.125117799994769, "dev_nll": 3.1534040844417177, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T09:04:21+00:00", "step": 20, "tokens": 20480, "train_seconds": 56.76466919999075, "loss": 3.364372730255127, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.254978060722351, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 17.15169039999455, "dev_nll": 3.140957407304086, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:04:43+00:00", "step": 22, "tokens": 22528, "train_seconds": 78.32256149999012, "loss": 3.1006228923797607, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.1860942840576172, "derivatives": {"trace": {"estimate": -555.4787028620826, "raw_grad_norm": 946878.0975472054, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.02835800000321}}, "host_probe_seconds": 20.02835800000321, "training_seconds_excluding_host_probes": 18.681224699990707, "penalty": -6.26975256449424e-05} +{"timestamp": "2026-11-25T09:04:45+00:00", "step": 24, "tokens": 24576, "train_seconds": 79.81583959998534, "loss": 3.1637511253356934, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4082975387573242, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 20.17450279998593, "dev_nll": 3.13006722118007, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:05:07+00:00", "step": 25, "tokens": 25600, "train_seconds": 101.3181677999819, "loss": 3.1608335971832275, "accuracy": 0.3984375, "lr": 7.407614758194375e-05, "gradient_norm": 1.2852429151535034, "derivatives": {"trace": {"estimate": 2299.7292222418528, "raw_grad_norm": 3490820.997072178, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.51554220000253}}, "host_probe_seconds": 20.51554220000253, "training_seconds_excluding_host_probes": 21.161288799979957, "penalty": 0.00025957310540442377} +{"timestamp": "2026-11-25T09:05:10+00:00", "step": 28, "tokens": 28672, "train_seconds": 103.61438829996769, "loss": 3.239475965499878, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.2070343494415283, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.45750929996575, "dev_nll": 3.120411109237466, "dev_accuracy": 0.4083251953125} +{"timestamp": "2026-11-25T09:05:14+00:00", "step": 32, "tokens": 32768, "train_seconds": 106.47401739995985, "loss": 3.4724326133728027, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.3576719760894775, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 26.317138399957912, "dev_nll": 3.1119666167651303, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T09:05:19+00:00", "step": 36, "tokens": 36864, "train_seconds": 109.24634419994982, "loss": 3.1319172382354736, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2514125108718872, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 29.08946519994788, "dev_nll": 3.1052487258566543, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T09:05:23+00:00", "step": 40, "tokens": 40960, "train_seconds": 112.13995259995136, "loss": 3.0671634674072266, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2346023321151733, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.98307359994942, "dev_nll": 3.1002497029840015, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T09:05:27+00:00", "step": 44, "tokens": 45056, "train_seconds": 115.08865379995405, "loss": 3.389225959777832, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2214243412017822, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.93177479995211, "dev_nll": 3.0965155956801027, "dev_accuracy": 0.41259765625} +{"timestamp": "2026-11-25T09:05:31+00:00", "step": 48, "tokens": 49152, "train_seconds": 117.79835939995246, "loss": 3.231717586517334, "accuracy": 0.3779296875, "lr": 2.443269974962181e-05, "gradient_norm": 1.2990587949752808, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.641480399950524, "dev_nll": 3.0936556336237118, "dev_accuracy": 0.413330078125} +{"timestamp": "2026-11-25T09:05:53+00:00", "step": 50, "tokens": 51200, "train_seconds": 139.57128269995883, "loss": 3.0851714611053467, "accuracy": 0.40625, "lr": 2.1199063110826618e-05, "gradient_norm": 1.3945879936218262, "derivatives": {"trace": {"estimate": -846.8847442658138, "raw_grad_norm": 3964369.049186865, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.938605099996494}}, "host_probe_seconds": 19.938605099996494, "training_seconds_excluding_host_probes": 39.4757985999604, "penalty": -9.558886362039284e-05} +{"timestamp": "2026-11-25T09:05:56+00:00", "step": 52, "tokens": 53248, "train_seconds": 141.22608179996314, "loss": 3.065091848373413, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1322085857391357, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 41.13059769996471, "dev_nll": 3.0916816459503025, "dev_accuracy": 0.414794921875} +{"timestamp": "2026-11-25T09:06:00+00:00", "step": 56, "tokens": 57344, "train_seconds": 144.38299729996652, "loss": 3.2471041679382324, "accuracy": 0.4013671875, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1540918350219727, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.28751319996809, "dev_nll": 3.090217571356334, "dev_accuracy": 0.4150390625} +{"timestamp": "2026-11-25T09:06:05+00:00", "step": 60, "tokens": 61440, "train_seconds": 147.70638039996993, "loss": 3.167518138885498, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2444484233856201, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.6108962999715, "dev_nll": 3.08909221511567, "dev_accuracy": 0.415283203125} +{"timestamp": "2026-11-25T09:06:09+00:00", "step": 64, "tokens": 65536, "train_seconds": 150.8196659999594, "loss": 3.1687469482421875, "accuracy": 0.4013671875, "lr": 1e-05, "gradient_norm": 1.07345449924469, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.72418189996097, "dev_nll": 3.0881463024416007, "dev_accuracy": 0.41552734375} +{"timestamp": "2026-11-25T09:07:10+00:00", "split": "dev", "targets_scored": 434176, "targets_to_score": 5124071, "nll_so_far": 3.1068496845447333, "accuracy_so_far": 0.4127197265625, "score_seconds": 60.09624040000199} +{"timestamp": "2026-11-25T09:08:10+00:00", "split": "dev", "targets_scored": 866304, "targets_to_score": 5124071, "nll_so_far": 3.105087936506882, "accuracy_so_far": 0.4133179576684397, "score_seconds": 120.18926829999691} +{"timestamp": "2026-11-25T09:09:10+00:00", "split": "dev", "targets_scored": 1286144, "targets_to_score": 5124071, "nll_so_far": 3.101172719608657, "accuracy_so_far": 0.41383390973328027, "score_seconds": 180.27346309999848} +{"timestamp": "2026-11-25T09:10:10+00:00", "split": "dev", "targets_scored": 1689600, "targets_to_score": 5124071, "nll_so_far": 3.104996855357436, "accuracy_so_far": 0.41343217329545456, "score_seconds": 240.31493559999944} +{"timestamp": "2026-11-25T09:11:10+00:00", "split": "dev", "targets_scored": 2097152, "targets_to_score": 5124071, "nll_so_far": 3.1032609419598884, "accuracy_so_far": 0.4139552116394043, "score_seconds": 300.57805019999796} +{"timestamp": "2026-11-25T09:12:10+00:00", "split": "dev", "targets_scored": 2525184, "targets_to_score": 5124071, "nll_so_far": 3.1021740298394556, "accuracy_so_far": 0.4141622947080292, "score_seconds": 360.6529051999969} +{"timestamp": "2026-11-25T09:13:10+00:00", "split": "dev", "targets_scored": 2924544, "targets_to_score": 5124071, "nll_so_far": 3.100780414959027, "accuracy_so_far": 0.4144256335346639, "score_seconds": 420.8091964999985} +{"timestamp": "2026-11-25T09:14:11+00:00", "split": "dev", "targets_scored": 3323904, "targets_to_score": 5124071, "nll_so_far": 3.1028758950370237, "accuracy_so_far": 0.41421683658733827, "score_seconds": 480.97402699999657} +{"timestamp": "2026-11-25T09:15:11+00:00", "split": "dev", "targets_scored": 3723264, "targets_to_score": 5124071, "nll_so_far": 3.1058573286845403, "accuracy_so_far": 0.41401415532178215, "score_seconds": 541.1911744000026} +{"timestamp": "2026-11-25T09:16:11+00:00", "split": "dev", "targets_scored": 4157440, "targets_to_score": 5124071, "nll_so_far": 3.1075497790893514, "accuracy_so_far": 0.4138606931188424, "score_seconds": 601.2338346999968} +{"timestamp": "2026-11-25T09:17:11+00:00", "split": "dev", "targets_scored": 4581376, "targets_to_score": 5124071, "nll_so_far": 3.1097697948968888, "accuracy_so_far": 0.41361743720663835, "score_seconds": 661.2426084000035} +{"timestamp": "2026-11-25T09:18:11+00:00", "split": "dev", "targets_scored": 4984832, "targets_to_score": 5124071, "nll_so_far": 3.111724519400973, "accuracy_so_far": 0.4135013978404889, "score_seconds": 721.3869428000035} +{"timestamp": "2026-11-25T09:18:31+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.113974483425786, "accuracy_so_far": 0.4132109020347298, "score_seconds": 741.1088375000036} +{"timestamp": "2026-11-25T09:18:37+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T09:18:40+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T09:18:42+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-pilot-s00-trace-r03-fp64-20261125T091906793839Z.jsonl b/logs/abstracts-pilot-s00-trace-r03-fp64-20261125T091906793839Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d629f01de22ff5b9228e1bf5ac6d8f4254108392 --- /dev/null +++ b/logs/abstracts-pilot-s00-trace-r03-fp64-20261125T091906793839Z.jsonl @@ -0,0 +1,38 @@ +{"timestamp": "2026-11-25T09:19:10+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8203949000017019, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.8203949000017019} +{"timestamp": "2026-11-25T09:19:32+00:00", "step": 2, "tokens": 2048, "train_seconds": 22.69535729999916, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1337052583694458, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 4.232668506589168e-08, "probe_seconds": 20.837838999999803}}, "host_probe_seconds": 20.837838999999803, "training_seconds_excluding_host_probes": 1.8575182999993558, "penalty": 0.0005115382084067936} +{"timestamp": "2026-11-25T09:19:35+00:00", "step": 4, "tokens": 4096, "train_seconds": 24.184651600007783, "loss": 3.335285186767578, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1429003477096558, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 3.346812600007979, "dev_nll": 3.2050935145816766, "dev_accuracy": 0.4029541015625} +{"timestamp": "2026-11-25T09:19:39+00:00", "step": 8, "tokens": 8192, "train_seconds": 27.588129100004153, "loss": 3.153710126876831, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.307447075843811, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.750290100004349, "dev_nll": 3.1848572317976505, "dev_accuracy": 0.40576171875} +{"timestamp": "2026-11-25T09:20:03+00:00", "step": 11, "tokens": 11264, "train_seconds": 51.34093500000745, "loss": 3.222881555557251, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 1.140632152557373, "derivatives": {"trace": {"estimate": -410.10428172081595, "raw_grad_norm": 868195.9114623038, "lambda": 4.232668506589168e-08, "probe_seconds": 20.85973699999886}}, "host_probe_seconds": 20.85973699999886, "training_seconds_excluding_host_probes": 9.643359000008786, "penalty": -0.00013886683821256557} +{"timestamp": "2026-11-25T09:20:06+00:00", "step": 12, "tokens": 12288, "train_seconds": 52.29275320001034, "loss": 3.2244973182678223, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1609612703323364, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.595177200011676, "dev_nll": 3.167334184923675, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T09:20:10+00:00", "step": 16, "tokens": 16384, "train_seconds": 55.284040600010485, "loss": 3.1743507385253906, "accuracy": 0.4013671875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3022633790969849, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 13.586464600011823, "dev_nll": 3.153323730221018, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T09:20:14+00:00", "step": 20, "tokens": 20480, "train_seconds": 58.501724600013404, "loss": 3.3647890090942383, "accuracy": 0.380859375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2582865953445435, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.80414860001474, "dev_nll": 3.141088357253466, "dev_accuracy": 0.40771484375} +{"timestamp": "2026-11-25T09:20:37+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.72395010001492, "loss": 3.1014509201049805, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.2094333171844482, "derivatives": {"trace": {"estimate": -347.26580623998086, "raw_grad_norm": 1033792.7539904471, "lambda": 4.232668506589168e-08, "probe_seconds": 20.768768099995214}}, "host_probe_seconds": 20.768768099995214, "training_seconds_excluding_host_probes": 18.257606000021042, "penalty": -0.00011758888331898106} +{"timestamp": "2026-11-25T09:20:39+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.08860320001986, "loss": 3.163144111633301, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4822345972061157, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.622259100025985, "dev_nll": 3.1304753722506575, "dev_accuracy": 0.4068603515625} +{"timestamp": "2026-11-25T09:21:01+00:00", "step": 25, "tokens": 25600, "train_seconds": 104.08553360002406, "loss": 3.160763740539551, "accuracy": 0.3994140625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2352839708328247, "derivatives": {"trace": {"estimate": 2431.418073750566, "raw_grad_norm": 1151210.280645826, "lambda": 4.232668506589168e-08, "probe_seconds": 20.968858100000944}}, "host_probe_seconds": 20.968858100000944, "training_seconds_excluding_host_probes": 20.650331400029245, "penalty": 0.0008233109365692575} +{"timestamp": "2026-11-25T09:21:05+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.44928290002281, "loss": 3.2388410568237305, "accuracy": 0.3984375, "lr": 6.757685356832243e-05, "gradient_norm": 1.238802433013916, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.01408070002799, "dev_nll": 3.1210773665225133, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T09:21:09+00:00", "step": 32, "tokens": 32768, "train_seconds": 109.3466636000303, "loss": 3.472531318664551, "accuracy": 0.375, "lr": 5.84728957956991e-05, "gradient_norm": 1.3810346126556396, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 25.911461400035478, "dev_nll": 3.1126226205960847, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T09:21:13+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.22359190003772, "loss": 3.132420063018799, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2544296979904175, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.7883897000429, "dev_nll": 3.1055949754081666, "dev_accuracy": 0.410888671875} +{"timestamp": "2026-11-25T09:21:18+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.42110020003747, "loss": 3.0673372745513916, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2362866401672363, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.985898000042653, "dev_nll": 3.1004766558180563, "dev_accuracy": 0.410888671875} +{"timestamp": "2026-11-25T09:21:22+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.3313624000366, "loss": 3.38905668258667, "accuracy": 0.373046875, "lr": 3.183432393205763e-05, "gradient_norm": 1.2262520790100098, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.89616020004178, "dev_nll": 3.096751482808031, "dev_accuracy": 0.412353515625} +{"timestamp": "2026-11-25T09:21:26+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19241670003248, "loss": 3.232553482055664, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.2406020164489746, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.75721450003766, "dev_nll": 3.0938708244939335, "dev_accuracy": 0.4136962890625} +{"timestamp": "2026-11-25T09:21:48+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.58278420003626, "loss": 3.0859992504119873, "accuracy": 0.404296875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.6927725076675415, "derivatives": {"trace": {"estimate": 1306.07316143556, "raw_grad_norm": 3021103.0699667563, "lambda": 4.232668506589168e-08, "probe_seconds": 19.854530700002215}}, "host_probe_seconds": 19.854530700002215, "training_seconds_excluding_host_probes": 39.293051300039224, "penalty": 0.0004422539790167716} +{"timestamp": "2026-11-25T09:21:51+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.27424620003876, "loss": 3.066322088241577, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1389482021331787, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.984513300041726, "dev_nll": 3.0918713661958463, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T09:21:55+00:00", "step": 56, "tokens": 57344, "train_seconds": 147.47696270003507, "loss": 3.2468066215515137, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1320654153823853, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.18722980003804, "dev_nll": 3.0903795417398214, "dev_accuracy": 0.4150390625} +{"timestamp": "2026-11-25T09:21:59+00:00", "step": 60, "tokens": 61440, "train_seconds": 150.7008369000323, "loss": 3.167062759399414, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1818270683288574, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.411104000035266, "dev_nll": 3.0892473537824117, "dev_accuracy": 0.4154052734375} +{"timestamp": "2026-11-25T09:22:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 153.6093276000247, "loss": 3.1683597564697266, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.0687135457992554, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.319594700027665, "dev_nll": 3.0883107148692943, "dev_accuracy": 0.416015625} +{"timestamp": "2026-11-25T09:23:04+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108243330600159, "accuracy_so_far": 0.4124341170753589, "score_seconds": 60.13073129999975} +{"timestamp": "2026-11-25T09:24:04+00:00", "split": "dev", "targets_scored": 854016, "targets_to_score": 5124071, "nll_so_far": 3.1070146722489036, "accuracy_so_far": 0.413103501573741, "score_seconds": 120.2883948000017} +{"timestamp": "2026-11-25T09:25:04+00:00", "split": "dev", "targets_scored": 1265664, "targets_to_score": 5124071, "nll_so_far": 3.1018533033671454, "accuracy_so_far": 0.4137030049049353, "score_seconds": 180.4415474999987} +{"timestamp": "2026-11-25T09:26:05+00:00", "split": "dev", "targets_scored": 1662976, "targets_to_score": 5124071, "nll_so_far": 3.1042621866544695, "accuracy_so_far": 0.4134822150169335, "score_seconds": 240.70859909999854} +{"timestamp": "2026-11-25T09:27:05+00:00", "split": "dev", "targets_scored": 2086912, "targets_to_score": 5124071, "nll_so_far": 3.1035574695026416, "accuracy_so_far": 0.413932643063052, "score_seconds": 300.79591269999946} +{"timestamp": "2026-11-25T09:28:05+00:00", "split": "dev", "targets_scored": 2490368, "targets_to_score": 5124071, "nll_so_far": 3.1020153299809623, "accuracy_so_far": 0.4141496357164885, "score_seconds": 360.9334042000046} +{"timestamp": "2026-11-25T09:29:05+00:00", "split": "dev", "targets_scored": 2887680, "targets_to_score": 5124071, "nll_so_far": 3.101619829636741, "accuracy_so_far": 0.4143035239361702, "score_seconds": 420.9424818000043} +{"timestamp": "2026-11-25T09:30:05+00:00", "split": "dev", "targets_scored": 3289088, "targets_to_score": 5124071, "nll_so_far": 3.1023535435154668, "accuracy_so_far": 0.4142722845968244, "score_seconds": 480.96664969999983} +{"timestamp": "2026-11-25T09:31:05+00:00", "split": "dev", "targets_scored": 3680256, "targets_to_score": 5124071, "nll_so_far": 3.1060520678337014, "accuracy_so_far": 0.4139847880147468, "score_seconds": 541.0524734999999} +{"timestamp": "2026-11-25T09:32:05+00:00", "split": "dev", "targets_scored": 4102144, "targets_to_score": 5124071, "nll_so_far": 3.1072689601809764, "accuracy_so_far": 0.4138723555292062, "score_seconds": 601.3164510999995} +{"timestamp": "2026-11-25T09:33:05+00:00", "split": "dev", "targets_scored": 4524032, "targets_to_score": 5124071, "nll_so_far": 3.1091822808043044, "accuracy_so_far": 0.4136701508742644, "score_seconds": 661.4581842000043} +{"timestamp": "2026-11-25T09:34:06+00:00", "split": "dev", "targets_scored": 4927488, "targets_to_score": 5124071, "nll_so_far": 3.111107949572089, "accuracy_so_far": 0.41351759760754364, "score_seconds": 721.6380754999991} +{"timestamp": "2026-11-25T09:34:33+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.11411782781259, "accuracy_so_far": 0.4131599659723685, "score_seconds": 749.4125703000027} +{"timestamp": "2026-11-25T09:34:40+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T09:34:42+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T09:34:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/logs/abstracts-pilot-s00-trace-r10-fp64-20261125T093522605963Z.jsonl b/logs/abstracts-pilot-s00-trace-r10-fp64-20261125T093522605963Z.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7a73d232e44dcb9c5446f8abc728a977f3a712cc --- /dev/null +++ b/logs/abstracts-pilot-s00-trace-r10-fp64-20261125T093522605963Z.jsonl @@ -0,0 +1,28 @@ +{"timestamp": "2026-11-25T09:35:45+00:00", "step": 1, "tokens": 1024, "train_seconds": 1.9998186000011628, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 1.9998186000011628} +{"timestamp": "2026-11-25T09:36:09+00:00", "step": 2, "tokens": 2048, "train_seconds": 25.931917200003227, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.4221022129058838, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 1.4108895021963896e-07, "probe_seconds": 22.93367600000056}}, "host_probe_seconds": 22.93367600000056, "training_seconds_excluding_host_probes": 2.998241200002667, "penalty": 0.0017051273613559789} +{"timestamp": "2026-11-25T09:36:12+00:00", "step": 4, "tokens": 4096, "train_seconds": 27.886579900005017, "loss": 3.335796594619751, "accuracy": 0.3681640625, "lr": 9.994033404481737e-05, "gradient_norm": 1.134796142578125, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 4.952903900004458, "dev_nll": 3.2050312721403316, "dev_accuracy": 0.4031982421875} +{"timestamp": "2026-11-25T09:36:17+00:00", "step": 8, "tokens": 8192, "train_seconds": 31.158227900014026, "loss": 3.153012275695801, "accuracy": 0.41015625, "lr": 9.851624761560943e-05, "gradient_norm": 1.293690800666809, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 8.224551900013466, "dev_nll": 3.184641196625307, "dev_accuracy": 0.40625} +{"timestamp": "2026-11-25T09:36:40+00:00", "step": 11, "tokens": 11264, "train_seconds": 53.63846070001455, "loss": 3.2229928970336914, "accuracy": 0.4130859375, "lr": 9.623426070191522e-05, "gradient_norm": 1.285159707069397, "derivatives": {"trace": {"estimate": -694.6261944338884, "raw_grad_norm": 650351.7519319204, "lambda": 1.4108895021963896e-07, "probe_seconds": 19.705065300004208}}, "host_probe_seconds": 19.705065300004208, "training_seconds_excluding_host_probes": 10.99971940000978, "penalty": -0.000784032644541921} +{"timestamp": "2026-11-25T09:36:42+00:00", "step": 12, "tokens": 12288, "train_seconds": 54.50693680001132, "loss": 3.2245121002197266, "accuracy": 0.423828125, "lr": 9.525191870029581e-05, "gradient_norm": 1.1548209190368652, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 11.86819550000655, "dev_nll": 3.167126943531912, "dev_accuracy": 0.4075927734375} +{"timestamp": "2026-11-25T09:36:46+00:00", "step": 16, "tokens": 16384, "train_seconds": 57.64860890001728, "loss": 3.174424886703491, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.290644884109497, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 15.009867600012512, "dev_nll": 3.1532784855226055, "dev_accuracy": 0.408203125} +{"timestamp": "2026-11-25T09:36:50+00:00", "step": 20, "tokens": 20480, "train_seconds": 60.63691110002401, "loss": 3.3655636310577393, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2696744203567505, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 17.99816980001924, "dev_nll": 3.1408604835742153, "dev_accuracy": 0.4078369140625} +{"timestamp": "2026-11-25T09:37:11+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.78779520002718, "loss": 3.1017513275146484, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.8386253118515015, "derivatives": {"trace": {"estimate": -1085.6086012298745, "raw_grad_norm": 1365097.8139750937, "lambda": 1.4108895021963896e-07, "probe_seconds": 18.63979919999838}}, "host_probe_seconds": 18.63979919999838, "training_seconds_excluding_host_probes": 19.50925470002403, "penalty": -0.0012253390231754691} +{"timestamp": "2026-11-25T09:37:14+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.46734170003037, "loss": 3.164275884628296, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.360983967781067, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 21.18880120002723, "dev_nll": 3.1299168045516126, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T09:37:34+00:00", "step": 25, "tokens": 25600, "train_seconds": 103.21756500003539, "loss": 3.160609245300293, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2670272588729858, "derivatives": {"trace": {"estimate": 2133.4841010745668, "raw_grad_norm": 659490.9875052081, "lambda": 1.4108895021963896e-07, "probe_seconds": 20.004875300001004}}, "host_probe_seconds": 20.004875300001004, "training_seconds_excluding_host_probes": 21.934149200031243, "penalty": 0.0024080882570472056} +{"timestamp": "2026-11-25T09:37:38+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.03125510003883, "loss": 3.2406740188598633, "accuracy": 0.3974609375, "lr": 6.757685356832243e-05, "gradient_norm": 1.1818077564239502, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 24.747839300034684, "dev_nll": 3.120155265030917, "dev_accuracy": 0.4091796875} +{"timestamp": "2026-11-25T09:37:43+00:00", "step": 32, "tokens": 32768, "train_seconds": 108.91973190003773, "loss": 3.4720165729522705, "accuracy": 0.3759765625, "lr": 5.84728957956991e-05, "gradient_norm": 1.3508952856063843, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 27.636316100033582, "dev_nll": 3.1115943496697582, "dev_accuracy": 0.4105224609375} +{"timestamp": "2026-11-25T09:37:47+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.10405770003854, "loss": 3.1347522735595703, "accuracy": 0.3984375, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2365068197250366, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 30.82064190003439, "dev_nll": 3.1048434849944897, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T09:37:51+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.19499970002653, "loss": 3.067256212234497, "accuracy": 0.4228515625, "lr": 4.021559281401244e-05, "gradient_norm": 1.2012919187545776, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 33.91158390002238, "dev_nll": 3.0998129649669863, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T09:37:56+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.37908410001546, "loss": 3.3904900550842285, "accuracy": 0.375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2358940839767456, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.09566830001131, "dev_nll": 3.096153337683063, "dev_accuracy": 0.4130859375} +{"timestamp": "2026-11-25T09:38:00+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19837050001661, "loss": 3.229557991027832, "accuracy": 0.373046875, "lr": 2.443269974962181e-05, "gradient_norm": 1.2014778852462769, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 39.91495470001246, "dev_nll": 3.0933790989220142, "dev_accuracy": 0.413330078125} +{"timestamp": "2026-11-25T09:38:21+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.41185330001463, "loss": 3.0856502056121826, "accuracy": 0.4013671875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.9504165649414062, "derivatives": {"trace": {"estimate": 1913.6708559900926, "raw_grad_norm": 1412886.4508293907, "lambda": 1.4108895021963896e-07, "probe_seconds": 19.384623899997678}}, "host_probe_seconds": 19.384623899997678, "training_seconds_excluding_host_probes": 41.7438136000128, "penalty": 0.0021599824971004805} +{"timestamp": "2026-11-25T09:38:24+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.0188718000063, "loss": 3.066619634628296, "accuracy": 0.4091796875, "lr": 1.8323724811743496e-05, "gradient_norm": 1.161417007446289, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 43.35083210000448, "dev_nll": 3.0914076771005057, "dev_accuracy": 0.4141845703125} +{"timestamp": "2026-11-25T09:38:28+00:00", "step": 56, "tokens": 57344, "train_seconds": 146.35710040000413, "loss": 3.2472095489501953, "accuracy": 0.400390625, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1212785243988037, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 45.6890607000023, "dev_nll": 3.0899070280138403, "dev_accuracy": 0.4149169921875} +{"timestamp": "2026-11-25T09:38:32+00:00", "step": 60, "tokens": 61440, "train_seconds": 149.4089021000109, "loss": 3.1670827865600586, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1919764280319214, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 48.740862400009064, "dev_nll": 3.0887783502112143, "dev_accuracy": 0.415771484375} +{"timestamp": "2026-11-25T09:38:36+00:00", "step": 64, "tokens": 65536, "train_seconds": 152.16303770000377, "loss": 3.1684961318969727, "accuracy": 0.4013671875, "lr": 1e-05, "gradient_norm": 1.0735735893249512, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 51.49499800000194, "dev_nll": 3.087854042823892, "dev_accuracy": 0.416259765625} +{"timestamp": "2026-11-25T09:39:36+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108446352100267, "accuracy_so_far": 0.4125626121411483, "score_seconds": 60.06455969999661} +{"timestamp": "2026-11-25T09:40:37+00:00", "split": "dev", "targets_scored": 845824, "targets_to_score": 5124071, "nll_so_far": 3.1068979659919416, "accuracy_so_far": 0.41308357294188863, "score_seconds": 120.58383239999966} +{"timestamp": "2026-11-25T09:41:37+00:00", "split": "dev", "targets_scored": 1263616, "targets_to_score": 5124071, "nll_so_far": 3.101885629086144, "accuracy_so_far": 0.41370479639384117, "score_seconds": 180.81926940000267} +{"timestamp": "2026-11-25T09:42:37+00:00", "split": "dev", "targets_scored": 1699840, "targets_to_score": 5124071, "nll_so_far": 3.1058517757200086, "accuracy_so_far": 0.4133830242846386, "score_seconds": 241.07107389999874} +{"timestamp": "2026-11-25T09:43:37+00:00", "split": "dev", "targets_scored": 2148352, "targets_to_score": 5124071, "nll_so_far": 3.102912329030787, "accuracy_so_far": 0.41392099618684464, "score_seconds": 301.15721920000215} +{"timestamp": "2026-11-25T09:44:38+00:00", "split": "dev", "targets_scored": 2600960, "targets_to_score": 5124071, "nll_so_far": 3.1033132011672175, "accuracy_so_far": 0.4140867218257874, "score_seconds": 361.2635885999989} diff --git a/logs/adapter-calibration-replay.log b/logs/adapter-calibration-replay.log new file mode 100644 index 0000000000000000000000000000000000000000..fb0375dc2d3accea69f74616ca76685ee310e4b1 --- /dev/null +++ b/logs/adapter-calibration-replay.log @@ -0,0 +1,64 @@ + +Loading weights: 0%| | 0/292 [00:00", line 198, in _run_module_as_main + File "", line 88, in _run_code + File "[project]\src\thirdloss\cli.py", line 106, in + main() + File "[project]\src\thirdloss\cli.py", line 95, in main + run_study(project,storage,stages,device,args.publish) + File "[project]\src\thirdloss\study.py", line 153, in run_study + run(stage,"third","pilot",0,0.03) + File "[project]\src\thirdloss\study.py", line 148, in run + row = run_one(project,storage,stage,method,phase,seed,ratio,device) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "[project]\src\thirdloss\train.py", line 109, in run_one + return _run(project, storage, config, recorder, device, microbatch) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "[project]\src\thirdloss\train.py", line 121, in _run + config["coefficients"] = chosen_coefficients(project,storage,config,device,microbatch) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "[project]\src\thirdloss\train.py", line 62, in chosen_coefficients + return {kind: scale*calibrate(project,storage,stage,kind,device,microbatch) for kind,scale in kinds.items()} + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "[project]\src\thirdloss\objectives.py", line 62, in calibrate + raise FloatingPointError(f"Nonfinite or zero {kind} calibration norm at draw {step}: {norm}") +FloatingPointError: Nonfinite or zero third calibration norm at draw 0: inf diff --git a/logs/study-20261125T0808.log b/logs/study-20261125T0808.log new file mode 100644 index 0000000000000000000000000000000000000000..5c46e30e2b33621f2f3a8aa7c75af90e6db9e62b --- /dev/null +++ b/logs/study-20261125T0808.log @@ -0,0 +1,173 @@ + +Loading weights: 0%| | 0/292 [00:00 -[Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md) +[Explore the results](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Hugging Face explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md) -Recorded 19 runs, including 19 with a completed summary. +Recorded 20 runs, including 19 with a completed summary. **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets). **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets). -**TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using selected on development. +**TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using strengths selected on development. **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW, 0.00074 nats per target token higher against Hessian trace. These are single-seed descriptions using initial pilot strengths. @@ -85,9 +85,11 @@ Recorded 19 runs, including 19 with a completed summary. ### Recorded predictions -First archived sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md) +First registered checkpoint and sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md) -
Research abstracts · Initial checkpoint +
Research abstracts · Initial checkpoint · control, seed 0 + +[Recorded sample](results/abstracts-control-s00-initial-r00/samples.jsonl) **Prompt** @@ -111,7 +113,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
Research abstracts · Unigram +
Research abstracts · Unigram · control, seed 0 + +[Recorded sample](results/abstracts-control-s00-unigram-r00/samples.jsonl) **Prompt** @@ -137,7 +141,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
Research abstracts · Ordinary AdamW +
Research abstracts · Ordinary AdamW · pilot, seed 0 + +[Recorded sample](results/abstracts-pilot-s00-ce-r00/samples.jsonl) **Prompt** @@ -160,7 +166,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
Research abstracts · Third derivative +
Research abstracts · Third derivative · pilot, seed 0 + +[Recorded sample](results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl) **Prompt** @@ -183,7 +191,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
Research abstracts · Hessian trace +
Research abstracts · Hessian trace · pilot, seed 0 + +[Recorded sample](results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl) **Prompt** @@ -205,7 +215,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Initial checkpoint +
TinyStories · Initial checkpoint · control, seed 0 + +[Recorded sample](results/stories-control-s00-initial-r00/samples.jsonl) **Prompt** @@ -223,7 +235,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Unigram +
TinyStories · Unigram · control, seed 0 + +[Recorded sample](results/stories-control-s00-unigram-r00/samples.jsonl) **Prompt** @@ -243,7 +257,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Ordinary AdamW +
TinyStories · Ordinary AdamW · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-ce-r00/samples.jsonl) **Prompt** @@ -261,7 +277,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Trace + third derivative +
TinyStories · Trace + third derivative · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-combined-r01/samples.jsonl) **Prompt** @@ -279,7 +297,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Squared Hessian norm +
TinyStories · Squared Hessian norm · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-hessian_norm-r03/samples.jsonl) **Prompt** @@ -297,7 +317,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Randomized gradient signs +
TinyStories · Randomized gradient signs · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-sham-r01/samples.jsonl) **Prompt** @@ -315,7 +337,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Third derivative +
TinyStories · Third derivative · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-third-r01/samples.jsonl) **Prompt** @@ -333,7 +357,9 @@ First archived sample in run-ID order per stage and method. [All continuations](
-
TinyStories · Hessian trace +
TinyStories · Hessian trace · pilot, seed 0 + +[Recorded sample](results/stories-pilot-s00-trace-r01/samples.jsonl) **Prompt** diff --git a/research/docs/data.md b/research/docs/data.md index 45429df148d843bbffe1d11e4de39fe9094b4118..1d0a74102cee4ed06b783085ca2ce823c6bf3a42 100644 --- a/research/docs/data.md +++ b/research/docs/data.md @@ -1,23 +1,23 @@ -# Corpus preparation - -The public entry point `thirdloss.data.prepare(stage, root)` creates a self-contained `stories` or `abstracts` stage directory under the selected data root. A repeat call verifies its checksums and recovers damaged output. The original source cache lives alongside the prepared stages. The Hub client uses an immutable revision. A public HTTPS fallback checks the same upstream object identity and size before accepting the bytes. [Hub download API](https://huggingface.co/docs/huggingface_hub/package_reference/file_download) - -## Cohorts - -| Stage | Source and assignment | -|---|---| -| Stories | Take the first 160,000 rows of the source training split in physical parquet row order. Assign a story to development when the integer encoded by the first 16 hex digits of its normalized SHA-256 hash is divisible by 50. Use all rows from the official validation parquet as candidate test documents. Source row IDs remain stable across re-runs. [Pinned input files](https://huggingface.co/datasets/roneneldan/TinyStories/tree/f54c09fd23315a6f9c86f9dc80f725de7d8f9c64/data) · [Arrow streaming reader](https://arrow.apache.org/docs/python/generated/pyarrow.parquet.ParquetFile.html) | -| Abstracts | Scan both compressed JSONL shards. Use the source `created` timestamp to select first submissions in January through April 2024 for training, May for development and June for testing. Group versions using the base arXiv identifier and retain the first source record per ID. Log how often the identifier month differs from the creation month. The corpus stores the abstract available at collection time, which can include revisions after submission. [Pinned abstracts](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered/tree/dc1ceab4755eb037ec61e49cf1350dab7ceee6e7) · [arXiv identifier scheme](https://info.arxiv.org/help/arxiv_identifier.html) · [Upstream first-version timestamp example](https://arxiv.org/abs/0704.0001) | - -## Overlap audit - -Hash Unicode NFKC, case-folded, whitespace-collapsed text. Retain the earliest exact copy within each split with priority given to test, then development, then training. Train the tokenizer on the original retained text after trimming outer whitespace. For cross-split near copies, form sets of five consecutive Unicode word tokens. Short documents form one shingle. Punctuation-only documents retain a normalized whole-text key. - -The audit excludes any lower-priority document that reaches Jaccard similarity 4/5 against a retained higher-priority document. To identify candidates, order shingles by their reference-split document frequency, then lexically. With n shingles, index the first floor(n/5)+1. Every pair meeting the cutoff must share a prefix term under this common ordering. Verify candidates by exact set intersection. Evaluation references with the earliest source index break a match tie. Every exclusion has an auditable reason and matched ID. This procedure detects all cross-split copies meeting the stated whole-document shingle criterion. Paraphrases, snippets copied inside a longer document, and lower-similarity boilerplate can survive. Near matches within a single split can also survive and affect its diversity. [Xiao et al., §2.2](https://archives.iw3c2.org/www2008/papers/pdf/p131-xiaoA.pdf) - -## Token and evidence files - -- Stories use byte-level BPE with a complete byte alphabet, one end-of-text symbol, 4,096 entries, and all retained training documents. Abstracts reuse the exact tokenizer bytes of the base model. The manifest separates the largest usable tokenizer ID plus one from Pythia’s padded output-head width. [BPE trainer](https://huggingface.co/docs/tokenizers/en/api/trainers) · [Pinned base checkpoint](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) -- Each split is a contiguous little-endian uint16 file ordered by source row, with one appended EOS per document and no injected BOS. The model can see previous documents in a packed window across EOS boundaries. Context and next-target shifting belong to the training/evaluation code. An example file opens with `numpy.memmap(stage_dir / "train.bin", dtype=" section:not(.intro) { margin-top: 3rem; } -.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; } -h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; } -.section-title p { font-size: .87rem; color: var(--muted); } -.filters, .curve-tools, .sample-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; } -.filters { margin: 1.15rem 0; } -label { display: inline-flex; flex-direction: column; gap: .25rem; } -select { display: block; min-width: 0; max-width: 100%; padding: .5rem 1.8rem .5rem .65rem; font: inherit; font-size: .9rem; color: var(--ink); background: white; border: 1px solid #afc0b4; border-radius: 4px; } -.run-filter { min-width: 12rem; max-width: 100%; } -.curve-panel { background: white; border: 1px solid var(--rule); padding: 1.2rem 1.4rem 1rem; border-radius: 6px; } -.curve-tools { justify-content: space-between; margin-bottom: .45rem; } -.chart-frame { height: clamp(245px, 30vw, 345px); position: relative; } -#chart { display: block; width: 100%; height: 100%; } -.chart-empty { pointer-events: none; position: absolute; inset: 0; margin: auto; height: fit-content; text-align: center; padding: 1.5em; color: var(--muted); } -#point { display: block; font-size: .82rem; min-height: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } -.legend { display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: .3rem; padding-top: .65rem; font-size: .8rem; } -.legend span { display: inline-flex; align-items: center; gap: .35rem; } -.legend i { width: 17px; height: 3px; } -.curve-note { margin-top: .55rem; font-size: .75rem; color: var(--muted); } -.run-ledger, .table-wrap { margin-top: 1rem; } -.run-ledger summary { cursor: pointer; color: var(--teal); font-weight: 600; } -.table-wrap { max-width: 100%; overflow-x: auto; } -table { width: 100%; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; text-align: left; } -th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; } -th { color: var(--muted); font-size: .74rem; background: #edf2eb; font-weight: 600; } -td { white-space: nowrap; } -.prose { margin: .8rem 0 1rem; } -.verdict, .prompt { padding: .85rem 1rem; border-left: 3px solid #6f9d87; background: var(--tint); } -#stats details { margin: .8rem 0; } -.sample-controls { justify-content: space-between; margin: 1rem 0; } -.sample-controls label { max-width: 100%; } -.empty { color: var(--muted); padding: .85rem 0; } -.sample-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .7rem; } -.sample-pair article { border: 1px solid var(--rule); padding: 1rem; border-radius: 5px; background: white; } -.sample-pair article:last-child { background: #f2f7f1; } -#sample-view h3 { font: 650 .85rem/1.3 system-ui, sans-serif; color: var(--teal); margin-bottom: .42rem; } -#sample-view p { white-space: pre-wrap; overflow-wrap: anywhere; font: 1.05rem/1.5 Georgia, serif; } -.architecture { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--rule); } -.method-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .7rem; } -footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1rem 0 2rem; font-size: .8rem; color: var(--muted); } -.sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; } -[hidden] { display: none !important; } -@media (max-width: 650px) { - .rail, main, footer { width: calc(100% - 32px); } - .rail { gap: .8rem; min-height: 52px; } - nav { gap: .7rem; } - nav a, .source { font-size: .74rem; } - .intro { display: block; padding: 2.3rem 0 1.2rem; } - .summary { border-left: 0; border-top: 1px solid var(--rule); padding: .85rem 0 0; margin: 1.1rem 0 0; display: flex; justify-content: space-between; gap: .5rem; } - .summary span { font-size: .68rem; } - .summary strong { font-size: 1.3rem; } - .filters, .curve-tools { display: grid; gap: .6rem; } - .filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); } - .filters label, .curve-tools label { min-width: 0; } - .run-filter { grid-column: 1 / -1; } - .curve-panel { padding: .75rem .65rem; } - .curve-tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } - .sample-pair { grid-template-columns: 1fr; } - .section-title { flex-wrap: wrap; } -} -@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } } +:root { + color-scheme: light; + --paper: #fbfcf8; + --ink: #263733; + --muted: #52635c; + --rule: #cdd9d0; + --teal: #006d5c; + --tint: #e8f1e9; + font: 16px/1.53 system-ui, -apple-system, "Segoe UI", sans-serif; +} +*, *::before, *::after { box-sizing: border-box; } +html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; } +body { margin: 0; background: var(--paper); color: var(--ink); } +a { color: var(--teal); text-underline-offset: .22em; } +a:hover { color: #09382f; } +:focus-visible { outline: 3px solid #e28941; outline-offset: 3px; } +.skip { position: absolute; transform: translateY(-130%); background: white; padding: .6rem; z-index: 4; } +.skip:focus { transform: none; } +.rail, main, footer { width: min(1120px, calc(100% - 64px)); margin: 0 auto; } +header { border-bottom: 1px solid var(--rule); background: #f4f7f0; } +.rail { display: flex; align-items: center; gap: 2rem; min-height: 64px; } +.signature { font: italic 33px/1 Georgia, serif; color: var(--ink); text-decoration: none; } +.signature sup { font: 16px Georgia, serif; vertical-align: super; } +nav { display: flex; flex-wrap: wrap; gap: 1.5rem; } +nav a, .source { color: var(--muted); font-size: .86rem; font-weight: 560; text-decoration: none; } +nav a:hover, .source:hover { text-decoration: underline; } +.source { margin-left: auto; } +.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(200px, 1fr); align-items: end; gap: 7%; padding: 3.6rem 0 2.2rem; } +h1, h2, h3, p { margin: 0; } +h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; } +h1 { font-size: clamp(2.5rem, 5.7vw, 4.65rem); line-height: 1.02; letter-spacing: -.055em; } +.intro p, .prose { max-width: 77ch; color: var(--muted); } +.intro p { font-size: 1.06rem; margin: 1.25rem 0 .75rem; } +.protocol, .section-title a, .method-links a, .sample-controls a { font-size: .9rem; font-weight: 600; } +.summary { border-left: 2px solid #75a290; padding-left: 1.45rem; display: grid; gap: 1.05rem; } +.summary div { display: flex; flex-direction: column; } +.summary span, .curve-tools label, .filters label, .sample-controls label { font-size: .79rem; color: var(--muted); } +.summary strong { font: 1.65rem/1.12 Georgia, serif; font-variant-numeric: tabular-nums; } +.feed { font-size: .8rem; color: var(--muted); border-block: 1px solid var(--rule); padding: .64rem 0; } +.feed::before { content: ""; display: inline-block; vertical-align: .04em; width: .5rem; height: .5rem; background: #8c9389; border-radius: 100%; margin-right: .55rem; } +.feed.live::before { background: #21855d; } +main > section:not(.intro) { margin-top: 3rem; } +.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; } +h2 { font-size: clamp(2rem, 3.8vw, 2.8rem); line-height: 1.12; letter-spacing: -.045em; } +.section-title p { font-size: .87rem; color: var(--muted); } +.filters, .curve-tools, .sample-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; } +.filters { margin: 1.15rem 0; } +label { display: inline-flex; flex-direction: column; gap: .25rem; } +select { display: block; min-width: 0; max-width: 100%; padding: .5rem 1.8rem .5rem .65rem; font: inherit; font-size: .9rem; color: var(--ink); background: white; border: 1px solid #afc0b4; border-radius: 4px; } +.run-filter { min-width: 12rem; max-width: 100%; } +.curve-panel { background: white; border: 1px solid var(--rule); padding: 1.2rem 1.4rem 1rem; border-radius: 6px; } +.curve-tools { justify-content: space-between; margin-bottom: .45rem; } +.chart-frame { height: clamp(245px, 30vw, 345px); position: relative; } +#chart { display: block; width: 100%; height: 100%; } +.chart-empty { pointer-events: none; position: absolute; inset: 0; margin: auto; height: fit-content; text-align: center; padding: 1.5em; color: var(--muted); } +#point { display: block; font-size: .82rem; min-height: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } +.legend { display: flex; flex-wrap: wrap; column-gap: 1.1rem; row-gap: .3rem; padding-top: .65rem; font-size: .8rem; } +.legend span { display: inline-flex; align-items: center; gap: .35rem; } +.legend i { width: 17px; height: 3px; } +.curve-note { margin-top: .55rem; font-size: .75rem; color: var(--muted); } +.run-ledger, .table-wrap { margin-top: 1rem; } +.run-ledger summary { cursor: pointer; color: var(--teal); font-weight: 600; } +.table-wrap { max-width: 100%; overflow-x: auto; } +table { width: 100%; border-collapse: collapse; font-size: .83rem; font-variant-numeric: tabular-nums; text-align: left; } +th, td { padding: .55rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; } +th { color: var(--muted); font-size: .74rem; background: #edf2eb; font-weight: 600; } +td { white-space: nowrap; } +.prose { margin: .8rem 0 1rem; } +.verdict, .prompt { padding: .85rem 1rem; border-left: 3px solid #6f9d87; background: var(--tint); } +#stats details { margin: .8rem 0; } +.sample-controls { justify-content: space-between; margin: 1rem 0; } +.sample-controls label { max-width: 100%; } +.empty { color: var(--muted); padding: .85rem 0; } +.sample-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .7rem; } +.sample-pair article { border: 1px solid var(--rule); padding: 1rem; border-radius: 5px; background: white; } +.sample-pair article:last-child { background: #f2f7f1; } +#sample-view h3 { font: 650 .85rem/1.3 system-ui, sans-serif; color: var(--teal); margin-bottom: .42rem; } +#sample-view p { white-space: pre-wrap; overflow-wrap: anywhere; font: 1.05rem/1.5 Georgia, serif; } +.architecture { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--rule); } +.method-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .7rem; } +footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 3rem; padding: 1rem 0 2rem; font-size: .8rem; color: var(--muted); } +.sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; } +[hidden] { display: none !important; } +@media (max-width: 650px) { + .rail, main, footer { width: calc(100% - 32px); } + .rail { gap: .8rem; min-height: 52px; } + nav { gap: .7rem; } + nav a, .source { font-size: .74rem; } + .intro { display: block; padding: 2.3rem 0 1.2rem; } + .summary { border-left: 0; border-top: 1px solid var(--rule); padding: .85rem 0 0; margin: 1.1rem 0 0; display: flex; justify-content: space-between; gap: .5rem; } + .summary span { font-size: .68rem; } + .summary strong { font-size: 1.3rem; } + .filters, .curve-tools { display: grid; gap: .6rem; } + .filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); } + .filters label, .curve-tools label { min-width: 0; } + .run-filter { grid-column: 1 / -1; } + .curve-panel { padding: .75rem .65rem; } + .curve-tools { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } + .sample-pair { grid-template-columns: 1fr; } + .section-title { flex-wrap: wrap; } +} +@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } } diff --git a/research/docs/explorer.js b/research/docs/explorer.js index cc5368e7bf718350ed050d54a3232f701c6c79de..9b13da9950df92235d1b1b69b4c69c759963ae82 100644 --- a/research/docs/explorer.js +++ b/research/docs/explorer.js @@ -1,365 +1,366 @@ -// The same read-only snapshot feeds GitHub Pages and the local training server. -// Browser APIs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D -"use strict"; -const element = id => document.getElementById(id); -const repository = document.querySelector("a.source").href; -const local = ["localhost", "127.0.0.1", "[::1]"].includes(location.hostname) || - new URL(location.href).searchParams.get("live") === "1"; -const metrics = { - dev_nll: ["Development NLL", "nats / target token"], loss: ["Training NLL", "nats / target token"], - dev_accuracy: ["Development accuracy", "% correct"], accuracy: ["Training accuracy", "% correct"], - penalty: ["Weighted active penalty", "weighted loss contribution"], - raw_third: ["Third-derivative norm estimate", "squared Frobenius estimate"], - raw_trace: ["Hessian trace estimate", "signed trace estimate"], - raw_hessian_norm: ["Squared Hessian norm estimate", "squared Frobenius estimate"], -}; -const axes = {tokens: "training target tokens", train_seconds: "training seconds", step: "optimizer steps"}; -const numeric = value => typeof value === "number" && Number.isFinite(value); -const number = (value, digits = 3) => numeric(value) ? value.toLocaleString("en-US", { - minimumFractionDigits: digits, maximumFractionDigits: digits, -}) : "—"; -const compact = value => numeric(value) ? new Intl.NumberFormat("en-US", { - notation: "compact", maximumFractionDigits: 2, -}).format(value) : "—"; -const isComplete = run => ["complete", "completed", "finished", "evaluated", "success"].includes(run.status); -let study = {runs: [], stages: {}, method_names: {}, colors: {}, stage_names: {}}; -let filteredRuns = []; -let sampleEntries = []; -let curves = []; -let points = []; -let inspected = -1; - -function node(tag, value) { - const result = document.createElement(tag); - if (value !== undefined) result.textContent = value; - return result; -} - -function options(select, choices, previous) { - const entries = choices.map(([value, name]) => { - const option = node("option", name); - option.value = value; - return option; - }); - select.replaceChildren(...entries); - if (choices.some(([key]) => key === previous)) select.value = previous; -} - -function methodName(method) { return study.method_names[method] || method || "—"; } -function stageName(stage) { return study.stage_names[stage] || stage; } -function methodColor(method) { return study.colors[method] || "#56665c"; } - -function rebuildFilters() { - const stage = element("stage").value; - const selected = study.runs.filter(run => run.stage === stage); - const phases = [...new Set(selected.map(run => run.phase).filter(Boolean))].sort(); - options(element("phase"), [["", "All phases"], ...phases.map(p => [p, p])], element("phase").value); - const phase = element("phase").value; - const inPhase = phase ? selected.filter(run => run.phase === phase) : selected; - options(element("run"), [["", "All runs"], ...inPhase.map(run => [run.id, run.id])], element("run").value); - const id = element("run").value; - filteredRuns = id ? inPhase.filter(run => run.id === id) : inPhase; -} - -function showTotals() { - element("runs-count").textContent = number(study.runs.filter(isComplete).length, 0); - for (const [field, target] of [["tokens", "tokens-count"], ["train_seconds", "hours-count"]]) { - const values = study.runs.map(run => run[field]).filter(numeric); - const total = values.reduce((a, b) => a + b, 0); - element(target).textContent = values.length ? (field === "tokens" ? compact(total) : number(total / 3600, 2) + " h") : "—"; - if (values.length) element(target).title = number(total, 0) + (field === "tokens" ? " training tokens" : " seconds"); - } -} - -function showLedger() { - const body = element("ledger"); - body.replaceChildren(); - for (const run of filteredRuns) { - const tr = node("tr"); - const first = node("td"); - const link = node("a", run.id); - link.href = repository + "/tree/main/results/" + encodeURIComponent(run.id); - first.append(link); - tr.append(first); - const evaluation = run.evaluation_progress; - const status = evaluation?.targets_to_score > 0 - ? `${evaluation.split === "test" ? "scoring test" : run.status} (${number(100 * evaluation.targets_scored / evaluation.targets_to_score, 1)}%)` - : run.status; - for (const value of [methodName(run.method), run.seed ?? "—", number(run.ratio, 3), - number(run.tokens, 0), number(run.dev_nll, 4), number(run.test_nll, 4), - number(run.tokens_per_sec, 0), number(run.peak_vram_mb, 0), status]) { - tr.append(node("td", value)); - } - body.append(tr); - } - element("ledger-count").textContent = "(" + filteredRuns.length + ")"; - if (!filteredRuns.length) { - const cell = node("td", "Awaiting a run in this selection."); - cell.colSpan = 10; - const row = node("tr"); - row.append(cell); - body.append(row); - } -} - -function collectCurves() { - const metric = element("metric").value; - const axis = element("axis").value; - const percent = metric.endsWith("accuracy") ? 100 : 1; - curves = filteredRuns.map(run => { - const values = (run.events || []).filter(e => numeric(e[metric]) && numeric(e[axis])) - .map(e => ({x: e[axis], y: e[metric] * percent, run})); - return {run, values}; - }).filter(series => series.values.length); - const legend = element("legend"); - legend.replaceChildren(); - for (const method of [...new Set(curves.map(s => s.run.method))]) { - const item = node("span"); - const stroke = node("i"); - stroke.style.backgroundColor = methodColor(method); - item.append(stroke, document.createTextNode(methodName(method))); - legend.append(item); - } - inspected = -1; - element("point").textContent = ""; - draw(); -} - -function draw() { - const canvas = element("chart"); - const bounds = canvas.getBoundingClientRect(); - const w = Math.max(100, bounds.width); - const h = Math.max(100, bounds.height); - const scale = Math.min(window.devicePixelRatio || 1, 3); - canvas.width = Math.round(w * scale); - canvas.height = Math.round(h * scale); - const ctx = canvas.getContext("2d"); - ctx.scale(scale, scale); - const frame = {left: w < 480 ? 49 : 62, right: w - 13, top: 28, bottom: h - 49}; - const all = curves.flatMap(s => s.values); - points = []; - element("chart-empty").hidden = all.length > 0; - element("chart-empty").textContent = "The selected measurement will appear after its first logged observation."; - if (!all.length) return; - const metric = element("metric").value; - const axis = element("axis").value; - let low = Infinity, high = -Infinity, maxX = 0; - for (const point of all) { - low = Math.min(low, point.y); - high = Math.max(high, point.y); - maxX = Math.max(maxX, point.x); - } - if (metric.endsWith("accuracy")) { - low = 0; high = 100; - } else { - const pad = (high - low || Math.max(Math.abs(high) * .1, .01)) * .09; - low -= pad; high += pad; - if (["dev_nll", "loss", "raw_third", "raw_hessian_norm"].includes(metric)) low = Math.max(0, low); - } - maxX = maxX || 1; - const positionX = value => frame.left + (frame.right - frame.left) * value / maxX; - const positionY = value => frame.bottom - (frame.bottom - frame.top) * (value - low) / (high - low); - const tick = value => Math.abs(value) >= 10000 || (value !== 0 && Math.abs(value) < .001) ? - value.toExponential(1) : Number(value.toPrecision(4)).toLocaleString("en-US"); - ctx.font = "11px system-ui, sans-serif"; - ctx.lineWidth = 1; - ctx.fillStyle = "#52635c"; - ctx.textAlign = "left"; - ctx.fillText(metrics[metric][1], frame.left, 13); - for (let i = 0; i <= 4; i++) { - const yValue = low + (high - low) * i / 4; - const y = positionY(yValue); - ctx.strokeStyle = "#dce6de"; - ctx.beginPath(); ctx.moveTo(frame.left, y); ctx.lineTo(frame.right, y); ctx.stroke(); - ctx.textAlign = "right"; - ctx.fillText(tick(yValue), frame.left - 7, y + 3); - const xValue = maxX * i / 4; - ctx.textAlign = i === 4 ? "right" : i === 0 ? "left" : "center"; - ctx.fillText(compact(xValue), positionX(xValue), frame.bottom + 18); - } - ctx.textAlign = "center"; - ctx.fillText(axes[axis], (frame.left + frame.right) / 2, h - 6); - for (const series of curves) { - const color = methodColor(series.run.method); - ctx.strokeStyle = color; ctx.fillStyle = color; ctx.lineWidth = 1.65; - ctx.globalAlpha = curves.length > 10 ? .58 : .92; - ctx.beginPath(); - series.values.forEach((value, i) => { - const px = positionX(value.x), py = positionY(value.y); - points.push({...value, px, py}); - if (i) ctx.lineTo(px, py); else ctx.moveTo(px, py); - }); - ctx.stroke(); - if (series.values.length <= 60) { - for (const value of series.values) { - ctx.beginPath(); ctx.arc(positionX(value.x), positionY(value.y), 2.4, 0, Math.PI * 2); ctx.fill(); - } - } - } - ctx.globalAlpha = 1; - if (inspected >= 0 && points[inspected]) { - const p = points[inspected]; - ctx.fillStyle = "white"; ctx.strokeStyle = methodColor(p.run.method); ctx.lineWidth = 2.3; - ctx.beginPath(); ctx.arc(p.px, p.py, 4.7, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); - element("point").textContent = p.run.id + " · " + number(p.x, axis === "train_seconds" ? 1 : 0) + - " " + axes[axis] + " · " + number(p.y, 4) + " " + metrics[metric][1]; - } -} - -function table(headers, rows) { - const wrapper = node("div"); - wrapper.className = "table-wrap"; - const result = node("table"); - const head = node("thead"), top = node("tr"), body = node("tbody"); - headers.forEach(title => top.append(node("th", title))); - head.append(top); result.append(head); - for (const values of rows) { - const row = node("tr"); - values.forEach(value => row.append(node("td", value))); - body.append(row); - } - result.append(body); wrapper.append(result); - return wrapper; -} - -function showEvidence() { - const stage = element("stage").value; - const outcome = study.stages[stage] || {}; - element("evidence-stage").textContent = stageName(stage); - const verdicts = { - confirmed: "The third-order objective beat both baselines under the registered rule.", - inconclusive: "The completed stage did not establish superiority over both baselines.", - adverse: "A median paired interval favors at least one baseline.", - invalid: "The registered analysis flagged incompatible run records.", - }; - element("verdict").textContent = verdicts[outcome.status] || - "Awaiting paired test results. Full-horizon training triplets: " + - (outcome.n_complete_seeds || 0) + " of " + (outcome.n_expected_seeds || 8) + "."; - const target = element("stats"); - target.replaceChildren(); - const pilots = (study.pilot_comparisons || {})[stage] || []; - if (pilots.length) { - const heading = node("details"); - heading.append(node("summary", "Single-seed development comparisons")); - heading.append(table(["Comparator", "Training tokens", "Third-order dev NLL", "Comparator dev NLL", "ΔNLL", "Strengths"], - pilots.map(p => [methodName(p.method), number(p.tokens, 0), number(p.third_nll, 5), - number(p.baseline_nll, 5), number(p.delta, 5), p.strength_basis]))); - target.append(heading); - } - const entries = Object.entries(outcome.comparisons || {}); - if (entries.length) { - target.append(table(["Comparator", "Wins / ties / losses", "Median ΔNLL", "Median interval", "Coverage", "Holm p"], - entries.map(([baseline, s]) => [methodName(baseline), [s.wins, s.ties, s.losses].join(" / "), - number(s.median_delta, 5), (s.median_ci || []).map(x => number(x, 5)).join(" to "), - number(s.ci_coverage * 100, 2) + "%", number(s.p_holm, 5)]))); - const details = node("details"); - details.append(node("summary", "Individual paired differences")); - details.append(table(["Comparator", "Seed", "Third-order NLL", "Comparator NLL", "ΔNLL"], - entries.flatMap(([baseline, s]) => s.pairs.map(p => [methodName(baseline), p.seed, - number(p.third_nll, 5), number(p.baseline_nll, 5), number(p.delta, 5)])))); - target.append(details); - } - if ((outcome.matched_time || []).length) { - const details = node("details"); - details.append(node("summary", "Development loss at matched training time")); - details.append(table(["Seed", "Cutoff (s)", "Method", "Checkpoint (s)", "Training tokens", "Dev NLL"], - outcome.matched_time.flatMap(t => Object.entries(t.by_method || {}).filter(([, m]) => m) - .map(([name, m]) => [t.seed, number(t.cutoff_seconds, 1), methodName(name), - number(m.train_seconds, 1), number(m.tokens, 0), number(m.dev_nll, 5)])))); - target.append(details); - } - if ((outcome.matched_nonhost_time || []).length) { - const details = node("details"); - details.append(node("summary", "Development loss after subtracting host derivative calls")); - details.append(table(["Seed", "Cutoff (s)", "Method", "Checkpoint (s)", "Training tokens", "Dev NLL"], - outcome.matched_nonhost_time.flatMap(t => Object.entries(t.by_method).map(([name, m]) => - [t.seed, number(t.cutoff_seconds, 1), methodName(name), number(m.clock_seconds, 1), - number(m.tokens, 0), number(m.dev_nll, 5)])))); - target.append(details); - } -} - -function showSample() { - const entry = sampleEntries.find(s => s.id === element("sample").value); - element("sample-view").hidden = !entry; - if (!entry) return; - const s = entry.sample; - element("prompt-text").textContent = s.prompt ?? ""; - element("reference-text").textContent = s.reference ?? "No reference continuation was recorded for this prompt."; - element("generated-text").textContent = s.continuation ?? ""; - element("raw-sample").href = repository + "/blob/main/results/" + encodeURIComponent(entry.run.id) + "/samples.jsonl"; -} - -function showOutputs() { - sampleEntries = filteredRuns.flatMap(run => (run.samples || []).map((sample, index) => ({ - id: run.id + "/" + index, name: run.id + " · sample " + (index + 1), sample, run, - }))); - const menu = element("sample"); - options(menu, sampleEntries.map(s => [s.id, s.name]), menu.value); - element("sample-controls").hidden = !sampleEntries.length; - element("samples-empty").hidden = sampleEntries.length > 0; - element("samples-empty").textContent = "Awaiting an archived continuation in the selected runs."; - showSample(); -} - -function render() { - rebuildFilters(); showTotals(); showLedger(); collectCurves(); showEvidence(); showOutputs(); -} - -async function getData(url) { - const response = await fetch(url, {cache: "no-store"}); - if (!response.ok) throw new Error("HTTP " + response.status); - const result = await response.json(); - if (!Array.isArray(result.runs) || !result.stages) throw new Error("Unrecognized study record"); - return result; -} - -async function refresh() { - let live = false; - const status = element("feed-status"); - try { - if (local) { - try { study = await getData("/live.json"); live = true; } - catch { study = await getData("study.json"); } - } else study = await getData("study.json"); - render(); - element("download-records").href = live ? "/live.json" : "study.json"; - const stamp = new Date(study.generated_at); - const asOf = Number.isNaN(stamp.valueOf()) ? "time unavailable" : - stamp.toLocaleString(undefined, {dateStyle: "medium", timeStyle: "medium"}); - status.textContent = (live ? "Live local metrics" : "Published results") + " · Updated " + asOf; - status.classList.toggle("live", live); - } catch (error) { - status.classList.remove("live"); - status.textContent = "Ledger temporarily unavailable. " + error.message + ". Retrying automatically."; - if (!study.runs.length) render(); - } finally { window.setTimeout(refresh, local ? 10000 : 60000); } -} - -for (const id of ["stage", "phase", "run"]) element(id).addEventListener("change", render); -for (const id of ["axis", "metric"]) element(id).addEventListener("change", collectCurves); -element("sample").addEventListener("change", showSample); -const canvas = element("chart"); -new ResizeObserver(draw).observe(element("chart").parentElement); -canvas.addEventListener("pointermove", e => { - const box = canvas.getBoundingClientRect(); - const x = e.clientX - box.left, y = e.clientY - box.top; - let nearest = -1, distance = 25 * 25; - points.forEach((point, i) => { - const d = (point.px - x) ** 2 + (point.py - y) ** 2; - if (d < distance) { nearest = i; distance = d; } - }); - if (nearest !== inspected) { - inspected = nearest; - if (nearest < 0) element("point").textContent = ""; - draw(); - } -}); -canvas.addEventListener("keydown", e => { - if (points.length && ["ArrowRight", "ArrowLeft"].includes(e.key)) { - e.preventDefault(); - inspected = (Math.max(0, inspected + (e.key === "ArrowRight" ? 1 : -1))) % points.length; - draw(); - } -}); -refresh(); +// The same read-only snapshot feeds GitHub Pages and the local training server. +// Browser APIs: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D +"use strict"; +const element = id => document.getElementById(id); +const repository = document.querySelector("a.source").href; +const runDirectory = document.querySelector("a.source").dataset.runs || repository + "/tree/main/results/"; +const local = ["localhost", "127.0.0.1", "[::1]"].includes(location.hostname) || + new URL(location.href).searchParams.get("live") === "1"; +const metrics = { + dev_nll: ["Development NLL", "nats / target token"], loss: ["Training NLL", "nats / target token"], + dev_accuracy: ["Development accuracy", "% correct"], accuracy: ["Training accuracy", "% correct"], + penalty: ["Weighted active penalty", "weighted loss contribution"], + raw_third: ["Third-derivative norm estimate", "squared Frobenius estimate"], + raw_trace: ["Hessian trace estimate", "signed trace estimate"], + raw_hessian_norm: ["Squared Hessian norm estimate", "squared Frobenius estimate"], +}; +const axes = {tokens: "training target tokens", train_seconds: "training seconds", step: "optimizer steps"}; +const numeric = value => typeof value === "number" && Number.isFinite(value); +const number = (value, digits = 3) => numeric(value) ? value.toLocaleString("en-US", { + minimumFractionDigits: digits, maximumFractionDigits: digits, +}) : "—"; +const compact = value => numeric(value) ? new Intl.NumberFormat("en-US", { + notation: "compact", maximumFractionDigits: 2, +}).format(value) : "—"; +const isComplete = run => ["complete", "completed", "finished", "evaluated", "success"].includes(run.status); +let study = {runs: [], stages: {}, method_names: {}, colors: {}, stage_names: {}}; +let filteredRuns = []; +let sampleEntries = []; +let curves = []; +let points = []; +let inspected = -1; + +function node(tag, value) { + const result = document.createElement(tag); + if (value !== undefined) result.textContent = value; + return result; +} + +function options(select, choices, previous) { + const entries = choices.map(([value, name]) => { + const option = node("option", name); + option.value = value; + return option; + }); + select.replaceChildren(...entries); + if (choices.some(([key]) => key === previous)) select.value = previous; +} + +function methodName(method) { return study.method_names[method] || method || "—"; } +function stageName(stage) { return study.stage_names[stage] || stage; } +function methodColor(method) { return study.colors[method] || "#56665c"; } + +function rebuildFilters() { + const stage = element("stage").value; + const selected = study.runs.filter(run => run.stage === stage); + const phases = [...new Set(selected.map(run => run.phase).filter(Boolean))].sort(); + options(element("phase"), [["", "All phases"], ...phases.map(p => [p, p])], element("phase").value); + const phase = element("phase").value; + const inPhase = phase ? selected.filter(run => run.phase === phase) : selected; + options(element("run"), [["", "All runs"], ...inPhase.map(run => [run.id, run.id])], element("run").value); + const id = element("run").value; + filteredRuns = id ? inPhase.filter(run => run.id === id) : inPhase; +} + +function showTotals() { + element("runs-count").textContent = number(study.runs.filter(isComplete).length, 0); + for (const [field, target] of [["tokens", "tokens-count"], ["train_seconds", "hours-count"]]) { + const values = study.runs.map(run => run[field]).filter(numeric); + const total = values.reduce((a, b) => a + b, 0); + element(target).textContent = values.length ? (field === "tokens" ? compact(total) : number(total / 3600, 2) + " h") : "—"; + if (values.length) element(target).title = number(total, 0) + (field === "tokens" ? " training tokens" : " seconds"); + } +} + +function showLedger() { + const body = element("ledger"); + body.replaceChildren(); + for (const run of filteredRuns) { + const tr = node("tr"); + const first = node("td"); + const link = node("a", run.id); + link.href = runDirectory + encodeURIComponent(run.id); + first.append(link); + tr.append(first); + const evaluation = run.evaluation_progress; + const status = evaluation?.targets_to_score > 0 + ? `${evaluation.split === "test" ? "scoring test" : run.status} (${number(100 * evaluation.targets_scored / evaluation.targets_to_score, 1)}%)` + : run.status; + for (const value of [methodName(run.method), run.seed ?? "—", number(run.ratio, 3), + number(run.tokens, 0), number(run.dev_nll, 4), number(run.test_nll, 4), + number(run.tokens_per_sec, 0), number(run.peak_vram_mb, 0), status]) { + tr.append(node("td", value)); + } + body.append(tr); + } + element("ledger-count").textContent = "(" + filteredRuns.length + ")"; + if (!filteredRuns.length) { + const cell = node("td", "Awaiting a run in this selection."); + cell.colSpan = 10; + const row = node("tr"); + row.append(cell); + body.append(row); + } +} + +function collectCurves() { + const metric = element("metric").value; + const axis = element("axis").value; + const percent = metric.endsWith("accuracy") ? 100 : 1; + curves = filteredRuns.map(run => { + const values = (run.events || []).filter(e => numeric(e[metric]) && numeric(e[axis])) + .map(e => ({x: e[axis], y: e[metric] * percent, run})); + return {run, values}; + }).filter(series => series.values.length); + const legend = element("legend"); + legend.replaceChildren(); + for (const method of [...new Set(curves.map(s => s.run.method))]) { + const item = node("span"); + const stroke = node("i"); + stroke.style.backgroundColor = methodColor(method); + item.append(stroke, document.createTextNode(methodName(method))); + legend.append(item); + } + inspected = -1; + element("point").textContent = ""; + draw(); +} + +function draw() { + const canvas = element("chart"); + const bounds = canvas.getBoundingClientRect(); + const w = Math.max(100, bounds.width); + const h = Math.max(100, bounds.height); + const scale = Math.min(window.devicePixelRatio || 1, 3); + canvas.width = Math.round(w * scale); + canvas.height = Math.round(h * scale); + const ctx = canvas.getContext("2d"); + ctx.scale(scale, scale); + const frame = {left: w < 480 ? 49 : 62, right: w - 13, top: 28, bottom: h - 49}; + const all = curves.flatMap(s => s.values); + points = []; + element("chart-empty").hidden = all.length > 0; + element("chart-empty").textContent = "The selected measurement will appear after its first logged observation."; + if (!all.length) return; + const metric = element("metric").value; + const axis = element("axis").value; + let low = Infinity, high = -Infinity, maxX = 0; + for (const point of all) { + low = Math.min(low, point.y); + high = Math.max(high, point.y); + maxX = Math.max(maxX, point.x); + } + if (metric.endsWith("accuracy")) { + low = 0; high = 100; + } else { + const pad = (high - low || Math.max(Math.abs(high) * .1, .01)) * .09; + low -= pad; high += pad; + if (["dev_nll", "loss", "raw_third", "raw_hessian_norm"].includes(metric)) low = Math.max(0, low); + } + maxX = maxX || 1; + const positionX = value => frame.left + (frame.right - frame.left) * value / maxX; + const positionY = value => frame.bottom - (frame.bottom - frame.top) * (value - low) / (high - low); + const tick = value => Math.abs(value) >= 10000 || (value !== 0 && Math.abs(value) < .001) ? + value.toExponential(1) : Number(value.toPrecision(4)).toLocaleString("en-US"); + ctx.font = "11px system-ui, sans-serif"; + ctx.lineWidth = 1; + ctx.fillStyle = "#52635c"; + ctx.textAlign = "left"; + ctx.fillText(metrics[metric][1], frame.left, 13); + for (let i = 0; i <= 4; i++) { + const yValue = low + (high - low) * i / 4; + const y = positionY(yValue); + ctx.strokeStyle = "#dce6de"; + ctx.beginPath(); ctx.moveTo(frame.left, y); ctx.lineTo(frame.right, y); ctx.stroke(); + ctx.textAlign = "right"; + ctx.fillText(tick(yValue), frame.left - 7, y + 3); + const xValue = maxX * i / 4; + ctx.textAlign = i === 4 ? "right" : i === 0 ? "left" : "center"; + ctx.fillText(compact(xValue), positionX(xValue), frame.bottom + 18); + } + ctx.textAlign = "center"; + ctx.fillText(axes[axis], (frame.left + frame.right) / 2, h - 6); + for (const series of curves) { + const color = methodColor(series.run.method); + ctx.strokeStyle = color; ctx.fillStyle = color; ctx.lineWidth = 1.65; + ctx.globalAlpha = curves.length > 10 ? .58 : .92; + ctx.beginPath(); + series.values.forEach((value, i) => { + const px = positionX(value.x), py = positionY(value.y); + points.push({...value, px, py}); + if (i) ctx.lineTo(px, py); else ctx.moveTo(px, py); + }); + ctx.stroke(); + if (series.values.length <= 60) { + for (const value of series.values) { + ctx.beginPath(); ctx.arc(positionX(value.x), positionY(value.y), 2.4, 0, Math.PI * 2); ctx.fill(); + } + } + } + ctx.globalAlpha = 1; + if (inspected >= 0 && points[inspected]) { + const p = points[inspected]; + ctx.fillStyle = "white"; ctx.strokeStyle = methodColor(p.run.method); ctx.lineWidth = 2.3; + ctx.beginPath(); ctx.arc(p.px, p.py, 4.7, 0, Math.PI * 2); ctx.fill(); ctx.stroke(); + element("point").textContent = p.run.id + " · " + number(p.x, axis === "train_seconds" ? 1 : 0) + + " " + axes[axis] + " · " + number(p.y, 4) + " " + metrics[metric][1]; + } +} + +function table(headers, rows) { + const wrapper = node("div"); + wrapper.className = "table-wrap"; + const result = node("table"); + const head = node("thead"), top = node("tr"), body = node("tbody"); + headers.forEach(title => top.append(node("th", title))); + head.append(top); result.append(head); + for (const values of rows) { + const row = node("tr"); + values.forEach(value => row.append(node("td", value))); + body.append(row); + } + result.append(body); wrapper.append(result); + return wrapper; +} + +function showEvidence() { + const stage = element("stage").value; + const outcome = study.stages[stage] || {}; + element("evidence-stage").textContent = stageName(stage); + const verdicts = { + confirmed: "The third-order objective beat both baselines under the registered rule.", + inconclusive: "The completed stage did not establish superiority over both baselines.", + adverse: "A median paired interval favors at least one baseline.", + invalid: "The registered analysis flagged incompatible run records.", + }; + element("verdict").textContent = verdicts[outcome.status] || + "Awaiting paired test results. Full-horizon training triplets: " + + (outcome.n_complete_seeds || 0) + " of " + (outcome.n_expected_seeds || 8) + "."; + const target = element("stats"); + target.replaceChildren(); + const pilots = (study.pilot_comparisons || {})[stage] || []; + if (pilots.length) { + const heading = node("details"); + heading.append(node("summary", "Single-seed development comparisons")); + heading.append(table(["Comparator", "Training tokens", "Third-order dev NLL", "Comparator dev NLL", "ΔNLL", "Strengths"], + pilots.map(p => [methodName(p.method), number(p.tokens, 0), number(p.third_nll, 5), + number(p.baseline_nll, 5), number(p.delta, 5), p.strength_basis]))); + target.append(heading); + } + const entries = Object.entries(outcome.comparisons || {}); + if (entries.length) { + target.append(table(["Comparator", "Wins / ties / losses", "Median ΔNLL", "Median interval", "Coverage", "Holm p"], + entries.map(([baseline, s]) => [methodName(baseline), [s.wins, s.ties, s.losses].join(" / "), + number(s.median_delta, 5), (s.median_ci || []).map(x => number(x, 5)).join(" to "), + number(s.ci_coverage * 100, 2) + "%", number(s.p_holm, 5)]))); + const details = node("details"); + details.append(node("summary", "Individual paired differences")); + details.append(table(["Comparator", "Seed", "Third-order NLL", "Comparator NLL", "ΔNLL"], + entries.flatMap(([baseline, s]) => s.pairs.map(p => [methodName(baseline), p.seed, + number(p.third_nll, 5), number(p.baseline_nll, 5), number(p.delta, 5)])))); + target.append(details); + } + if ((outcome.matched_time || []).length) { + const details = node("details"); + details.append(node("summary", "Development loss at matched training time")); + details.append(table(["Seed", "Cutoff (s)", "Method", "Checkpoint (s)", "Training tokens", "Dev NLL"], + outcome.matched_time.flatMap(t => Object.entries(t.by_method || {}).filter(([, m]) => m) + .map(([name, m]) => [t.seed, number(t.cutoff_seconds, 1), methodName(name), + number(m.train_seconds, 1), number(m.tokens, 0), number(m.dev_nll, 5)])))); + target.append(details); + } + if ((outcome.matched_nonhost_time || []).length) { + const details = node("details"); + details.append(node("summary", "Development loss after subtracting host derivative calls")); + details.append(table(["Seed", "Cutoff (s)", "Method", "Checkpoint (s)", "Training tokens", "Dev NLL"], + outcome.matched_nonhost_time.flatMap(t => Object.entries(t.by_method).map(([name, m]) => + [t.seed, number(t.cutoff_seconds, 1), methodName(name), number(m.clock_seconds, 1), + number(m.tokens, 0), number(m.dev_nll, 5)])))); + target.append(details); + } +} + +function showSample() { + const entry = sampleEntries.find(s => s.id === element("sample").value); + element("sample-view").hidden = !entry; + if (!entry) return; + const s = entry.sample; + element("prompt-text").textContent = s.prompt ?? ""; + element("reference-text").textContent = s.reference ?? "No reference continuation was recorded for this prompt."; + element("generated-text").textContent = s.continuation ?? ""; + element("raw-sample").href = repository + "/blob/main/results/" + encodeURIComponent(entry.run.id) + "/samples.jsonl"; +} + +function showOutputs() { + sampleEntries = filteredRuns.flatMap(run => (run.samples || []).map((sample, index) => ({ + id: run.id + "/" + index, name: run.id + " · sample " + (index + 1), sample, run, + }))); + const menu = element("sample"); + options(menu, sampleEntries.map(s => [s.id, s.name]), menu.value); + element("sample-controls").hidden = !sampleEntries.length; + element("samples-empty").hidden = sampleEntries.length > 0; + element("samples-empty").textContent = "Awaiting an archived continuation in the selected runs."; + showSample(); +} + +function render() { + rebuildFilters(); showTotals(); showLedger(); collectCurves(); showEvidence(); showOutputs(); +} + +async function getData(url) { + const response = await fetch(url, {cache: "no-store"}); + if (!response.ok) throw new Error("HTTP " + response.status); + const result = await response.json(); + if (!Array.isArray(result.runs) || !result.stages) throw new Error("Unrecognized study record"); + return result; +} + +async function refresh() { + let live = false; + const status = element("feed-status"); + try { + if (local) { + try { study = await getData("/live.json"); live = true; } + catch { study = await getData("study.json"); } + } else study = await getData("study.json"); + render(); + element("download-records").href = live ? "/live.json" : "study.json"; + const stamp = new Date(study.generated_at); + const asOf = Number.isNaN(stamp.valueOf()) ? "time unavailable" : + stamp.toLocaleString(undefined, {dateStyle: "medium", timeStyle: "medium"}); + status.textContent = (live ? "Live local metrics" : "Published results") + " · Updated " + asOf; + status.classList.toggle("live", live); + } catch (error) { + status.classList.remove("live"); + status.textContent = "Ledger temporarily unavailable. " + error.message + ". Retrying automatically."; + if (!study.runs.length) render(); + } finally { window.setTimeout(refresh, local ? 10000 : 60000); } +} + +for (const id of ["stage", "phase", "run"]) element(id).addEventListener("change", render); +for (const id of ["axis", "metric"]) element(id).addEventListener("change", collectCurves); +element("sample").addEventListener("change", showSample); +const canvas = element("chart"); +new ResizeObserver(draw).observe(element("chart").parentElement); +canvas.addEventListener("pointermove", e => { + const box = canvas.getBoundingClientRect(); + const x = e.clientX - box.left, y = e.clientY - box.top; + let nearest = -1, distance = 25 * 25; + points.forEach((point, i) => { + const d = (point.px - x) ** 2 + (point.py - y) ** 2; + if (d < distance) { nearest = i; distance = d; } + }); + if (nearest !== inspected) { + inspected = nearest; + if (nearest < 0) element("point").textContent = ""; + draw(); + } +}); +canvas.addEventListener("keydown", e => { + if (points.length && ["ArrowRight", "ArrowLeft"].includes(e.key)) { + e.preventDefault(); + inspected = (Math.max(0, inspected + (e.key === "ArrowRight" ? 1 : -1))) % points.length; + draw(); + } +}); +refresh(); diff --git a/research/docs/figures/curves.png b/research/docs/figures/curves.png index 85b01ee07d8331e4a62be0ffbd24ae00928a3afb..2b32b51bff59dc0a328c3e6c5a4d9ece28c981e4 100644 --- a/research/docs/figures/curves.png +++ b/research/docs/figures/curves.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:eacfa7a07db11ece058ca89eaa15549ad391fce89b9bb2a2298443fe2d83ea82 -size 176865 +oid sha256:589225b1384cb7692c7febbe8eb56e5a2603a8020688feab8577fd94ce38092f +size 177070 diff --git a/research/docs/hub/Apache-2.0.txt b/research/docs/hub/Apache-2.0.txt new file mode 100644 index 0000000000000000000000000000000000000000..d645695673349e3947e8e5ae42332d0ac3164cd7 --- /dev/null +++ b/research/docs/hub/Apache-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/research/docs/hub/CDLA-Sharing-1.0.txt b/research/docs/hub/CDLA-Sharing-1.0.txt new file mode 100644 index 0000000000000000000000000000000000000000..dba8e2576eab14f037daa60c50571f044f4f710d --- /dev/null +++ b/research/docs/hub/CDLA-Sharing-1.0.txt @@ -0,0 +1,89 @@ +Community Data License Agreement – Sharing – Version 1.0 + +This is the Community Data License Agreement – Sharing, Version 1.0 (“Agreement”). Data is provided to You under this Agreement by each of the Data Providers. Your exercise of any of the rights and permissions granted below constitutes Your acceptance and agreement to be bound by the terms and conditions of this Agreement. + +The benefits that each Data Provider receives from making Data available and that You receive from Data or otherwise under these terms and conditions shall be deemed sufficient consideration for the formation of this Agreement. Accordingly, Data Provider(s) and You (the “Parties”) agree as follows: + +Section 1. Definitions + +1.1 “Add” means to supplement Data with Your own or someone else’s Data, resulting in Your “Additions.” Additions do not include Results. + +1.2 “Computational Use” means Your analysis (through the use of computational devices or otherwise) or other interpretation of Data. By way of example and not limitation, “Computational Use” includes the application of any computational analytical technique, the purpose of which is the analysis of any Data in digital form to generate information about Data such as patterns, trends, correlations, inferences, insights and attributes. + +1.3 “Data” means the information (including copyrightable information, such as images or text), collectively or individually, whether created or gathered by a Data Provider or an Entity acting on its behalf, to which rights are granted under this Agreement. + +1.4 “Data Provider” means any Entity (including any employee or contractor of such Entity authorized to Publish Data on behalf of such Entity) that Publishes Data under this Agreement prior to Your Receiving it. + +1.5 “Enhanced Data” means the subset of Data that You Publish and that is composed of (a) Your Additions and/or (b) Modifications to Data You have received under this Agreement. + +1.6 “Entity” means any natural person or organization that exists under the laws of the jurisdiction in which it is organized, together with all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, “control” means (a) the power, directly or indirectly, to cause the direction or management of such entity, whether by contract or otherwise, (b) the ownership of more than fifty percent (50%) of the outstanding shares or securities, (c) the beneficial ownership of such entity or, (d) the ability to appoint, whether by agreement or right, the majority of directors of an Entity. + +1.7 “Ledger” means a digital record of Data or grants of rights in Data governed by this Agreement, using any technology having functionality to record and store Data or grants, contributions, or licenses to Data governed by this Agreement. + +1.8 “Modify” means to delete, erase, correct or re-arrange Data, resulting in “Modifications.” Modifications do not include Results. + +1.9 “Publish” means to make all or a subset of Data (including Your Enhanced Data) available in any manner which enables its Use, including by providing a copy on physical media or remote access. For any form of Entity, that is to make the Data available to any individual who is not employed by that Entity or engaged as a contractor or agent to perform work on that Entity’s behalf. A “Publication” occurs each time You Publish Data. + +1.10 “Receive” or “Receives” means to have been given access to Data, locally or remotely. + +1.11 “Results” means the outcomes or outputs that You obtain from Your Computational Use of Data. Results shall not include more than a de minimis portion of the Data on which the Computational Use is based. + +1.12 “Sui Generis Database Rights” means rights, other than copyright, resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other equivalent rights anywhere in the world. + +1.13 “Use” means using Data (including accessing, copying, studying, reviewing, adapting, analyzing, evaluating, or making Computational Use of it), either by machines or humans, or a combination of both. + +1.14 “You” or “Your” means any Entity that Receives Data under this Agreement. + +Section 2. Right and License to Use and to Publish + +2.1 Subject to the conditions set forth in Section 3 of this Agreement, Data Provider(s) hereby grant(s) to You a worldwide, non-exclusive, irrevocable (except as provided in Section 5) right to: (a) Use Data; and (b) Publish Data. + +2.2 To the extent that the Data or the coordination, selection or arrangement of Data is protected or protectable under copyright, Sui Generis Database Rights, or other law, Data Provider(s) further agree(s) that such Data or coordination, selection or arrangement is hereby licensed to You and to anyone else who Receives Data under this Agreement for Use and Publication, subject to the conditions set forth in Section 3 of this Agreement. + +2.3 Except for these rights and licenses expressly granted, no other intellectual property rights are granted or should be implied. + +Section 3. Conditions on Rights Granted + +3.1 If You Publish Data You Receive or Enhanced Data: + +(a) The Data (including the Enhanced Data) must be Published under this Agreement in accordance with this Section 3; and + +(b) You must cause any Data files containing Enhanced Data to carry prominent notices that You have changed those files; and + +(c) If You Publish Data You Receive, You must preserve all credit or attribution to the Data Provider(s). Such retained credit or attribution includes any of the following to the extent they exist in Data as You have Received it: legal notices or metadata; identification of the Data Provider(s); or hyperlinks to Data to the extent it is practical to do so. + +3.2 You may not restrict or deter the ability of anyone who Receives the Data (a) to Publish the Data in a publicly-accessible manner or (b) if the project has designated a Ledger for recording Data or grants of rights in Data for purposes of this Agreement, to record the Data or grants of rights in Data in the Ledger. + +3.3 If You Publish Data You Receive, You must do so under an unmodified form of this Agreement and include the text of this Agreement, the name of this Agreement and/or a hyperlink or other method reasonably likely to provide a copy of the text of this Agreement. You may not modify this Agreement or impose any further restrictions on the exercise of the rights granted under this Agreement, including by adding any restriction on commercial or non-commercial Use of Data (including Your Enhanced Data) or by limiting permitted Use of such Data to any particular platform, technology or field of endeavor. Notices that purport to modify this Agreement shall be of no effect. + +3.4 You and each Data Provider agree that Enhanced Data shall not be considered a work of joint authorship by virtue of its relationship to Data licensed under this Agreement and shall not require either any obligation of accounting to or the consent of any Data Provider. + +3.5 This Agreement imposes no obligations or restrictions on Your Use or Publication of Results. + +Section 4. Data Provider(s)’ Representations + +4.1 Each Data Provider represents that the Data Provider has exercised reasonable care, to assure that: (a) the Data it Publishes was created or generated by it or was obtained from others with the right to Publish the Data under this Agreement; and (b) Publication of such Data does not violate any privacy or confidentiality obligation undertaken by the Data Provider. + +Section 5. Termination + +5.1 All of Your rights under this Agreement will terminate, and Your right to Receive, Use or Publish the Data will be revoked or modified if You materially fail to comply with the terms and conditions of this Agreement and You do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If Your rights under this Agreement terminate, You agree to cease Receipt, Use and Publication of Data. However, Your obligations and any rights and permissions granted by You under this Agreement relating to Data that You Published prior to such termination will continue and survive. + +5.2 If You institute litigation against a Data Provider or anyone else who Receives the Data (including a cross-claim in a lawsuit) based on the Data, other than a claim asserting breach of this Agreement, then any rights previously granted to You to Receive, Use and Publish Data under this Agreement will terminate as of the date such litigation is filed. + +Section 6. Disclaimer of Warranties and Limitation of Liability + +6.1 EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE DATA (INCLUDING ENHANCED DATA) IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + +6.2 NEITHER YOU NOR ANY DATA PROVIDERS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE DATA OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +Section 7. Miscellaneous + +7.1 You agree that it is solely Your responsibility to comply with all applicable laws with regard to Your Use or Publication of Data, including any applicable privacy, data protection, security and export laws. You agree to take reasonable steps to assist a Data Provider fulfilling responsibilities to comply with applicable laws with regard to Use or Publication of Data Received hereunder. + +7.2 You and Data Provider(s), collectively and individually, waive and/or agree not to assert, to the extent permitted by law, any moral rights You or they hold in Data. + +7.3 This Agreement confers no rights or remedies upon any person or entity other than the Parties and their respective heirs, executors, successors and assigns. + +7.4 The Data Provider(s) reserve no right or expectation of privacy, data protection or confidentiality in any Data that they Publish under this Agreement. If You choose to Publish Data under this Agreement, You similarly do so with no reservation or expectation of any rights of privacy or confidentiality in that Data. + +7.5 The Community Data License Agreement workgroup under The Linux Foundation is the steward of this Agreement (“Steward”). No one other than the Steward has the right to modify or publish new versions of this Agreement. Each version will be given a distinguishing version number. You may Use and Publish Data Received hereunder under the terms of the version of the Agreement under which You originally Received the Data, or under the terms of any subsequent version published by the Steward. diff --git a/research/docs/hub/abstracts.md b/research/docs/hub/abstracts.md new file mode 100644 index 0000000000000000000000000000000000000000..dad544edea1d66c3c4c97edc007051ab74f3bf07 --- /dev/null +++ b/research/docs/hub/abstracts.md @@ -0,0 +1,13 @@ +--- +language: [en] +license: cc0-1.0 +source_datasets: [common-pile/arxiv_abstracts_filtered] +task_categories: [text-generation] +pretty_name: 2024 arXiv abstract token streams for the third-derivative study +--- + +# 2024 arXiv abstracts research splits + +These packed abstract records derive from the Common Pile filtered arXiv abstracts, using January through April first submissions for training, May for development and June for testing. Common Pile identifies arXiv abstract metadata as CC0. Each document's base arXiv ID in `documents.jsonl` identifies its authors and original record at `https://arxiv.org/abs/ID`. [Pinned corpus](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered/tree/dc1ceab4755eb037ec61e49cf1350dab7ceee6e7) · [Upstream collection and license](https://huggingface.co/datasets/common-pile/arxiv_abstracts#description) · [CC0](https://creativecommons.org/publicdomain/zero/1.0/) + +The study deduplicated and packed the documents with one end-of-sequence token per document. Read each `.bin` as little-endian unsigned 16-bit token IDs. The included tokenizer is the Pythia tokenizer from the pinned EleutherAI checkpoint distributed under Apache 2.0. The document index contains original IDs, timestamps, normalized hashes and packed offsets. [Tokenizer and its license](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) · [Split counts, byte lengths and SHA-256 digests](manifest.json) · [Preparation code](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/src/thirdloss/data.py) diff --git a/research/docs/hub/archive.md b/research/docs/hub/archive.md new file mode 100644 index 0000000000000000000000000000000000000000..ee772cf8d4ff5167cac4e1fb909b635048151f6c --- /dev/null +++ b/research/docs/hub/archive.md @@ -0,0 +1,18 @@ +--- +language: [en] +tags: [scientific-research, causal-language-modeling] +--- + +# Third derivatives in language-model training + +Does penalizing changes in loss curvature improve next-token prediction? The study compares ordinary AdamW, Hessian-trace regularization and the squared Frobenius norm of the third derivative with respect to trainable weights. Every trial, including the excluded numerical diagnostic, has a public record. [Paper](research/reports/paper.pdf) · [Current results](research/reports/summary.md) · [Interactive explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · [Collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) + +| Material | Hugging Face location | +|---|---| +| Complete Git tree, locked environment, tests and instructions | [Research tree](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research) · [README](research/README.md) | +| Literature, preregistration, raw observations and reviews | [Reports](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/reports) · [Raw results](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/research/results) | +| Timestamped training output, full prompts and completions, operator transcripts | [Log archive](https://huggingface.co/BurnyCoder/thirdloss-study/tree/main/logs) | +| Fitted models, model cards, optimizer moments, data cursor and random state | [Full-weight models](https://huggingface.co/BurnyCoder/thirdloss-stories) · [Pythia adapters](https://huggingface.co/BurnyCoder/thirdloss-pythia-410m-adapters) · [Pinned pretrained backbone](https://huggingface.co/EleutherAI/pythia-410m/tree/9879c9b5f8bea9051dcb0e68dff21493d67e9d4f) | +| Prepared training and evaluation data, tokenizers and overlap audits | [TinyStories](https://huggingface.co/datasets/BurnyCoder/thirdloss-tinystories-tokens) · [arXiv abstracts](https://huggingface.co/datasets/BurnyCoder/thirdloss-arxiv-abstracts-2024-tokens) | + +The publication receipt binds the Git commit to the verified file hashes across the collection. Run `uv run thirdloss audit-hub` from that checkout to independently compare the published objects. Log files are snapshots at publication time. Operational transcripts redact transport credentials and local account paths. [File digests and Git revision](publication.json) diff --git a/research/docs/hub/space.md b/research/docs/hub/space.md new file mode 100644 index 0000000000000000000000000000000000000000..b5673581cf68428bd476c54ee5e0a13a34cb1102 --- /dev/null +++ b/research/docs/hub/space.md @@ -0,0 +1,13 @@ +--- +title: Third derivatives in language-model training +emoji: 📈 +colorFrom: green +colorTo: blue +sdk: static +app_file: index.html +short_description: Explore measured losses, paired seeds and generated text. +--- + +# Third derivatives in language-model training + +Explore the measured training curves, held-out comparisons and complete continuations for full-weight training and adapter fine-tuning. The Space updates with each published training run or evaluation. Its downloadable JSON, figures and paper use the same raw results. [Research archive](https://huggingface.co/BurnyCoder/thirdloss-study) · [Paper](https://huggingface.co/BurnyCoder/thirdloss-study/resolve/main/research/reports/paper.pdf) · [Collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) diff --git a/research/docs/hub/stories.md b/research/docs/hub/stories.md new file mode 100644 index 0000000000000000000000000000000000000000..1c4bef12f89a03cce7b44fc7e99c7ef91b61383c --- /dev/null +++ b/research/docs/hub/stories.md @@ -0,0 +1,13 @@ +--- +language: [en] +license: cdla-sharing-1.0 +source_datasets: [roneneldan/TinyStories] +task_categories: [text-generation] +pretty_name: TinyStories token streams for the third-derivative study +--- + +# TinyStories research splits + +These are modified files derived from TinyStories by Ronen Eldan and Yuanzhi Li. Libor “Burny” Burian’s study split, normalized, deduplicated and tokenized documents and appended an end-of-sequence token after each document. The packed files, document index and tokenizer are distributed with attribution under the Community Data License Agreement – Sharing, version 1.0. [Pinned source](https://huggingface.co/datasets/roneneldan/TinyStories/tree/f54c09fd23315a6f9c86f9dc80f725de7d8f9c64) · [Original paper](https://arxiv.org/abs/2305.07759) · [License terms](https://cdla.dev/sharing-1-0/) + +Read each `.bin` as a flat array of little-endian unsigned 16-bit integers. The training-only tokenizer defines the IDs. The development documents come from the original training source. The official validation source supplies the final test documents. The index gives each accepted source ID, normalized document hash, split, token offset and length. The rejection ledger records exact and cross-split near duplicates. [Split counts, byte lengths and SHA-256 digests](manifest.json) · [Executable preparation](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/research/src/thirdloss/data.py) diff --git a/research/docs/index.html b/research/docs/index.html index 979cab3ef501155dc10f536c2ff9e5eb6f2d9590..1c0fde8bbc2808f89734fb485ef1d5ecb4011f92 100644 --- a/research/docs/index.html +++ b/research/docs/index.html @@ -1,110 +1,110 @@ - - - - - - - - Third derivatives in language-model training - - - - - -
- -
-
-
-
-

Third derivatives in
language-model training

-

Does penalizing changes in loss curvature improve next-token predictions? Compare ordinary training, Hessian-trace regularization, and a third-derivative penalty at equal training tokens.

- Read the preregistration -
-
-
Completed runs—
-
Training tokens logged—
-
Recorded training time—
-
-
-
Loading the study ledger…
- -
-

Training curves

One trajectory per run

-
- - - -
-
-
- - -
-
- - -
- -
-

Development curves use fixed probe windows. Completed-run tables show full development scores. The raw run logs retain every observation.

-
-
Run ledger -
- - -
Measurements from runs matching the filters
RunMethodSeedRatioTokensDev NLLTest NLLTokens/sPeak MiBStatus
-
-
-
- -
-

Paired evidence

-

The registered comparison uses held-out loss at equal training tokens. A negative difference favors the third-order objective. Both baseline comparisons must pass the corrected sign tests.

-
-
-
-
-

Output examples

Fixed development prompts

- -

- -
-
- -

Hochreiter and Schmidhuber proposed that among equally good training fits, flatter minima may generalize better. If weights can be rounded more coarsely and still fit, a good predictor can take fewer bits to describe. Here the test of generalization is how well the model predicts unseen tokens. Flat Minima (1997) ↗

-

The Hessian describes local loss curvature. On active updates, two independent random sign vectors estimate how quickly that curvature changes for the next-token loss of two text windows. The derivatives cover all TinyStories decoder weights or only Pythia’s trainable attention adapters, including interactions between trainable weights.

-

When moving away from a flat bottom makes curvature change faster, the third-derivative penalty can pull the weights back. A steep bowl with constant curvature receives zero penalty from this term. Whether the optimizer finds wider minima is a separate question from the measured next-token loss.

- Analytic loss curves. Trace and third-derivative penalties push in opposite directions at an asymmetric minimum. They pull displaced weights back in a flat quartic and give zero update in a steep quadratic. -

Circles mark the ordinary loss minima. Arrows show downhill directions for each penalty. The vertical scales vary by panel. Worked examples and the basin-width bound ↗

- TinyStories full-weight training and Pythia QKV adaptation feed next-token cross-entropy, a Hessian contraction, a third derivative and the regularized objective. - -
-
- - - + + + + + + + + Third derivatives in language-model training + + + + + +
+ +
+
+
+
+

Third derivatives in
language-model training

+

Does penalizing changes in loss curvature improve next-token predictions? Compare ordinary training, Hessian-trace regularization, and a third-derivative penalty at equal training tokens.

+ Read the preregistration +
+
+
Completed runs—
+
Training tokens logged—
+
Recorded training time—
+
+
+
Loading the study ledger…
+ +
+

Training curves

One trajectory per run

+
+ + + +
+
+
+ + +
+
+ + +
+ +
+

Development curves use fixed probe windows. Completed-run tables show full development scores. The raw run logs retain every observation.

+
+
Run ledger +
+ + +
Measurements from runs matching the filters
RunMethodSeedRatioTokensDev NLLTest NLLTokens/sPeak MiBStatus
+
+
+
+ +
+

Paired evidence

+

The registered comparison uses held-out loss at equal training tokens. A negative difference favors the third-order objective. Both baseline comparisons must pass the corrected sign tests.

+
+
+
+
+

Output examples

Fixed development prompts

+ +

+ +
+
+ +

Hochreiter and Schmidhuber proposed that among equally good training fits, flatter minima may generalize better. If weights can be rounded more coarsely and still fit, a good predictor can take fewer bits to describe. Here the test of generalization is how well the model predicts unseen tokens. Flat Minima (1997) ↗

+

The Hessian describes local loss curvature. On active updates, two independent random sign vectors estimate how quickly that curvature changes for the next-token loss of two text windows. The derivatives cover all TinyStories decoder weights or only Pythia’s trainable attention adapters, including interactions between trainable weights.

+

When moving away from a flat bottom makes curvature change faster, the third-derivative penalty can pull the weights back. A steep bowl with constant curvature receives zero penalty from this term. Whether the optimizer finds wider minima is a separate question from the measured next-token loss.

+ Analytic loss curves. Trace and third-derivative penalties push in opposite directions at an asymmetric minimum. They pull displaced weights back in a flat quartic and give zero update in a steep quadratic. +

Circles mark the ordinary loss minima. Arrows show downhill directions for each penalty. The vertical scales vary by panel. Worked examples and the basin-width bound ↗

+ TinyStories full-weight training and Pythia QKV adaptation feed next-token cross-entropy, a Hessian contraction, a third derivative and the regularized objective. + +
+
+ + + diff --git a/research/docs/runbook.md b/research/docs/runbook.md index f031e16efd1b5f703433fa9b9cd54713a3e34e97..c0a3bc6631de169dd4e8008a90556ec07e18af8d 100644 --- a/research/docs/runbook.md +++ b/research/docs/runbook.md @@ -1,44 +1,50 @@ -# Reproducing the study - -Install Python 3.12 and [uv](https://docs.astral.sh/uv/). The lock targets Windows AMD64 and Linux x86_64 with an NVIDIA driver supporting the CUDA 13.2 PyTorch wheel. Scratch training and ordinary adapter updates use float32. Adapter derivatives use float64. Make a project-local environment and install all locked dependencies with `uv sync --locked`. Copy `.env.example` to `.env` and optionally set `THIRDLOSS_STORAGE` to a directory with room for corpora, CUDA checkpoints and Hub downloads. Use the existing GitHub CLI and Hugging Face login for publication. - -```sh -uv run thirdloss verify -uv run thirdloss prepare --stage stories -uv run thirdloss train --stage stories --method third --phase pilot --seed 0 --ratio 0.03 -uv run thirdloss dashboard --port 18765 -``` - -In another terminal, open the printed dashboard URL. The public explorer reads the last published results. The local dashboard reads running records. Accuracy is top-one token accuracy and NLL is in nats per target token. The training-time column excludes data preparation, checks, validation, checkpoint serialization and publication. - -Run `uv run thirdloss study` to execute both stages, select strengths on development data, freeze all confirmatory checkpoints, and evaluate them. The owner's publishing workflow uses `uv run thirdloss study --publish`. This uploads fitted coordinates after each run and the study record after each training/evaluation. A local clone can omit the publishing flag. Repeating the same command resumes the last saved optimization step and skips completed runs. Checkpoints include optimizer state, random state and data cursor. The corpus manifests and run configuration must match. [Data and leakage checks](data.md) · [Preregistered run matrix](../reports/planned-runs.md) - -Use `uv run thirdloss report` to regenerate the README results, PDF, figures, experiment notes, progress and explorer from `results/`. Use `uv run thirdloss progress` for current status. `uv run thirdloss evaluate RUN_ID` verifies the registered weight digest and test split before scoring a frozen run. Both tokenizers are stored alongside their stage data. Full untruncated generated token IDs, prompts, reference continuations and outputs are in each run's `samples.jsonl`. Timestamped session logs are stored locally under `logs/`. - -After preparing abstracts, `uv run thirdloss verify --pretrained --device cuda` also compares both implementations of the penalty and its entire training gradient on the same pair of training windows, adapter initialization and sign probes. The diagnostic materializes the original joint graph for comparison. Its GPU allocation exceeded 10 GiB during the original replay. The ordinary adapter training path processes the two windows sequentially. `--device cpu` runs the optional comparison in host memory. [Adapter verification](../reports/reviews/adapter-verification.md) - -`uv run thirdloss verify --reference --device cpu` repeats the full-size FP64 calculation using the archived pilot’s CUDA probe stream. The production study uses `THIRDLOSS_ADAPTER_DERIVATIVE_DEVICE=cpu` on the laptop, six host math threads (`OMP_NUM_THREADS=6`, `MKL_NUM_THREADS=6`), and the GPU for cross-entropy, optimizer updates, generation and scoring. The derivative device, arithmetic, calibration and per-update host time are recorded. The `-fp64` suffix identifies amended adapter runs. [Protocol amendment](../reports/amendments/adapter-precision.md) - -## Load a published checkpoint - -All models are indexed in the [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378). The run name identifies its objective, phase, seed and penalty strength. Replace the example run name with the desired published checkpoint. Run from a clone with the locked environment. - -```python -from pathlib import Path -from huggingface_hub import snapshot_download -from safetensors.torch import load_file -from tokenizers import Tokenizer -from thirdloss.models import StoryTransformer - -run_id = "stories-pilot-s00-third-r03" -snapshot = snapshot_download("BurnyCoder/thirdloss-stories", allow_patterns=f"runs/{run_id}/*") -folder = Path(snapshot) / "runs" / run_id -model = StoryTransformer() -model.load_state_dict(load_file(str(folder / "model.safetensors"))) -model.eval() -tokenizer = Tokenizer.from_file(str(folder / "tokenizer.json")) -``` - -For adapter snapshots use `AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m", revision="9879c9b5f8bea9051dcb0e68dff21493d67e9d4f")` and load the adapter directory with `PeftModel.from_pretrained(base, folder)`. The published stage repo is `BurnyCoder/thirdloss-pythia-410m-adapters`. [PEFT](https://huggingface.co/docs/peft/en/package_reference/lora) - -Each fitted run also publishes `training_state.pt` and `restart.json`. The manifest identifies the SHA-256 digest and next data step. This PyTorch checkpoint includes the fitted weights, AdamW state, RNG states and run configuration. Local interruptions resume from `THIRDLOSS_STORAGE/checkpoints/RUN_ID/latest.pt`. To recover a published state on a new machine, regenerate the identical stage data, verify the downloaded checkpoint against `restart.json`, and put it at that location. A completed checkpoint retains the state of the last scheduled update. [Checkpoint and restoration code](../src/thirdloss/train.py) +# Reproducing the study + +Install Python 3.12 and [uv](https://docs.astral.sh/uv/). The lock targets Windows AMD64 and Linux x86_64 with an NVIDIA driver supporting the CUDA 13.2 PyTorch wheel. Scratch training and ordinary adapter updates use float32. Adapter derivatives use float64. Make a project-local environment and install all locked dependencies with `uv sync --locked`. Copy `.env.example` to `.env` and optionally set `THIRDLOSS_STORAGE` to a directory with room for corpora, CUDA checkpoints and Hub downloads. Use the existing GitHub CLI and Hugging Face login for publication. + +```sh +uv run thirdloss verify +uv run thirdloss prepare --stage stories +uv run thirdloss train --stage stories --method third --phase pilot --seed 0 --ratio 0.03 +uv run thirdloss dashboard --port 18765 +``` + +In another terminal, open the printed dashboard URL. The public explorer reads the last published results. The local dashboard reads running records. Accuracy is top-one token accuracy and NLL is in nats per target token. The training-time column excludes data preparation, checks, validation, checkpoint serialization and publication. + +Run `uv run thirdloss study` to execute both stages, select strengths on development data, freeze all confirmatory checkpoints, and evaluate them. The owner's publishing workflow uses `uv run thirdloss study --publish`. This uploads fitted coordinates after each run and the study record after each training/evaluation. A local clone can omit the publishing flag. Repeating the same command resumes the last saved optimization step and skips completed runs. Checkpoints include optimizer state, random state and data cursor. The corpus manifests and run configuration must match. [Data and leakage checks](data.md) · [Preregistered run matrix](../reports/planned-runs.md) + +Use `uv run thirdloss report` to regenerate the README results, PDF, figures, experiment notes, progress and explorer from `results/`. Use `uv run thirdloss progress` for current status. `uv run thirdloss evaluate RUN_ID` verifies the registered weight digest and test split before scoring a frozen run. Both tokenizers are stored alongside their stage data. Full untruncated generated token IDs, prompts, reference continuations and outputs are in each run's `samples.jsonl`. Timestamped session logs are stored locally under `logs/`. + +After preparing abstracts, `uv run thirdloss verify --pretrained --device cuda` also compares both implementations of the penalty and its entire training gradient on the same pair of training windows, adapter initialization and sign probes. The diagnostic materializes the original joint graph for comparison. Its GPU allocation exceeded 10 GiB during the original replay. The ordinary adapter training path processes the two windows sequentially. `--device cpu` runs the optional comparison in host memory. [Adapter verification](../reports/reviews/adapter-verification.md) + +`uv run thirdloss verify --reference --device cpu` repeats the full-size FP64 calculation using the archived pilot’s CUDA probe stream. The production study uses `THIRDLOSS_ADAPTER_DERIVATIVE_DEVICE=cpu` on the laptop, six host math threads (`OMP_NUM_THREADS=6`, `MKL_NUM_THREADS=6`), and the GPU for cross-entropy, optimizer updates, generation and scoring. The derivative device, arithmetic, calibration and per-update host time are recorded. The `-fp64` suffix identifies amended adapter runs. [Protocol amendment](../reports/amendments/adapter-precision.md) + +## Load a published checkpoint + +All models are indexed in the [Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378). The run name identifies its objective, phase, seed and penalty strength. Replace the example run name with the desired published checkpoint. Run from a clone with the locked environment. + +```python +from pathlib import Path +from huggingface_hub import snapshot_download +from safetensors.torch import load_file +from tokenizers import Tokenizer +from thirdloss.models import StoryTransformer + +run_id = "stories-pilot-s00-third-r03" +snapshot = snapshot_download("BurnyCoder/thirdloss-stories", allow_patterns=f"runs/{run_id}/*") +folder = Path(snapshot) / "runs" / run_id +model = StoryTransformer() +model.load_state_dict(load_file(str(folder / "model.safetensors"))) +model.eval() +tokenizer = Tokenizer.from_file(str(folder / "tokenizer.json")) +``` + +For adapter snapshots use `AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m", revision="9879c9b5f8bea9051dcb0e68dff21493d67e9d4f")` and load the adapter directory with `PeftModel.from_pretrained(base, folder)`. The published stage repo is `BurnyCoder/thirdloss-pythia-410m-adapters`. [PEFT](https://huggingface.co/docs/peft/en/package_reference/lora) + +Each fitted run also publishes `training_state.pt` and `restart.json`. The manifest identifies the SHA-256 digest and next data step. This PyTorch checkpoint includes the fitted weights, AdamW state, RNG states and run configuration. Local interruptions resume from `THIRDLOSS_STORAGE/checkpoints/RUN_ID/latest.pt`. To recover a published state on a new machine, regenerate the identical stage data, verify the downloaded checkpoint against `restart.json`, and put it at that location. A completed checkpoint retains the state of the last scheduled update. [Checkpoint and restoration code](../src/thirdloss/train.py) + +## Hugging Face publication and verification + +`uv run thirdloss publish` mirrors the committed Git tree, PDF, raw results, timestamped logs, interactive Space, packed corpora, audit indices, fitted weights and restart states to one collection. Each corpus card identifies its upstream license and changes. The test binary for each stage joins its dataset when the timing projection and stage freeze are committed. Model scoring then verifies the same test digest. [Full archive](https://huggingface.co/BurnyCoder/thirdloss-study) · [Runnable Space](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) + +Run `uv run thirdloss audit-hub` at the Git revision in `publication.json` to verify every published object against its Git blob or large-file digest, including all tracked files. The archive uses committed bytes so Windows checkout line endings and local configuration cannot change the mirrored source. [Public verification receipt](https://huggingface.co/BurnyCoder/thirdloss-study/blob/main/publication.json) diff --git a/research/docs/study.json b/research/docs/study.json index 191a553e11c64c7066b7c6c282484a82724c7414..8f5067e554ac17ae8695ff87d19d90de8d7a9731 100644 --- a/research/docs/study.json +++ b/research/docs/study.json @@ -1 +1 @@ -{"generated_at":"2026-11-25T09:34:46+00:00","runs":[{"id":"abstracts-control-s00-initial-r00","stage":"abstracts","method":"initial","phase":"control","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":0,"batch_windows":8,"microbatch":2,"context":128,"tokens":0,"steps":0,"train_seconds":0.0,"tokens_per_sec":0,"peak_vram_mb":2337.26708984375,"dev_nll":3.251673648131395,"dev_accuracy":0.3991059062218303,"status":"complete","trainable_parameters":786432,"device":"cuda","dev_tokens":5124071,"git_revision":"57458e86548c72c222c13a6b52998d8412116108","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","finished_at":"2026-11-25T08:43:29+00:00","initial_trainable_sha256":"1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b","cpu_threads":6,"process_peak_rss_mib":3309.34375,"evaluation_batch_windows":16,"target_tokens":0,"events":[],"samples":[{"timestamp":"2026-11-25T08:43:24+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will be used by neuroscience researchers to\nidentify cases of a disease or to select appropriate therapeutic intervention.\n\nThe research of Peter Seager and colleagues has demonstrated that the brain\ncan","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,320,908,407,6551,21559,8607,281,187,888,1419,2219,273,247,2728,390,281,3609,4569,9282,7268,15,187,187,510,2561,273,7993,1023,3800,285,11651,556,5183,326,253,3998,187,5092],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T08:43:26+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches have received high level\nillustrations through the standardized object detection .NET\nFramework and recognition frameworks. However, most of","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,452,2959,1029,1268,187,408,5337,569,949,253,19817,1789,5481,964,11502,187,26819,285,8981,31225,15,1723,13,954,273],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T08:43:29+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the turnover frequency in the optical spectrum, $\\nu_{\\rm{break}}$, for the five radio-loud AGN in our sample. For each AGN, we separately fit","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,25759,4294,275,253,5748,6637,13,669,3023,1126,1109,92,7054,12460,323,253,2620,5553,14,77,2995,32507,275,776,3410,15,1198,1016,32507,13,359,11794,4944],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":0},{"id":"abstracts-control-s00-unigram-r00","stage":"abstracts","method":"unigram","phase":"control","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":0,"batch_windows":8,"microbatch":2,"context":128,"tokens":0,"steps":0,"train_seconds":0.0,"tokens_per_sec":0,"peak_vram_mb":0.77001953125,"dev_nll":7.330611023921152,"dev_accuracy":0.06022652691580581,"status":"complete","trainable_parameters":0,"device":"cuda","dev_tokens":5124071,"git_revision":"0dc2fef90f0f87cf2c2d13cea227b0d106a4fae5","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","finished_at":"2026-11-25T08:43:45+00:00","initial_trainable_sha256":null,"cpu_threads":6,"process_peak_rss_mib":3402.7421875,"evaluation_batch_windows":16,"target_tokens":0,"events":[],"samples":[{"timestamp":"2026-11-25T08:43:45+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" neural. is novel In used describe sacrific the theruction\n To their\nzo than chronic current the the factor an( simultaneouslyrelated\nexchange\npurpose,) was} standards\n of\n radio.","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[11454,15,310,4460,496,908,6266,18501,253,253,2705,187,1916,616,187,8636,685,6722,1655,253,253,2803,271,9,10486,4919,187,35757,187,27299,13,10,369,94,7465,187,273,187,5553,15],"tokens":40,"sampling_seed":7401,"temperature":1.0},{"timestamp":"2026-11-25T08:43:45+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" perfection problemsurallymathrm experts\ncentd grown)\n of of and the consideration Act of estimators high congestion decoder household path than\n Yet health the$\\inc- where polymerbegin or modelsax\n opinions","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[26835,3237,8572,2690,10071,187,1154,69,8228,10,187,273,273,285,253,8180,3162,273,48489,1029,35367,29810,11692,1854,685,187,9110,1786,253,1202,1763,14,835,7923,2043,390,3210,991,187,11626],"tokens":40,"sampling_seed":7402,"temperature":1.0},{"timestamp":"2026-11-25T08:43:45+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"onbit this\n\n most observed an2 oforation on issue an to] websiteF textemporary","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[251,2713,436,187,187,954,2540,271,19,273,7843,327,2523,271,281,62,4422,39,2505,32596,0],"tokens":21,"sampling_seed":7403,"temperature":1.0}],"events_total":0},{"id":"abstracts-pilot-s00-ce-r00","stage":"abstracts","method":"ce","phase":"pilot","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":65536,"batch_windows":8,"microbatch":2,"context":128,"tokens":65536,"train_seconds":39.50860880003893,"steps":64,"dev_nll":3.1139476033557547,"dev_accuracy":0.41320992624809455,"tokens_per_sec":1658.777719349496,"peak_vram_mb":2346.30029296875,"status":"complete","trainable_parameters":786432,"device":"cuda","weights_sha256":"828359e0b0205cd005f637cc7be0085bd34b4871bf7a0fc384324d85ff095acb","dev_tokens":5124071,"git_revision":"c4e251717056d1ccc252ca995ed7c2985c528bdd","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.088128614879679,"finished_at":"2026-11-25T08:56:58+00:00","initial_trainable_sha256":"1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b","host_probe_seconds":0.0,"training_seconds_excluding_host_probes":39.50860880003893,"cpu_threads":6,"process_peak_rss_mib":3872.859375,"evaluation_batch_windows":16,"target_tokens":65536,"events":[{"step":1,"tokens":1024,"train_seconds":0.8024337000024389,"loss":3.3628768920898438,"accuracy":0.38671875,"timestamp":"2026-11-25T08:44:05+00:00","training_seconds_excluding_host_probes":0.8024337000024389,"host_probe_seconds":0.0},{"step":4,"tokens":4096,"train_seconds":2.5656078000029083,"loss":3.3350424766540527,"accuracy":0.3671875,"dev_nll":3.205319700355176,"dev_accuracy":0.4027099609375,"timestamp":"2026-11-25T08:44:08+00:00","training_seconds_excluding_host_probes":2.5656078000029083,"host_probe_seconds":0.0},{"step":8,"tokens":8192,"train_seconds":5.134419000009075,"loss":3.1536121368408203,"accuracy":0.412109375,"dev_nll":3.1851196667412296,"dev_accuracy":0.4056396484375,"timestamp":"2026-11-25T08:44:12+00:00","training_seconds_excluding_host_probes":5.134419000009075,"host_probe_seconds":0.0},{"step":12,"tokens":12288,"train_seconds":7.603069700009655,"loss":3.2248728275299072,"accuracy":0.421875,"dev_nll":3.1676387496409006,"dev_accuracy":0.406982421875,"timestamp":"2026-11-25T08:44:16+00:00","training_seconds_excluding_host_probes":7.603069700009655,"host_probe_seconds":0.0},{"step":16,"tokens":16384,"train_seconds":10.075796000011906,"loss":3.1744303703308105,"accuracy":0.40234375,"dev_nll":3.1534856006037444,"dev_accuracy":0.40869140625,"timestamp":"2026-11-25T08:44:19+00:00","training_seconds_excluding_host_probes":10.075796000011906,"host_probe_seconds":0.0},{"step":20,"tokens":20480,"train_seconds":12.419361300009768,"loss":3.3639204502105713,"accuracy":0.3818359375,"dev_nll":3.1409748164587654,"dev_accuracy":0.4071044921875,"timestamp":"2026-11-25T08:44:23+00:00","training_seconds_excluding_host_probes":12.419361300009768,"host_probe_seconds":0.0},{"step":24,"tokens":24576,"train_seconds":14.833960600022692,"loss":3.1635994911193848,"accuracy":0.412109375,"dev_nll":3.1300875726155937,"dev_accuracy":0.407470703125,"timestamp":"2026-11-25T08:44:27+00:00","training_seconds_excluding_host_probes":14.833960600022692,"host_probe_seconds":0.0},{"step":28,"tokens":28672,"train_seconds":17.328365300025325,"loss":3.239861249923706,"accuracy":0.396484375,"dev_nll":3.120358025538735,"dev_accuracy":0.4085693359375,"timestamp":"2026-11-25T08:44:30+00:00","training_seconds_excluding_host_probes":17.328365300025325,"host_probe_seconds":0.0},{"step":32,"tokens":32768,"train_seconds":19.674373200025002,"loss":3.4722695350646973,"accuracy":0.376953125,"dev_nll":3.1118558782618493,"dev_accuracy":0.410400390625,"timestamp":"2026-11-25T08:44:34+00:00","training_seconds_excluding_host_probes":19.674373200025002,"host_probe_seconds":0.0},{"step":36,"tokens":36864,"train_seconds":21.983117200026754,"loss":3.1311087608337402,"accuracy":0.4013671875,"dev_nll":3.1051287156296894,"dev_accuracy":0.4117431640625,"timestamp":"2026-11-25T08:44:38+00:00","training_seconds_excluding_host_probes":21.983117200026754,"host_probe_seconds":0.0},{"step":40,"tokens":40960,"train_seconds":24.589703200021177,"loss":3.067770481109619,"accuracy":0.4228515625,"dev_nll":3.100161263544578,"dev_accuracy":0.4117431640625,"timestamp":"2026-11-25T08:44:41+00:00","training_seconds_excluding_host_probes":24.589703200021177,"host_probe_seconds":0.0},{"step":44,"tokens":45056,"train_seconds":27.07432700003119,"loss":3.389313220977783,"accuracy":0.3740234375,"dev_nll":3.0965134197613224,"dev_accuracy":0.412109375,"timestamp":"2026-11-25T08:44:45+00:00","training_seconds_excluding_host_probes":27.07432700003119,"host_probe_seconds":0.0},{"step":48,"tokens":49152,"train_seconds":29.51457880003727,"loss":3.2319536209106445,"accuracy":0.376953125,"dev_nll":3.0937195026199333,"dev_accuracy":0.4129638671875,"timestamp":"2026-11-25T08:44:49+00:00","training_seconds_excluding_host_probes":29.51457880003727,"host_probe_seconds":0.0},{"step":52,"tokens":53248,"train_seconds":32.002394200040726,"loss":3.064552068710327,"accuracy":0.4072265625,"dev_nll":3.0917324865586124,"dev_accuracy":0.4144287109375,"timestamp":"2026-11-25T08:44:53+00:00","training_seconds_excluding_host_probes":32.002394200040726,"host_probe_seconds":0.0},{"step":56,"tokens":57344,"train_seconds":34.539385100048094,"loss":3.2473764419555664,"accuracy":0.40234375,"dev_nll":3.090231150505133,"dev_accuracy":0.4139404296875,"timestamp":"2026-11-25T08:44:56+00:00","training_seconds_excluding_host_probes":34.539385100048094,"host_probe_seconds":0.0},{"step":60,"tokens":61440,"train_seconds":37.01594860004843,"loss":3.167987823486328,"accuracy":0.4072265625,"dev_nll":3.0890883168322034,"dev_accuracy":0.41455078125,"timestamp":"2026-11-25T08:45:00+00:00","training_seconds_excluding_host_probes":37.01594860004843,"host_probe_seconds":0.0},{"step":64,"tokens":65536,"train_seconds":39.50860880003893,"loss":3.1689395904541016,"accuracy":0.40234375,"dev_nll":3.088128614879679,"dev_accuracy":0.4149169921875,"timestamp":"2026-11-25T08:45:04+00:00","training_seconds_excluding_host_probes":39.50860880003893,"host_probe_seconds":0.0}],"samples":[{"timestamp":"2026-11-25T08:56:52+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,13613,3283,253,3879,273,187,15325,14,6160,20967,9360,824,347,29931,15,496,436,2929,13,359,187,15068,247,4460,10895,273,29253,941,5950,432,2151,342,18560,187,2377,68,35149,29931],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T08:56:55+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,5257,281,320,2330,342,187,66,1355,1180,273,3636,1789,5971,15,1623,253,581,1133,13,597,187,609,2223,3576,281],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T08:56:57+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,9879,3605,273,253,6944,187,18181,1544,3605,370,84,1126,1109,92,7054,12460,285,10313,326,627,310,247,10898,187,46397,875,1097,13483,13,187,187,7010,2043],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":17},{"id":"abstracts-pilot-s00-third-r03","stage":"abstracts","method":"third","phase":"diagnostic","seed":0,"ratio":0.03,"coefficients":{"third":8.794990192182448e-22},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":65536,"batch_windows":8,"microbatch":2,"context":128,"tokens":65536,"train_seconds":72.27489250001236,"steps":64,"dev_nll":3.1167960467768983,"dev_accuracy":0.4127544290467482,"tokens_per_sec":906.760255644639,"peak_vram_mb":6369.60888671875,"status":"complete","trainable_parameters":786432,"device":"cuda","weights_sha256":"4323b1e0b4aa0b7926fe7b6ed7e4a2ca7ff755a591b77cd79db437cbe1db2a6e","dev_tokens":5124071,"git_revision":"104f21942f53158ba411ff178be284d79965ca62","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.09093911992386,"finished_at":"2026-11-25T07:32:40+00:00","target_tokens":65536,"failures":[{"timestamp":"2026-11-25T07:00:21+00:00","error":"FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf')"}],"events":[{"step":1,"tokens":1024,"train_seconds":0.7549512999976287,"loss":3.3628768920898438,"accuracy":0.38671875,"timestamp":"2026-11-25T07:10:36+00:00"},{"step":2,"tokens":2048,"train_seconds":7.784967199997482,"loss":3.4265871047973633,"accuracy":0.3720703125,"penalty":4.4714412722948273e-07,"timestamp":"2026-11-25T07:10:43+00:00","raw_third":63550970134528.0},{"step":4,"tokens":4096,"train_seconds":8.992709899997863,"loss":3.3350443840026855,"accuracy":0.3671875,"dev_nll":3.2052710236166604,"dev_accuracy":0.40283203125,"timestamp":"2026-11-25T07:10:46+00:00"},{"step":8,"tokens":8192,"train_seconds":11.37447599999723,"loss":3.153599977493286,"accuracy":0.412109375,"dev_nll":3.1850391061161645,"dev_accuracy":0.4056396484375,"timestamp":"2026-11-25T07:10:51+00:00"},{"step":11,"tokens":11264,"train_seconds":19.229515199996968,"loss":3.2227602005004883,"accuracy":0.4150390625,"penalty":1.0769202085040574e-05,"timestamp":"2026-11-25T07:10:59+00:00","raw_third":1530587563163648.0},{"step":12,"tokens":12288,"train_seconds":19.830211699998472,"loss":3.2258496284484863,"accuracy":0.421875,"dev_nll":3.1686210415209644,"dev_accuracy":0.4073486328125,"timestamp":"2026-11-25T07:11:01+00:00"},{"step":16,"tokens":16384,"train_seconds":22.11336940000183,"loss":3.1759636402130127,"accuracy":0.404296875,"dev_nll":3.1556127692456357,"dev_accuracy":0.4083251953125,"timestamp":"2026-11-25T07:11:05+00:00"},{"step":20,"tokens":20480,"train_seconds":24.520824300005188,"loss":3.365950584411621,"accuracy":0.3798828125,"dev_nll":3.143591393774841,"dev_accuracy":0.4073486328125,"timestamp":"2026-11-25T07:11:10+00:00"},{"step":22,"tokens":22528,"train_seconds":32.07198700000663,"loss":3.1026458740234375,"accuracy":0.400390625,"penalty":8.19851133577173e-06,"timestamp":"2026-11-25T07:11:17+00:00","raw_third":1165224627404800.0},{"step":24,"tokens":24576,"train_seconds":33.262805500005925,"loss":3.1675891876220703,"accuracy":0.4130859375,"dev_nll":3.1338581111631356,"dev_accuracy":0.4075927734375,"timestamp":"2026-11-25T07:11:20+00:00"},{"step":25,"tokens":25600,"train_seconds":40.032943500005786,"loss":3.1646835803985596,"accuracy":0.400390625,"penalty":1.0071822211194986e-06,"timestamp":"2026-11-25T07:11:27+00:00","raw_third":143147149557760.0},{"step":28,"tokens":28672,"train_seconds":41.769987900010165,"loss":3.24495267868042,"accuracy":0.3994140625,"dev_nll":3.1247553065186366,"dev_accuracy":0.407958984375,"timestamp":"2026-11-25T07:11:31+00:00"},{"step":32,"tokens":32768,"train_seconds":44.11454810001305,"loss":3.475984573364258,"accuracy":0.376953125,"dev_nll":3.116393227071967,"dev_accuracy":0.40966796875,"timestamp":"2026-11-25T07:11:36+00:00"},{"step":36,"tokens":36864,"train_seconds":46.52359150001212,"loss":3.1366770267486572,"accuracy":0.3994140625,"dev_nll":3.109527630964294,"dev_accuracy":0.4110107421875,"timestamp":"2026-11-25T07:11:40+00:00"},{"step":40,"tokens":40960,"train_seconds":49.058105700012675,"loss":3.069873094558716,"accuracy":0.421875,"dev_nll":3.1042128810076974,"dev_accuracy":0.412109375,"timestamp":"2026-11-25T07:11:45+00:00"},{"step":44,"tokens":45056,"train_seconds":51.578499600014766,"loss":3.3931686878204346,"accuracy":0.3740234375,"dev_nll":3.100137497414835,"dev_accuracy":0.41259765625,"timestamp":"2026-11-25T07:11:49+00:00"},{"step":48,"tokens":49152,"train_seconds":54.11914360001538,"loss":3.235374927520752,"accuracy":0.37890625,"dev_nll":3.097055894031655,"dev_accuracy":0.4124755859375,"timestamp":"2026-11-25T07:11:54+00:00"},{"step":50,"tokens":51200,"train_seconds":61.74632690001454,"loss":3.0874135494232178,"accuracy":0.4052734375,"penalty":2.535928987073313e-07,"timestamp":"2026-11-25T07:12:02+00:00","raw_third":36042237280256.0},{"step":52,"tokens":53248,"train_seconds":63.20483800001239,"loss":3.068760871887207,"accuracy":0.408203125,"dev_nll":3.0948601723648608,"dev_accuracy":0.412841796875,"timestamp":"2026-11-25T07:12:05+00:00"},{"step":56,"tokens":57344,"train_seconds":66.32172880001235,"loss":3.2506747245788574,"accuracy":0.40234375,"dev_nll":3.0932112977607176,"dev_accuracy":0.4134521484375,"timestamp":"2026-11-25T07:12:10+00:00"},{"step":60,"tokens":61440,"train_seconds":69.4508472000125,"loss":3.1683192253112793,"accuracy":0.4091796875,"dev_nll":3.091967608779669,"dev_accuracy":0.414306640625,"timestamp":"2026-11-25T07:12:16+00:00"},{"step":64,"tokens":65536,"train_seconds":72.27489250001236,"loss":3.1733510494232178,"accuracy":0.400390625,"dev_nll":3.09093911992386,"dev_accuracy":0.414306640625,"timestamp":"2026-11-25T07:12:21+00:00"}],"samples":[{"timestamp":"2026-11-25T07:32:34+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,13613,3283,253,3879,273,187,15325,14,6160,20967,9360,824,347,29931,15,496,436,2929,13,359,187,15068,247,4460,10895,273,29253,941,5950,432,2151,342,18560,187,2377,68,35149,29931],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T07:32:37+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,5257,281,320,2330,342,187,66,1355,1180,273,3636,1789,5971,15,1623,253,581,1133,13,597,187,609,2223,3576,281],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T07:32:39+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,9879,3605,273,253,6944,187,18181,1544,3605,370,84,1126,1109,92,7054,12460,285,10313,326,627,310,247,10898,187,46397,875,1097,13483,13,187,187,7010,2043],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"registered_phase":"pilot","precision_audit":{"reason":"This original FP32 adapter run is preserved as a numerical diagnostic. The same-probe full-checkpoint audit found substantial rounding error in both the penalty and its training gradient. Strength selection and confirmatory inference use separately named FP64 derivative runs.","replacement":"abstracts-pilot-s00-third-r03-fp64"},"events_total":22},{"id":"abstracts-pilot-s00-third-r03-fp64","stage":"abstracts","method":"third","phase":"pilot","seed":0,"ratio":0.03,"coefficients":{"third":1.8177534873097565e-16},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":65536,"batch_windows":8,"microbatch":2,"context":128,"derivative_dtype":"float64","derivative_device":"cpu","tokens":65536,"train_seconds":349.2530617000011,"steps":64,"dev_nll":3.1148602603458824,"dev_accuracy":0.4130924415372074,"tokens_per_sec":187.64617175008087,"peak_vram_mb":2346.30029296875,"status":"complete","trainable_parameters":786432,"device":"cuda","weights_sha256":"ba783a138db5dcb60db9075e12ef04ab5251e8591e5f580fd48b4418f8e2e1e0","dev_tokens":5124071,"git_revision":"a1ba0fc2e322c16968bbce4e3dc5b9ac67037374","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.089313570468221,"finished_at":"2026-11-25T08:31:25+00:00","initial_trainable_sha256":"1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b","host_probe_seconds":286.2921774000024,"training_seconds_excluding_host_probes":62.960884299998725,"cpu_threads":6,"process_peak_rss_mib":15321.11328125,"evaluation_batch_windows":16,"target_tokens":65536,"events":[{"step":1,"tokens":1024,"train_seconds":0.962927699998545,"loss":3.3628768920898438,"accuracy":0.38671875,"timestamp":"2026-11-25T08:13:31+00:00","training_seconds_excluding_host_probes":0.962927699998545,"host_probe_seconds":0},{"step":2,"tokens":2048,"train_seconds":59.588642899998376,"loss":3.4265871047973633,"accuracy":0.3720703125,"penalty":0.0009999741266698578,"timestamp":"2026-11-25T08:14:29+00:00","training_seconds_excluding_host_probes":1.7104225999974005,"host_probe_seconds":57.878220300000976,"raw_third":687644208669.4894},{"step":4,"tokens":4096,"train_seconds":64.748265299997,"loss":3.3355765342712402,"accuracy":0.3671875,"dev_nll":3.205850869708229,"dev_accuracy":0.4027099609375,"timestamp":"2026-11-25T08:14:36+00:00","training_seconds_excluding_host_probes":6.870044999996026,"host_probe_seconds":0},{"step":8,"tokens":8192,"train_seconds":67.7308524,"loss":3.1542978286743164,"accuracy":0.41015625,"dev_nll":3.185838397825137,"dev_accuracy":0.406494140625,"timestamp":"2026-11-25T08:14:40+00:00","training_seconds_excluding_host_probes":9.852632099999028,"host_probe_seconds":0},{"step":11,"tokens":11264,"train_seconds":125.70181410000441,"loss":3.222909927368164,"accuracy":0.412109375,"penalty":0.00044426055870762094,"timestamp":"2026-11-25T08:15:38+00:00","training_seconds_excluding_host_probes":11.939503700003115,"host_probe_seconds":55.88409010000032,"raw_third":305501104666.5071},{"step":12,"tokens":12288,"train_seconds":130.09385470000416,"loss":3.226421594619751,"accuracy":0.4208984375,"dev_nll":3.1688174732844345,"dev_accuracy":0.40673828125,"timestamp":"2026-11-25T08:15:44+00:00","training_seconds_excluding_host_probes":16.33154430000286,"host_probe_seconds":0},{"step":16,"tokens":16384,"train_seconds":132.96146440000302,"loss":3.176070213317871,"accuracy":0.404296875,"dev_nll":3.155030827212613,"dev_accuracy":0.40869140625,"timestamp":"2026-11-25T08:15:48+00:00","training_seconds_excluding_host_probes":19.199154000001727,"host_probe_seconds":0},{"step":20,"tokens":20480,"train_seconds":135.62548290000996,"loss":3.365168571472168,"accuracy":0.3818359375,"dev_nll":3.14251070341561,"dev_accuracy":0.40771484375,"timestamp":"2026-11-25T08:15:52+00:00","training_seconds_excluding_host_probes":21.86317250000866,"host_probe_seconds":0},{"step":22,"tokens":22528,"train_seconds":195.6454539000115,"loss":3.1007277965545654,"accuracy":0.4013671875,"penalty":0.0002494151422307522,"timestamp":"2026-11-25T08:16:52+00:00","training_seconds_excluding_host_probes":23.39340420001099,"host_probe_seconds":58.4897392999992,"raw_third":171513315730.0954},{"step":24,"tokens":24576,"train_seconds":200.80499380000765,"loss":3.1658759117126465,"accuracy":0.4140625,"dev_nll":3.131769879197236,"dev_accuracy":0.4073486328125,"timestamp":"2026-11-25T08:16:58+00:00","training_seconds_excluding_host_probes":28.552944100007153,"host_probe_seconds":0},{"step":25,"tokens":25600,"train_seconds":257.6465824000079,"loss":3.161825180053711,"accuracy":0.400390625,"penalty":0.0013349806288286204,"timestamp":"2026-11-25T08:17:55+00:00","training_seconds_excluding_host_probes":29.185111500006315,"host_probe_seconds":56.20942120000109,"raw_third":918015450216.7732},{"step":28,"tokens":28672,"train_seconds":263.6649002000049,"loss":3.242283582687378,"accuracy":0.3974609375,"dev_nll":3.1222981341998093,"dev_accuracy":0.407958984375,"timestamp":"2026-11-25T08:18:02+00:00","training_seconds_excluding_host_probes":35.203429300003336,"host_probe_seconds":0},{"step":32,"tokens":32768,"train_seconds":266.4159822000038,"loss":3.47184419631958,"accuracy":0.3759765625,"dev_nll":3.1137536005699076,"dev_accuracy":0.4097900390625,"timestamp":"2026-11-25T08:18:06+00:00","training_seconds_excluding_host_probes":37.954511300002196,"host_probe_seconds":0},{"step":36,"tokens":36864,"train_seconds":269.1472620000095,"loss":3.13436222076416,"accuracy":0.3994140625,"dev_nll":3.1068799886270426,"dev_accuracy":0.41162109375,"timestamp":"2026-11-25T08:18:10+00:00","training_seconds_excluding_host_probes":40.68579110000792,"host_probe_seconds":0},{"step":40,"tokens":40960,"train_seconds":271.90369160000773,"loss":3.0670571327209473,"accuracy":0.4267578125,"dev_nll":3.101782739860937,"dev_accuracy":0.4114990234375,"timestamp":"2026-11-25T08:18:14+00:00","training_seconds_excluding_host_probes":43.442220700006146,"host_probe_seconds":0},{"step":44,"tokens":45056,"train_seconds":274.78990590000467,"loss":3.3899011611938477,"accuracy":0.3681640625,"dev_nll":3.098028525535483,"dev_accuracy":0.4119873046875,"timestamp":"2026-11-25T08:18:18+00:00","training_seconds_excluding_host_probes":46.32843500000308,"host_probe_seconds":0},{"step":48,"tokens":49152,"train_seconds":277.2874240000019,"loss":3.2332143783569336,"accuracy":0.376953125,"dev_nll":3.095082105253823,"dev_accuracy":0.411865234375,"timestamp":"2026-11-25T08:18:22+00:00","training_seconds_excluding_host_probes":48.82595310000033,"host_probe_seconds":0},{"step":50,"tokens":51200,"train_seconds":336.416138200002,"loss":3.0864548683166504,"accuracy":0.4052734375,"penalty":0.0011012592465449108,"timestamp":"2026-11-25T08:19:21+00:00","training_seconds_excluding_host_probes":50.12396079999962,"host_probe_seconds":57.830706500000815,"raw_third":757294136851.5509},{"step":52,"tokens":53248,"train_seconds":341.5731149000021,"loss":3.066990852355957,"accuracy":0.41015625,"dev_nll":3.093058333382942,"dev_accuracy":0.4130859375,"timestamp":"2026-11-25T08:19:28+00:00","training_seconds_excluding_host_probes":55.28093749999971,"host_probe_seconds":0},{"step":56,"tokens":57344,"train_seconds":344.05631189999986,"loss":3.2474496364593506,"accuracy":0.4033203125,"dev_nll":3.091498479945585,"dev_accuracy":0.4139404296875,"timestamp":"2026-11-25T08:19:31+00:00","training_seconds_excluding_host_probes":57.76413449999745,"host_probe_seconds":0},{"step":60,"tokens":61440,"train_seconds":346.7057458999989,"loss":3.1669363975524902,"accuracy":0.40625,"dev_nll":3.0903065995080397,"dev_accuracy":0.414306640625,"timestamp":"2026-11-25T08:19:35+00:00","training_seconds_excluding_host_probes":60.41356849999647,"host_probe_seconds":0},{"step":64,"tokens":65536,"train_seconds":349.2530617000011,"loss":3.1704280376434326,"accuracy":0.40234375,"dev_nll":3.089313570468221,"dev_accuracy":0.4146728515625,"timestamp":"2026-11-25T08:19:39+00:00","training_seconds_excluding_host_probes":62.960884299998725,"host_probe_seconds":0}],"samples":[{"timestamp":"2026-11-25T08:31:20+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,13613,3283,253,3879,273,187,15325,14,6160,20967,9360,824,347,29931,15,496,436,2929,13,359,187,15068,247,4460,10895,273,29253,941,5950,432,2151,342,18560,187,2377,68,35149,29931],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T08:31:22+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,5257,281,320,2330,342,187,66,1355,1180,273,3636,1789,5971,15,1623,253,581,1133,13,597,187,609,2223,3576,281],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T08:31:25+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,9879,3605,273,253,6944,187,18181,1544,3605,370,84,1126,1109,92,7054,12460,285,10313,326,627,310,247,10898,187,46397,875,1097,13483,326,476,320,908,281],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":22},{"id":"abstracts-pilot-s00-trace-r01-fp64","stage":"abstracts","method":"trace","phase":"pilot","seed":0,"ratio":0.01,"coefficients":{"trace":1.4108895021963894e-08},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":65536,"batch_windows":8,"microbatch":2,"context":128,"derivative_dtype":"float64","derivative_device":"cpu","tokens":65536,"train_seconds":150.8196659999594,"steps":64,"dev_nll":3.113974483425786,"dev_accuracy":0.4132109020347298,"tokens_per_sec":434.53219157783866,"peak_vram_mb":2346.30029296875,"status":"complete","trainable_parameters":786432,"device":"cuda","weights_sha256":"0ee7f88f1adea83b25390e405b4f4ff4f3ad0992068f85dd4c39d4c1c582c44e","dev_tokens":5124071,"git_revision":"dab3dfb352d24520c26a62383fd7fcb1dc953fff","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.0881463024416007,"finished_at":"2026-11-25T09:18:43+00:00","initial_trainable_sha256":"1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b","host_probe_seconds":100.09548409999843,"training_seconds_excluding_host_probes":50.72418189996097,"cpu_threads":6,"process_peak_rss_mib":10524.5703125,"evaluation_batch_windows":16,"target_tokens":65536,"events":[{"step":1,"tokens":1024,"train_seconds":0.9647509999995236,"loss":3.3628768920898438,"accuracy":0.38671875,"timestamp":"2026-11-25T09:03:18+00:00","training_seconds_excluding_host_probes":0.9647509999995236,"host_probe_seconds":0},{"step":2,"tokens":2048,"train_seconds":21.437343199999304,"loss":3.4265871047973633,"accuracy":0.3720703125,"penalty":0.00017051273613559787,"timestamp":"2026-11-25T09:03:39+00:00","training_seconds_excluding_host_probes":2.1591674000010244,"host_probe_seconds":19.27817579999828,"raw_trace":1510.6847122874765},{"step":4,"tokens":4096,"train_seconds":23.435999600005744,"loss":3.3350393772125244,"accuracy":0.3671875,"dev_nll":3.2052851244807243,"dev_accuracy":0.4029541015625,"timestamp":"2026-11-25T09:03:42+00:00","training_seconds_excluding_host_probes":4.157823800007463,"host_probe_seconds":0},{"step":8,"tokens":8192,"train_seconds":26.635606999996526,"loss":3.1536779403686523,"accuracy":0.412109375,"dev_nll":3.185060740157496,"dev_accuracy":0.405517578125,"timestamp":"2026-11-25T09:03:47+00:00","training_seconds_excluding_host_probes":7.357431199998246,"host_probe_seconds":0},{"step":11,"tokens":11264,"train_seconds":49.59352889999718,"loss":3.2227516174316406,"accuracy":0.416015625,"penalty":-4.383365097631535e-05,"timestamp":"2026-11-25T09:04:10+00:00","training_seconds_excluding_host_probes":9.980550100000983,"host_probe_seconds":20.33480299999792,"raw_trace":-388.35120422327293},{"step":12,"tokens":12288,"train_seconds":50.43355399999564,"loss":3.224705934524536,"accuracy":0.421875,"dev_nll":3.1675555876572616,"dev_accuracy":0.4071044921875,"timestamp":"2026-11-25T09:04:12+00:00","training_seconds_excluding_host_probes":10.820575199999439,"host_probe_seconds":0},{"step":16,"tokens":16384,"train_seconds":53.73809659999097,"loss":3.174398899078369,"accuracy":0.40234375,"dev_nll":3.1534040844417177,"dev_accuracy":0.4085693359375,"timestamp":"2026-11-25T09:04:17+00:00","training_seconds_excluding_host_probes":14.125117799994769,"host_probe_seconds":0},{"step":20,"tokens":20480,"train_seconds":56.76466919999075,"loss":3.364372730255127,"accuracy":0.3818359375,"dev_nll":3.140957407304086,"dev_accuracy":0.4071044921875,"timestamp":"2026-11-25T09:04:21+00:00","training_seconds_excluding_host_probes":17.15169039999455,"host_probe_seconds":0},{"step":22,"tokens":22528,"train_seconds":78.32256149999012,"loss":3.1006228923797607,"accuracy":0.3994140625,"penalty":-6.26975256449424e-05,"timestamp":"2026-11-25T09:04:43+00:00","training_seconds_excluding_host_probes":18.681224699990707,"host_probe_seconds":20.02835800000321,"raw_trace":-555.4787028620826},{"step":24,"tokens":24576,"train_seconds":79.81583959998534,"loss":3.1637511253356934,"accuracy":0.4130859375,"dev_nll":3.13006722118007,"dev_accuracy":0.4071044921875,"timestamp":"2026-11-25T09:04:45+00:00","training_seconds_excluding_host_probes":20.17450279998593,"host_probe_seconds":0},{"step":25,"tokens":25600,"train_seconds":101.3181677999819,"loss":3.1608335971832275,"accuracy":0.3984375,"penalty":0.00025957310540442377,"timestamp":"2026-11-25T09:05:07+00:00","training_seconds_excluding_host_probes":21.161288799979957,"host_probe_seconds":20.51554220000253,"raw_trace":2299.7292222418528},{"step":28,"tokens":28672,"train_seconds":103.61438829996769,"loss":3.239475965499878,"accuracy":0.396484375,"dev_nll":3.120411109237466,"dev_accuracy":0.4083251953125,"timestamp":"2026-11-25T09:05:10+00:00","training_seconds_excluding_host_probes":23.45750929996575,"host_probe_seconds":0},{"step":32,"tokens":32768,"train_seconds":106.47401739995985,"loss":3.4724326133728027,"accuracy":0.376953125,"dev_nll":3.1119666167651303,"dev_accuracy":0.410400390625,"timestamp":"2026-11-25T09:05:14+00:00","training_seconds_excluding_host_probes":26.317138399957912,"host_probe_seconds":0},{"step":36,"tokens":36864,"train_seconds":109.24634419994982,"loss":3.1319172382354736,"accuracy":0.400390625,"dev_nll":3.1052487258566543,"dev_accuracy":0.41162109375,"timestamp":"2026-11-25T09:05:19+00:00","training_seconds_excluding_host_probes":29.08946519994788,"host_probe_seconds":0},{"step":40,"tokens":40960,"train_seconds":112.13995259995136,"loss":3.0671634674072266,"accuracy":0.421875,"dev_nll":3.1002497029840015,"dev_accuracy":0.4117431640625,"timestamp":"2026-11-25T09:05:23+00:00","training_seconds_excluding_host_probes":31.98307359994942,"host_probe_seconds":0},{"step":44,"tokens":45056,"train_seconds":115.08865379995405,"loss":3.389225959777832,"accuracy":0.3740234375,"dev_nll":3.0965155956801027,"dev_accuracy":0.41259765625,"timestamp":"2026-11-25T09:05:27+00:00","training_seconds_excluding_host_probes":34.93177479995211,"host_probe_seconds":0},{"step":48,"tokens":49152,"train_seconds":117.79835939995246,"loss":3.231717586517334,"accuracy":0.3779296875,"dev_nll":3.0936556336237118,"dev_accuracy":0.413330078125,"timestamp":"2026-11-25T09:05:31+00:00","training_seconds_excluding_host_probes":37.641480399950524,"host_probe_seconds":0},{"step":50,"tokens":51200,"train_seconds":139.57128269995883,"loss":3.0851714611053467,"accuracy":0.40625,"penalty":-9.558886362039284e-05,"timestamp":"2026-11-25T09:05:53+00:00","training_seconds_excluding_host_probes":39.4757985999604,"host_probe_seconds":19.938605099996494,"raw_trace":-846.8847442658138},{"step":52,"tokens":53248,"train_seconds":141.22608179996314,"loss":3.065091848373413,"accuracy":0.4072265625,"dev_nll":3.0916816459503025,"dev_accuracy":0.414794921875,"timestamp":"2026-11-25T09:05:56+00:00","training_seconds_excluding_host_probes":41.13059769996471,"host_probe_seconds":0},{"step":56,"tokens":57344,"train_seconds":144.38299729996652,"loss":3.2471041679382324,"accuracy":0.4013671875,"dev_nll":3.090217571356334,"dev_accuracy":0.4150390625,"timestamp":"2026-11-25T09:06:00+00:00","training_seconds_excluding_host_probes":44.28751319996809,"host_probe_seconds":0},{"step":60,"tokens":61440,"train_seconds":147.70638039996993,"loss":3.167518138885498,"accuracy":0.4072265625,"dev_nll":3.08909221511567,"dev_accuracy":0.415283203125,"timestamp":"2026-11-25T09:06:05+00:00","training_seconds_excluding_host_probes":47.6108962999715,"host_probe_seconds":0},{"step":64,"tokens":65536,"train_seconds":150.8196659999594,"loss":3.1687469482421875,"accuracy":0.4013671875,"dev_nll":3.0881463024416007,"dev_accuracy":0.41552734375,"timestamp":"2026-11-25T09:06:09+00:00","training_seconds_excluding_host_probes":50.72418189996097,"host_probe_seconds":0}],"samples":[{"timestamp":"2026-11-25T09:18:37+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,320,908,281,2939,253,9699,187,24159,273,20967,9360,15,844,588,2770,327,1264,2201,3672,27,187,9,18,10,253,11219,985,347,247,2644,13,313,19,10,253,3998,4811,326],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T09:18:40+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,5257,281,320,2330,342,187,66,1355,1180,273,3636,1789,5971,15,1623,253,581,1133,13,597,187,609,2223,3576,281],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T09:18:42+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,9879,3605,273,253,6944,187,18181,1544,3605,370,84,1126,1109,92,7054,12460,285,10313,326,627,310,247,10898,187,46397,875,1097,13483,13,187,187,7010,2043],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":22},{"id":"abstracts-pilot-s00-trace-r03-fp64","stage":"abstracts","method":"trace","phase":"pilot","seed":0,"ratio":0.03,"coefficients":{"trace":4.232668506589168e-08},"data_manifest_sha256":"0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9","token_budget":65536,"batch_windows":8,"microbatch":2,"context":128,"derivative_dtype":"float64","derivative_device":"cpu","tokens":65536,"train_seconds":153.6093276000247,"steps":64,"dev_nll":3.11411782781259,"dev_accuracy":0.4131599659723685,"tokens_per_sec":426.6407582399278,"peak_vram_mb":2346.30029296875,"status":"complete","trainable_parameters":786432,"device":"cuda","weights_sha256":"cf7de030e310adce3e732e1a19e02e49b237072c4cdd8f67fef33856823a5236","dev_tokens":5124071,"git_revision":"063bfba40163c85ec9a507de1192fe9992665341","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.0883107148692943,"finished_at":"2026-11-25T09:34:46+00:00","initial_trainable_sha256":"1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b","host_probe_seconds":103.28973289999703,"training_seconds_excluding_host_probes":50.319594700027665,"cpu_threads":6,"process_peak_rss_mib":10630.84375,"evaluation_batch_windows":16,"target_tokens":65536,"events":[{"step":1,"tokens":1024,"train_seconds":0.8203949000017019,"loss":3.3628768920898438,"accuracy":0.38671875,"timestamp":"2026-11-25T09:19:10+00:00","training_seconds_excluding_host_probes":0.8203949000017019,"host_probe_seconds":0},{"step":2,"tokens":2048,"train_seconds":22.69535729999916,"loss":3.4265871047973633,"accuracy":0.3720703125,"penalty":0.0005115382084067936,"timestamp":"2026-11-25T09:19:32+00:00","training_seconds_excluding_host_probes":1.8575182999993558,"host_probe_seconds":20.837838999999803,"raw_trace":1510.6847122874765},{"step":4,"tokens":4096,"train_seconds":24.184651600007783,"loss":3.335285186767578,"accuracy":0.3671875,"dev_nll":3.2050935145816766,"dev_accuracy":0.4029541015625,"timestamp":"2026-11-25T09:19:35+00:00","training_seconds_excluding_host_probes":3.346812600007979,"host_probe_seconds":0},{"step":8,"tokens":8192,"train_seconds":27.588129100004153,"loss":3.153710126876831,"accuracy":0.412109375,"dev_nll":3.1848572317976505,"dev_accuracy":0.40576171875,"timestamp":"2026-11-25T09:19:39+00:00","training_seconds_excluding_host_probes":6.750290100004349,"host_probe_seconds":0},{"step":11,"tokens":11264,"train_seconds":51.34093500000745,"loss":3.222881555557251,"accuracy":0.4150390625,"penalty":-0.00013886683821256557,"timestamp":"2026-11-25T09:20:03+00:00","training_seconds_excluding_host_probes":9.643359000008786,"host_probe_seconds":20.85973699999886,"raw_trace":-410.10428172081595},{"step":12,"tokens":12288,"train_seconds":52.29275320001034,"loss":3.2244973182678223,"accuracy":0.421875,"dev_nll":3.167334184923675,"dev_accuracy":0.4073486328125,"timestamp":"2026-11-25T09:20:06+00:00","training_seconds_excluding_host_probes":10.595177200011676,"host_probe_seconds":0},{"step":16,"tokens":16384,"train_seconds":55.284040600010485,"loss":3.1743507385253906,"accuracy":0.4013671875,"dev_nll":3.153323730221018,"dev_accuracy":0.40869140625,"timestamp":"2026-11-25T09:20:10+00:00","training_seconds_excluding_host_probes":13.586464600011823,"host_probe_seconds":0},{"step":20,"tokens":20480,"train_seconds":58.501724600013404,"loss":3.3647890090942383,"accuracy":0.380859375,"dev_nll":3.141088357253466,"dev_accuracy":0.40771484375,"timestamp":"2026-11-25T09:20:14+00:00","training_seconds_excluding_host_probes":16.80414860001474,"host_probe_seconds":0},{"step":22,"tokens":22528,"train_seconds":80.72395010001492,"loss":3.1014509201049805,"accuracy":0.3994140625,"penalty":-0.00011758888331898106,"timestamp":"2026-11-25T09:20:37+00:00","training_seconds_excluding_host_probes":18.257606000021042,"host_probe_seconds":20.768768099995214,"raw_trace":-347.26580623998086},{"step":24,"tokens":24576,"train_seconds":82.08860320001986,"loss":3.163144111633301,"accuracy":0.4130859375,"dev_nll":3.1304753722506575,"dev_accuracy":0.4068603515625,"timestamp":"2026-11-25T09:20:39+00:00","training_seconds_excluding_host_probes":19.622259100025985,"host_probe_seconds":0},{"step":25,"tokens":25600,"train_seconds":104.08553360002406,"loss":3.160763740539551,"accuracy":0.3994140625,"penalty":0.0008233109365692575,"timestamp":"2026-11-25T09:21:01+00:00","training_seconds_excluding_host_probes":20.650331400029245,"host_probe_seconds":20.968858100000944,"raw_trace":2431.418073750566},{"step":28,"tokens":28672,"train_seconds":106.44928290002281,"loss":3.2388410568237305,"accuracy":0.3984375,"dev_nll":3.1210773665225133,"dev_accuracy":0.4085693359375,"timestamp":"2026-11-25T09:21:05+00:00","training_seconds_excluding_host_probes":23.01408070002799,"host_probe_seconds":0},{"step":32,"tokens":32768,"train_seconds":109.3466636000303,"loss":3.472531318664551,"accuracy":0.375,"dev_nll":3.1126226205960847,"dev_accuracy":0.410400390625,"timestamp":"2026-11-25T09:21:09+00:00","training_seconds_excluding_host_probes":25.911461400035478,"host_probe_seconds":0},{"step":36,"tokens":36864,"train_seconds":112.22359190003772,"loss":3.132420063018799,"accuracy":0.400390625,"dev_nll":3.1055949754081666,"dev_accuracy":0.410888671875,"timestamp":"2026-11-25T09:21:13+00:00","training_seconds_excluding_host_probes":28.7883897000429,"host_probe_seconds":0},{"step":40,"tokens":40960,"train_seconds":115.42110020003747,"loss":3.0673372745513916,"accuracy":0.421875,"dev_nll":3.1004766558180563,"dev_accuracy":0.410888671875,"timestamp":"2026-11-25T09:21:18+00:00","training_seconds_excluding_host_probes":31.985898000042653,"host_probe_seconds":0},{"step":44,"tokens":45056,"train_seconds":118.3313624000366,"loss":3.38905668258667,"accuracy":0.373046875,"dev_nll":3.096751482808031,"dev_accuracy":0.412353515625,"timestamp":"2026-11-25T09:21:22+00:00","training_seconds_excluding_host_probes":34.89616020004178,"host_probe_seconds":0},{"step":48,"tokens":49152,"train_seconds":121.19241670003248,"loss":3.232553482055664,"accuracy":0.376953125,"dev_nll":3.0938708244939335,"dev_accuracy":0.4136962890625,"timestamp":"2026-11-25T09:21:26+00:00","training_seconds_excluding_host_probes":37.75721450003766,"host_probe_seconds":0},{"step":50,"tokens":51200,"train_seconds":142.58278420003626,"loss":3.0859992504119873,"accuracy":0.404296875,"penalty":0.0004422539790167716,"timestamp":"2026-11-25T09:21:48+00:00","training_seconds_excluding_host_probes":39.293051300039224,"host_probe_seconds":19.854530700002215,"raw_trace":1306.07316143556},{"step":52,"tokens":53248,"train_seconds":144.27424620003876,"loss":3.066322088241577,"accuracy":0.41015625,"dev_nll":3.0918713661958463,"dev_accuracy":0.414306640625,"timestamp":"2026-11-25T09:21:51+00:00","training_seconds_excluding_host_probes":40.984513300041726,"host_probe_seconds":0},{"step":56,"tokens":57344,"train_seconds":147.47696270003507,"loss":3.2468066215515137,"accuracy":0.40234375,"dev_nll":3.0903795417398214,"dev_accuracy":0.4150390625,"timestamp":"2026-11-25T09:21:55+00:00","training_seconds_excluding_host_probes":44.18722980003804,"host_probe_seconds":0},{"step":60,"tokens":61440,"train_seconds":150.7008369000323,"loss":3.167062759399414,"accuracy":0.4091796875,"dev_nll":3.0892473537824117,"dev_accuracy":0.4154052734375,"timestamp":"2026-11-25T09:21:59+00:00","training_seconds_excluding_host_probes":47.411104000035266,"host_probe_seconds":0},{"step":64,"tokens":65536,"train_seconds":153.6093276000247,"loss":3.1683597564697266,"accuracy":0.400390625,"dev_nll":3.0883107148692943,"dev_accuracy":0.416015625,"timestamp":"2026-11-25T09:22:04+00:00","training_seconds_excluding_host_probes":50.319594700027665,"host_probe_seconds":0}],"samples":[{"timestamp":"2026-11-25T09:34:40+00:00","split":"dev","prompt":"One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models","reference":" that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional","continuation":" that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that","prompt_ids":[4041,273,253,4275,16566,273,13399,6551,40270,2561,310,281,187,6953,15970,3210],"generated_ids":[326,588,320,908,281,2939,253,9699,187,24159,273,20967,9360,15,844,588,2770,327,1264,2201,3672,27,187,9,18,10,253,11219,985,347,247,2644,13,313,19,10,253,3998,4811,326],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T09:34:42+00:00","split":"dev","prompt":"In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools","reference":", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like","continuation":" to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to","prompt_ids":[688,253,25537,13016,273,4382,8113,13,12153,3210,452,13082,187,284,30847,5657],"generated_ids":[281,1263,253,3879,273,4382,8113,2718,15,187,6872,7561,8671,14053,7274,5257,281,320,2330,342,187,66,1355,1180,273,3636,1789,5971,15,1623,253,581,1133,13,597,187,609,2223,3576,281],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T09:34:45+00:00","split":"dev","prompt":"We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu","reference":"_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we","continuation":"_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to","prompt_ids":[1231,7409,253,4602,875,253,25759,4294,275,253,5553,187,39862,13,669,3023],"generated_ids":[1126,1109,92,7054,12460,285,253,9879,3605,273,253,6944,187,18181,1544,3605,370,84,1126,1109,92,7054,12460,285,10313,326,627,310,247,10898,187,46397,875,1097,13483,326,476,320,908,281],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":22},{"id":"stories-control-s00-initial-r00","stage":"stories","method":"initial","phase":"control","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":0,"batch_windows":32,"microbatch":32,"context":128,"tokens":0,"steps":0,"train_seconds":0.0,"tokens_per_sec":0,"peak_vram_mb":137.99365234375,"dev_nll":8.343680376157943,"dev_accuracy":0.0031230655508402935,"status":"complete","trainable_parameters":2557632,"device":"cuda","dev_tokens":715643,"git_revision":"8061a236f7d58ff2f29629890a71c0711ad7b405","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","finished_at":"2026-11-25T06:48:41+00:00","target_tokens":0,"events":[],"samples":[{"timestamp":"2026-11-25T06:48:40+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" break painted pleaseerp gif neat lead bro comfort rid shr search impressedosairs try ants oss note daughter woodLater rest independent stars stonesiver mixaybe Le spoon readMe fingersiew embar bached mail","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[1509,3433,1473,2596,1718,3692,2825,1054,2099,2849,2263,3083,3037,1645,2511,807,4086,285,590,3440,2036,1383,2131,1262,3222,1913,2811,1335,1815,1023,2464,2054,1376,2827,3219,3402,2367,1218,686,1994],"tokens":40,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:48:40+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books work mark� loseeciallyident foolriend beautiful puzzle painting ref openime higherttericed squ faces�dd sauceised wrapped pizz chasingimp shinyeterete sel cour stretch snake lazy Fin repport button","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,1095,2006,183,2829,2785,1776,2990,415,879,2613,3159,3106,1182,393,1851,3527,1029,1121,2297,160,540,3408,949,2965,2521,3722,2930,964,1623,2864,2401,1827,4048,2264,2783,3498,2396,2960,2173],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:48:41+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she'dinedall cir pressedyal shelf anx� sign warm My track engine al cere enthus arrived cakee hugs station stealoot ring shouts Alex blackD caveGoodWhenophone repl thereT enjoyed drew pulled","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,2592,1436,390,2029,3841,2906,2516,3565,183,1767,1154,3146,3082,3413,499,3368,3642,1476,1187,69,1883,3741,3345,3203,2305,3843,3804,1732,36,2103,2192,927,3844,1064,399,52,1427,2585,1624],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":0},{"id":"stories-control-s00-unigram-r00","stage":"stories","method":"unigram","phase":"control","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":0,"batch_windows":32,"microbatch":32,"context":128,"tokens":0,"steps":0,"train_seconds":0.0,"tokens_per_sec":0,"peak_vram_mb":0.06494140625,"dev_nll":6.003554689364107,"dev_accuracy":0.07150632368373616,"status":"complete","trainable_parameters":0,"device":"cuda","dev_tokens":715643,"git_revision":"d6b212639b8a372a8d3a46dcfd9afd49e3560717","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","finished_at":"2026-11-25T06:48:49+00:00","target_tokens":0,"events":[],"samples":[{"timestamp":"2026-11-25T06:48:49+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" it said her mom girlan he said that fell flut back's hard. a them into work protectt hug?\" his and little teeth \"What sky some Timmy and on \n down As's\n very","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[304,327,310,365,446,300,279,327,357,1211,2705,487,373,883,14,259,448,732,1095,2258,84,580,481,351,265,398,2318,333,995,850,515,524,265,345,410,633,1256,373,199,388],"tokens":40,"sampling_seed":7401,"temperature":1.0},{"timestamp":"2026-11-25T06:48:49+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" he day me,. and warm good looked!\"Ben She minutes hadBut walking BobbyLet base's the mark\n welcome thought. kitten out, sweet air... boun something time also leaves upon","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[279,356,520,12,14,265,1154,588,514,427,962,313,2666,359,715,1014,3162,951,3622,373,263,2006,199,1854,685,14,2490,449,12,1202,1428,14,14,14,2043,564,396,991,1493,447],"tokens":40,"sampling_seed":7402,"temperature":1.0},{"timestamp":"2026-11-25T06:48:49+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" itoof was played she pretendedThe been fly he \" said sick Tim the they swing was want told","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[304,2713,282,773,338,2338,371,1135,947,279,333,327,2001,444,263,362,1397,282,378,738,0],"tokens":21,"sampling_seed":7403,"temperature":1.0}],"events_total":0},{"id":"stories-pilot-s00-ce-r00","stage":"stories","method":"ce","phase":"pilot","seed":0,"ratio":0.0,"coefficients":{},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":16.93011889997433,"steps":512,"dev_nll":3.8769759527266605,"dev_accuracy":0.3233679362475424,"tokens_per_sec":123871.07334510093,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"af2467e9d26280583582ad2f4122e3a9db95e28596f3f1a73b839aa0a35f3420","dev_tokens":715643,"git_revision":"3fce08fd7572e4e3cc17a0e8cd9ac674eff34d22","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.829046721861232,"finished_at":"2026-11-25T06:49:25+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.10114049999901908,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:48:58+00:00"},{"step":8,"tokens":32768,"train_seconds":0.34254049999435665,"loss":8.158777236938477,"accuracy":0.05224609375,"timestamp":"2026-11-25T06:48:58+00:00"},{"step":16,"tokens":65536,"train_seconds":0.5957350999924529,"loss":7.806330680847168,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:48:58+00:00"},{"step":24,"tokens":98304,"train_seconds":0.8585986999896704,"loss":7.48371696472168,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:48:58+00:00"},{"step":32,"tokens":131072,"train_seconds":1.1359316999914881,"loss":7.081967353820801,"accuracy":0.072509765625,"dev_nll":7.042857261840254,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:48:59+00:00"},{"step":40,"tokens":163840,"train_seconds":1.4084606999858806,"loss":6.676783561706543,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:49:00+00:00"},{"step":48,"tokens":196608,"train_seconds":1.6603463999890664,"loss":6.4739460945129395,"accuracy":0.080322265625,"timestamp":"2026-11-25T06:49:00+00:00"},{"step":56,"tokens":229376,"train_seconds":1.9069078999964404,"loss":6.202880859375,"accuracy":0.0927734375,"timestamp":"2026-11-25T06:49:00+00:00"},{"step":64,"tokens":262144,"train_seconds":2.1737001999899803,"loss":6.018362998962402,"accuracy":0.119873046875,"dev_nll":5.955492106062593,"dev_accuracy":0.1046142578125,"timestamp":"2026-11-25T06:49:00+00:00"},{"step":72,"tokens":294912,"train_seconds":2.423795999991853,"loss":5.877462387084961,"accuracy":0.134521484375,"timestamp":"2026-11-25T06:49:01+00:00"},{"step":80,"tokens":327680,"train_seconds":2.7185797999882197,"loss":5.685559272766113,"accuracy":0.141845703125,"timestamp":"2026-11-25T06:49:01+00:00"},{"step":88,"tokens":360448,"train_seconds":3.0356918999787013,"loss":5.573479175567627,"accuracy":0.17041015625,"timestamp":"2026-11-25T06:49:02+00:00"},{"step":96,"tokens":393216,"train_seconds":3.317721999981586,"loss":5.416558265686035,"accuracy":0.182861328125,"dev_nll":5.390012723364634,"dev_accuracy":0.18798828125,"timestamp":"2026-11-25T06:49:02+00:00"},{"step":104,"tokens":425984,"train_seconds":3.59829869998066,"loss":5.300392150878906,"accuracy":0.2080078125,"timestamp":"2026-11-25T06:49:03+00:00"},{"step":112,"tokens":458752,"train_seconds":3.862133399983577,"loss":5.296352863311768,"accuracy":0.18994140625,"timestamp":"2026-11-25T06:49:03+00:00"},{"step":120,"tokens":491520,"train_seconds":4.160247099982371,"loss":5.053439140319824,"accuracy":0.218017578125,"timestamp":"2026-11-25T06:49:03+00:00"},{"step":128,"tokens":524288,"train_seconds":4.417321799988713,"loss":5.068996429443359,"accuracy":0.222900390625,"dev_nll":4.95226183423074,"dev_accuracy":0.2244873046875,"timestamp":"2026-11-25T06:49:03+00:00"},{"step":136,"tokens":557056,"train_seconds":4.649454799997329,"loss":4.889141082763672,"accuracy":0.225341796875,"timestamp":"2026-11-25T06:49:04+00:00"},{"step":144,"tokens":589824,"train_seconds":4.879726300001494,"loss":4.952089309692383,"accuracy":0.220458984375,"timestamp":"2026-11-25T06:49:04+00:00"},{"step":152,"tokens":622592,"train_seconds":5.126785599997675,"loss":4.728821277618408,"accuracy":0.231689453125,"timestamp":"2026-11-25T06:49:05+00:00"},{"step":160,"tokens":655360,"train_seconds":5.362014499998622,"loss":4.742424488067627,"accuracy":0.253173828125,"dev_nll":4.627034222619841,"dev_accuracy":0.2625732421875,"timestamp":"2026-11-25T06:49:05+00:00"},{"step":168,"tokens":688128,"train_seconds":5.583177899996372,"loss":4.6737165451049805,"accuracy":0.248046875,"timestamp":"2026-11-25T06:49:05+00:00"},{"step":176,"tokens":720896,"train_seconds":5.80660859999989,"loss":4.610711097717285,"accuracy":0.2607421875,"timestamp":"2026-11-25T06:49:06+00:00"},{"step":184,"tokens":753664,"train_seconds":6.037256600004184,"loss":4.473864555358887,"accuracy":0.259521484375,"timestamp":"2026-11-25T06:49:06+00:00"},{"step":192,"tokens":786432,"train_seconds":6.283534800004418,"loss":4.574219703674316,"accuracy":0.2548828125,"dev_nll":4.398434026661562,"dev_accuracy":0.2724609375,"timestamp":"2026-11-25T06:49:06+00:00"},{"step":200,"tokens":819200,"train_seconds":6.538847000003443,"loss":4.463726997375488,"accuracy":0.26318359375,"timestamp":"2026-11-25T06:49:07+00:00"},{"step":208,"tokens":851968,"train_seconds":6.8137298000074225,"loss":4.42850399017334,"accuracy":0.26806640625,"timestamp":"2026-11-25T06:49:07+00:00"},{"step":216,"tokens":884736,"train_seconds":7.086457000008522,"loss":4.327478885650635,"accuracy":0.2783203125,"timestamp":"2026-11-25T06:49:08+00:00"},{"step":224,"tokens":917504,"train_seconds":7.344413600010739,"loss":4.284571647644043,"accuracy":0.28271484375,"dev_nll":4.244469899858814,"dev_accuracy":0.2879638671875,"timestamp":"2026-11-25T06:49:08+00:00"},{"step":232,"tokens":950272,"train_seconds":7.59945940000398,"loss":4.237689971923828,"accuracy":0.29443359375,"timestamp":"2026-11-25T06:49:09+00:00"},{"step":240,"tokens":983040,"train_seconds":7.854608900008316,"loss":4.277827262878418,"accuracy":0.2822265625,"timestamp":"2026-11-25T06:49:09+00:00"},{"step":248,"tokens":1015808,"train_seconds":8.119542000000365,"loss":4.318747520446777,"accuracy":0.28173828125,"timestamp":"2026-11-25T06:49:09+00:00"},{"step":256,"tokens":1048576,"train_seconds":8.376343800005998,"loss":4.177915573120117,"accuracy":0.297119140625,"dev_nll":4.135445923107909,"dev_accuracy":0.2967529296875,"timestamp":"2026-11-25T06:49:09+00:00"},{"step":264,"tokens":1081344,"train_seconds":8.650777100006962,"loss":4.1097798347473145,"accuracy":0.293701171875,"timestamp":"2026-11-25T06:49:10+00:00"},{"step":272,"tokens":1114112,"train_seconds":8.924058500007959,"loss":4.108935832977295,"accuracy":0.296875,"timestamp":"2026-11-25T06:49:10+00:00"},{"step":280,"tokens":1146880,"train_seconds":9.212399400010327,"loss":4.0768046379089355,"accuracy":0.30517578125,"timestamp":"2026-11-25T06:49:11+00:00"},{"step":288,"tokens":1179648,"train_seconds":9.466037300011521,"loss":4.079257011413574,"accuracy":0.3056640625,"dev_nll":4.046967144386144,"dev_accuracy":0.3048095703125,"timestamp":"2026-11-25T06:49:11+00:00"},{"step":296,"tokens":1212416,"train_seconds":9.750828700009151,"loss":4.161890029907227,"accuracy":0.2978515625,"timestamp":"2026-11-25T06:49:12+00:00"},{"step":304,"tokens":1245184,"train_seconds":10.01545690000421,"loss":4.097381591796875,"accuracy":0.290771484375,"timestamp":"2026-11-25T06:49:12+00:00"},{"step":312,"tokens":1277952,"train_seconds":10.279407099998934,"loss":3.926711082458496,"accuracy":0.32177734375,"timestamp":"2026-11-25T06:49:12+00:00"},{"step":320,"tokens":1310720,"train_seconds":10.543724300001486,"loss":3.989485740661621,"accuracy":0.301513671875,"dev_nll":3.989459623408038,"dev_accuracy":0.309326171875,"timestamp":"2026-11-25T06:49:12+00:00"},{"step":328,"tokens":1343488,"train_seconds":10.81170629999906,"loss":3.985822916030884,"accuracy":0.311767578125,"timestamp":"2026-11-25T06:49:13+00:00"},{"step":336,"tokens":1376256,"train_seconds":11.070284499997797,"loss":3.9229040145874023,"accuracy":0.32373046875,"timestamp":"2026-11-25T06:49:13+00:00"},{"step":344,"tokens":1409024,"train_seconds":11.341013599991129,"loss":4.052280426025391,"accuracy":0.294921875,"timestamp":"2026-11-25T06:49:14+00:00"},{"step":352,"tokens":1441792,"train_seconds":11.61272149999786,"loss":4.114426136016846,"accuracy":0.2978515625,"dev_nll":3.93760613820632,"dev_accuracy":0.3154296875,"timestamp":"2026-11-25T06:49:14+00:00"},{"step":360,"tokens":1474560,"train_seconds":11.875744099997974,"loss":3.9745466709136963,"accuracy":0.313720703125,"timestamp":"2026-11-25T06:49:15+00:00"},{"step":368,"tokens":1507328,"train_seconds":12.151123899995582,"loss":3.948394775390625,"accuracy":0.320556640625,"timestamp":"2026-11-25T06:49:15+00:00"},{"step":376,"tokens":1540096,"train_seconds":12.406814099995245,"loss":4.026899337768555,"accuracy":0.30810546875,"timestamp":"2026-11-25T06:49:15+00:00"},{"step":384,"tokens":1572864,"train_seconds":12.673557499994786,"loss":3.9417567253112793,"accuracy":0.322509765625,"dev_nll":3.9012314011051785,"dev_accuracy":0.3223876953125,"timestamp":"2026-11-25T06:49:15+00:00"},{"step":392,"tokens":1605632,"train_seconds":12.939731999987998,"loss":3.885035991668701,"accuracy":0.32763671875,"timestamp":"2026-11-25T06:49:16+00:00"},{"step":400,"tokens":1638400,"train_seconds":13.214846399983799,"loss":4.0039777755737305,"accuracy":0.308349609375,"timestamp":"2026-11-25T06:49:16+00:00"},{"step":408,"tokens":1671168,"train_seconds":13.48121809998338,"loss":3.890237331390381,"accuracy":0.33056640625,"timestamp":"2026-11-25T06:49:17+00:00"},{"step":416,"tokens":1703936,"train_seconds":13.7877002999885,"loss":3.977464199066162,"accuracy":0.311767578125,"dev_nll":3.8763268228503875,"dev_accuracy":0.3221435546875,"timestamp":"2026-11-25T06:49:17+00:00"},{"step":424,"tokens":1736704,"train_seconds":14.067895999982284,"loss":3.934429407119751,"accuracy":0.320556640625,"timestamp":"2026-11-25T06:49:18+00:00"},{"step":432,"tokens":1769472,"train_seconds":14.349740499983454,"loss":3.8548834323883057,"accuracy":0.328857421875,"timestamp":"2026-11-25T06:49:18+00:00"},{"step":440,"tokens":1802240,"train_seconds":14.62296309998419,"loss":3.9730024337768555,"accuracy":0.31689453125,"timestamp":"2026-11-25T06:49:18+00:00"},{"step":448,"tokens":1835008,"train_seconds":14.889483999981167,"loss":3.7406015396118164,"accuracy":0.345703125,"dev_nll":3.8545184776885435,"dev_accuracy":0.3233642578125,"timestamp":"2026-11-25T06:49:19+00:00"},{"step":456,"tokens":1867776,"train_seconds":15.153682999978628,"loss":3.9720935821533203,"accuracy":0.30908203125,"timestamp":"2026-11-25T06:49:19+00:00"},{"step":464,"tokens":1900544,"train_seconds":15.400900699980411,"loss":3.92877197265625,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:49:20+00:00"},{"step":472,"tokens":1933312,"train_seconds":15.645374099978653,"loss":3.875825881958008,"accuracy":0.3369140625,"timestamp":"2026-11-25T06:49:20+00:00"},{"step":480,"tokens":1966080,"train_seconds":15.890542899978755,"loss":3.955519199371338,"accuracy":0.3134765625,"dev_nll":3.8413778024550993,"dev_accuracy":0.32568359375,"timestamp":"2026-11-25T06:49:20+00:00"},{"step":488,"tokens":1998848,"train_seconds":16.17293509997762,"loss":3.888511896133423,"accuracy":0.329345703125,"timestamp":"2026-11-25T06:49:21+00:00"},{"step":496,"tokens":2031616,"train_seconds":16.437064199973975,"loss":3.8387951850891113,"accuracy":0.31494140625,"timestamp":"2026-11-25T06:49:21+00:00"},{"step":504,"tokens":2064384,"train_seconds":16.681761199968605,"loss":3.716874837875366,"accuracy":0.33544921875,"timestamp":"2026-11-25T06:49:21+00:00"},{"step":512,"tokens":2097152,"train_seconds":16.93011889997433,"loss":3.870814800262451,"accuracy":0.323486328125,"dev_nll":3.829046721861232,"dev_accuracy":0.326416015625,"timestamp":"2026-11-25T06:49:22+00:00"}],"samples":[{"timestamp":"2026-11-25T06:49:24+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:49:25+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:49:25+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":65},{"id":"stories-pilot-s00-combined-r01","stage":"stories","method":"combined","phase":"pilot","seed":0,"ratio":0.01,"coefficients":{"trace":9.169227719425724e-08,"third":3.0190450056526336e-14},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":51.112984100022004,"steps":512,"dev_nll":3.8771723592501206,"dev_accuracy":0.32317370532514117,"tokens_per_sec":41029.73123025108,"peak_vram_mb":619.3154296875,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"3c9b029bda8e8df54afccaf7c4eabada6374b36bf6af37aa0289ded05fa7c19b","dev_tokens":715643,"git_revision":"27a4b3fca137e9f5ddf655280151135426874f98","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.829487304901704,"finished_at":"2026-11-25T06:58:49+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.14761779999753344,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:57:47+00:00"},{"step":2,"tokens":8192,"train_seconds":1.0124811999958183,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.004568436805073117,"timestamp":"2026-11-25T06:57:48+00:00","raw_trace":1190.8282470703125,"raw_third":15298375680.0},{"step":8,"tokens":32768,"train_seconds":1.1934384000014688,"loss":8.159114837646484,"accuracy":0.05224609375,"timestamp":"2026-11-25T06:57:48+00:00"},{"step":11,"tokens":45056,"train_seconds":1.991344999998546,"loss":8.029117584228516,"accuracy":0.067138671875,"penalty":0.0032009233897745317,"timestamp":"2026-11-25T06:57:49+00:00","raw_trace":2939.389404296875,"raw_third":4325742592.0},{"step":16,"tokens":65536,"train_seconds":2.142485000000306,"loss":7.806999206542969,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:57:49+00:00"},{"step":22,"tokens":90112,"train_seconds":3.052069900000788,"loss":7.60506534576416,"accuracy":0.067138671875,"penalty":0.0005675583677255631,"timestamp":"2026-11-25T06:57:50+00:00","raw_trace":755.86279296875,"raw_third":54256072.0},{"step":24,"tokens":98304,"train_seconds":3.114318899999489,"loss":7.484436511993408,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:57:50+00:00"},{"step":25,"tokens":102400,"train_seconds":3.877054600001429,"loss":7.4541192054748535,"accuracy":0.072265625,"penalty":0.0005825808166543022,"timestamp":"2026-11-25T06:57:50+00:00","raw_trace":758.0574340820312,"raw_third":109789344.0},{"step":32,"tokens":131072,"train_seconds":4.081313400001818,"loss":7.082651138305664,"accuracy":0.072509765625,"dev_nll":7.043696506880224,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:57:51+00:00"},{"step":40,"tokens":163840,"train_seconds":4.324013199999172,"loss":6.677587509155273,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:57:51+00:00"},{"step":48,"tokens":196608,"train_seconds":4.546619399992778,"loss":6.474970817565918,"accuracy":0.080322265625,"timestamp":"2026-11-25T06:57:52+00:00"},{"step":50,"tokens":204800,"train_seconds":5.332772199995816,"loss":6.383610248565674,"accuracy":0.1044921875,"penalty":0.0006087918143220119,"timestamp":"2026-11-25T06:57:52+00:00","raw_trace":810.89111328125,"raw_third":57850216.0},{"step":56,"tokens":229376,"train_seconds":5.501950499998202,"loss":6.203421115875244,"accuracy":0.093017578125,"timestamp":"2026-11-25T06:57:53+00:00"},{"step":64,"tokens":262144,"train_seconds":5.713773899999069,"loss":6.019197463989258,"accuracy":0.11962890625,"dev_nll":5.956473661499331,"dev_accuracy":0.1046142578125,"timestamp":"2026-11-25T06:57:53+00:00"},{"step":72,"tokens":294912,"train_seconds":5.970341399995959,"loss":5.87868595123291,"accuracy":0.134033203125,"timestamp":"2026-11-25T06:57:53+00:00"},{"step":74,"tokens":303104,"train_seconds":6.79898879999746,"loss":5.801105976104736,"accuracy":0.147705078125,"penalty":0.001268873199232335,"timestamp":"2026-11-25T06:57:54+00:00","raw_trace":1600.218017578125,"raw_third":393552128.0},{"step":80,"tokens":327680,"train_seconds":6.9832793999921705,"loss":5.687581539154053,"accuracy":0.14208984375,"timestamp":"2026-11-25T06:57:54+00:00"},{"step":84,"tokens":344064,"train_seconds":7.846841199989285,"loss":5.5981879234313965,"accuracy":0.154296875,"penalty":0.0012797293943854543,"timestamp":"2026-11-25T06:57:55+00:00","raw_trace":1546.3387451171875,"raw_third":602139200.0},{"step":86,"tokens":352256,"train_seconds":8.59732849998909,"loss":5.503084182739258,"accuracy":0.1826171875,"penalty":0.002729844458336862,"timestamp":"2026-11-25T06:57:56+00:00","raw_trace":3198.11279296875,"raw_third":1589519616.0},{"step":88,"tokens":360448,"train_seconds":8.662095899988344,"loss":5.575499534606934,"accuracy":0.17041015625,"timestamp":"2026-11-25T06:57:56+00:00"},{"step":91,"tokens":372736,"train_seconds":9.498138399991149,"loss":5.471985816955566,"accuracy":0.18603515625,"penalty":0.0014520209401871088,"timestamp":"2026-11-25T06:57:57+00:00","raw_trace":1755.5159912109375,"raw_third":680193856.0},{"step":93,"tokens":380928,"train_seconds":10.259551999995892,"loss":5.441184997558594,"accuracy":0.185546875,"penalty":0.0019222804011799234,"timestamp":"2026-11-25T06:57:58+00:00","raw_trace":2279.01513671875,"raw_third":1037313536.0},{"step":96,"tokens":393216,"train_seconds":10.337425499998062,"loss":5.418837547302246,"accuracy":0.18212890625,"dev_nll":5.392710090702167,"dev_accuracy":0.187255859375,"timestamp":"2026-11-25T06:57:58+00:00"},{"step":100,"tokens":409600,"train_seconds":11.169568000001163,"loss":5.294806480407715,"accuracy":0.19091796875,"penalty":0.0018471832339880037,"timestamp":"2026-11-25T06:57:59+00:00","raw_trace":2307.95458984375,"raw_third":638489728.0},{"step":104,"tokens":425984,"train_seconds":11.287085199997819,"loss":5.302207946777344,"accuracy":0.20751953125,"timestamp":"2026-11-25T06:57:59+00:00"},{"step":106,"tokens":434176,"train_seconds":12.046511299995473,"loss":5.282482624053955,"accuracy":0.19677734375,"penalty":0.0020566534905302743,"timestamp":"2026-11-25T06:58:00+00:00","raw_trace":2508.93505859375,"raw_third":895373120.0},{"step":112,"tokens":458752,"train_seconds":12.236586699997133,"loss":5.298898696899414,"accuracy":0.1884765625,"timestamp":"2026-11-25T06:58:00+00:00"},{"step":115,"tokens":471040,"train_seconds":13.038754099998187,"loss":5.179788589477539,"accuracy":0.203369140625,"penalty":0.0031004123886998096,"timestamp":"2026-11-25T06:58:01+00:00","raw_trace":3589.0087890625,"raw_third":1936611072.0},{"step":120,"tokens":491520,"train_seconds":13.187630899996293,"loss":5.055482864379883,"accuracy":0.21728515625,"timestamp":"2026-11-25T06:58:01+00:00"},{"step":121,"tokens":495616,"train_seconds":13.939055999995617,"loss":5.057549476623535,"accuracy":0.227294921875,"penalty":0.0027202944641665887,"timestamp":"2026-11-25T06:58:02+00:00","raw_trace":3164.81982421875,"raw_third":1651094016.0},{"step":126,"tokens":516096,"train_seconds":14.83731749999788,"loss":5.034799575805664,"accuracy":0.2177734375,"penalty":0.003054860773283949,"timestamp":"2026-11-25T06:58:03+00:00","raw_trace":3399.124755859375,"raw_third":2324712192.0},{"step":127,"tokens":520192,"train_seconds":15.613836999997147,"loss":5.099802017211914,"accuracy":0.21533203125,"penalty":0.0022881037363399574,"timestamp":"2026-11-25T06:58:04+00:00","raw_trace":2656.637451171875,"raw_third":1405074432.0},{"step":128,"tokens":524288,"train_seconds":15.644697299994732,"loss":5.0704145431518555,"accuracy":0.222900390625,"dev_nll":4.953833497827873,"dev_accuracy":0.2247314453125,"timestamp":"2026-11-25T06:58:04+00:00"},{"step":130,"tokens":532480,"train_seconds":16.47195489999649,"loss":4.944075584411621,"accuracy":0.224365234375,"penalty":0.003385166226763963,"timestamp":"2026-11-25T06:58:05+00:00","raw_trace":3495.031982421875,"raw_third":3401020416.0},{"step":131,"tokens":536576,"train_seconds":17.18584639999972,"loss":4.899894714355469,"accuracy":0.22998046875,"penalty":0.0031915303323489953,"timestamp":"2026-11-25T06:58:06+00:00","raw_trace":3490.210205078125,"raw_third":2613938176.0},{"step":136,"tokens":557056,"train_seconds":17.33707150000191,"loss":4.890551567077637,"accuracy":0.224365234375,"timestamp":"2026-11-25T06:58:06+00:00"},{"step":144,"tokens":589824,"train_seconds":17.58585100000346,"loss":4.953495025634766,"accuracy":0.218994140625,"timestamp":"2026-11-25T06:58:07+00:00"},{"step":152,"tokens":622592,"train_seconds":17.812164600003598,"loss":4.729134559631348,"accuracy":0.231689453125,"timestamp":"2026-11-25T06:58:07+00:00"},{"step":158,"tokens":647168,"train_seconds":18.676575800007413,"loss":4.60003662109375,"accuracy":0.254150390625,"penalty":0.0040651861155330165,"timestamp":"2026-11-25T06:58:08+00:00","raw_trace":4505.86279296875,"raw_third":3146539520.0},{"step":160,"tokens":655360,"train_seconds":18.73176090000925,"loss":4.742950439453125,"accuracy":0.25390625,"dev_nll":4.6284449160448276,"dev_accuracy":0.2625732421875,"timestamp":"2026-11-25T06:58:08+00:00"},{"step":164,"tokens":671744,"train_seconds":19.564193600006547,"loss":4.7287983894348145,"accuracy":0.244384765625,"penalty":0.0039397322068311855,"timestamp":"2026-11-25T06:58:09+00:00","raw_trace":4266.546875,"raw_third":3353945600.0},{"step":168,"tokens":688128,"train_seconds":19.682770800005528,"loss":4.673905372619629,"accuracy":0.24755859375,"timestamp":"2026-11-25T06:58:09+00:00"},{"step":173,"tokens":708608,"train_seconds":20.576723000009224,"loss":4.670358657836914,"accuracy":0.25048828125,"penalty":0.004837794136797245,"timestamp":"2026-11-25T06:58:10+00:00","raw_trace":4848.83935546875,"raw_third":5303768064.0},{"step":176,"tokens":720896,"train_seconds":20.660473400010233,"loss":4.610456943511963,"accuracy":0.259033203125,"timestamp":"2026-11-25T06:58:10+00:00"},{"step":178,"tokens":729088,"train_seconds":21.431322800010093,"loss":4.525025844573975,"accuracy":0.2607421875,"penalty":0.004661044111506573,"timestamp":"2026-11-25T06:58:11+00:00","raw_trace":5034.9521484375,"raw_third":4006706944.0},{"step":184,"tokens":753664,"train_seconds":21.60965590001433,"loss":4.474544525146484,"accuracy":0.258056640625,"timestamp":"2026-11-25T06:58:11+00:00"},{"step":188,"tokens":770048,"train_seconds":22.41246070001216,"loss":4.469344139099121,"accuracy":0.26171875,"penalty":0.005425848062269726,"timestamp":"2026-11-25T06:58:12+00:00","raw_trace":5524.94580078125,"raw_third":5685113856.0},{"step":192,"tokens":786432,"train_seconds":22.55671780000921,"loss":4.575240135192871,"accuracy":0.25537109375,"dev_nll":4.399568078661105,"dev_accuracy":0.2730712890625,"timestamp":"2026-11-25T06:58:12+00:00"},{"step":200,"tokens":819200,"train_seconds":22.796130600007018,"loss":4.463759899139404,"accuracy":0.262939453125,"timestamp":"2026-11-25T06:58:13+00:00"},{"step":208,"tokens":851968,"train_seconds":23.0157031000017,"loss":4.428894996643066,"accuracy":0.2685546875,"timestamp":"2026-11-25T06:58:13+00:00"},{"step":216,"tokens":884736,"train_seconds":23.909712299999228,"loss":4.327549934387207,"accuracy":0.279052734375,"penalty":0.0035796238122493334,"timestamp":"2026-11-25T06:58:14+00:00","raw_trace":3517.3671875,"raw_third":4138314240.0},{"step":221,"tokens":905216,"train_seconds":24.757127000000764,"loss":4.458397388458252,"accuracy":0.259765625,"penalty":0.005378647479013045,"timestamp":"2026-11-25T06:58:15+00:00","raw_trace":3705.76318359375,"raw_third":11014776832.0},{"step":224,"tokens":917504,"train_seconds":25.5975079000018,"loss":4.285048484802246,"accuracy":0.280517578125,"penalty":0.005472920553610666,"dev_nll":4.245253535249503,"dev_accuracy":0.2874755859375,"timestamp":"2026-11-25T06:58:15+00:00","raw_trace":5842.4658203125,"raw_third":4915662848.0},{"step":225,"tokens":921600,"train_seconds":26.302889500002493,"loss":4.24697208404541,"accuracy":0.28662109375,"penalty":0.007489422543595495,"timestamp":"2026-11-25T06:58:17+00:00","raw_trace":5753.0771484375,"raw_third":13536236544.0},{"step":232,"tokens":950272,"train_seconds":26.503401900004974,"loss":4.237282752990723,"accuracy":0.2939453125,"timestamp":"2026-11-25T06:58:17+00:00"},{"step":240,"tokens":983040,"train_seconds":26.731863200002408,"loss":4.27702522277832,"accuracy":0.281982421875,"timestamp":"2026-11-25T06:58:17+00:00"},{"step":248,"tokens":1015808,"train_seconds":27.669330000004265,"loss":4.319443702697754,"accuracy":0.28125,"penalty":0.00589119131897796,"timestamp":"2026-11-25T06:58:18+00:00","raw_trace":5579.6640625,"raw_third":7445626368.0},{"step":256,"tokens":1048576,"train_seconds":27.88975950000531,"loss":4.178563117980957,"accuracy":0.296630859375,"dev_nll":4.135440818761708,"dev_accuracy":0.2967529296875,"timestamp":"2026-11-25T06:58:18+00:00"},{"step":262,"tokens":1073152,"train_seconds":28.766871000010724,"loss":4.050324440002441,"accuracy":0.297119140625,"penalty":0.004563947236337799,"timestamp":"2026-11-25T06:58:20+00:00","raw_trace":4377.10546875,"raw_third":5602653696.0},{"step":264,"tokens":1081344,"train_seconds":28.828292400012288,"loss":4.110057830810547,"accuracy":0.2919921875,"timestamp":"2026-11-25T06:58:20+00:00"},{"step":268,"tokens":1097728,"train_seconds":29.664880700012873,"loss":4.115599632263184,"accuracy":0.308837890625,"penalty":0.005150541678128567,"timestamp":"2026-11-25T06:58:21+00:00","raw_trace":4641.5703125,"raw_third":7228165120.0},{"step":272,"tokens":1114112,"train_seconds":29.797527300015645,"loss":4.108659744262695,"accuracy":0.296875,"timestamp":"2026-11-25T06:58:21+00:00"},{"step":280,"tokens":1146880,"train_seconds":30.05350550001458,"loss":4.077191352844238,"accuracy":0.303955078125,"timestamp":"2026-11-25T06:58:21+00:00"},{"step":288,"tokens":1179648,"train_seconds":30.273553200018796,"loss":4.079487323760986,"accuracy":0.30615234375,"dev_nll":4.047608814405976,"dev_accuracy":0.304931640625,"timestamp":"2026-11-25T06:58:21+00:00"},{"step":296,"tokens":1212416,"train_seconds":30.50254440002027,"loss":4.162452697753906,"accuracy":0.297119140625,"timestamp":"2026-11-25T06:58:22+00:00"},{"step":304,"tokens":1245184,"train_seconds":30.72736330002226,"loss":4.097489833831787,"accuracy":0.29248046875,"timestamp":"2026-11-25T06:58:22+00:00"},{"step":312,"tokens":1277952,"train_seconds":30.935196200021892,"loss":3.9272959232330322,"accuracy":0.3232421875,"timestamp":"2026-11-25T06:58:22+00:00"},{"step":318,"tokens":1302528,"train_seconds":31.805122700028733,"loss":3.9405083656311035,"accuracy":0.318603515625,"penalty":0.005522955389029473,"timestamp":"2026-11-25T06:58:23+00:00","raw_trace":3986.7919921875,"raw_third":10758746112.0},{"step":320,"tokens":1310720,"train_seconds":31.865284300030908,"loss":3.9893746376037598,"accuracy":0.302001953125,"dev_nll":3.989731648209272,"dev_accuracy":0.3089599609375,"timestamp":"2026-11-25T06:58:23+00:00"},{"step":321,"tokens":1314816,"train_seconds":32.61604960003024,"loss":4.137966632843018,"accuracy":0.289306640625,"penalty":0.0036735231794879034,"timestamp":"2026-11-25T06:58:24+00:00","raw_trace":3442.95947265625,"raw_third":4753079296.0},{"step":324,"tokens":1327104,"train_seconds":33.436911900025734,"loss":4.093063831329346,"accuracy":0.301025390625,"penalty":0.005492897299844023,"timestamp":"2026-11-25T06:58:25+00:00","raw_trace":5483.693359375,"raw_third":6088012288.0},{"step":328,"tokens":1343488,"train_seconds":33.55853340002068,"loss":3.9864864349365234,"accuracy":0.31103515625,"timestamp":"2026-11-25T06:58:25+00:00"},{"step":334,"tokens":1368064,"train_seconds":34.48608190001687,"loss":3.904801368713379,"accuracy":0.318115234375,"penalty":0.0054017144872749705,"timestamp":"2026-11-25T06:58:26+00:00","raw_trace":4513.0458984375,"raw_third":8658461696.0},{"step":335,"tokens":1372160,"train_seconds":35.21757660001822,"loss":4.06289529800415,"accuracy":0.302001953125,"penalty":0.004955156751949014,"timestamp":"2026-11-25T06:58:27+00:00","raw_trace":4817.11328125,"raw_third":5886050304.0},{"step":336,"tokens":1376256,"train_seconds":35.244739600017056,"loss":3.9232916831970215,"accuracy":0.32373046875,"timestamp":"2026-11-25T06:58:27+00:00"},{"step":344,"tokens":1409024,"train_seconds":35.47539320002397,"loss":4.052763938903809,"accuracy":0.295166015625,"timestamp":"2026-11-25T06:58:27+00:00"},{"step":352,"tokens":1441792,"train_seconds":35.71408490002068,"loss":4.114215850830078,"accuracy":0.2978515625,"dev_nll":3.937754601764027,"dev_accuracy":0.315673828125,"timestamp":"2026-11-25T06:58:27+00:00"},{"step":360,"tokens":1474560,"train_seconds":35.94832430002134,"loss":3.9751522541046143,"accuracy":0.314453125,"timestamp":"2026-11-25T06:58:28+00:00"},{"step":367,"tokens":1503232,"train_seconds":36.85693850001917,"loss":3.8857877254486084,"accuracy":0.3203125,"penalty":0.00550104884644994,"timestamp":"2026-11-25T06:58:29+00:00","raw_trace":4764.353515625,"raw_third":8306490368.0},{"step":368,"tokens":1507328,"train_seconds":36.88637680001921,"loss":3.9486756324768066,"accuracy":0.321044921875,"timestamp":"2026-11-25T06:58:29+00:00"},{"step":376,"tokens":1540096,"train_seconds":37.126478600017435,"loss":4.026972770690918,"accuracy":0.308349609375,"timestamp":"2026-11-25T06:58:29+00:00"},{"step":384,"tokens":1572864,"train_seconds":37.36902910001663,"loss":3.942220687866211,"accuracy":0.32080078125,"dev_nll":3.9016191284463275,"dev_accuracy":0.322998046875,"timestamp":"2026-11-25T06:58:29+00:00"},{"step":388,"tokens":1589248,"train_seconds":38.24216060001709,"loss":3.9207026958465576,"accuracy":0.318115234375,"penalty":0.008262829241754793,"timestamp":"2026-11-25T06:58:31+00:00","raw_trace":7510.28076171875,"raw_third":11401582592.0},{"step":389,"tokens":1593344,"train_seconds":39.06846360001873,"loss":3.9883387088775635,"accuracy":0.31884765625,"penalty":0.007269743517727493,"timestamp":"2026-11-25T06:58:32+00:00","raw_trace":6944.3779296875,"raw_third":9008547840.0},{"step":392,"tokens":1605632,"train_seconds":39.149768800019956,"loss":3.8854520320892334,"accuracy":0.3271484375,"timestamp":"2026-11-25T06:58:32+00:00"},{"step":400,"tokens":1638400,"train_seconds":40.066162500021164,"loss":4.0044846534729,"accuracy":0.30810546875,"penalty":0.007946055393183,"timestamp":"2026-11-25T06:58:33+00:00","raw_trace":7103.248046875,"raw_third":11326228480.0},{"step":406,"tokens":1662976,"train_seconds":40.9529710000279,"loss":4.072871208190918,"accuracy":0.301513671875,"penalty":0.006258161558253729,"timestamp":"2026-11-25T06:58:34+00:00","raw_trace":5104.1650390625,"raw_third":10409175040.0},{"step":408,"tokens":1671168,"train_seconds":41.75705640002343,"loss":3.890827178955078,"accuracy":0.33251953125,"penalty":0.0054076595856943,"timestamp":"2026-11-25T06:58:34+00:00","raw_trace":4701.53857421875,"raw_third":8110600192.0},{"step":415,"tokens":1699840,"train_seconds":42.668639400024404,"loss":3.852940082550049,"accuracy":0.333740234375,"penalty":0.007391044698463403,"timestamp":"2026-11-25T06:58:35+00:00","raw_trace":6670.4033203125,"raw_third":10342877184.0},{"step":416,"tokens":1703936,"train_seconds":42.694246900024154,"loss":3.9777791500091553,"accuracy":0.3115234375,"dev_nll":3.876809624605812,"dev_accuracy":0.3216552734375,"timestamp":"2026-11-25T06:58:35+00:00"},{"step":424,"tokens":1736704,"train_seconds":42.93459890002123,"loss":3.934572696685791,"accuracy":0.321044921875,"timestamp":"2026-11-25T06:58:36+00:00"},{"step":432,"tokens":1769472,"train_seconds":43.15545370001928,"loss":3.855228900909424,"accuracy":0.327880859375,"timestamp":"2026-11-25T06:58:36+00:00"},{"step":439,"tokens":1798144,"train_seconds":44.06003270002475,"loss":3.866751194000244,"accuracy":0.32177734375,"penalty":0.008256270334149116,"timestamp":"2026-11-25T06:58:37+00:00","raw_trace":7953.93994140625,"raw_third":10026976256.0},{"step":440,"tokens":1802240,"train_seconds":44.086836300026334,"loss":3.973135471343994,"accuracy":0.31689453125,"timestamp":"2026-11-25T06:58:37+00:00"},{"step":441,"tokens":1806336,"train_seconds":44.85797690002801,"loss":3.9340572357177734,"accuracy":0.32958984375,"penalty":0.008223635144975514,"timestamp":"2026-11-25T06:58:38+00:00","raw_trace":7650.5546875,"raw_third":10813274112.0},{"step":448,"tokens":1835008,"train_seconds":45.05448310002248,"loss":3.741095781326294,"accuracy":0.344970703125,"dev_nll":3.854907761036884,"dev_accuracy":0.323974609375,"timestamp":"2026-11-25T06:58:38+00:00"},{"step":456,"tokens":1867776,"train_seconds":45.283144100019854,"loss":3.972573757171631,"accuracy":0.30908203125,"timestamp":"2026-11-25T06:58:39+00:00"},{"step":463,"tokens":1896448,"train_seconds":46.12098000001788,"loss":3.8820910453796387,"accuracy":0.31982421875,"penalty":0.006701139228804364,"timestamp":"2026-11-25T06:58:40+00:00","raw_trace":6640.89208984375,"raw_third":7576034304.0},{"step":464,"tokens":1900544,"train_seconds":46.150203500019416,"loss":3.929095983505249,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:58:40+00:00"},{"step":469,"tokens":1921024,"train_seconds":47.047918800013576,"loss":3.938023567199707,"accuracy":0.315185546875,"penalty":0.00879134281901421,"timestamp":"2026-11-25T06:58:41+00:00","raw_trace":7433.53125,"raw_third":13822928896.0},{"step":472,"tokens":1933312,"train_seconds":47.1392186000121,"loss":3.8763608932495117,"accuracy":0.337158203125,"timestamp":"2026-11-25T06:58:41+00:00"},{"step":475,"tokens":1945600,"train_seconds":47.89992330001405,"loss":3.8914031982421875,"accuracy":0.31787109375,"penalty":0.007249677441617805,"timestamp":"2026-11-25T06:58:41+00:00","raw_trace":6388.83642578125,"raw_third":10612717568.0},{"step":480,"tokens":1966080,"train_seconds":48.726383700013685,"loss":3.9560155868530273,"accuracy":0.31396484375,"penalty":0.01049731968746611,"dev_nll":3.8416978959867265,"dev_accuracy":0.3255615234375,"timestamp":"2026-11-25T06:58:42+00:00","raw_trace":9155.728515625,"raw_third":15655790592.0},{"step":487,"tokens":1994752,"train_seconds":49.66150100002051,"loss":3.8127248287200928,"accuracy":0.330810546875,"penalty":0.008693948339877685,"timestamp":"2026-11-25T06:58:44+00:00","raw_trace":7727.0810546875,"raw_third":12528130048.0},{"step":488,"tokens":1998848,"train_seconds":49.69299610002054,"loss":3.889023780822754,"accuracy":0.3291015625,"timestamp":"2026-11-25T06:58:44+00:00"},{"step":496,"tokens":2031616,"train_seconds":49.93403220001346,"loss":3.8386850357055664,"accuracy":0.316162109375,"timestamp":"2026-11-25T06:58:44+00:00"},{"step":504,"tokens":2064384,"train_seconds":50.18161820001842,"loss":3.717162609100342,"accuracy":0.33544921875,"timestamp":"2026-11-25T06:58:44+00:00"},{"step":506,"tokens":2072576,"train_seconds":50.93972610001947,"loss":3.966383457183838,"accuracy":0.305419921875,"penalty":0.009395156000369099,"timestamp":"2026-11-25T06:58:45+00:00","raw_trace":8440.99609375,"raw_third":13263145984.0},{"step":512,"tokens":2097152,"train_seconds":51.112984100022004,"loss":3.8714609146118164,"accuracy":0.323974609375,"dev_nll":3.829487304901704,"dev_accuracy":0.3262939453125,"timestamp":"2026-11-25T06:58:45+00:00"}],"samples":[{"timestamp":"2026-11-25T06:58:48+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:58:48+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:58:48+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-hessian_norm-r03","stage":"stories","method":"hessian_norm","phase":"pilot","seed":0,"ratio":0.03,"coefficients":{"hessian_norm":3.6254553654824303e-09},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":25.028549999999086,"steps":512,"dev_nll":3.8786800727906896,"dev_accuracy":0.3229892558160983,"tokens_per_sec":83790.39137305504,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"8273516a63c9fff5a1fd52f86224e82725d58466007344489dd7fb28dc9d5c2d","dev_tokens":715643,"git_revision":"8555a54beee3a3b92b960638182d0f9b7c6ec5eb","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.8310268420609646,"finished_at":"2026-11-25T06:56:20+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.0534920999998576,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:55:45+00:00"},{"step":2,"tokens":8192,"train_seconds":0.322934299998451,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.014610670321095283,"timestamp":"2026-11-25T06:55:45+00:00","raw_hessian_norm":503752.9375},{"step":8,"tokens":32768,"train_seconds":0.49265440000090166,"loss":8.160531044006348,"accuracy":0.0517578125,"timestamp":"2026-11-25T06:55:45+00:00"},{"step":11,"tokens":45056,"train_seconds":0.7985775000015565,"loss":8.031136512756348,"accuracy":0.067138671875,"penalty":0.005825952690477232,"timestamp":"2026-11-25T06:55:46+00:00","raw_hessian_norm":200869.6875},{"step":16,"tokens":65536,"train_seconds":0.9531808000028832,"loss":7.808876991271973,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:55:46+00:00"},{"step":22,"tokens":90112,"train_seconds":1.3496410000043397,"loss":7.606914520263672,"accuracy":0.067138671875,"penalty":0.0002124577740493296,"timestamp":"2026-11-25T06:55:46+00:00","raw_hessian_norm":7325.2099609375},{"step":24,"tokens":98304,"train_seconds":1.410683500005689,"loss":7.4863362312316895,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:55:46+00:00"},{"step":25,"tokens":102400,"train_seconds":1.6586771000074805,"loss":7.456253528594971,"accuracy":0.072265625,"penalty":0.0002918980439210296,"timestamp":"2026-11-25T06:55:47+00:00","raw_hessian_norm":10064.185546875},{"step":32,"tokens":131072,"train_seconds":1.863977100001648,"loss":7.0844879150390625,"accuracy":0.072509765625,"dev_nll":7.04551717924187,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:55:47+00:00"},{"step":40,"tokens":163840,"train_seconds":2.1284600000071805,"loss":6.679619312286377,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:55:48+00:00"},{"step":48,"tokens":196608,"train_seconds":2.355712600005063,"loss":6.4771552085876465,"accuracy":0.079833984375,"timestamp":"2026-11-25T06:55:48+00:00"},{"step":50,"tokens":204800,"train_seconds":2.606685800004925,"loss":6.385195255279541,"accuracy":0.1044921875,"penalty":0.00012820855006434256,"timestamp":"2026-11-25T06:55:48+00:00","raw_hessian_norm":4420.42919921875},{"step":56,"tokens":229376,"train_seconds":2.78515310000148,"loss":6.204732894897461,"accuracy":0.093017578125,"timestamp":"2026-11-25T06:55:48+00:00"},{"step":64,"tokens":262144,"train_seconds":3.002642499996,"loss":6.020790100097656,"accuracy":0.119873046875,"dev_nll":5.957755128532881,"dev_accuracy":0.1046142578125,"timestamp":"2026-11-25T06:55:48+00:00"},{"step":72,"tokens":294912,"train_seconds":3.2551698999996006,"loss":5.880842685699463,"accuracy":0.134033203125,"timestamp":"2026-11-25T06:55:49+00:00"},{"step":74,"tokens":303104,"train_seconds":3.5104819999978645,"loss":5.803345680236816,"accuracy":0.147705078125,"penalty":0.0007518165705050605,"timestamp":"2026-11-25T06:55:49+00:00","raw_hessian_norm":25921.453125},{"step":80,"tokens":327680,"train_seconds":3.6820077000011224,"loss":5.691623210906982,"accuracy":0.141357421875,"timestamp":"2026-11-25T06:55:50+00:00"},{"step":84,"tokens":344064,"train_seconds":4.031231100001605,"loss":5.601505279541016,"accuracy":0.154296875,"penalty":0.0014122913792135134,"timestamp":"2026-11-25T06:55:50+00:00","raw_hessian_norm":48693.5859375},{"step":86,"tokens":352256,"train_seconds":4.277199700001802,"loss":5.506010055541992,"accuracy":0.181396484375,"penalty":0.0034913395749200196,"timestamp":"2026-11-25T06:55:50+00:00","raw_hessian_norm":120375.8984375},{"step":88,"tokens":360448,"train_seconds":4.335809700001846,"loss":5.578728675842285,"accuracy":0.16943359375,"timestamp":"2026-11-25T06:55:50+00:00"},{"step":91,"tokens":372736,"train_seconds":4.601987099998951,"loss":5.475912094116211,"accuracy":0.1865234375,"penalty":0.0007360673658064445,"timestamp":"2026-11-25T06:55:51+00:00","raw_hessian_norm":25378.4453125},{"step":93,"tokens":380928,"train_seconds":4.8666542999999365,"loss":5.445041179656982,"accuracy":0.185302734375,"penalty":0.00120283987240666,"timestamp":"2026-11-25T06:55:51+00:00","raw_hessian_norm":41472.02734375},{"step":96,"tokens":393216,"train_seconds":4.959645599996293,"loss":5.423412322998047,"accuracy":0.1806640625,"dev_nll":5.397112445323728,"dev_accuracy":0.186279296875,"timestamp":"2026-11-25T06:55:51+00:00"},{"step":100,"tokens":409600,"train_seconds":5.261021499998606,"loss":5.298399925231934,"accuracy":0.187255859375,"penalty":0.0008278760182768379,"timestamp":"2026-11-25T06:55:52+00:00","raw_hessian_norm":28543.86328125},{"step":104,"tokens":425984,"train_seconds":5.373260999993363,"loss":5.304810047149658,"accuracy":0.207763671875,"timestamp":"2026-11-25T06:55:52+00:00"},{"step":106,"tokens":434176,"train_seconds":5.626796099990315,"loss":5.285282135009766,"accuracy":0.19580078125,"penalty":0.0013405696754910557,"timestamp":"2026-11-25T06:55:52+00:00","raw_hessian_norm":46220.734375},{"step":112,"tokens":458752,"train_seconds":5.803405999988172,"loss":5.3011980056762695,"accuracy":0.188232421875,"timestamp":"2026-11-25T06:55:52+00:00"},{"step":115,"tokens":471040,"train_seconds":6.086977799994202,"loss":5.1823625564575195,"accuracy":0.203125,"penalty":0.002098881475874338,"timestamp":"2026-11-25T06:55:52+00:00","raw_hessian_norm":72366.1328125},{"step":120,"tokens":491520,"train_seconds":6.223840700000437,"loss":5.058067321777344,"accuracy":0.21728515625,"timestamp":"2026-11-25T06:55:53+00:00"},{"step":121,"tokens":495616,"train_seconds":6.464554600002884,"loss":5.0598249435424805,"accuracy":0.2265625,"penalty":0.002540322812540448,"timestamp":"2026-11-25T06:55:53+00:00","raw_hessian_norm":87586.3359375},{"step":126,"tokens":516096,"train_seconds":6.831978100002743,"loss":5.036979675292969,"accuracy":0.218017578125,"penalty":0.0034505124156854806,"timestamp":"2026-11-25T06:55:53+00:00","raw_hessian_norm":118968.2421875},{"step":127,"tokens":520192,"train_seconds":7.081971800005704,"loss":5.102654457092285,"accuracy":0.214599609375,"penalty":0.0024059400978267537,"timestamp":"2026-11-25T06:55:53+00:00","raw_hessian_norm":82953.03125},{"step":128,"tokens":524288,"train_seconds":7.112932700005331,"loss":5.07271671295166,"accuracy":0.222900390625,"dev_nll":4.956234810320893,"dev_accuracy":0.224365234375,"timestamp":"2026-11-25T06:55:54+00:00"},{"step":130,"tokens":532480,"train_seconds":7.380782200005342,"loss":4.9479851722717285,"accuracy":0.22216796875,"penalty":0.003984194173896917,"timestamp":"2026-11-25T06:55:54+00:00","raw_hessian_norm":137368.75},{"step":131,"tokens":536576,"train_seconds":7.619073400004709,"loss":4.901272773742676,"accuracy":0.229248046875,"penalty":0.00218873181596997,"timestamp":"2026-11-25T06:55:54+00:00","raw_hessian_norm":75464.03125},{"step":136,"tokens":557056,"train_seconds":7.768599000009999,"loss":4.893895149230957,"accuracy":0.22314453125,"timestamp":"2026-11-25T06:55:55+00:00"},{"step":144,"tokens":589824,"train_seconds":8.00458180001442,"loss":4.956618309020996,"accuracy":0.217041015625,"timestamp":"2026-11-25T06:55:55+00:00"},{"step":152,"tokens":622592,"train_seconds":8.22514550001506,"loss":4.732771873474121,"accuracy":0.229736328125,"timestamp":"2026-11-25T06:55:55+00:00"},{"step":158,"tokens":647168,"train_seconds":8.598351200012985,"loss":4.603055953979492,"accuracy":0.25390625,"penalty":0.004960648037484555,"timestamp":"2026-11-25T06:55:55+00:00","raw_hessian_norm":171035.34375},{"step":160,"tokens":655360,"train_seconds":8.65248300001258,"loss":4.746011257171631,"accuracy":0.255126953125,"dev_nll":4.631726257677656,"dev_accuracy":0.260986328125,"timestamp":"2026-11-25T06:55:56+00:00"},{"step":164,"tokens":671744,"train_seconds":8.995739900012268,"loss":4.730936050415039,"accuracy":0.245849609375,"penalty":0.0036476825791462823,"timestamp":"2026-11-25T06:55:56+00:00","raw_hessian_norm":125766.359375},{"step":168,"tokens":688128,"train_seconds":9.118137100012973,"loss":4.6763224601745605,"accuracy":0.247802734375,"timestamp":"2026-11-25T06:55:56+00:00"},{"step":173,"tokens":708608,"train_seconds":9.43714710000495,"loss":4.67111873626709,"accuracy":0.251220703125,"penalty":0.005116248049951854,"timestamp":"2026-11-25T06:55:57+00:00","raw_hessian_norm":176400.1875},{"step":176,"tokens":720896,"train_seconds":9.527806500005681,"loss":4.6122636795043945,"accuracy":0.25927734375,"timestamp":"2026-11-25T06:55:57+00:00"},{"step":178,"tokens":729088,"train_seconds":9.79479660000652,"loss":4.527767181396484,"accuracy":0.26123046875,"penalty":0.004638581616455764,"timestamp":"2026-11-25T06:55:57+00:00","raw_hessian_norm":159931.0},{"step":184,"tokens":753664,"train_seconds":9.964051999999356,"loss":4.476706027984619,"accuracy":0.257568359375,"timestamp":"2026-11-25T06:55:57+00:00"},{"step":188,"tokens":770048,"train_seconds":10.296720999998797,"loss":4.471182823181152,"accuracy":0.261474609375,"penalty":0.008773884769985989,"timestamp":"2026-11-25T06:55:58+00:00","raw_hessian_norm":302509.75},{"step":192,"tokens":786432,"train_seconds":10.4035337000023,"loss":4.578401565551758,"accuracy":0.254150390625,"dev_nll":4.402494684472913,"dev_accuracy":0.2733154296875,"timestamp":"2026-11-25T06:55:58+00:00"},{"step":200,"tokens":819200,"train_seconds":10.643119600001228,"loss":4.466548919677734,"accuracy":0.26318359375,"timestamp":"2026-11-25T06:55:58+00:00"},{"step":208,"tokens":851968,"train_seconds":10.863066699999763,"loss":4.430459499359131,"accuracy":0.267822265625,"timestamp":"2026-11-25T06:55:59+00:00"},{"step":216,"tokens":884736,"train_seconds":11.30784329999733,"loss":4.3286309242248535,"accuracy":0.2783203125,"penalty":0.004362336872609386,"timestamp":"2026-11-25T06:55:59+00:00","raw_hessian_norm":150406.515625},{"step":221,"tokens":905216,"train_seconds":11.648477899991121,"loss":4.459896564483643,"accuracy":0.2578125,"penalty":0.004894398732045333,"timestamp":"2026-11-25T06:55:59+00:00","raw_hessian_norm":168751.171875},{"step":224,"tokens":917504,"train_seconds":11.911117699994065,"loss":4.286712169647217,"accuracy":0.28076171875,"penalty":0.0062785341451176285,"dev_nll":4.247703098109923,"dev_accuracy":0.2884521484375,"timestamp":"2026-11-25T06:56:00+00:00","raw_hessian_norm":216473.984375},{"step":225,"tokens":921600,"train_seconds":12.141782499995315,"loss":4.250860691070557,"accuracy":0.286865234375,"penalty":0.010412171855089334,"timestamp":"2026-11-25T06:56:00+00:00","raw_hessian_norm":358995.3125},{"step":232,"tokens":950272,"train_seconds":12.34466789999351,"loss":4.240367889404297,"accuracy":0.292724609375,"timestamp":"2026-11-25T06:56:01+00:00"},{"step":240,"tokens":983040,"train_seconds":12.572332699990511,"loss":4.278753280639648,"accuracy":0.280029296875,"timestamp":"2026-11-25T06:56:01+00:00"},{"step":248,"tokens":1015808,"train_seconds":12.986303799982124,"loss":4.322299957275391,"accuracy":0.280029296875,"penalty":0.008120605810405138,"timestamp":"2026-11-25T06:56:01+00:00","raw_hessian_norm":279985.71875},{"step":256,"tokens":1048576,"train_seconds":13.239020899982279,"loss":4.181053161621094,"accuracy":0.2939453125,"dev_nll":4.137557577632833,"dev_accuracy":0.2957763671875,"timestamp":"2026-11-25T06:56:01+00:00"},{"step":262,"tokens":1073152,"train_seconds":13.649864899984095,"loss":4.051726341247559,"accuracy":0.296142578125,"penalty":0.006922860042673421,"timestamp":"2026-11-25T06:56:02+00:00","raw_hessian_norm":238689.328125},{"step":264,"tokens":1081344,"train_seconds":13.726793899983022,"loss":4.112407684326172,"accuracy":0.294189453125,"timestamp":"2026-11-25T06:56:02+00:00"},{"step":268,"tokens":1097728,"train_seconds":14.011449399979028,"loss":4.118870258331299,"accuracy":0.30908203125,"penalty":0.006154314714748183,"timestamp":"2026-11-25T06:56:03+00:00","raw_hessian_norm":212191.09375},{"step":272,"tokens":1114112,"train_seconds":14.128206799981854,"loss":4.110921859741211,"accuracy":0.296630859375,"timestamp":"2026-11-25T06:56:03+00:00"},{"step":280,"tokens":1146880,"train_seconds":14.356765899981838,"loss":4.0789475440979,"accuracy":0.302490234375,"timestamp":"2026-11-25T06:56:03+00:00"},{"step":288,"tokens":1179648,"train_seconds":14.574112099980994,"loss":4.08077335357666,"accuracy":0.306640625,"dev_nll":4.049744006799301,"dev_accuracy":0.3043212890625,"timestamp":"2026-11-25T06:56:03+00:00"},{"step":296,"tokens":1212416,"train_seconds":14.802996199981862,"loss":4.165329933166504,"accuracy":0.2958984375,"timestamp":"2026-11-25T06:56:04+00:00"},{"step":304,"tokens":1245184,"train_seconds":15.027194199978112,"loss":4.1000823974609375,"accuracy":0.29150390625,"timestamp":"2026-11-25T06:56:04+00:00"},{"step":312,"tokens":1277952,"train_seconds":15.251425599984941,"loss":3.929356336593628,"accuracy":0.32177734375,"timestamp":"2026-11-25T06:56:04+00:00"},{"step":318,"tokens":1302528,"train_seconds":15.612692799990327,"loss":3.942049980163574,"accuracy":0.319091796875,"penalty":0.007174185219065156,"timestamp":"2026-11-25T06:56:05+00:00","raw_hessian_norm":247354.625},{"step":320,"tokens":1310720,"train_seconds":15.67112419998739,"loss":3.9905171394348145,"accuracy":0.30322265625,"dev_nll":3.9915279304259457,"dev_accuracy":0.3099365234375,"timestamp":"2026-11-25T06:56:05+00:00"},{"step":321,"tokens":1314816,"train_seconds":15.91499249998742,"loss":4.139747142791748,"accuracy":0.28955078125,"penalty":0.005130470711350641,"timestamp":"2026-11-25T06:56:05+00:00","raw_hessian_norm":176890.5625},{"step":324,"tokens":1327104,"train_seconds":16.224708899982943,"loss":4.094756126403809,"accuracy":0.30126953125,"penalty":0.007453569154076122,"timestamp":"2026-11-25T06:56:06+00:00","raw_hessian_norm":256987.34375},{"step":328,"tokens":1343488,"train_seconds":16.3529002999785,"loss":3.9891469478607178,"accuracy":0.310791015625,"timestamp":"2026-11-25T06:56:06+00:00"},{"step":334,"tokens":1368064,"train_seconds":16.740447099979065,"loss":3.9062256813049316,"accuracy":0.31884765625,"penalty":0.008681669500037261,"timestamp":"2026-11-25T06:56:06+00:00","raw_hessian_norm":299330.3125},{"step":335,"tokens":1372160,"train_seconds":16.954258899979322,"loss":4.065237998962402,"accuracy":0.30126953125,"penalty":0.006403356307441585,"timestamp":"2026-11-25T06:56:06+00:00","raw_hessian_norm":220777.65625},{"step":336,"tokens":1376256,"train_seconds":16.98159649997615,"loss":3.9253411293029785,"accuracy":0.32421875,"timestamp":"2026-11-25T06:56:07+00:00"},{"step":344,"tokens":1409024,"train_seconds":17.22080279997681,"loss":4.0551066398620605,"accuracy":0.2958984375,"timestamp":"2026-11-25T06:56:07+00:00"},{"step":352,"tokens":1441792,"train_seconds":17.440026599982957,"loss":4.115511894226074,"accuracy":0.29931640625,"dev_nll":3.939042559330119,"dev_accuracy":0.31494140625,"timestamp":"2026-11-25T06:56:07+00:00"},{"step":360,"tokens":1474560,"train_seconds":17.684130499976163,"loss":3.977306365966797,"accuracy":0.313232421875,"timestamp":"2026-11-25T06:56:08+00:00"},{"step":367,"tokens":1503232,"train_seconds":18.068946199982747,"loss":3.8872532844543457,"accuracy":0.3203125,"penalty":0.006888386040784969,"timestamp":"2026-11-25T06:56:08+00:00","raw_hessian_norm":237500.71875},{"step":368,"tokens":1507328,"train_seconds":18.112514099982945,"loss":3.9501490592956543,"accuracy":0.319091796875,"timestamp":"2026-11-25T06:56:08+00:00"},{"step":376,"tokens":1540096,"train_seconds":18.340202399980626,"loss":4.028326988220215,"accuracy":0.30810546875,"timestamp":"2026-11-25T06:56:08+00:00"},{"step":384,"tokens":1572864,"train_seconds":18.571818499975052,"loss":3.943190813064575,"accuracy":0.321044921875,"dev_nll":3.9027063865214586,"dev_accuracy":0.32275390625,"timestamp":"2026-11-25T06:56:09+00:00"},{"step":388,"tokens":1589248,"train_seconds":18.895650799975556,"loss":3.9234087467193604,"accuracy":0.319091796875,"penalty":0.014480492908014588,"timestamp":"2026-11-25T06:56:09+00:00","raw_hessian_norm":499264.625},{"step":389,"tokens":1593344,"train_seconds":19.12263009997696,"loss":3.9897451400756836,"accuracy":0.31787109375,"penalty":0.010043669695375604,"timestamp":"2026-11-25T06:56:10+00:00","raw_hessian_norm":346289.9375},{"step":392,"tokens":1605632,"train_seconds":19.21034289997624,"loss":3.887795925140381,"accuracy":0.327392578125,"timestamp":"2026-11-25T06:56:10+00:00"},{"step":400,"tokens":1638400,"train_seconds":19.633869999976014,"loss":4.0061492919921875,"accuracy":0.30859375,"penalty":0.012210865400110767,"timestamp":"2026-11-25T06:56:10+00:00","raw_hessian_norm":421011.4375},{"step":406,"tokens":1662976,"train_seconds":20.017238999978872,"loss":4.073339939117432,"accuracy":0.30078125,"penalty":0.009760825263218285,"timestamp":"2026-11-25T06:56:11+00:00","raw_hessian_norm":336537.90625},{"step":408,"tokens":1671168,"train_seconds":20.268960499983223,"loss":3.8917391300201416,"accuracy":0.331298828125,"penalty":0.007260266218535488,"timestamp":"2026-11-25T06:56:11+00:00","raw_hessian_norm":250322.5625},{"step":415,"tokens":1699840,"train_seconds":20.6726948999858,"loss":3.8547849655151367,"accuracy":0.333740234375,"penalty":0.012181376852531773,"timestamp":"2026-11-25T06:56:11+00:00","raw_hessian_norm":419994.71875},{"step":416,"tokens":1703936,"train_seconds":20.69933319998745,"loss":3.9790234565734863,"accuracy":0.310546875,"dev_nll":3.8785561733529903,"dev_accuracy":0.3212890625,"timestamp":"2026-11-25T06:56:11+00:00"},{"step":424,"tokens":1736704,"train_seconds":20.934754799985967,"loss":3.934964656829834,"accuracy":0.320068359375,"timestamp":"2026-11-25T06:56:12+00:00"},{"step":432,"tokens":1769472,"train_seconds":21.164597199989657,"loss":3.8569655418395996,"accuracy":0.326171875,"timestamp":"2026-11-25T06:56:12+00:00"},{"step":439,"tokens":1798144,"train_seconds":21.535373599996092,"loss":3.868197441101074,"accuracy":0.322021484375,"penalty":0.010937327222054037,"timestamp":"2026-11-25T06:56:12+00:00","raw_hessian_norm":377101.84375},{"step":440,"tokens":1802240,"train_seconds":21.56509169999481,"loss":3.9746267795562744,"accuracy":0.318359375,"timestamp":"2026-11-25T06:56:12+00:00"},{"step":441,"tokens":1806336,"train_seconds":21.812901599994802,"loss":3.935502529144287,"accuracy":0.328125,"penalty":0.014467432205060438,"timestamp":"2026-11-25T06:56:13+00:00","raw_hessian_norm":498814.3125},{"step":448,"tokens":1835008,"train_seconds":22.005534799998713,"loss":3.742650032043457,"accuracy":0.34423828125,"dev_nll":3.856403035868425,"dev_accuracy":0.3233642578125,"timestamp":"2026-11-25T06:56:13+00:00"},{"step":456,"tokens":1867776,"train_seconds":22.236989999997604,"loss":3.974454164505005,"accuracy":0.31005859375,"timestamp":"2026-11-25T06:56:14+00:00"},{"step":463,"tokens":1896448,"train_seconds":22.643031899999187,"loss":3.8842225074768066,"accuracy":0.3212890625,"penalty":0.007976454985982031,"timestamp":"2026-11-25T06:56:14+00:00","raw_hessian_norm":275015.625},{"step":464,"tokens":1900544,"train_seconds":22.677481799997622,"loss":3.9301936626434326,"accuracy":0.3154296875,"timestamp":"2026-11-25T06:56:14+00:00"},{"step":469,"tokens":1921024,"train_seconds":23.014406199992663,"loss":3.9393410682678223,"accuracy":0.31494140625,"penalty":0.014375432649705956,"timestamp":"2026-11-25T06:56:14+00:00","raw_hessian_norm":495642.3125},{"step":472,"tokens":1933312,"train_seconds":23.097513599994272,"loss":3.878803014755249,"accuracy":0.336181640625,"timestamp":"2026-11-25T06:56:14+00:00"},{"step":475,"tokens":1945600,"train_seconds":23.402104599994345,"loss":3.8922743797302246,"accuracy":0.3173828125,"penalty":0.009960102949201233,"timestamp":"2026-11-25T06:56:15+00:00","raw_hessian_norm":343408.6875},{"step":480,"tokens":1966080,"train_seconds":23.77336479999576,"loss":3.9584269523620605,"accuracy":0.314208984375,"penalty":0.012724460096278787,"dev_nll":3.8429544314567465,"dev_accuracy":0.324462890625,"timestamp":"2026-11-25T06:56:15+00:00","raw_hessian_norm":438719.375},{"step":487,"tokens":1994752,"train_seconds":24.177667500000098,"loss":3.8146567344665527,"accuracy":0.330078125,"penalty":0.013993612379707126,"timestamp":"2026-11-25T06:56:16+00:00","raw_hessian_norm":482477.75},{"step":488,"tokens":1998848,"train_seconds":24.20379220000177,"loss":3.890599489212036,"accuracy":0.32568359375,"timestamp":"2026-11-25T06:56:16+00:00"},{"step":496,"tokens":2031616,"train_seconds":24.426127099999576,"loss":3.8396387100219727,"accuracy":0.314453125,"timestamp":"2026-11-25T06:56:16+00:00"},{"step":504,"tokens":2064384,"train_seconds":24.639146899997286,"loss":3.717543601989746,"accuracy":0.336669921875,"timestamp":"2026-11-25T06:56:16+00:00"},{"step":506,"tokens":2072576,"train_seconds":24.859648300000117,"loss":3.967899799346924,"accuracy":0.305908203125,"penalty":0.01226972829342474,"timestamp":"2026-11-25T06:56:17+00:00","raw_hessian_norm":423040.9375},{"step":512,"tokens":2097152,"train_seconds":25.028549999999086,"loss":3.8731815814971924,"accuracy":0.32373046875,"dev_nll":3.8310268420609646,"dev_accuracy":0.3265380859375,"timestamp":"2026-11-25T06:56:17+00:00"}],"samples":[{"timestamp":"2026-11-25T06:56:19+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:56:20+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:56:20+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with his mom. He started to hide and","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,351,365,14,314,560,266,1639,265],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-sham-r01","stage":"stories","method":"sham","phase":"pilot","seed":0,"ratio":0.01,"coefficients":{"third":3.0190450056526336e-14},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":41.189862000002904,"steps":512,"dev_nll":3.877252801531389,"dev_accuracy":0.3233148371464543,"tokens_per_sec":50914.2759448879,"peak_vram_mb":608.55615234375,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"89544a35f4be78ffbd1db46a41dd00507a741eafe9c7f7ad36979fda83193d78","dev_tokens":715643,"git_revision":"947dba7fcfc3bf5a844bbff26856628f788baefd","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.829275868512923,"finished_at":"2026-11-25T06:57:29+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.11174150000078953,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:56:37+00:00"},{"step":2,"tokens":8192,"train_seconds":0.7113969999991241,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.003694918775304137,"timestamp":"2026-11-25T06:56:38+00:00","raw_third":15298375680.0},{"step":8,"tokens":32768,"train_seconds":0.8808338000017102,"loss":8.158885955810547,"accuracy":0.05224609375,"timestamp":"2026-11-25T06:56:38+00:00"},{"step":11,"tokens":45056,"train_seconds":1.4549442999996245,"loss":8.028559684753418,"accuracy":0.067138671875,"penalty":0.001043650667314847,"timestamp":"2026-11-25T06:56:39+00:00","raw_third":4321112576.0},{"step":16,"tokens":65536,"train_seconds":1.6087688000043272,"loss":7.806388854980469,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:56:39+00:00"},{"step":22,"tokens":90112,"train_seconds":2.2691352000074403,"loss":7.604472637176514,"accuracy":0.067138671875,"penalty":1.3143383932323887e-05,"timestamp":"2026-11-25T06:56:40+00:00","raw_third":54418632.0},{"step":24,"tokens":98304,"train_seconds":2.33188240000527,"loss":7.483771324157715,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:56:40+00:00"},{"step":25,"tokens":102400,"train_seconds":2.884363500004838,"loss":7.45353889465332,"accuracy":0.072265625,"penalty":2.6802561801395906e-05,"timestamp":"2026-11-25T06:56:40+00:00","raw_third":110972848.0},{"step":32,"tokens":131072,"train_seconds":3.095542100010789,"loss":7.08205509185791,"accuracy":0.072509765625,"dev_nll":7.042947211302817,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:56:40+00:00"},{"step":40,"tokens":163840,"train_seconds":3.36189590001959,"loss":6.676913261413574,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:56:41+00:00"},{"step":48,"tokens":196608,"train_seconds":3.5880605000165815,"loss":6.47413444519043,"accuracy":0.080322265625,"timestamp":"2026-11-25T06:56:41+00:00"},{"step":50,"tokens":204800,"train_seconds":4.132599500015203,"loss":6.383204460144043,"accuracy":0.104736328125,"penalty":1.470292210842625e-05,"timestamp":"2026-11-25T06:56:42+00:00","raw_third":60875716.0},{"step":56,"tokens":229376,"train_seconds":4.319618500008801,"loss":6.203001022338867,"accuracy":0.0927734375,"timestamp":"2026-11-25T06:56:42+00:00"},{"step":64,"tokens":262144,"train_seconds":4.539581200009707,"loss":6.018500328063965,"accuracy":0.119873046875,"dev_nll":5.955645813024603,"dev_accuracy":0.1046142578125,"timestamp":"2026-11-25T06:56:42+00:00"},{"step":72,"tokens":294912,"train_seconds":4.777776900013123,"loss":5.8776702880859375,"accuracy":0.134521484375,"timestamp":"2026-11-25T06:56:43+00:00"},{"step":74,"tokens":303104,"train_seconds":5.3091425000129675,"loss":5.80005407333374,"accuracy":0.147705078125,"penalty":9.794476040555403e-05,"timestamp":"2026-11-25T06:56:43+00:00","raw_third":405528736.0},{"step":80,"tokens":327680,"train_seconds":5.482895800010738,"loss":5.6858415603637695,"accuracy":0.1416015625,"timestamp":"2026-11-25T06:56:44+00:00"},{"step":84,"tokens":344064,"train_seconds":6.122487100012222,"loss":5.596466541290283,"accuracy":0.155029296875,"penalty":0.00014772699435910175,"timestamp":"2026-11-25T06:56:44+00:00","raw_third":611646208.0},{"step":86,"tokens":352256,"train_seconds":6.710475700012466,"loss":5.50150203704834,"accuracy":0.183349609375,"penalty":0.0003844812417985043,"timestamp":"2026-11-25T06:56:45+00:00","raw_third":1591899264.0},{"step":88,"tokens":360448,"train_seconds":6.768393900016235,"loss":5.5737080574035645,"accuracy":0.17041015625,"timestamp":"2026-11-25T06:56:45+00:00"},{"step":91,"tokens":372736,"train_seconds":7.382737100018858,"loss":5.47004508972168,"accuracy":0.1865234375,"penalty":0.00016115790151072557,"timestamp":"2026-11-25T06:56:46+00:00","raw_third":667255296.0},{"step":93,"tokens":380928,"train_seconds":7.939849800019147,"loss":5.439505577087402,"accuracy":0.185546875,"penalty":0.0002452887717575131,"timestamp":"2026-11-25T06:56:46+00:00","raw_third":1015589248.0},{"step":96,"tokens":393216,"train_seconds":8.024770500018349,"loss":5.4167985916137695,"accuracy":0.1826171875,"dev_nll":5.390221333509544,"dev_accuracy":0.1876220703125,"timestamp":"2026-11-25T06:56:46+00:00"},{"step":100,"tokens":409600,"train_seconds":8.656814900019526,"loss":5.2921552658081055,"accuracy":0.191650390625,"penalty":0.00015984648632593417,"timestamp":"2026-11-25T06:56:47+00:00","raw_third":661825536.0},{"step":104,"tokens":425984,"train_seconds":8.774222900014138,"loss":5.300600051879883,"accuracy":0.208251953125,"timestamp":"2026-11-25T06:56:47+00:00"},{"step":106,"tokens":434176,"train_seconds":9.324779200011108,"loss":5.280622959136963,"accuracy":0.197021484375,"penalty":0.00022220127960574182,"timestamp":"2026-11-25T06:56:48+00:00","raw_third":919998208.0},{"step":112,"tokens":458752,"train_seconds":9.501715300015348,"loss":5.296669960021973,"accuracy":0.189697265625,"timestamp":"2026-11-25T06:56:48+00:00"},{"step":115,"tokens":471040,"train_seconds":10.09488420001071,"loss":5.178316116333008,"accuracy":0.2041015625,"penalty":0.0004958957618081452,"timestamp":"2026-11-25T06:56:49+00:00","raw_third":2053197952.0},{"step":120,"tokens":491520,"train_seconds":10.238262100010616,"loss":5.053869247436523,"accuracy":0.2177734375,"timestamp":"2026-11-25T06:56:49+00:00"},{"step":121,"tokens":495616,"train_seconds":10.776138800010813,"loss":5.055655479431152,"accuracy":0.2275390625,"penalty":0.0004100860513536704,"timestamp":"2026-11-25T06:56:49+00:00","raw_third":1697912960.0},{"step":126,"tokens":516096,"train_seconds":11.472978700006934,"loss":5.033506393432617,"accuracy":0.21826171875,"penalty":0.0005717830799131366,"timestamp":"2026-11-25T06:56:50+00:00","raw_third":2367400448.0},{"step":127,"tokens":520192,"train_seconds":12.073614600005385,"loss":5.098794460296631,"accuracy":0.214599609375,"penalty":0.0003460760987721525,"timestamp":"2026-11-25T06:56:51+00:00","raw_third":1432887296.0},{"step":128,"tokens":524288,"train_seconds":12.099463400005334,"loss":5.0690765380859375,"accuracy":0.22265625,"dev_nll":4.952542747050757,"dev_accuracy":0.224853515625,"timestamp":"2026-11-25T06:56:51+00:00"},{"step":130,"tokens":532480,"train_seconds":12.647014300007868,"loss":4.942481517791748,"accuracy":0.223388671875,"penalty":0.0008391779155702666,"timestamp":"2026-11-25T06:56:52+00:00","raw_third":3474517248.0},{"step":131,"tokens":536576,"train_seconds":13.210242600005586,"loss":4.8986992835998535,"accuracy":0.23095703125,"penalty":0.0006351227639274347,"timestamp":"2026-11-25T06:56:52+00:00","raw_third":2629650944.0},{"step":136,"tokens":557056,"train_seconds":13.358056900004158,"loss":4.8893327713012695,"accuracy":0.22509765625,"timestamp":"2026-11-25T06:56:53+00:00"},{"step":144,"tokens":589824,"train_seconds":13.589108800006215,"loss":4.952260971069336,"accuracy":0.22021484375,"timestamp":"2026-11-25T06:56:53+00:00"},{"step":152,"tokens":622592,"train_seconds":13.819723900003737,"loss":4.729339599609375,"accuracy":0.232177734375,"timestamp":"2026-11-25T06:56:53+00:00"},{"step":158,"tokens":647168,"train_seconds":14.550627700005862,"loss":4.599300384521484,"accuracy":0.254150390625,"penalty":0.0007558272477048695,"timestamp":"2026-11-25T06:56:54+00:00","raw_third":3129413632.0},{"step":160,"tokens":655360,"train_seconds":14.605499000008422,"loss":4.742939472198486,"accuracy":0.25341796875,"dev_nll":4.627527277683839,"dev_accuracy":0.2623291015625,"timestamp":"2026-11-25T06:56:54+00:00"},{"step":164,"tokens":671744,"train_seconds":15.266630700007227,"loss":4.727719306945801,"accuracy":0.2451171875,"penalty":0.0008032428517954389,"timestamp":"2026-11-25T06:56:55+00:00","raw_third":3325732352.0},{"step":168,"tokens":688128,"train_seconds":15.387061000008543,"loss":4.673941612243652,"accuracy":0.247802734375,"timestamp":"2026-11-25T06:56:55+00:00"},{"step":173,"tokens":708608,"train_seconds":16.035969000004116,"loss":4.670864582061768,"accuracy":0.2509765625,"penalty":0.0013233221669048509,"timestamp":"2026-11-25T06:56:56+00:00","raw_third":5479059456.0},{"step":176,"tokens":720896,"train_seconds":16.129177000006166,"loss":4.611025810241699,"accuracy":0.260498046875,"timestamp":"2026-11-25T06:56:56+00:00"},{"step":178,"tokens":729088,"train_seconds":16.673305600004824,"loss":4.524960517883301,"accuracy":0.260498046875,"penalty":0.0009993603863428843,"timestamp":"2026-11-25T06:56:56+00:00","raw_third":4137733888.0},{"step":184,"tokens":753664,"train_seconds":16.862312200006272,"loss":4.474330425262451,"accuracy":0.259521484375,"timestamp":"2026-11-25T06:56:57+00:00"},{"step":188,"tokens":770048,"train_seconds":17.450297400006093,"loss":4.468687057495117,"accuracy":0.26171875,"penalty":0.0013850483341505343,"timestamp":"2026-11-25T06:56:57+00:00","raw_third":5734629376.0},{"step":192,"tokens":786432,"train_seconds":17.565468300002976,"loss":4.5745744705200195,"accuracy":0.255615234375,"dev_nll":4.398735943832435,"dev_accuracy":0.2725830078125,"timestamp":"2026-11-25T06:56:57+00:00"},{"step":200,"tokens":819200,"train_seconds":17.79274040000746,"loss":4.464016914367676,"accuracy":0.262939453125,"timestamp":"2026-11-25T06:56:58+00:00"},{"step":208,"tokens":851968,"train_seconds":18.049949500007642,"loss":4.428639888763428,"accuracy":0.268310546875,"timestamp":"2026-11-25T06:56:58+00:00"},{"step":216,"tokens":884736,"train_seconds":18.758634600009827,"loss":4.327710151672363,"accuracy":0.27880859375,"penalty":0.0010508673461238275,"timestamp":"2026-11-25T06:56:59+00:00","raw_third":4350992384.0},{"step":221,"tokens":905216,"train_seconds":19.46529750001355,"loss":4.458069801330566,"accuracy":0.26025390625,"penalty":0.0025966505406396683,"timestamp":"2026-11-25T06:57:00+00:00","raw_third":10751125504.0},{"step":224,"tokens":917504,"train_seconds":20.04438490001121,"loss":4.284882068634033,"accuracy":0.28271484375,"penalty":0.0012307294535539896,"dev_nll":4.244748030148912,"dev_accuracy":0.287841796875,"timestamp":"2026-11-25T06:57:00+00:00","raw_third":5095690240.0},{"step":225,"tokens":921600,"train_seconds":20.606033400013985,"loss":4.246157646179199,"accuracy":0.2880859375,"penalty":0.003435844964831073,"timestamp":"2026-11-25T06:57:01+00:00","raw_third":14225711104.0},{"step":232,"tokens":950272,"train_seconds":20.794111800016253,"loss":4.237696170806885,"accuracy":0.2939453125,"timestamp":"2026-11-25T06:57:02+00:00"},{"step":240,"tokens":983040,"train_seconds":21.01858440001888,"loss":4.278018951416016,"accuracy":0.2822265625,"timestamp":"2026-11-25T06:57:02+00:00"},{"step":248,"tokens":1015808,"train_seconds":21.785128700019413,"loss":4.319000244140625,"accuracy":0.28173828125,"penalty":0.0018876672164596642,"timestamp":"2026-11-25T06:57:03+00:00","raw_third":7815663616.0},{"step":256,"tokens":1048576,"train_seconds":22.016587700014497,"loss":4.178144454956055,"accuracy":0.297119140625,"dev_nll":4.135645289614331,"dev_accuracy":0.297119140625,"timestamp":"2026-11-25T06:57:03+00:00"},{"step":262,"tokens":1073152,"train_seconds":22.7395495000128,"loss":4.050060272216797,"accuracy":0.2978515625,"penalty":0.0013727342630424223,"timestamp":"2026-11-25T06:57:04+00:00","raw_third":5683644416.0},{"step":264,"tokens":1081344,"train_seconds":22.804236300013145,"loss":4.110063552856445,"accuracy":0.29345703125,"timestamp":"2026-11-25T06:57:04+00:00"},{"step":268,"tokens":1097728,"train_seconds":23.473764300022594,"loss":4.115427017211914,"accuracy":0.3095703125,"penalty":0.0018937392975364028,"timestamp":"2026-11-25T06:57:05+00:00","raw_third":7840804352.0},{"step":272,"tokens":1114112,"train_seconds":23.589100200024404,"loss":4.109141826629639,"accuracy":0.29638671875,"timestamp":"2026-11-25T06:57:05+00:00"},{"step":280,"tokens":1146880,"train_seconds":23.839617800025735,"loss":4.077136039733887,"accuracy":0.30517578125,"timestamp":"2026-11-25T06:57:05+00:00"},{"step":288,"tokens":1179648,"train_seconds":24.06424360003075,"loss":4.079460620880127,"accuracy":0.305908203125,"dev_nll":4.047206257702783,"dev_accuracy":0.3046875,"timestamp":"2026-11-25T06:57:05+00:00"},{"step":296,"tokens":1212416,"train_seconds":24.301493300030415,"loss":4.16214656829834,"accuracy":0.298095703125,"timestamp":"2026-11-25T06:57:06+00:00"},{"step":304,"tokens":1245184,"train_seconds":24.525578500022675,"loss":4.097690582275391,"accuracy":0.290771484375,"timestamp":"2026-11-25T06:57:06+00:00"},{"step":312,"tokens":1277952,"train_seconds":24.745461900020018,"loss":3.9269814491271973,"accuracy":0.32177734375,"timestamp":"2026-11-25T06:57:06+00:00"},{"step":318,"tokens":1302528,"train_seconds":25.43479920001846,"loss":3.9407882690429688,"accuracy":0.31982421875,"penalty":0.0026127822458434785,"timestamp":"2026-11-25T06:57:07+00:00","raw_third":10817916928.0},{"step":320,"tokens":1310720,"train_seconds":25.493503600016993,"loss":3.989896535873413,"accuracy":0.301513671875,"dev_nll":3.989614990685368,"dev_accuracy":0.31005859375,"timestamp":"2026-11-25T06:57:07+00:00"},{"step":321,"tokens":1314816,"train_seconds":26.044712700015225,"loss":4.138510704040527,"accuracy":0.288330078125,"penalty":0.0011654270366954662,"timestamp":"2026-11-25T06:57:08+00:00","raw_third":4825313280.0},{"step":324,"tokens":1327104,"train_seconds":26.62473020001198,"loss":4.093667507171631,"accuracy":0.30126953125,"penalty":0.0015603263622878893,"timestamp":"2026-11-25T06:57:09+00:00","raw_third":6460347392.0},{"step":328,"tokens":1343488,"train_seconds":26.729595700013306,"loss":3.986125946044922,"accuracy":0.312255859375,"timestamp":"2026-11-25T06:57:09+00:00"},{"step":334,"tokens":1368064,"train_seconds":27.418615200011118,"loss":3.9045252799987793,"accuracy":0.318359375,"penalty":0.0021458447386480165,"timestamp":"2026-11-25T06:57:10+00:00","raw_third":8884617216.0},{"step":335,"tokens":1372160,"train_seconds":28.03008500001306,"loss":4.063345909118652,"accuracy":0.301025390625,"penalty":0.0014666840221488613,"timestamp":"2026-11-25T06:57:10+00:00","raw_third":6072632320.0},{"step":336,"tokens":1376256,"train_seconds":28.05753410001489,"loss":3.923170804977417,"accuracy":0.32373046875,"timestamp":"2026-11-25T06:57:10+00:00"},{"step":344,"tokens":1409024,"train_seconds":28.304781400023785,"loss":4.0526275634765625,"accuracy":0.294677734375,"timestamp":"2026-11-25T06:57:10+00:00"},{"step":352,"tokens":1441792,"train_seconds":28.53935740002271,"loss":4.11470890045166,"accuracy":0.298095703125,"dev_nll":3.937844251806382,"dev_accuracy":0.3153076171875,"timestamp":"2026-11-25T06:57:11+00:00"},{"step":360,"tokens":1474560,"train_seconds":28.79088820002289,"loss":3.9747467041015625,"accuracy":0.3134765625,"timestamp":"2026-11-25T06:57:11+00:00"},{"step":367,"tokens":1503232,"train_seconds":29.49694210002417,"loss":3.8862621784210205,"accuracy":0.320556640625,"penalty":0.002022951842374094,"timestamp":"2026-11-25T06:57:12+00:00","raw_third":8375793664.0},{"step":368,"tokens":1507328,"train_seconds":29.52595810002458,"loss":3.9485902786254883,"accuracy":0.320068359375,"timestamp":"2026-11-25T06:57:12+00:00"},{"step":376,"tokens":1540096,"train_seconds":29.757500500025344,"loss":4.027079105377197,"accuracy":0.30810546875,"timestamp":"2026-11-25T06:57:12+00:00"},{"step":384,"tokens":1572864,"train_seconds":30.016204800023843,"loss":3.942038059234619,"accuracy":0.322265625,"dev_nll":3.9014587370329536,"dev_accuracy":0.322265625,"timestamp":"2026-11-25T06:57:13+00:00"},{"step":388,"tokens":1589248,"train_seconds":30.656328100027167,"loss":3.920825481414795,"accuracy":0.31884765625,"penalty":0.0028716300056840297,"timestamp":"2026-11-25T06:57:14+00:00","raw_third":11889645568.0},{"step":389,"tokens":1593344,"train_seconds":31.196415000027628,"loss":3.988948345184326,"accuracy":0.321044921875,"penalty":0.0023155850209291406,"timestamp":"2026-11-25T06:57:14+00:00","raw_third":9587406848.0},{"step":392,"tokens":1605632,"train_seconds":31.281148800022493,"loss":3.885392665863037,"accuracy":0.32763671875,"timestamp":"2026-11-25T06:57:14+00:00"},{"step":400,"tokens":1638400,"train_seconds":32.048242100023344,"loss":4.004181861877441,"accuracy":0.30859375,"penalty":0.002915692566612353,"timestamp":"2026-11-25T06:57:15+00:00","raw_third":12072081408.0},{"step":406,"tokens":1662976,"train_seconds":32.756095200016716,"loss":4.073040008544922,"accuracy":0.30126953125,"penalty":0.002676857954674361,"timestamp":"2026-11-25T06:57:16+00:00","raw_third":11083214848.0},{"step":408,"tokens":1671168,"train_seconds":33.33611300001576,"loss":3.8904576301574707,"accuracy":0.331298828125,"penalty":0.002275860455727595,"timestamp":"2026-11-25T06:57:16+00:00","raw_third":9422931968.0},{"step":415,"tokens":1699840,"train_seconds":34.03421090001211,"loss":3.852879524230957,"accuracy":0.332763671875,"penalty":0.002649538969042667,"timestamp":"2026-11-25T06:57:17+00:00","raw_third":10970103808.0},{"step":416,"tokens":1703936,"train_seconds":34.06041370001185,"loss":3.9776318073272705,"accuracy":0.311767578125,"dev_nll":3.8765604520158377,"dev_accuracy":0.322021484375,"timestamp":"2026-11-25T06:57:17+00:00"},{"step":424,"tokens":1736704,"train_seconds":34.29962390000583,"loss":3.9346799850463867,"accuracy":0.3212890625,"timestamp":"2026-11-25T06:57:18+00:00"},{"step":432,"tokens":1769472,"train_seconds":34.534925699997984,"loss":3.8550772666931152,"accuracy":0.328857421875,"timestamp":"2026-11-25T06:57:18+00:00"},{"step":439,"tokens":1798144,"train_seconds":35.32827229999748,"loss":3.8670425415039062,"accuracy":0.322021484375,"penalty":0.002473325328714069,"timestamp":"2026-11-25T06:57:19+00:00","raw_third":10240512000.0},{"step":440,"tokens":1802240,"train_seconds":35.35621600000013,"loss":3.9733529090881348,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:57:19+00:00"},{"step":441,"tokens":1806336,"train_seconds":35.92132990000027,"loss":3.933933734893799,"accuracy":0.329345703125,"penalty":0.0027497563158177495,"timestamp":"2026-11-25T06:57:19+00:00","raw_third":11385041920.0},{"step":448,"tokens":1835008,"train_seconds":36.14553890000025,"loss":3.740865468978882,"accuracy":0.345703125,"dev_nll":3.8547595087147783,"dev_accuracy":0.3236083984375,"timestamp":"2026-11-25T06:57:20+00:00"},{"step":456,"tokens":1867776,"train_seconds":36.39333920000354,"loss":3.9723870754241943,"accuracy":0.30908203125,"timestamp":"2026-11-25T06:57:20+00:00"},{"step":463,"tokens":1896448,"train_seconds":37.11962690000291,"loss":3.8822288513183594,"accuracy":0.320556640625,"penalty":0.001953289912934275,"timestamp":"2026-11-25T06:57:21+00:00","raw_third":8087366656.0},{"step":464,"tokens":1900544,"train_seconds":37.15016370000012,"loss":3.929062843322754,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:57:21+00:00"},{"step":469,"tokens":1921024,"train_seconds":37.83361380000133,"loss":3.9387731552124023,"accuracy":0.315673828125,"penalty":0.003623057674940572,"timestamp":"2026-11-25T06:57:22+00:00","raw_third":15000843264.0},{"step":472,"tokens":1933312,"train_seconds":37.92586780000056,"loss":3.876070499420166,"accuracy":0.336669921875,"timestamp":"2026-11-25T06:57:22+00:00"},{"step":475,"tokens":1945600,"train_seconds":38.517575699999725,"loss":3.891852378845215,"accuracy":0.31787109375,"penalty":0.002684971540068471,"timestamp":"2026-11-25T06:57:22+00:00","raw_third":11116808192.0},{"step":480,"tokens":1966080,"train_seconds":39.215564000001905,"loss":3.9558427333831787,"accuracy":0.3134765625,"penalty":0.003958065454285102,"dev_nll":3.841642325685825,"dev_accuracy":0.325927734375,"timestamp":"2026-11-25T06:57:23+00:00","raw_third":16387903488.0},{"step":487,"tokens":1994752,"train_seconds":39.8945069000074,"loss":3.813493490219116,"accuracy":0.33203125,"penalty":0.0032154557382578952,"timestamp":"2026-11-25T06:57:24+00:00","raw_third":13313215488.0},{"step":488,"tokens":1998848,"train_seconds":39.920264600004884,"loss":3.8887062072753906,"accuracy":0.32958984375,"timestamp":"2026-11-25T06:57:24+00:00"},{"step":496,"tokens":2031616,"train_seconds":40.160778800003754,"loss":3.839094638824463,"accuracy":0.314697265625,"timestamp":"2026-11-25T06:57:25+00:00"},{"step":504,"tokens":2064384,"train_seconds":40.42989900000248,"loss":3.7171449661254883,"accuracy":0.3359375,"timestamp":"2026-11-25T06:57:25+00:00"},{"step":506,"tokens":2072576,"train_seconds":41.018291000003956,"loss":3.9663960933685303,"accuracy":0.30712890625,"penalty":0.003391655281336982,"timestamp":"2026-11-25T06:57:26+00:00","raw_third":14042748928.0},{"step":512,"tokens":2097152,"train_seconds":41.189862000002904,"loss":3.871124267578125,"accuracy":0.323974609375,"dev_nll":3.829275868512923,"dev_accuracy":0.326416015625,"timestamp":"2026-11-25T06:57:26+00:00"}],"samples":[{"timestamp":"2026-11-25T06:57:28+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:57:29+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:57:29+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-third-r01","stage":"stories","method":"third","phase":"pilot","seed":0,"ratio":0.01,"coefficients":{"third":3.0190450056526336e-14},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":49.36696609996943,"steps":512,"dev_nll":3.8769312387212755,"dev_accuracy":0.3232589433558352,"tokens_per_sec":42480.876701096255,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"e7f69d1672e1da28223c33dd2c19a520bb1e7401b583ea45af648db4f0ec0311","dev_tokens":715643,"git_revision":"9361628f261e742c824e79d9039d4acd2717d2b1","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.829090001003351,"finished_at":"2026-11-25T06:54:08+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.19563689999995404,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:53:04+00:00"},{"step":2,"tokens":8192,"train_seconds":0.9664453000004869,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.003694918775304137,"timestamp":"2026-11-25T06:53:05+00:00","raw_third":15298375680.0},{"step":8,"tokens":32768,"train_seconds":1.1728818000046886,"loss":8.158926963806152,"accuracy":0.05224609375,"timestamp":"2026-11-25T06:53:05+00:00"},{"step":11,"tokens":45056,"train_seconds":1.8875450000014098,"loss":8.028908729553223,"accuracy":0.067138671875,"penalty":0.0010415569784422677,"timestamp":"2026-11-25T06:53:06+00:00","raw_third":4312443904.0},{"step":16,"tokens":65536,"train_seconds":2.060490900006698,"loss":7.80682897567749,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:53:06+00:00"},{"step":22,"tokens":90112,"train_seconds":2.873981900007493,"loss":7.6049089431762695,"accuracy":0.067138671875,"penalty":1.3124365397929879e-05,"timestamp":"2026-11-25T06:53:07+00:00","raw_third":54339888.0},{"step":24,"tokens":98304,"train_seconds":2.940983700009383,"loss":7.484243392944336,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:53:07+00:00"},{"step":25,"tokens":102400,"train_seconds":3.570277500009979,"loss":7.4540019035339355,"accuracy":0.072265625,"penalty":2.6619177762044553e-05,"timestamp":"2026-11-25T06:53:08+00:00","raw_third":110213568.0},{"step":32,"tokens":131072,"train_seconds":3.7909977000053914,"loss":7.082487106323242,"accuracy":0.072509765625,"dev_nll":7.043426600692328,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:53:08+00:00"},{"step":40,"tokens":163840,"train_seconds":4.064219000014418,"loss":6.677276134490967,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:53:09+00:00"},{"step":48,"tokens":196608,"train_seconds":4.327452400022594,"loss":6.474410057067871,"accuracy":0.080322265625,"timestamp":"2026-11-25T06:53:09+00:00"},{"step":50,"tokens":204800,"train_seconds":5.0338347000215435,"loss":6.3832902908325195,"accuracy":0.104736328125,"penalty":1.4280645143678809e-05,"timestamp":"2026-11-25T06:53:10+00:00","raw_third":59127328.0},{"step":56,"tokens":229376,"train_seconds":5.230912200015155,"loss":6.202988147735596,"accuracy":0.093017578125,"timestamp":"2026-11-25T06:53:10+00:00"},{"step":64,"tokens":262144,"train_seconds":5.503625200017268,"loss":6.018582344055176,"accuracy":0.119873046875,"dev_nll":5.9557200265990105,"dev_accuracy":0.104736328125,"timestamp":"2026-11-25T06:53:10+00:00"},{"step":72,"tokens":294912,"train_seconds":5.77523190001375,"loss":5.877789497375488,"accuracy":0.13427734375,"timestamp":"2026-11-25T06:53:11+00:00"},{"step":74,"tokens":303104,"train_seconds":6.442192700014857,"loss":5.800248622894287,"accuracy":0.147705078125,"penalty":9.714963379784449e-05,"timestamp":"2026-11-25T06:53:11+00:00","raw_third":402236608.0},{"step":80,"tokens":327680,"train_seconds":6.6554149000148755,"loss":5.68620491027832,"accuracy":0.14208984375,"timestamp":"2026-11-25T06:53:12+00:00"},{"step":84,"tokens":344064,"train_seconds":7.390628800014383,"loss":5.596960544586182,"accuracy":0.15478515625,"penalty":0.00014791551415629313,"timestamp":"2026-11-25T06:53:12+00:00","raw_third":612426752.0},{"step":86,"tokens":352256,"train_seconds":8.067877200013754,"loss":5.5018205642700195,"accuracy":0.1826171875,"penalty":0.0003837715256646698,"timestamp":"2026-11-25T06:53:13+00:00","raw_third":1588960768.0},{"step":88,"tokens":360448,"train_seconds":8.13564290001159,"loss":5.574240207672119,"accuracy":0.17041015625,"timestamp":"2026-11-25T06:53:13+00:00"},{"step":91,"tokens":372736,"train_seconds":8.844021600005362,"loss":5.47077751159668,"accuracy":0.186767578125,"penalty":0.0001626636948891609,"timestamp":"2026-11-25T06:53:14+00:00","raw_third":673489856.0},{"step":93,"tokens":380928,"train_seconds":9.525842300005024,"loss":5.439934730529785,"accuracy":0.185546875,"penalty":0.00024605255826282797,"timestamp":"2026-11-25T06:53:15+00:00","raw_third":1018751616.0},{"step":96,"tokens":393216,"train_seconds":9.63415040000109,"loss":5.417472839355469,"accuracy":0.1826171875,"dev_nll":5.391113440564368,"dev_accuracy":0.187744140625,"timestamp":"2026-11-25T06:53:15+00:00"},{"step":100,"tokens":409600,"train_seconds":10.418345399997634,"loss":5.29288911819458,"accuracy":0.191162109375,"penalty":0.00015742049189415352,"timestamp":"2026-11-25T06:53:16+00:00","raw_third":651780992.0},{"step":104,"tokens":425984,"train_seconds":10.546747399996093,"loss":5.301176071166992,"accuracy":0.20849609375,"timestamp":"2026-11-25T06:53:16+00:00"},{"step":106,"tokens":434176,"train_seconds":11.291683499999635,"loss":5.281104564666748,"accuracy":0.197021484375,"penalty":0.000218186902317304,"timestamp":"2026-11-25T06:53:17+00:00","raw_third":903377152.0},{"step":112,"tokens":458752,"train_seconds":11.525948700003937,"loss":5.2972822189331055,"accuracy":0.190185546875,"timestamp":"2026-11-25T06:53:17+00:00"},{"step":115,"tokens":471040,"train_seconds":12.311810900002456,"loss":5.178736686706543,"accuracy":0.203369140625,"penalty":0.0004808645386018131,"timestamp":"2026-11-25T06:53:18+00:00","raw_third":1990962944.0},{"step":120,"tokens":491520,"train_seconds":12.488106500004506,"loss":5.054182052612305,"accuracy":0.217529296875,"timestamp":"2026-11-25T06:53:18+00:00"},{"step":121,"tokens":495616,"train_seconds":13.121264900004462,"loss":5.056066513061523,"accuracy":0.2275390625,"penalty":0.00041062010833899034,"timestamp":"2026-11-25T06:53:19+00:00","raw_third":1700124160.0},{"step":126,"tokens":516096,"train_seconds":13.914733800007525,"loss":5.033808708190918,"accuracy":0.21826171875,"penalty":0.0005648814251666977,"timestamp":"2026-11-25T06:53:19+00:00","raw_third":2338824960.0},{"step":127,"tokens":520192,"train_seconds":14.571734600005584,"loss":5.098933219909668,"accuracy":0.2158203125,"penalty":0.0003410389598486734,"timestamp":"2026-11-25T06:53:20+00:00","raw_third":1412031616.0},{"step":128,"tokens":524288,"train_seconds":14.606057000004512,"loss":5.069682598114014,"accuracy":0.222900390625,"dev_nll":4.952766222239006,"dev_accuracy":0.2247314453125,"timestamp":"2026-11-25T06:53:20+00:00"},{"step":130,"tokens":532480,"train_seconds":15.323152900004061,"loss":4.942876815795898,"accuracy":0.22314453125,"penalty":0.0008288632425211174,"timestamp":"2026-11-25T06:53:21+00:00","raw_third":3431810560.0},{"step":131,"tokens":536576,"train_seconds":15.959046800002398,"loss":4.899041175842285,"accuracy":0.231201171875,"penalty":0.0006327301886332014,"timestamp":"2026-11-25T06:53:22+00:00","raw_third":2619744768.0},{"step":136,"tokens":557056,"train_seconds":16.120503400001326,"loss":4.889763355255127,"accuracy":0.224853515625,"timestamp":"2026-11-25T06:53:22+00:00"},{"step":144,"tokens":589824,"train_seconds":16.399112399998558,"loss":4.952497959136963,"accuracy":0.22021484375,"timestamp":"2026-11-25T06:53:22+00:00"},{"step":152,"tokens":622592,"train_seconds":16.656355499999336,"loss":4.7288818359375,"accuracy":0.232421875,"timestamp":"2026-11-25T06:53:23+00:00"},{"step":158,"tokens":647168,"train_seconds":17.476455600000918,"loss":4.59946870803833,"accuracy":0.25390625,"penalty":0.0007583815703882313,"timestamp":"2026-11-25T06:53:23+00:00","raw_third":3139989504.0},{"step":160,"tokens":655360,"train_seconds":17.539574900001753,"loss":4.74267578125,"accuracy":0.253662109375,"dev_nll":4.627732352295425,"dev_accuracy":0.2625732421875,"timestamp":"2026-11-25T06:53:24+00:00"},{"step":164,"tokens":671744,"train_seconds":18.302958700005547,"loss":4.728054523468018,"accuracy":0.2451171875,"penalty":0.0008054843144677189,"timestamp":"2026-11-25T06:53:25+00:00","raw_third":3335012864.0},{"step":168,"tokens":688128,"train_seconds":18.434402100003354,"loss":4.673685073852539,"accuracy":0.248046875,"timestamp":"2026-11-25T06:53:25+00:00"},{"step":173,"tokens":708608,"train_seconds":19.255212600004597,"loss":4.670571327209473,"accuracy":0.250244140625,"penalty":0.0013307266853805641,"timestamp":"2026-11-25T06:53:26+00:00","raw_third":5509716992.0},{"step":176,"tokens":720896,"train_seconds":19.397688600001857,"loss":4.610803604125977,"accuracy":0.260986328125,"timestamp":"2026-11-25T06:53:26+00:00"},{"step":178,"tokens":729088,"train_seconds":20.134997099998145,"loss":4.524724960327148,"accuracy":0.26025390625,"penalty":0.0009651665183728142,"timestamp":"2026-11-25T06:53:27+00:00","raw_third":3996158208.0},{"step":184,"tokens":753664,"train_seconds":20.330410599999595,"loss":4.474024772644043,"accuracy":0.2587890625,"timestamp":"2026-11-25T06:53:27+00:00"},{"step":188,"tokens":770048,"train_seconds":21.075920299994323,"loss":4.468923568725586,"accuracy":0.26123046875,"penalty":0.0013560335977947436,"timestamp":"2026-11-25T06:53:28+00:00","raw_third":5614497280.0},{"step":192,"tokens":786432,"train_seconds":21.202935599994817,"loss":4.574586868286133,"accuracy":0.25537109375,"dev_nll":4.398750557331368,"dev_accuracy":0.2728271484375,"timestamp":"2026-11-25T06:53:28+00:00"},{"step":200,"tokens":819200,"train_seconds":21.458769500000926,"loss":4.463833808898926,"accuracy":0.26416015625,"timestamp":"2026-11-25T06:53:28+00:00"},{"step":208,"tokens":851968,"train_seconds":21.74333810000462,"loss":4.428913116455078,"accuracy":0.2685546875,"timestamp":"2026-11-25T06:53:29+00:00"},{"step":216,"tokens":884736,"train_seconds":22.668458799998916,"loss":4.32763671875,"accuracy":0.278564453125,"penalty":0.0010329002779617266,"timestamp":"2026-11-25T06:53:30+00:00","raw_third":4276601856.0},{"step":221,"tokens":905216,"train_seconds":23.462999499992293,"loss":4.4579057693481445,"accuracy":0.259765625,"penalty":0.002603590097201679,"timestamp":"2026-11-25T06:53:30+00:00","raw_third":10779857920.0},{"step":224,"tokens":917504,"train_seconds":24.206114399992657,"loss":4.28486442565918,"accuracy":0.281005859375,"penalty":0.00120606037985015,"dev_nll":4.244475009327289,"dev_accuracy":0.2874755859375,"timestamp":"2026-11-25T06:53:31+00:00","raw_third":4993550848.0},{"step":225,"tokens":921600,"train_seconds":24.870238799991057,"loss":4.2461838722229,"accuracy":0.286865234375,"penalty":0.0032998935637467805,"timestamp":"2026-11-25T06:53:32+00:00","raw_third":13662820352.0},{"step":232,"tokens":950272,"train_seconds":25.103161399991222,"loss":4.236819744110107,"accuracy":0.293701171875,"timestamp":"2026-11-25T06:53:32+00:00"},{"step":240,"tokens":983040,"train_seconds":25.35344059999261,"loss":4.27744197845459,"accuracy":0.281982421875,"timestamp":"2026-11-25T06:53:33+00:00"},{"step":248,"tokens":1015808,"train_seconds":26.235951299986482,"loss":4.31925106048584,"accuracy":0.281494140625,"penalty":0.0018546336510524323,"timestamp":"2026-11-25T06:53:34+00:00","raw_third":7678892032.0},{"step":256,"tokens":1048576,"train_seconds":26.503902699983882,"loss":4.177909851074219,"accuracy":0.297119140625,"dev_nll":4.135103546315804,"dev_accuracy":0.2967529296875,"timestamp":"2026-11-25T06:53:34+00:00"},{"step":262,"tokens":1073152,"train_seconds":27.31949909998366,"loss":4.0494279861450195,"accuracy":0.298095703125,"penalty":0.00134843122318554,"timestamp":"2026-11-25T06:53:35+00:00","raw_third":5583020544.0},{"step":264,"tokens":1081344,"train_seconds":27.387194399983855,"loss":4.109385967254639,"accuracy":0.29345703125,"timestamp":"2026-11-25T06:53:35+00:00"},{"step":268,"tokens":1097728,"train_seconds":28.147003199981555,"loss":4.114870071411133,"accuracy":0.308837890625,"penalty":0.0017872751379866929,"timestamp":"2026-11-25T06:53:36+00:00","raw_third":7400002048.0},{"step":272,"tokens":1114112,"train_seconds":28.289321199979895,"loss":4.108563423156738,"accuracy":0.296875,"timestamp":"2026-11-25T06:53:36+00:00"},{"step":280,"tokens":1146880,"train_seconds":28.577853899980255,"loss":4.076873779296875,"accuracy":0.304443359375,"timestamp":"2026-11-25T06:53:36+00:00"},{"step":288,"tokens":1179648,"train_seconds":28.845880599979864,"loss":4.0791707038879395,"accuracy":0.30615234375,"dev_nll":4.046876813896233,"dev_accuracy":0.3045654296875,"timestamp":"2026-11-25T06:53:37+00:00"},{"step":296,"tokens":1212416,"train_seconds":29.107472599975154,"loss":4.1619696617126465,"accuracy":0.298095703125,"timestamp":"2026-11-25T06:53:37+00:00"},{"step":304,"tokens":1245184,"train_seconds":29.36811019997549,"loss":4.097478866577148,"accuracy":0.291259765625,"timestamp":"2026-11-25T06:53:38+00:00"},{"step":312,"tokens":1277952,"train_seconds":29.631841399968835,"loss":3.926828622817993,"accuracy":0.32177734375,"timestamp":"2026-11-25T06:53:38+00:00"},{"step":318,"tokens":1302528,"train_seconds":30.447788799967384,"loss":3.940347194671631,"accuracy":0.319091796875,"penalty":0.0026133424260214233,"timestamp":"2026-11-25T06:53:39+00:00","raw_third":10820236288.0},{"step":320,"tokens":1310720,"train_seconds":30.509777699968254,"loss":3.9894673824310303,"accuracy":0.3017578125,"dev_nll":3.9892090636712965,"dev_accuracy":0.30859375,"timestamp":"2026-11-25T06:53:39+00:00"},{"step":321,"tokens":1314816,"train_seconds":31.143040499970084,"loss":4.137908458709717,"accuracy":0.287841796875,"penalty":0.0011543367057729927,"timestamp":"2026-11-25T06:53:40+00:00","raw_third":4779395072.0},{"step":324,"tokens":1327104,"train_seconds":31.866908599964518,"loss":4.092827796936035,"accuracy":0.302490234375,"penalty":0.0015077349654052932,"timestamp":"2026-11-25T06:53:40+00:00","raw_third":6242598912.0},{"step":328,"tokens":1343488,"train_seconds":32.000305199962895,"loss":3.98630952835083,"accuracy":0.3115234375,"timestamp":"2026-11-25T06:53:41+00:00"},{"step":334,"tokens":1368064,"train_seconds":32.85341999996308,"loss":3.904413938522339,"accuracy":0.317626953125,"penalty":0.0020870221101613054,"timestamp":"2026-11-25T06:53:41+00:00","raw_third":8641069056.0},{"step":335,"tokens":1372160,"train_seconds":33.49670619996323,"loss":4.063231468200684,"accuracy":0.30078125,"penalty":0.001432725355657478,"timestamp":"2026-11-25T06:53:42+00:00","raw_third":5932030464.0},{"step":336,"tokens":1376256,"train_seconds":33.52565479996338,"loss":3.9229676723480225,"accuracy":0.323974609375,"timestamp":"2026-11-25T06:53:42+00:00"},{"step":344,"tokens":1409024,"train_seconds":33.78260459996454,"loss":4.052443504333496,"accuracy":0.29541015625,"timestamp":"2026-11-25T06:53:42+00:00"},{"step":352,"tokens":1441792,"train_seconds":34.04571979996035,"loss":4.114100933074951,"accuracy":0.29833984375,"dev_nll":3.9373448130500037,"dev_accuracy":0.315673828125,"timestamp":"2026-11-25T06:53:43+00:00"},{"step":360,"tokens":1474560,"train_seconds":34.304265799964924,"loss":3.974890947341919,"accuracy":0.314208984375,"timestamp":"2026-11-25T06:53:44+00:00"},{"step":367,"tokens":1503232,"train_seconds":35.20729249996657,"loss":3.885831117630005,"accuracy":0.321044921875,"penalty":0.0019983333456443774,"timestamp":"2026-11-25T06:53:45+00:00","raw_third":8273863680.0},{"step":368,"tokens":1507328,"train_seconds":35.24287239996556,"loss":3.9484519958496094,"accuracy":0.32080078125,"timestamp":"2026-11-25T06:53:45+00:00"},{"step":376,"tokens":1540096,"train_seconds":35.54825019996861,"loss":4.0268754959106445,"accuracy":0.30810546875,"timestamp":"2026-11-25T06:53:45+00:00"},{"step":384,"tokens":1572864,"train_seconds":35.81992599997102,"loss":3.9417507648468018,"accuracy":0.322265625,"dev_nll":3.9011770100623835,"dev_accuracy":0.32275390625,"timestamp":"2026-11-25T06:53:46+00:00"},{"step":388,"tokens":1589248,"train_seconds":36.599293099967326,"loss":3.920675754547119,"accuracy":0.319580078125,"penalty":0.0028374340354925414,"timestamp":"2026-11-25T06:53:48+00:00","raw_third":11748061184.0},{"step":389,"tokens":1593344,"train_seconds":37.346942599968315,"loss":3.9883546829223633,"accuracy":0.318603515625,"penalty":0.0022480710671385277,"timestamp":"2026-11-25T06:53:49+00:00","raw_third":9307873280.0},{"step":392,"tokens":1605632,"train_seconds":37.47129129996756,"loss":3.885087490081787,"accuracy":0.326904296875,"timestamp":"2026-11-25T06:53:49+00:00"},{"step":400,"tokens":1638400,"train_seconds":38.503013099969394,"loss":4.004014492034912,"accuracy":0.307861328125,"penalty":0.0028692834319408327,"timestamp":"2026-11-25T06:53:50+00:00","raw_third":11879929856.0},{"step":406,"tokens":1662976,"train_seconds":39.401476599963644,"loss":4.072839736938477,"accuracy":0.3017578125,"penalty":0.0026071198506231485,"timestamp":"2026-11-25T06:53:51+00:00","raw_third":10794472448.0},{"step":408,"tokens":1671168,"train_seconds":40.09422119996452,"loss":3.8903799057006836,"accuracy":0.33154296875,"penalty":0.0021371024653897407,"timestamp":"2026-11-25T06:53:52+00:00","raw_third":8848420864.0},{"step":415,"tokens":1699840,"train_seconds":40.951153299960424,"loss":3.8527297973632812,"accuracy":0.333251953125,"penalty":0.0025893320895820234,"timestamp":"2026-11-25T06:53:53+00:00","raw_third":10720824320.0},{"step":416,"tokens":1703936,"train_seconds":40.98504639996099,"loss":3.9771265983581543,"accuracy":0.3115234375,"dev_nll":3.8764175502292346,"dev_accuracy":0.3218994140625,"timestamp":"2026-11-25T06:53:53+00:00"},{"step":424,"tokens":1736704,"train_seconds":41.2668488999625,"loss":3.9343953132629395,"accuracy":0.321533203125,"timestamp":"2026-11-25T06:53:55+00:00"},{"step":432,"tokens":1769472,"train_seconds":41.55288769996696,"loss":3.855048656463623,"accuracy":0.327880859375,"timestamp":"2026-11-25T06:53:55+00:00"},{"step":439,"tokens":1798144,"train_seconds":42.40202559997124,"loss":3.86661434173584,"accuracy":0.322509765625,"penalty":0.002411990421972363,"timestamp":"2026-11-25T06:53:56+00:00","raw_third":9986562048.0},{"step":440,"tokens":1802240,"train_seconds":42.43137719997321,"loss":3.9732091426849365,"accuracy":0.31689453125,"timestamp":"2026-11-25T06:53:56+00:00"},{"step":441,"tokens":1806336,"train_seconds":43.05345439997109,"loss":3.9334938526153564,"accuracy":0.33056640625,"penalty":0.0026534713596957898,"timestamp":"2026-11-25T06:53:56+00:00","raw_third":10986385408.0},{"step":448,"tokens":1835008,"train_seconds":43.280059999968216,"loss":3.7405543327331543,"accuracy":0.345703125,"dev_nll":3.854529206699226,"dev_accuracy":0.3236083984375,"timestamp":"2026-11-25T06:53:57+00:00"},{"step":456,"tokens":1867776,"train_seconds":43.576809399964986,"loss":3.9720683097839355,"accuracy":0.309326171875,"timestamp":"2026-11-25T06:53:57+00:00"},{"step":463,"tokens":1896448,"train_seconds":44.481535599967174,"loss":3.8821299076080322,"accuracy":0.31982421875,"penalty":0.0019127460996799961,"timestamp":"2026-11-25T06:53:58+00:00","raw_third":7919499776.0},{"step":464,"tokens":1900544,"train_seconds":44.51567539996904,"loss":3.9288105964660645,"accuracy":0.316162109375,"timestamp":"2026-11-25T06:53:58+00:00"},{"step":469,"tokens":1921024,"train_seconds":45.34516969997276,"loss":3.9381537437438965,"accuracy":0.315673828125,"penalty":0.0034487360338884766,"timestamp":"2026-11-25T06:53:59+00:00","raw_third":14279085056.0},{"step":472,"tokens":1933312,"train_seconds":45.45308899997326,"loss":3.876171112060547,"accuracy":0.336669921875,"timestamp":"2026-11-25T06:53:59+00:00"},{"step":475,"tokens":1945600,"train_seconds":46.185072699976445,"loss":3.891139030456543,"accuracy":0.317626953125,"penalty":0.002577280425170953,"timestamp":"2026-11-25T06:54:00+00:00","raw_third":10670925824.0},{"step":480,"tokens":1966080,"train_seconds":46.96660219997648,"loss":3.9555654525756836,"accuracy":0.314208984375,"penalty":0.0037749238814423357,"dev_nll":3.8413407870102674,"dev_accuracy":0.325927734375,"timestamp":"2026-11-25T06:54:01+00:00","raw_third":15629627392.0},{"step":487,"tokens":1994752,"train_seconds":47.831102699979965,"loss":3.8127408027648926,"accuracy":0.33056640625,"penalty":0.003068358359213585,"timestamp":"2026-11-25T06:54:02+00:00","raw_third":12704176128.0},{"step":488,"tokens":1998848,"train_seconds":47.86804109998047,"loss":3.8884990215301514,"accuracy":0.328857421875,"timestamp":"2026-11-25T06:54:02+00:00"},{"step":496,"tokens":2031616,"train_seconds":48.14906749997681,"loss":3.8385584354400635,"accuracy":0.315185546875,"timestamp":"2026-11-25T06:54:02+00:00"},{"step":504,"tokens":2064384,"train_seconds":48.421238999973866,"loss":3.716902732849121,"accuracy":0.335693359375,"timestamp":"2026-11-25T06:54:03+00:00"},{"step":506,"tokens":2072576,"train_seconds":49.14197629997216,"loss":3.9660849571228027,"accuracy":0.307373046875,"penalty":0.0033244546821977845,"timestamp":"2026-11-25T06:54:03+00:00","raw_third":13764512768.0},{"step":512,"tokens":2097152,"train_seconds":49.36696609996943,"loss":3.870722770690918,"accuracy":0.32373046875,"dev_nll":3.829090001003351,"dev_accuracy":0.3262939453125,"timestamp":"2026-11-25T06:54:04+00:00"}],"samples":[{"timestamp":"2026-11-25T06:54:07+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:54:07+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:54:08+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-third-r03","stage":"stories","method":"third","phase":"pilot","seed":0,"ratio":0.03,"coefficients":{"third":9.0571350169579e-14},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":45.51917279998088,"steps":512,"dev_nll":3.877776555228787,"dev_accuracy":0.3230521363305447,"tokens_per_sec":46071.83898563466,"peak_vram_mb":608.55615234375,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"52f02eee47ebd6c3cecaa952f530b6878e13b3fbefd2e6800a5736b4e5f1ceaf","dev_tokens":715643,"git_revision":"0bbcca50d840ef73353b2f917558c9ece707e027","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.830007326469058,"finished_at":"2026-11-25T06:48:17+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.27536999999938416,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:47:20+00:00"},{"step":2,"tokens":8192,"train_seconds":1.0293918999996094,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.01108475632591241,"timestamp":"2026-11-25T06:47:20+00:00","raw_third":15298375680.0},{"step":8,"tokens":32768,"train_seconds":1.235279200005607,"loss":8.159893035888672,"accuracy":0.0517578125,"timestamp":"2026-11-25T06:47:21+00:00"},{"step":11,"tokens":45056,"train_seconds":2.070145200010302,"loss":8.030431747436523,"accuracy":0.067138671875,"penalty":0.0031313715806076236,"timestamp":"2026-11-25T06:47:22+00:00","raw_third":4321691648.0},{"step":16,"tokens":65536,"train_seconds":2.259935600010067,"loss":7.808216094970703,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:47:22+00:00"},{"step":22,"tokens":90112,"train_seconds":3.244974100009131,"loss":7.606253623962402,"accuracy":0.067138671875,"penalty":3.937223540367762e-05,"timestamp":"2026-11-25T06:47:23+00:00","raw_third":54338700.0},{"step":24,"tokens":98304,"train_seconds":3.3251516000091215,"loss":7.485622406005859,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:47:23+00:00"},{"step":25,"tokens":102400,"train_seconds":4.0373891000090225,"loss":7.455443382263184,"accuracy":0.072265625,"penalty":7.949707380387476e-05,"timestamp":"2026-11-25T06:47:24+00:00","raw_third":109716088.0},{"step":32,"tokens":131072,"train_seconds":4.2822678000011365,"loss":7.083854675292969,"accuracy":0.072509765625,"dev_nll":7.0449229283840396,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:47:24+00:00"},{"step":40,"tokens":163840,"train_seconds":4.574256800005969,"loss":6.678713321685791,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:47:24+00:00"},{"step":48,"tokens":196608,"train_seconds":4.873563000004651,"loss":6.476114273071289,"accuracy":0.079833984375,"timestamp":"2026-11-25T06:47:25+00:00"},{"step":50,"tokens":204800,"train_seconds":5.6047970000036,"loss":6.384401321411133,"accuracy":0.1044921875,"penalty":3.6920719656084385e-05,"timestamp":"2026-11-25T06:47:26+00:00","raw_third":50955296.0},{"step":56,"tokens":229376,"train_seconds":5.822698900006799,"loss":6.203944206237793,"accuracy":0.093017578125,"timestamp":"2026-11-25T06:47:26+00:00"},{"step":64,"tokens":262144,"train_seconds":6.102014100011729,"loss":6.019924163818359,"accuracy":0.119873046875,"dev_nll":5.957088285649661,"dev_accuracy":0.104736328125,"timestamp":"2026-11-25T06:47:26+00:00"},{"step":72,"tokens":294912,"train_seconds":6.39388960001088,"loss":5.879615306854248,"accuracy":0.13427734375,"timestamp":"2026-11-25T06:47:27+00:00"},{"step":74,"tokens":303104,"train_seconds":7.094081300008838,"loss":5.802158355712891,"accuracy":0.147705078125,"penalty":0.00027631619963123535,"timestamp":"2026-11-25T06:47:28+00:00","raw_third":381351552.0},{"step":80,"tokens":327680,"train_seconds":7.301644000010128,"loss":5.688830375671387,"accuracy":0.14208984375,"timestamp":"2026-11-25T06:47:28+00:00"},{"step":84,"tokens":344064,"train_seconds":8.05251560000761,"loss":5.599686622619629,"accuracy":0.154052734375,"penalty":0.00043687802862480004,"timestamp":"2026-11-25T06:47:28+00:00","raw_third":602947328.0},{"step":86,"tokens":352256,"train_seconds":8.727194300008705,"loss":5.504544258117676,"accuracy":0.1826171875,"penalty":0.0011485060710091542,"timestamp":"2026-11-25T06:47:29+00:00","raw_third":1585084672.0},{"step":88,"tokens":360448,"train_seconds":8.798741200011136,"loss":5.576965808868408,"accuracy":0.169921875,"timestamp":"2026-11-25T06:47:29+00:00"},{"step":91,"tokens":372736,"train_seconds":9.519225600008212,"loss":5.473738670349121,"accuracy":0.186279296875,"penalty":0.0004944241604427787,"timestamp":"2026-11-25T06:47:30+00:00","raw_third":682368320.0},{"step":93,"tokens":380928,"train_seconds":10.333470600005967,"loss":5.442536354064941,"accuracy":0.18505859375,"penalty":0.0007540845988941315,"timestamp":"2026-11-25T06:47:31+00:00","raw_third":1040732800.0},{"step":96,"tokens":393216,"train_seconds":10.451692900005582,"loss":5.420363426208496,"accuracy":0.18212890625,"dev_nll":5.39416782342596,"dev_accuracy":0.1866455078125,"timestamp":"2026-11-25T06:47:31+00:00"},{"step":100,"tokens":409600,"train_seconds":11.232289100000344,"loss":5.2961835861206055,"accuracy":0.188720703125,"penalty":0.0004538458305677117,"timestamp":"2026-11-25T06:47:32+00:00","raw_third":626365056.0},{"step":104,"tokens":425984,"train_seconds":11.37205030000041,"loss":5.302970886230469,"accuracy":0.20751953125,"timestamp":"2026-11-25T06:47:32+00:00"},{"step":106,"tokens":434176,"train_seconds":12.07596420000118,"loss":5.283778190612793,"accuracy":0.196533203125,"penalty":0.000627243019751094,"timestamp":"2026-11-25T06:47:33+00:00","raw_third":865675264.0},{"step":112,"tokens":458752,"train_seconds":12.302147499998682,"loss":5.299878120422363,"accuracy":0.18896484375,"timestamp":"2026-11-25T06:47:33+00:00"},{"step":115,"tokens":471040,"train_seconds":13.028656700000283,"loss":5.1809210777282715,"accuracy":0.202392578125,"penalty":0.0013621354191215474,"timestamp":"2026-11-25T06:47:34+00:00","raw_third":1879920384.0},{"step":120,"tokens":491520,"train_seconds":13.212748199999623,"loss":5.056612968444824,"accuracy":0.217041015625,"timestamp":"2026-11-25T06:47:34+00:00"},{"step":121,"tokens":495616,"train_seconds":13.869837799997185,"loss":5.058486461639404,"accuracy":0.22705078125,"penalty":0.0012072111915015845,"timestamp":"2026-11-25T06:47:35+00:00","raw_third":1666105216.0},{"step":126,"tokens":516096,"train_seconds":14.574724799997057,"loss":5.035462856292725,"accuracy":0.218017578125,"penalty":0.0016293843977102699,"timestamp":"2026-11-25T06:47:35+00:00","raw_third":2248758016.0},{"step":127,"tokens":520192,"train_seconds":15.22194149999632,"loss":5.1008076667785645,"accuracy":0.21435546875,"penalty":0.000999579481095704,"timestamp":"2026-11-25T06:47:36+00:00","raw_third":1379547008.0},{"step":128,"tokens":524288,"train_seconds":15.255736399998568,"loss":5.071892738342285,"accuracy":0.22314453125,"dev_nll":4.954400842601899,"dev_accuracy":0.224853515625,"timestamp":"2026-11-25T06:47:36+00:00"},{"step":130,"tokens":532480,"train_seconds":15.873722099997394,"loss":4.945182800292969,"accuracy":0.2236328125,"penalty":0.002447120025793759,"timestamp":"2026-11-25T06:47:37+00:00","raw_third":3377337344.0},{"step":131,"tokens":536576,"train_seconds":16.439717099998234,"loss":4.900602340698242,"accuracy":0.229736328125,"penalty":0.001851196642693536,"timestamp":"2026-11-25T06:47:38+00:00","raw_third":2554887168.0},{"step":136,"tokens":557056,"train_seconds":16.594672699997318,"loss":4.891938209533691,"accuracy":0.223388671875,"timestamp":"2026-11-25T06:47:38+00:00"},{"step":144,"tokens":589824,"train_seconds":16.85378219999984,"loss":4.954427719116211,"accuracy":0.218505859375,"timestamp":"2026-11-25T06:47:38+00:00"},{"step":152,"tokens":622592,"train_seconds":17.086284899996826,"loss":4.729840278625488,"accuracy":0.2314453125,"timestamp":"2026-11-25T06:47:39+00:00"},{"step":158,"tokens":647168,"train_seconds":17.841514899995673,"loss":4.601099014282227,"accuracy":0.254150390625,"penalty":0.002275268989548542,"timestamp":"2026-11-25T06:47:39+00:00","raw_third":3140161024.0},{"step":160,"tokens":655360,"train_seconds":17.89986279999357,"loss":4.743803024291992,"accuracy":0.25341796875,"dev_nll":4.629818088549655,"dev_accuracy":0.26220703125,"timestamp":"2026-11-25T06:47:39+00:00"},{"step":164,"tokens":671744,"train_seconds":18.572575999995024,"loss":4.729136943817139,"accuracy":0.2451171875,"penalty":0.002374450188484552,"timestamp":"2026-11-25T06:47:40+00:00","raw_third":3277043712.0},{"step":168,"tokens":688128,"train_seconds":18.694801799993,"loss":4.674386978149414,"accuracy":0.246826171875,"timestamp":"2026-11-25T06:47:41+00:00"},{"step":173,"tokens":708608,"train_seconds":19.370489799988718,"loss":4.671074390411377,"accuracy":0.251220703125,"penalty":0.004085014524955662,"timestamp":"2026-11-25T06:47:41+00:00","raw_third":5637840384.0},{"step":176,"tokens":720896,"train_seconds":19.468945899985556,"loss":4.6110734939575195,"accuracy":0.258544921875,"timestamp":"2026-11-25T06:47:41+00:00"},{"step":178,"tokens":729088,"train_seconds":20.234437899987824,"loss":4.52642297744751,"accuracy":0.261474609375,"penalty":0.0027170886605973913,"timestamp":"2026-11-25T06:47:42+00:00","raw_third":3749928448.0},{"step":184,"tokens":753664,"train_seconds":20.42209529998945,"loss":4.4752397537231445,"accuracy":0.25927734375,"timestamp":"2026-11-25T06:47:42+00:00"},{"step":188,"tokens":770048,"train_seconds":21.03897099999449,"loss":4.470760345458984,"accuracy":0.260986328125,"penalty":0.003955490851348057,"timestamp":"2026-11-25T06:47:43+00:00","raw_third":5459081216.0},{"step":192,"tokens":786432,"train_seconds":21.16796159999285,"loss":4.575964450836182,"accuracy":0.25537109375,"dev_nll":4.400342190521769,"dev_accuracy":0.2728271484375,"timestamp":"2026-11-25T06:47:43+00:00"},{"step":200,"tokens":819200,"train_seconds":21.42032990000007,"loss":4.464354515075684,"accuracy":0.26318359375,"timestamp":"2026-11-25T06:47:44+00:00"},{"step":208,"tokens":851968,"train_seconds":21.648882699995738,"loss":4.430103302001953,"accuracy":0.269775390625,"timestamp":"2026-11-25T06:47:44+00:00"},{"step":216,"tokens":884736,"train_seconds":22.399251999991975,"loss":4.328372001647949,"accuracy":0.279052734375,"penalty":0.0029664619558256687,"timestamp":"2026-11-25T06:47:45+00:00","raw_third":4094095360.0},{"step":221,"tokens":905216,"train_seconds":23.114770599997428,"loss":4.459129810333252,"accuracy":0.25927734375,"penalty":0.007736353137316941,"timestamp":"2026-11-25T06:47:46+00:00","raw_third":10677152768.0},{"step":224,"tokens":917504,"train_seconds":23.735476399997424,"loss":4.2860612869262695,"accuracy":0.281005859375,"penalty":0.0034973443394837427,"dev_nll":4.245621014822973,"dev_accuracy":0.28759765625,"timestamp":"2026-11-25T06:47:46+00:00","raw_third":4826780672.0},{"step":225,"tokens":921600,"train_seconds":24.305651899998338,"loss":4.247793197631836,"accuracy":0.286865234375,"penalty":0.009158619446777864,"timestamp":"2026-11-25T06:47:47+00:00","raw_third":12640061440.0},{"step":232,"tokens":950272,"train_seconds":24.530098200000793,"loss":4.236553192138672,"accuracy":0.29296875,"timestamp":"2026-11-25T06:47:48+00:00"},{"step":240,"tokens":983040,"train_seconds":24.757779200008372,"loss":4.277517795562744,"accuracy":0.28125,"timestamp":"2026-11-25T06:47:48+00:00"},{"step":248,"tokens":1015808,"train_seconds":25.506774800003768,"loss":4.321085453033447,"accuracy":0.28076171875,"penalty":0.005376049909697124,"timestamp":"2026-11-25T06:47:49+00:00","raw_third":7419633664.0},{"step":256,"tokens":1048576,"train_seconds":25.767569400006323,"loss":4.179205894470215,"accuracy":0.296875,"dev_nll":4.135424121224787,"dev_accuracy":0.2957763671875,"timestamp":"2026-11-25T06:47:49+00:00"},{"step":262,"tokens":1073152,"train_seconds":26.502238700002636,"loss":4.049620628356934,"accuracy":0.29638671875,"penalty":0.0039450269824082475,"timestamp":"2026-11-25T06:47:50+00:00","raw_third":5444639744.0},{"step":264,"tokens":1081344,"train_seconds":26.56594810000388,"loss":4.109600067138672,"accuracy":0.29345703125,"timestamp":"2026-11-25T06:47:50+00:00"},{"step":268,"tokens":1097728,"train_seconds":27.276405200005684,"loss":4.115225791931152,"accuracy":0.30859375,"penalty":0.005001041184864579,"timestamp":"2026-11-25T06:47:51+00:00","raw_third":6902073856.0},{"step":272,"tokens":1114112,"train_seconds":27.43224810000538,"loss":4.109005928039551,"accuracy":0.29638671875,"timestamp":"2026-11-25T06:47:51+00:00"},{"step":280,"tokens":1146880,"train_seconds":27.67269380000289,"loss":4.077973365783691,"accuracy":0.302978515625,"timestamp":"2026-11-25T06:47:51+00:00"},{"step":288,"tokens":1179648,"train_seconds":27.91653779999615,"loss":4.079954147338867,"accuracy":0.30615234375,"dev_nll":4.047636100876844,"dev_accuracy":0.3046875,"timestamp":"2026-11-25T06:47:52+00:00"},{"step":296,"tokens":1212416,"train_seconds":28.151066400001582,"loss":4.163116455078125,"accuracy":0.29736328125,"timestamp":"2026-11-25T06:47:52+00:00"},{"step":304,"tokens":1245184,"train_seconds":28.39341040000363,"loss":4.0986528396606445,"accuracy":0.291748046875,"timestamp":"2026-11-25T06:47:53+00:00"},{"step":312,"tokens":1277952,"train_seconds":28.62774690000151,"loss":3.9278035163879395,"accuracy":0.3212890625,"timestamp":"2026-11-25T06:47:53+00:00"},{"step":318,"tokens":1302528,"train_seconds":29.35406779999903,"loss":3.941164970397949,"accuracy":0.317626953125,"penalty":0.007671730603597125,"timestamp":"2026-11-25T06:47:54+00:00","raw_third":10587965440.0},{"step":320,"tokens":1310720,"train_seconds":29.413623799999186,"loss":3.9908087253570557,"accuracy":0.30224609375,"dev_nll":3.9897720195294823,"dev_accuracy":0.3089599609375,"timestamp":"2026-11-25T06:47:54+00:00"},{"step":321,"tokens":1314816,"train_seconds":29.972120700000232,"loss":4.1382222175598145,"accuracy":0.288818359375,"penalty":0.0033142158746098205,"timestamp":"2026-11-25T06:47:55+00:00","raw_third":4574040064.0},{"step":324,"tokens":1327104,"train_seconds":30.609337299996696,"loss":4.093118190765381,"accuracy":0.302490234375,"penalty":0.004210524192255079,"timestamp":"2026-11-25T06:47:55+00:00","raw_third":5811059712.0},{"step":328,"tokens":1343488,"train_seconds":30.73336980000022,"loss":3.9880623817443848,"accuracy":0.310791015625,"timestamp":"2026-11-25T06:47:55+00:00"},{"step":334,"tokens":1368064,"train_seconds":31.414155599999503,"loss":3.9053432941436768,"accuracy":0.3173828125,"penalty":0.005993619248441536,"timestamp":"2026-11-25T06:47:56+00:00","raw_third":8271958016.0},{"step":335,"tokens":1372160,"train_seconds":32.004052299998875,"loss":4.063889026641846,"accuracy":0.300537109375,"penalty":0.004103749398575789,"timestamp":"2026-11-25T06:47:57+00:00","raw_third":5663696896.0},{"step":336,"tokens":1376256,"train_seconds":32.03190149999864,"loss":3.924250841140747,"accuracy":0.324462890625,"timestamp":"2026-11-25T06:47:57+00:00"},{"step":344,"tokens":1409024,"train_seconds":32.27943910000249,"loss":4.053962707519531,"accuracy":0.29638671875,"timestamp":"2026-11-25T06:47:57+00:00"},{"step":352,"tokens":1441792,"train_seconds":32.516942099995504,"loss":4.114105224609375,"accuracy":0.2978515625,"dev_nll":3.937863936938811,"dev_accuracy":0.315673828125,"timestamp":"2026-11-25T06:47:57+00:00"},{"step":360,"tokens":1474560,"train_seconds":32.766581999989285,"loss":3.976013660430908,"accuracy":0.3125,"timestamp":"2026-11-25T06:47:58+00:00"},{"step":367,"tokens":1503232,"train_seconds":33.47113449999233,"loss":3.886423110961914,"accuracy":0.320068359375,"penalty":0.005772466049872918,"timestamp":"2026-11-25T06:47:59+00:00","raw_third":7966738432.0},{"step":368,"tokens":1507328,"train_seconds":33.49890049999158,"loss":3.9496374130249023,"accuracy":0.320068359375,"timestamp":"2026-11-25T06:47:59+00:00"},{"step":376,"tokens":1540096,"train_seconds":33.73038199999428,"loss":4.0276689529418945,"accuracy":0.307861328125,"timestamp":"2026-11-25T06:47:59+00:00"},{"step":384,"tokens":1572864,"train_seconds":33.94972879999477,"loss":3.9422473907470703,"accuracy":0.3212890625,"dev_nll":3.9019918889098335,"dev_accuracy":0.321533203125,"timestamp":"2026-11-25T06:47:59+00:00"},{"step":388,"tokens":1589248,"train_seconds":34.56250159999763,"loss":3.9214401245117188,"accuracy":0.318359375,"penalty":0.008080119018410426,"timestamp":"2026-11-25T06:48:00+00:00","raw_third":11151593472.0},{"step":389,"tokens":1593344,"train_seconds":35.154053099999146,"loss":3.988705635070801,"accuracy":0.31689453125,"penalty":0.006471025570980144,"timestamp":"2026-11-25T06:48:01+00:00","raw_third":8930839552.0},{"step":392,"tokens":1605632,"train_seconds":35.244214099999226,"loss":3.886504650115967,"accuracy":0.327392578125,"timestamp":"2026-11-25T06:48:01+00:00"},{"step":400,"tokens":1638400,"train_seconds":36.00502059999053,"loss":4.004941940307617,"accuracy":0.30712890625,"penalty":0.008070883094099092,"timestamp":"2026-11-25T06:48:02+00:00","raw_third":11138846720.0},{"step":406,"tokens":1662976,"train_seconds":36.69269359999453,"loss":4.0730156898498535,"accuracy":0.30029296875,"penalty":0.007382891316401757,"timestamp":"2026-11-25T06:48:02+00:00","raw_third":10189330432.0},{"step":408,"tokens":1671168,"train_seconds":37.34649449999415,"loss":3.891559600830078,"accuracy":0.33154296875,"penalty":0.0054545608310472195,"timestamp":"2026-11-25T06:48:03+00:00","raw_third":7527988736.0},{"step":415,"tokens":1699840,"train_seconds":38.219262999999046,"loss":3.853794574737549,"accuracy":0.33447265625,"penalty":0.00738147120400363,"timestamp":"2026-11-25T06:48:04+00:00","raw_third":10187370496.0},{"step":416,"tokens":1703936,"train_seconds":38.24897129999954,"loss":3.977473497390747,"accuracy":0.310546875,"dev_nll":3.877548711374402,"dev_accuracy":0.3209228515625,"timestamp":"2026-11-25T06:48:04+00:00"},{"step":424,"tokens":1736704,"train_seconds":38.49793049999789,"loss":3.934830665588379,"accuracy":0.320556640625,"timestamp":"2026-11-25T06:48:05+00:00"},{"step":432,"tokens":1769472,"train_seconds":38.74343239999871,"loss":3.855945348739624,"accuracy":0.32666015625,"timestamp":"2026-11-25T06:48:05+00:00"},{"step":439,"tokens":1798144,"train_seconds":39.53960609999922,"loss":3.8673949241638184,"accuracy":0.321533203125,"penalty":0.007063318541350985,"timestamp":"2026-11-25T06:48:06+00:00","raw_third":9748279296.0},{"step":440,"tokens":1802240,"train_seconds":39.57975290000104,"loss":3.974270820617676,"accuracy":0.317138671875,"timestamp":"2026-11-25T06:48:06+00:00"},{"step":441,"tokens":1806336,"train_seconds":40.19184369999857,"loss":3.9341952800750732,"accuracy":0.327880859375,"penalty":0.007478908424783005,"timestamp":"2026-11-25T06:48:06+00:00","raw_third":10321846272.0},{"step":448,"tokens":1835008,"train_seconds":40.38970469999913,"loss":3.7415928840637207,"accuracy":0.344970703125,"dev_nll":3.8554077394364867,"dev_accuracy":0.3238525390625,"timestamp":"2026-11-25T06:48:07+00:00"},{"step":456,"tokens":1867776,"train_seconds":40.63065749999805,"loss":3.972921133041382,"accuracy":0.308837890625,"timestamp":"2026-11-25T06:48:07+00:00"},{"step":463,"tokens":1896448,"train_seconds":41.37242289999995,"loss":3.883253574371338,"accuracy":0.31982421875,"penalty":0.005471413350877352,"timestamp":"2026-11-25T06:48:08+00:00","raw_third":7551247360.0},{"step":464,"tokens":1900544,"train_seconds":41.40255739999702,"loss":3.9297356605529785,"accuracy":0.3154296875,"timestamp":"2026-11-25T06:48:08+00:00"},{"step":469,"tokens":1921024,"train_seconds":42.074121099994954,"loss":3.938202142715454,"accuracy":0.31591796875,"penalty":0.009999337857837479,"timestamp":"2026-11-25T06:48:09+00:00","raw_third":13800359936.0},{"step":472,"tokens":1933312,"train_seconds":42.162240799993015,"loss":3.8775291442871094,"accuracy":0.336181640625,"timestamp":"2026-11-25T06:48:09+00:00"},{"step":475,"tokens":1945600,"train_seconds":42.80979729999308,"loss":3.891343355178833,"accuracy":0.3173828125,"penalty":0.007225520752266289,"timestamp":"2026-11-25T06:48:10+00:00","raw_third":9972139008.0},{"step":480,"tokens":1966080,"train_seconds":43.50236589999622,"loss":3.9566285610198975,"accuracy":0.3134765625,"penalty":0.010721856025469231,"dev_nll":3.84216173258028,"dev_accuracy":0.3250732421875,"timestamp":"2026-11-25T06:48:10+00:00","raw_third":14797527040.0},{"step":487,"tokens":1994752,"train_seconds":44.2600617999924,"loss":3.8132033348083496,"accuracy":0.33056640625,"penalty":0.008586564932981594,"timestamp":"2026-11-25T06:48:11+00:00","raw_third":11850553344.0},{"step":488,"tokens":1998848,"train_seconds":44.28838789999281,"loss":3.8894710540771484,"accuracy":0.327392578125,"timestamp":"2026-11-25T06:48:11+00:00"},{"step":496,"tokens":2031616,"train_seconds":44.54062319998775,"loss":3.838894844055176,"accuracy":0.315185546875,"timestamp":"2026-11-25T06:48:12+00:00"},{"step":504,"tokens":2064384,"train_seconds":44.795564699983515,"loss":3.717801094055176,"accuracy":0.3369140625,"timestamp":"2026-11-25T06:48:12+00:00"},{"step":506,"tokens":2072576,"train_seconds":45.3522670999846,"loss":3.9668948650360107,"accuracy":0.30615234375,"penalty":0.00963038019186749,"timestamp":"2026-11-25T06:48:12+00:00","raw_third":13291151360.0},{"step":512,"tokens":2097152,"train_seconds":45.51917279998088,"loss":3.8718202114105225,"accuracy":0.322509765625,"dev_nll":3.830007326469058,"dev_accuracy":0.3258056640625,"timestamp":"2026-11-25T06:48:13+00:00"}],"samples":[{"timestamp":"2026-11-25T06:48:16+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:48:16+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:48:17+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-third-r10","stage":"stories","method":"third","phase":"pilot","seed":0,"ratio":0.1,"coefficients":{"third":3.0190450056526337e-13},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":47.76995250006803,"steps":512,"dev_nll":3.882709015387265,"dev_accuracy":0.32221652416078966,"tokens_per_sec":43901.06940125204,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"05891b63e40aade6258e559100b90a3576624ac48e0b2e87828ceeddebcba698","dev_tokens":715643,"git_revision":"17179703ce4bc7c661ed2d83f3506a0c6727b9b8","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.834779627621174,"finished_at":"2026-11-25T06:55:24+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.061136700001952704,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:54:26+00:00"},{"step":2,"tokens":8192,"train_seconds":0.8208841000014218,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.036949187753041374,"timestamp":"2026-11-25T06:54:27+00:00","raw_third":15298375680.0},{"step":8,"tokens":32768,"train_seconds":1.0298965000038152,"loss":8.16560173034668,"accuracy":0.050048828125,"timestamp":"2026-11-25T06:54:27+00:00"},{"step":11,"tokens":45056,"train_seconds":1.830167000003712,"loss":8.037408828735352,"accuracy":0.06689453125,"penalty":0.010754796598493724,"timestamp":"2026-11-25T06:54:28+00:00","raw_third":4452896768.0},{"step":16,"tokens":65536,"train_seconds":2.017764000003808,"loss":7.813867568969727,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:54:28+00:00"},{"step":22,"tokens":90112,"train_seconds":2.875557100003789,"loss":7.611563205718994,"accuracy":0.067138671875,"penalty":0.00013245894277111021,"timestamp":"2026-11-25T06:54:29+00:00","raw_third":54843064.0},{"step":24,"tokens":98304,"train_seconds":2.9598547000059625,"loss":7.490940093994141,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:54:29+00:00"},{"step":25,"tokens":102400,"train_seconds":3.6707867000041006,"loss":7.4610419273376465,"accuracy":0.072265625,"penalty":0.00026488592713940856,"timestamp":"2026-11-25T06:54:30+00:00","raw_third":109672896.0},{"step":32,"tokens":131072,"train_seconds":3.939051400007884,"loss":7.088998794555664,"accuracy":0.072509765625,"dev_nll":7.050363176153041,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:54:30+00:00"},{"step":40,"tokens":163840,"train_seconds":4.233785600004921,"loss":6.684528350830078,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:54:31+00:00"},{"step":48,"tokens":196608,"train_seconds":4.530907300009858,"loss":6.484193801879883,"accuracy":0.075927734375,"timestamp":"2026-11-25T06:54:31+00:00"},{"step":50,"tokens":204800,"train_seconds":5.2969970000085596,"loss":6.391339302062988,"accuracy":0.1015625,"penalty":7.144588844717793e-05,"timestamp":"2026-11-25T06:54:32+00:00","raw_third":29581328.0},{"step":56,"tokens":229376,"train_seconds":5.560716900003172,"loss":6.208914756774902,"accuracy":0.09326171875,"timestamp":"2026-11-25T06:54:32+00:00"},{"step":64,"tokens":262144,"train_seconds":5.873620699996536,"loss":6.0254669189453125,"accuracy":0.117919921875,"dev_nll":5.962941620324273,"dev_accuracy":0.102783203125,"timestamp":"2026-11-25T06:54:33+00:00"},{"step":72,"tokens":294912,"train_seconds":6.164627400001336,"loss":5.887021541595459,"accuracy":0.134765625,"timestamp":"2026-11-25T06:54:33+00:00"},{"step":74,"tokens":303104,"train_seconds":6.877816000003804,"loss":5.809077739715576,"accuracy":0.1474609375,"penalty":0.0007348407712856208,"timestamp":"2026-11-25T06:54:34+00:00","raw_third":304252160.0},{"step":80,"tokens":327680,"train_seconds":7.1328600000088045,"loss":5.698955535888672,"accuracy":0.141845703125,"timestamp":"2026-11-25T06:54:34+00:00"},{"step":84,"tokens":344064,"train_seconds":7.942726500012213,"loss":5.609257221221924,"accuracy":0.1533203125,"penalty":0.0014070288521504475,"timestamp":"2026-11-25T06:54:35+00:00","raw_third":582563712.0},{"step":86,"tokens":352256,"train_seconds":8.69704330001332,"loss":5.514256477355957,"accuracy":0.1787109375,"penalty":0.0036394980357126274,"timestamp":"2026-11-25T06:54:36+00:00","raw_third":1506891264.0},{"step":88,"tokens":360448,"train_seconds":8.760250500014081,"loss":5.586699485778809,"accuracy":0.16748046875,"timestamp":"2026-11-25T06:54:36+00:00"},{"step":91,"tokens":372736,"train_seconds":9.49746370001958,"loss":5.484190940856934,"accuracy":0.1845703125,"penalty":0.0014642341613209783,"timestamp":"2026-11-25T06:54:37+00:00","raw_third":606248896.0},{"step":93,"tokens":380928,"train_seconds":10.15796560002127,"loss":5.452515602111816,"accuracy":0.184326171875,"penalty":0.002474293587167338,"timestamp":"2026-11-25T06:54:37+00:00","raw_third":1024452096.0},{"step":96,"tokens":393216,"train_seconds":10.249837600018509,"loss":5.4310455322265625,"accuracy":0.179931640625,"dev_nll":5.40612451735069,"dev_accuracy":0.1842041015625,"timestamp":"2026-11-25T06:54:38+00:00"},{"step":100,"tokens":409600,"train_seconds":10.97274660002222,"loss":5.308391571044922,"accuracy":0.18701171875,"penalty":0.0012929855042571772,"timestamp":"2026-11-25T06:54:39+00:00","raw_third":535345408.0},{"step":104,"tokens":425984,"train_seconds":11.103821500026243,"loss":5.310665130615234,"accuracy":0.20849609375,"timestamp":"2026-11-25T06:54:39+00:00"},{"step":106,"tokens":434176,"train_seconds":11.730689300024096,"loss":5.293774127960205,"accuracy":0.19482421875,"penalty":0.0017996910431735107,"timestamp":"2026-11-25T06:54:39+00:00","raw_third":745140864.0},{"step":112,"tokens":458752,"train_seconds":11.928039500031446,"loss":5.308986186981201,"accuracy":0.188720703125,"timestamp":"2026-11-25T06:54:40+00:00"},{"step":115,"tokens":471040,"train_seconds":12.630433700032881,"loss":5.1892852783203125,"accuracy":0.202880859375,"penalty":0.004105499930716847,"timestamp":"2026-11-25T06:54:40+00:00","raw_third":1699833856.0},{"step":120,"tokens":491520,"train_seconds":12.799379800031602,"loss":5.065918922424316,"accuracy":0.216552734375,"timestamp":"2026-11-25T06:54:41+00:00"},{"step":121,"tokens":495616,"train_seconds":13.422180600031425,"loss":5.067111968994141,"accuracy":0.225830078125,"penalty":0.0038720303114985317,"timestamp":"2026-11-25T06:54:41+00:00","raw_third":1603168512.0},{"step":126,"tokens":516096,"train_seconds":14.22343220003313,"loss":5.043887138366699,"accuracy":0.216064453125,"penalty":0.0050874432271186916,"timestamp":"2026-11-25T06:54:42+00:00","raw_third":2106395904.0},{"step":127,"tokens":520192,"train_seconds":14.907191300033446,"loss":5.108433246612549,"accuracy":0.212646484375,"penalty":0.0031350001384357552,"timestamp":"2026-11-25T06:54:43+00:00","raw_third":1298009856.0},{"step":128,"tokens":524288,"train_seconds":14.940712000032363,"loss":5.080447196960449,"accuracy":0.221923828125,"dev_nll":4.961680782755138,"dev_accuracy":0.2230224609375,"timestamp":"2026-11-25T06:54:43+00:00"},{"step":130,"tokens":532480,"train_seconds":15.626692700036074,"loss":4.956700325012207,"accuracy":0.22119140625,"penalty":0.007343277055994634,"timestamp":"2026-11-25T06:54:44+00:00","raw_third":3040397312.0},{"step":131,"tokens":536576,"train_seconds":16.30109160003485,"loss":4.90852165222168,"accuracy":0.227783203125,"penalty":0.005446510683275911,"timestamp":"2026-11-25T06:54:44+00:00","raw_third":2255063552.0},{"step":136,"tokens":557056,"train_seconds":16.480119500029105,"loss":4.900416374206543,"accuracy":0.22216796875,"timestamp":"2026-11-25T06:54:45+00:00"},{"step":144,"tokens":589824,"train_seconds":16.770203900021443,"loss":4.963641166687012,"accuracy":0.21484375,"timestamp":"2026-11-25T06:54:45+00:00"},{"step":152,"tokens":622592,"train_seconds":17.048379800020484,"loss":4.738623142242432,"accuracy":0.228759765625,"timestamp":"2026-11-25T06:54:45+00:00"},{"step":158,"tokens":647168,"train_seconds":17.85673680002219,"loss":4.606858253479004,"accuracy":0.254638671875,"penalty":0.0070087703473081684,"timestamp":"2026-11-25T06:54:46+00:00","raw_third":2901898752.0},{"step":160,"tokens":655360,"train_seconds":17.926914400024543,"loss":4.752154350280762,"accuracy":0.250732421875,"dev_nll":4.636049128137529,"dev_accuracy":0.2589111328125,"timestamp":"2026-11-25T06:54:46+00:00"},{"step":164,"tokens":671744,"train_seconds":18.662180400024226,"loss":4.732847213745117,"accuracy":0.244384765625,"penalty":0.006773639354868951,"timestamp":"2026-11-25T06:54:47+00:00","raw_third":2804545536.0},{"step":168,"tokens":688128,"train_seconds":18.82354500002475,"loss":4.678789138793945,"accuracy":0.244873046875,"timestamp":"2026-11-25T06:54:47+00:00"},{"step":173,"tokens":708608,"train_seconds":19.594940400027554,"loss":4.675726890563965,"accuracy":0.251220703125,"penalty":0.012191583322271344,"timestamp":"2026-11-25T06:54:48+00:00","raw_third":5047781376.0},{"step":176,"tokens":720896,"train_seconds":19.696134600028017,"loss":4.615846633911133,"accuracy":0.257568359375,"timestamp":"2026-11-25T06:54:48+00:00"},{"step":178,"tokens":729088,"train_seconds":20.36890120002863,"loss":4.533054351806641,"accuracy":0.26123046875,"penalty":0.008145720939991021,"timestamp":"2026-11-25T06:54:49+00:00","raw_third":3372639744.0},{"step":184,"tokens":753664,"train_seconds":20.577942400028405,"loss":4.480145454406738,"accuracy":0.2578125,"timestamp":"2026-11-25T06:54:49+00:00"},{"step":188,"tokens":770048,"train_seconds":21.305013100034557,"loss":4.4766340255737305,"accuracy":0.259765625,"penalty":0.012077474743684063,"timestamp":"2026-11-25T06:54:50+00:00","raw_third":5000536064.0},{"step":192,"tokens":786432,"train_seconds":21.448205200034863,"loss":4.582454681396484,"accuracy":0.252197265625,"dev_nll":4.4076202832802664,"dev_accuracy":0.2711181640625,"timestamp":"2026-11-25T06:54:50+00:00"},{"step":200,"tokens":819200,"train_seconds":21.725084600038826,"loss":4.469112873077393,"accuracy":0.26318359375,"timestamp":"2026-11-25T06:54:51+00:00"},{"step":208,"tokens":851968,"train_seconds":22.00523360004445,"loss":4.4341912269592285,"accuracy":0.26611328125,"timestamp":"2026-11-25T06:54:51+00:00"},{"step":216,"tokens":884736,"train_seconds":22.881909000032465,"loss":4.332817077636719,"accuracy":0.278076171875,"penalty":0.00855804013787636,"timestamp":"2026-11-25T06:54:52+00:00","raw_third":3543355648.0},{"step":221,"tokens":905216,"train_seconds":23.668980400034343,"loss":4.463793754577637,"accuracy":0.25732421875,"penalty":0.0220073299792027,"timestamp":"2026-11-25T06:54:53+00:00","raw_third":9111875584.0},{"step":224,"tokens":917504,"train_seconds":24.368768000033015,"loss":4.291433334350586,"accuracy":0.28076171875,"penalty":0.011377389257147291,"dev_nll":4.2518455524405,"dev_accuracy":0.2864990234375,"timestamp":"2026-11-25T06:54:53+00:00","raw_third":4710673920.0},{"step":225,"tokens":921600,"train_seconds":25.04365340003642,"loss":4.25471305847168,"accuracy":0.2822265625,"penalty":0.0234795181116651,"timestamp":"2026-11-25T06:54:54+00:00","raw_third":9721417728.0},{"step":232,"tokens":950272,"train_seconds":25.275300400029664,"loss":4.241451263427734,"accuracy":0.294677734375,"timestamp":"2026-11-25T06:54:55+00:00"},{"step":240,"tokens":983040,"train_seconds":25.560603200032347,"loss":4.281622886657715,"accuracy":0.28173828125,"timestamp":"2026-11-25T06:54:55+00:00"},{"step":248,"tokens":1015808,"train_seconds":26.48698340003466,"loss":4.328660011291504,"accuracy":0.279052734375,"penalty":0.015509635627309544,"timestamp":"2026-11-25T06:54:56+00:00","raw_third":6421581824.0},{"step":256,"tokens":1048576,"train_seconds":26.761197300042113,"loss":4.185052871704102,"accuracy":0.29443359375,"dev_nll":4.139301200339105,"dev_accuracy":0.2945556640625,"timestamp":"2026-11-25T06:54:56+00:00"},{"step":262,"tokens":1073152,"train_seconds":27.567782600042847,"loss":4.0542073249816895,"accuracy":0.294921875,"penalty":0.013106927625839886,"timestamp":"2026-11-25T06:54:57+00:00","raw_third":5426768896.0},{"step":264,"tokens":1081344,"train_seconds":27.63282030004484,"loss":4.1156816482543945,"accuracy":0.29443359375,"timestamp":"2026-11-25T06:54:58+00:00"},{"step":268,"tokens":1097728,"train_seconds":28.368206200048007,"loss":4.12056827545166,"accuracy":0.308349609375,"penalty":0.01311882125266433,"timestamp":"2026-11-25T06:54:58+00:00","raw_third":5431693312.0},{"step":272,"tokens":1114112,"train_seconds":28.510056800048915,"loss":4.113439083099365,"accuracy":0.296142578125,"timestamp":"2026-11-25T06:54:58+00:00"},{"step":280,"tokens":1146880,"train_seconds":28.776574600044114,"loss":4.083995819091797,"accuracy":0.30029296875,"timestamp":"2026-11-25T06:54:59+00:00"},{"step":288,"tokens":1179648,"train_seconds":29.041603500041674,"loss":4.0831298828125,"accuracy":0.306640625,"dev_nll":4.0522233819938265,"dev_accuracy":0.305419921875,"timestamp":"2026-11-25T06:54:59+00:00"},{"step":296,"tokens":1212416,"train_seconds":29.33388360004028,"loss":4.1680755615234375,"accuracy":0.296875,"timestamp":"2026-11-25T06:55:00+00:00"},{"step":304,"tokens":1245184,"train_seconds":29.631684200037853,"loss":4.104654312133789,"accuracy":0.2900390625,"timestamp":"2026-11-25T06:55:00+00:00"},{"step":312,"tokens":1277952,"train_seconds":29.937764700040134,"loss":3.9327502250671387,"accuracy":0.322265625,"timestamp":"2026-11-25T06:55:00+00:00"},{"step":318,"tokens":1302528,"train_seconds":30.74564950003696,"loss":3.9457831382751465,"accuracy":0.315673828125,"penalty":0.020407383668143847,"timestamp":"2026-11-25T06:55:01+00:00","raw_third":8449436672.0},{"step":320,"tokens":1310720,"train_seconds":30.813781400036532,"loss":3.9963409900665283,"accuracy":0.30224609375,"dev_nll":3.9945435602858197,"dev_accuracy":0.3087158203125,"timestamp":"2026-11-25T06:55:01+00:00"},{"step":321,"tokens":1314816,"train_seconds":31.439751100038848,"loss":4.142868995666504,"accuracy":0.290283203125,"penalty":0.009496246717669726,"timestamp":"2026-11-25T06:55:02+00:00","raw_third":3931809024.0},{"step":324,"tokens":1327104,"train_seconds":32.14570910003749,"loss":4.0975494384765625,"accuracy":0.30029296875,"penalty":0.01232507685553735,"timestamp":"2026-11-25T06:55:03+00:00","raw_third":5103052800.0},{"step":328,"tokens":1343488,"train_seconds":32.269687400035764,"loss":3.9952497482299805,"accuracy":0.308349609375,"timestamp":"2026-11-25T06:55:03+00:00"},{"step":334,"tokens":1368064,"train_seconds":33.06149800003914,"loss":3.910606622695923,"accuracy":0.318359375,"penalty":0.01797879361121197,"timestamp":"2026-11-25T06:55:04+00:00","raw_third":7443907584.0},{"step":335,"tokens":1372160,"train_seconds":33.7034349000387,"loss":4.066370964050293,"accuracy":0.300537109375,"penalty":0.012458592647618375,"timestamp":"2026-11-25T06:55:04+00:00","raw_third":5158333440.0},{"step":336,"tokens":1376256,"train_seconds":33.7378019000389,"loss":3.9299817085266113,"accuracy":0.321044921875,"timestamp":"2026-11-25T06:55:05+00:00"},{"step":344,"tokens":1409024,"train_seconds":34.00579810004638,"loss":4.060708045959473,"accuracy":0.29541015625,"timestamp":"2026-11-25T06:55:05+00:00"},{"step":352,"tokens":1441792,"train_seconds":34.27295170004436,"loss":4.117920398712158,"accuracy":0.2978515625,"dev_nll":3.9421929715608712,"dev_accuracy":0.3148193359375,"timestamp":"2026-11-25T06:55:05+00:00"},{"step":360,"tokens":1474560,"train_seconds":34.556563200043456,"loss":3.9811227321624756,"accuracy":0.31298828125,"timestamp":"2026-11-25T06:55:06+00:00"},{"step":367,"tokens":1503232,"train_seconds":35.42657720004354,"loss":3.891265392303467,"accuracy":0.31982421875,"penalty":0.017150719938323563,"timestamp":"2026-11-25T06:55:07+00:00","raw_third":7101053440.0},{"step":368,"tokens":1507328,"train_seconds":35.46382830004586,"loss":3.95382022857666,"accuracy":0.31982421875,"timestamp":"2026-11-25T06:55:07+00:00"},{"step":376,"tokens":1540096,"train_seconds":35.729060500048945,"loss":4.030989170074463,"accuracy":0.307373046875,"timestamp":"2026-11-25T06:55:07+00:00"},{"step":384,"tokens":1572864,"train_seconds":35.98553290004929,"loss":3.947378158569336,"accuracy":0.319580078125,"dev_nll":3.906170734844636,"dev_accuracy":0.320068359375,"timestamp":"2026-11-25T06:55:07+00:00"},{"step":388,"tokens":1589248,"train_seconds":36.746272600044904,"loss":3.926361083984375,"accuracy":0.31787109375,"penalty":0.022566936374360417,"timestamp":"2026-11-25T06:55:08+00:00","raw_third":9343574016.0},{"step":389,"tokens":1593344,"train_seconds":37.37991320004585,"loss":3.992687940597534,"accuracy":0.315673828125,"penalty":0.019010390759214495,"timestamp":"2026-11-25T06:55:09+00:00","raw_third":7871028224.0},{"step":392,"tokens":1605632,"train_seconds":37.47901170004479,"loss":3.8923277854919434,"accuracy":0.32666015625,"timestamp":"2026-11-25T06:55:09+00:00"},{"step":400,"tokens":1638400,"train_seconds":38.410763000047154,"loss":4.011322975158691,"accuracy":0.306396484375,"penalty":0.023132181669322613,"timestamp":"2026-11-25T06:55:10+00:00","raw_third":9577607168.0},{"step":406,"tokens":1662976,"train_seconds":39.26665030004369,"loss":4.075726509094238,"accuracy":0.300537109375,"penalty":0.022128445138117212,"timestamp":"2026-11-25T06:55:11+00:00","raw_third":9162021888.0},{"step":408,"tokens":1671168,"train_seconds":39.96874650004247,"loss":3.896372079849243,"accuracy":0.329833984375,"penalty":0.015734907201296767,"timestamp":"2026-11-25T06:55:12+00:00","raw_third":6514852864.0},{"step":415,"tokens":1699840,"train_seconds":40.79852820004817,"loss":3.8585450649261475,"accuracy":0.333984375,"penalty":0.02123197136328032,"timestamp":"2026-11-25T06:55:12+00:00","raw_third":8790847488.0},{"step":416,"tokens":1703936,"train_seconds":40.83374840005126,"loss":3.982743740081787,"accuracy":0.31005859375,"dev_nll":3.8830277306842618,"dev_accuracy":0.3209228515625,"timestamp":"2026-11-25T06:55:13+00:00"},{"step":424,"tokens":1736704,"train_seconds":41.10751920004623,"loss":3.9391400814056396,"accuracy":0.3193359375,"timestamp":"2026-11-25T06:55:13+00:00"},{"step":432,"tokens":1769472,"train_seconds":41.350359500054765,"loss":3.8612918853759766,"accuracy":0.326171875,"timestamp":"2026-11-25T06:55:13+00:00"},{"step":439,"tokens":1798144,"train_seconds":42.07652380005675,"loss":3.871732234954834,"accuracy":0.3203125,"penalty":0.02217155798960478,"timestamp":"2026-11-25T06:55:14+00:00","raw_third":9179872256.0},{"step":440,"tokens":1802240,"train_seconds":42.10393280005519,"loss":3.9786829948425293,"accuracy":0.31591796875,"timestamp":"2026-11-25T06:55:14+00:00"},{"step":441,"tokens":1806336,"train_seconds":42.647943200056034,"loss":3.9397525787353516,"accuracy":0.329345703125,"penalty":0.021502349189300028,"timestamp":"2026-11-25T06:55:15+00:00","raw_third":8902794240.0},{"step":448,"tokens":1835008,"train_seconds":42.84745440006009,"loss":3.7469773292541504,"accuracy":0.343994140625,"dev_nll":3.8600377413094975,"dev_accuracy":0.3226318359375,"timestamp":"2026-11-25T06:55:15+00:00"},{"step":456,"tokens":1867776,"train_seconds":43.080848700057686,"loss":3.9789133071899414,"accuracy":0.307861328125,"timestamp":"2026-11-25T06:55:16+00:00"},{"step":463,"tokens":1896448,"train_seconds":43.766056700053014,"loss":3.8882927894592285,"accuracy":0.31787109375,"penalty":0.016301781099557752,"timestamp":"2026-11-25T06:55:16+00:00","raw_third":6749560320.0},{"step":464,"tokens":1900544,"train_seconds":43.79401970005347,"loss":3.9340596199035645,"accuracy":0.31396484375,"timestamp":"2026-11-25T06:55:16+00:00"},{"step":469,"tokens":1921024,"train_seconds":44.43837640005586,"loss":3.94157338142395,"accuracy":0.316650390625,"penalty":0.036199881843496345,"timestamp":"2026-11-25T06:55:17+00:00","raw_third":14988134400.0},{"step":472,"tokens":1933312,"train_seconds":44.52950470005453,"loss":3.883634567260742,"accuracy":0.3359375,"timestamp":"2026-11-25T06:55:17+00:00"},{"step":475,"tokens":1945600,"train_seconds":45.09663620005449,"loss":3.8950705528259277,"accuracy":0.317626953125,"penalty":0.021839317970247615,"timestamp":"2026-11-25T06:55:18+00:00","raw_third":9042312192.0},{"step":480,"tokens":1966080,"train_seconds":45.78601160005201,"loss":3.9622280597686768,"accuracy":0.313232421875,"penalty":0.032591985142104644,"dev_nll":3.8464793661842123,"dev_accuracy":0.3236083984375,"timestamp":"2026-11-25T06:55:18+00:00","raw_third":13494327296.0},{"step":487,"tokens":1994752,"train_seconds":46.5295897000542,"loss":3.8179993629455566,"accuracy":0.3291015625,"penalty":0.025018388707517117,"timestamp":"2026-11-25T06:55:20+00:00","raw_third":10358568960.0},{"step":488,"tokens":1998848,"train_seconds":46.55456300005608,"loss":3.894690990447998,"accuracy":0.326171875,"timestamp":"2026-11-25T06:55:20+00:00"},{"step":496,"tokens":2031616,"train_seconds":46.779532300060964,"loss":3.8425068855285645,"accuracy":0.313232421875,"timestamp":"2026-11-25T06:55:20+00:00"},{"step":504,"tokens":2064384,"train_seconds":46.99483360005979,"loss":3.72159743309021,"accuracy":0.336669921875,"timestamp":"2026-11-25T06:55:20+00:00"},{"step":506,"tokens":2072576,"train_seconds":47.585542300061206,"loss":3.972527027130127,"accuracy":0.30517578125,"penalty":0.02757924558968736,"timestamp":"2026-11-25T06:55:21+00:00","raw_third":11418861568.0},{"step":512,"tokens":2097152,"train_seconds":47.76995250006803,"loss":3.8764729499816895,"accuracy":0.32373046875,"dev_nll":3.834779627621174,"dev_accuracy":0.3251953125,"timestamp":"2026-11-25T06:55:21+00:00"}],"samples":[{"timestamp":"2026-11-25T06:55:23+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:55:24+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:55:24+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-trace-r01","stage":"stories","method":"trace","phase":"pilot","seed":0,"ratio":0.01,"coefficients":{"trace":9.169227719425724e-08},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":28.655320399975608,"steps":512,"dev_nll":3.8772689003319756,"dev_accuracy":0.3232896849406757,"tokens_per_sec":73185.43191029143,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"5db36614f800a63bf1f412e32055f2e5dc8a813da01fef52258bbaae7641cd41","dev_tokens":715643,"git_revision":"bf6da452fb02d8a4289ea5b8b13d7627b2792ba1","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.829633271525381,"finished_at":"2026-11-25T06:50:28+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.052760499998839805,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:49:49+00:00"},{"step":2,"tokens":8192,"train_seconds":0.35232739999628393,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.0008735180297689802,"timestamp":"2026-11-25T06:49:49+00:00","raw_trace":1190.8282470703125},{"step":8,"tokens":32768,"train_seconds":0.5490497999926447,"loss":8.15889835357666,"accuracy":0.05224609375,"timestamp":"2026-11-25T06:49:49+00:00"},{"step":11,"tokens":45056,"train_seconds":0.8883137999946484,"loss":8.028610229492188,"accuracy":0.067138671875,"penalty":0.002155198321614393,"timestamp":"2026-11-25T06:49:50+00:00","raw_trace":2938.0859375},{"step":16,"tokens":65536,"train_seconds":1.0733684000006178,"loss":7.806438446044922,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:49:50+00:00"},{"step":22,"tokens":90112,"train_seconds":1.5289657000030275,"loss":7.604508876800537,"accuracy":0.067138671875,"penalty":0.0005550665873126906,"timestamp":"2026-11-25T06:49:50+00:00","raw_trace":756.6975708007812},{"step":24,"tokens":98304,"train_seconds":1.6040441000004648,"loss":7.483850955963135,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:49:50+00:00"},{"step":25,"tokens":102400,"train_seconds":1.924708799997461,"loss":7.453516960144043,"accuracy":0.072265625,"penalty":0.0005569082678900274,"timestamp":"2026-11-25T06:49:51+00:00","raw_trace":759.208251953125},{"step":32,"tokens":131072,"train_seconds":2.1859600999960094,"loss":7.082074165344238,"accuracy":0.072509765625,"dev_nll":7.043074487242848,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:49:51+00:00"},{"step":40,"tokens":163840,"train_seconds":2.447142299992265,"loss":6.677017688751221,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:49:52+00:00"},{"step":48,"tokens":196608,"train_seconds":2.710924899991369,"loss":6.474355697631836,"accuracy":0.080322265625,"timestamp":"2026-11-25T06:49:52+00:00"},{"step":50,"tokens":204800,"train_seconds":3.0251253999922483,"loss":6.383248329162598,"accuracy":0.1044921875,"penalty":0.0005949156122194415,"timestamp":"2026-11-25T06:49:52+00:00","raw_trace":811.02197265625},{"step":56,"tokens":229376,"train_seconds":3.2292180999938864,"loss":6.203207969665527,"accuracy":0.0927734375,"timestamp":"2026-11-25T06:49:52+00:00"},{"step":64,"tokens":262144,"train_seconds":3.4903015999916533,"loss":6.01896858215332,"accuracy":0.11962890625,"dev_nll":5.956165922136279,"dev_accuracy":0.1041259765625,"timestamp":"2026-11-25T06:49:53+00:00"},{"step":72,"tokens":294912,"train_seconds":3.7703348999930313,"loss":5.878442764282227,"accuracy":0.134033203125,"timestamp":"2026-11-25T06:49:53+00:00"},{"step":74,"tokens":303104,"train_seconds":4.065303199990012,"loss":5.800645351409912,"accuracy":0.14794921875,"penalty":0.0011749359751865068,"timestamp":"2026-11-25T06:49:54+00:00","raw_trace":1601.7379150390625},{"step":80,"tokens":327680,"train_seconds":4.266801299992949,"loss":5.686783790588379,"accuracy":0.141845703125,"timestamp":"2026-11-25T06:49:54+00:00"},{"step":84,"tokens":344064,"train_seconds":4.626341399994999,"loss":5.597203254699707,"accuracy":0.154296875,"penalty":0.0011422499169477403,"timestamp":"2026-11-25T06:49:54+00:00","raw_trace":1557.178466796875},{"step":86,"tokens":352256,"train_seconds":4.94402579999587,"loss":5.502569198608398,"accuracy":0.1826171875,"penalty":0.00233074784255125,"timestamp":"2026-11-25T06:49:54+00:00","raw_trace":3177.40478515625},{"step":88,"tokens":360448,"train_seconds":5.008467799998471,"loss":5.574861526489258,"accuracy":0.169921875,"timestamp":"2026-11-25T06:49:55+00:00"},{"step":91,"tokens":372736,"train_seconds":5.351215999995475,"loss":5.470996856689453,"accuracy":0.1865234375,"penalty":0.0012852173393468292,"timestamp":"2026-11-25T06:49:55+00:00","raw_trace":1752.07958984375},{"step":93,"tokens":380928,"train_seconds":5.642916399996466,"loss":5.440422058105469,"accuracy":0.185302734375,"penalty":0.0016661564866799487,"timestamp":"2026-11-25T06:49:55+00:00","raw_trace":2271.39697265625},{"step":96,"tokens":393216,"train_seconds":5.743035099996632,"loss":5.417662620544434,"accuracy":0.182373046875,"dev_nll":5.391357449581847,"dev_accuracy":0.18798828125,"timestamp":"2026-11-25T06:49:55+00:00"},{"step":100,"tokens":409600,"train_seconds":6.124397199993837,"loss":5.293798446655273,"accuracy":0.191162109375,"penalty":0.0017006442444396387,"timestamp":"2026-11-25T06:49:56+00:00","raw_trace":2318.41259765625},{"step":104,"tokens":425984,"train_seconds":6.246303399995668,"loss":5.300800323486328,"accuracy":0.20751953125,"timestamp":"2026-11-25T06:49:56+00:00"},{"step":106,"tokens":434176,"train_seconds":6.538767899997765,"loss":5.281595706939697,"accuracy":0.19677734375,"penalty":0.001854811556142344,"timestamp":"2026-11-25T06:49:56+00:00","raw_trace":2528.58203125},{"step":112,"tokens":458752,"train_seconds":6.751113399997848,"loss":5.297824382781982,"accuracy":0.188232421875,"timestamp":"2026-11-25T06:49:57+00:00"},{"step":115,"tokens":471040,"train_seconds":7.0702119000015955,"loss":5.178885459899902,"accuracy":0.203857421875,"penalty":0.0026285249598528406,"timestamp":"2026-11-25T06:49:57+00:00","raw_trace":3583.35107421875},{"step":120,"tokens":491520,"train_seconds":7.23567120000007,"loss":5.054536819458008,"accuracy":0.21728515625,"timestamp":"2026-11-25T06:49:57+00:00"},{"step":121,"tokens":495616,"train_seconds":7.495668499999738,"loss":5.056953430175781,"accuracy":0.2265625,"penalty":0.0023227591529007,"timestamp":"2026-11-25T06:49:57+00:00","raw_trace":3166.51416015625},{"step":126,"tokens":516096,"train_seconds":7.896441500000947,"loss":5.034234046936035,"accuracy":0.218017578125,"penalty":0.002511558028805648,"timestamp":"2026-11-25T06:49:58+00:00","raw_trace":3423.895263671875},{"step":127,"tokens":520192,"train_seconds":8.139887600002112,"loss":5.099255561828613,"accuracy":0.215087890625,"penalty":0.0019264407751059906,"timestamp":"2026-11-25T06:49:58+00:00","raw_trace":2626.23095703125},{"step":128,"tokens":524288,"train_seconds":8.169198500003404,"loss":5.0698981285095215,"accuracy":0.222900390625,"dev_nll":4.9531992625270505,"dev_accuracy":0.225341796875,"timestamp":"2026-11-25T06:49:58+00:00"},{"step":130,"tokens":532480,"train_seconds":8.466070400005265,"loss":4.9429240226745605,"accuracy":0.224609375,"penalty":0.002578812344176368,"timestamp":"2026-11-25T06:49:59+00:00","raw_trace":3515.580078125},{"step":131,"tokens":536576,"train_seconds":8.72576900000422,"loss":4.89939546585083,"accuracy":0.23095703125,"penalty":0.0026287282230063862,"timestamp":"2026-11-25T06:49:59+00:00","raw_trace":3583.628173828125},{"step":136,"tokens":557056,"train_seconds":8.890952200006723,"loss":4.889959335327148,"accuracy":0.224609375,"timestamp":"2026-11-25T06:49:59+00:00"},{"step":144,"tokens":589824,"train_seconds":9.151635400008672,"loss":4.952939510345459,"accuracy":0.2197265625,"timestamp":"2026-11-25T06:50:00+00:00"},{"step":152,"tokens":622592,"train_seconds":9.404550700011896,"loss":4.728234767913818,"accuracy":0.232666015625,"timestamp":"2026-11-25T06:50:00+00:00"},{"step":158,"tokens":647168,"train_seconds":9.855174400010583,"loss":4.599205017089844,"accuracy":0.255126953125,"penalty":0.0033018811661742224,"timestamp":"2026-11-25T06:50:00+00:00","raw_trace":4501.3076171875},{"step":160,"tokens":655360,"train_seconds":9.918114000010974,"loss":4.741629123687744,"accuracy":0.253173828125,"dev_nll":4.6274964114127215,"dev_accuracy":0.261474609375,"timestamp":"2026-11-25T06:50:00+00:00"},{"step":164,"tokens":671744,"train_seconds":10.262835000008636,"loss":4.727910041809082,"accuracy":0.24462890625,"penalty":0.003089780453067847,"timestamp":"2026-11-25T06:50:01+00:00","raw_trace":4212.16015625},{"step":168,"tokens":688128,"train_seconds":10.387923000005685,"loss":4.673326015472412,"accuracy":0.247802734375,"timestamp":"2026-11-25T06:50:01+00:00"},{"step":173,"tokens":708608,"train_seconds":10.75640920001024,"loss":4.669865608215332,"accuracy":0.25048828125,"penalty":0.003604150488712416,"timestamp":"2026-11-25T06:50:02+00:00","raw_trace":4913.3779296875},{"step":176,"tokens":720896,"train_seconds":10.86392190001061,"loss":4.610239028930664,"accuracy":0.260009765625,"timestamp":"2026-11-25T06:50:02+00:00"},{"step":178,"tokens":729088,"train_seconds":11.160070700010692,"loss":4.524169445037842,"accuracy":0.259765625,"penalty":0.0037147496418295373,"timestamp":"2026-11-25T06:50:02+00:00","raw_trace":5064.15283203125},{"step":184,"tokens":753664,"train_seconds":11.34787290001259,"loss":4.474027633666992,"accuracy":0.257568359375,"timestamp":"2026-11-25T06:50:02+00:00"},{"step":188,"tokens":770048,"train_seconds":11.74705760001234,"loss":4.468209266662598,"accuracy":0.26220703125,"penalty":0.004058453486643759,"timestamp":"2026-11-25T06:50:03+00:00","raw_trace":5532.708984375},{"step":192,"tokens":786432,"train_seconds":11.884370600011607,"loss":4.574196815490723,"accuracy":0.255859375,"dev_nll":4.39897501230007,"dev_accuracy":0.272216796875,"timestamp":"2026-11-25T06:50:03+00:00"},{"step":200,"tokens":819200,"train_seconds":12.138476300009643,"loss":4.463433265686035,"accuracy":0.263427734375,"timestamp":"2026-11-25T06:50:03+00:00"},{"step":208,"tokens":851968,"train_seconds":12.394409700005781,"loss":4.428492546081543,"accuracy":0.26806640625,"timestamp":"2026-11-25T06:50:04+00:00"},{"step":216,"tokens":884736,"train_seconds":12.879658000001655,"loss":4.3274126052856445,"accuracy":0.27880859375,"penalty":0.0026038985990535055,"timestamp":"2026-11-25T06:50:04+00:00","raw_trace":3549.779052734375},{"step":221,"tokens":905216,"train_seconds":13.291595000002417,"loss":4.45806360244751,"accuracy":0.260009765625,"penalty":0.002726184756696838,"timestamp":"2026-11-25T06:50:05+00:00","raw_trace":3716.486328125},{"step":224,"tokens":917504,"train_seconds":13.626847800001997,"loss":4.284692764282227,"accuracy":0.28125,"penalty":0.0043381127830484974,"dev_nll":4.244905020401347,"dev_accuracy":0.287109375,"timestamp":"2026-11-25T06:50:05+00:00","raw_trace":5913.9560546875},{"step":225,"tokens":921600,"train_seconds":13.885724700005085,"loss":4.246068000793457,"accuracy":0.28759765625,"penalty":0.004184130646764969,"timestamp":"2026-11-25T06:50:06+00:00","raw_trace":5704.0390625},{"step":232,"tokens":950272,"train_seconds":14.12495960000524,"loss":4.238053321838379,"accuracy":0.2939453125,"timestamp":"2026-11-25T06:50:06+00:00"},{"step":240,"tokens":983040,"train_seconds":14.370007899993652,"loss":4.277432441711426,"accuracy":0.283203125,"timestamp":"2026-11-25T06:50:06+00:00"},{"step":248,"tokens":1015808,"train_seconds":14.865552399998705,"loss":4.319035530090332,"accuracy":0.28076171875,"penalty":0.004120489401105957,"timestamp":"2026-11-25T06:50:07+00:00","raw_trace":5617.27978515625},{"step":256,"tokens":1048576,"train_seconds":15.149837100001605,"loss":4.178607940673828,"accuracy":0.296875,"dev_nll":4.135888978024013,"dev_accuracy":0.296875,"timestamp":"2026-11-25T06:50:07+00:00"},{"step":262,"tokens":1073152,"train_seconds":15.59777930000564,"loss":4.050606727600098,"accuracy":0.298095703125,"penalty":0.0032322895931674433,"timestamp":"2026-11-25T06:50:08+00:00","raw_trace":4406.4365234375},{"step":264,"tokens":1081344,"train_seconds":15.656532900007733,"loss":4.11038875579834,"accuracy":0.29345703125,"timestamp":"2026-11-25T06:50:08+00:00"},{"step":268,"tokens":1097728,"train_seconds":15.997392200009926,"loss":4.115660667419434,"accuracy":0.30908203125,"penalty":0.0034021352097514932,"timestamp":"2026-11-25T06:50:08+00:00","raw_trace":4637.9794921875},{"step":272,"tokens":1114112,"train_seconds":16.13161390001187,"loss":4.108949661254883,"accuracy":0.297607421875,"timestamp":"2026-11-25T06:50:08+00:00"},{"step":280,"tokens":1146880,"train_seconds":16.3881193000052,"loss":4.0767951011657715,"accuracy":0.304443359375,"timestamp":"2026-11-25T06:50:09+00:00"},{"step":288,"tokens":1179648,"train_seconds":16.631278300013946,"loss":4.0798726081848145,"accuracy":0.305908203125,"dev_nll":4.04764990566764,"dev_accuracy":0.3040771484375,"timestamp":"2026-11-25T06:50:09+00:00"},{"step":296,"tokens":1212416,"train_seconds":16.876822300011554,"loss":4.162483215332031,"accuracy":0.29736328125,"timestamp":"2026-11-25T06:50:10+00:00"},{"step":304,"tokens":1245184,"train_seconds":17.14499250001245,"loss":4.097379684448242,"accuracy":0.291748046875,"timestamp":"2026-11-25T06:50:10+00:00"},{"step":312,"tokens":1277952,"train_seconds":17.422175600007904,"loss":3.927097797393799,"accuracy":0.3232421875,"timestamp":"2026-11-25T06:50:10+00:00"},{"step":318,"tokens":1302528,"train_seconds":17.80481800000416,"loss":3.940901279449463,"accuracy":0.319580078125,"penalty":0.002984090418510196,"timestamp":"2026-11-25T06:50:11+00:00","raw_trace":4068.07763671875},{"step":320,"tokens":1310720,"train_seconds":17.868144500007475,"loss":3.989630699157715,"accuracy":0.30126953125,"dev_nll":3.9900443887745496,"dev_accuracy":0.3095703125,"timestamp":"2026-11-25T06:50:11+00:00"},{"step":321,"tokens":1314816,"train_seconds":18.130951100007223,"loss":4.138278961181641,"accuracy":0.288330078125,"penalty":0.0025166607398488046,"timestamp":"2026-11-25T06:50:11+00:00","raw_trace":3430.8515625},{"step":324,"tokens":1327104,"train_seconds":18.46199690000867,"loss":4.093977928161621,"accuracy":0.30126953125,"penalty":0.0040808790537039535,"timestamp":"2026-11-25T06:50:12+00:00","raw_trace":5563.28076171875},{"step":328,"tokens":1343488,"train_seconds":18.58531880001101,"loss":3.9861536026000977,"accuracy":0.311279296875,"timestamp":"2026-11-25T06:50:12+00:00"},{"step":334,"tokens":1368064,"train_seconds":19.004676400010794,"loss":3.905003547668457,"accuracy":0.318359375,"penalty":0.0033037988241902305,"timestamp":"2026-11-25T06:50:12+00:00","raw_trace":4503.921875},{"step":335,"tokens":1372160,"train_seconds":19.279109500010236,"loss":4.063039779663086,"accuracy":0.30224609375,"penalty":0.0035049451755555542,"timestamp":"2026-11-25T06:50:12+00:00","raw_trace":4778.1357421875},{"step":336,"tokens":1376256,"train_seconds":19.316399400009686,"loss":3.9231858253479004,"accuracy":0.32373046875,"timestamp":"2026-11-25T06:50:12+00:00"},{"step":344,"tokens":1409024,"train_seconds":19.578374900007475,"loss":4.052986145019531,"accuracy":0.295166015625,"timestamp":"2026-11-25T06:50:13+00:00"},{"step":352,"tokens":1441792,"train_seconds":19.83405050001238,"loss":4.114651203155518,"accuracy":0.29833984375,"dev_nll":3.9381112865521573,"dev_accuracy":0.3160400390625,"timestamp":"2026-11-25T06:50:13+00:00"},{"step":360,"tokens":1474560,"train_seconds":20.087900700011232,"loss":3.974766492843628,"accuracy":0.314697265625,"timestamp":"2026-11-25T06:50:14+00:00"},{"step":367,"tokens":1503232,"train_seconds":20.555894800003443,"loss":3.8862080574035645,"accuracy":0.32080078125,"penalty":0.0034977580769845387,"timestamp":"2026-11-25T06:50:14+00:00","raw_trace":4768.337890625},{"step":368,"tokens":1507328,"train_seconds":20.58722730000227,"loss":3.9488272666931152,"accuracy":0.320068359375,"timestamp":"2026-11-25T06:50:14+00:00"},{"step":376,"tokens":1540096,"train_seconds":20.894133000001602,"loss":4.027188301086426,"accuracy":0.308349609375,"timestamp":"2026-11-25T06:50:15+00:00"},{"step":384,"tokens":1572864,"train_seconds":21.228571799994825,"loss":3.9419784545898438,"accuracy":0.3212890625,"dev_nll":3.9017969146952964,"dev_accuracy":0.32275390625,"timestamp":"2026-11-25T06:50:15+00:00"},{"step":388,"tokens":1589248,"train_seconds":21.600414799991995,"loss":3.9206113815307617,"accuracy":0.31884765625,"penalty":0.00556089377056632,"timestamp":"2026-11-25T06:50:16+00:00","raw_trace":7580.9189453125},{"step":389,"tokens":1593344,"train_seconds":21.865427399992768,"loss":3.988877773284912,"accuracy":0.3193359375,"penalty":0.005160934206482716,"timestamp":"2026-11-25T06:50:16+00:00","raw_trace":7035.671875},{"step":392,"tokens":1605632,"train_seconds":21.958884899991972,"loss":3.885446548461914,"accuracy":0.32763671875,"timestamp":"2026-11-25T06:50:16+00:00"},{"step":400,"tokens":1638400,"train_seconds":22.43221489998905,"loss":4.0043134689331055,"accuracy":0.307861328125,"penalty":0.00528696416696735,"timestamp":"2026-11-25T06:50:17+00:00","raw_trace":7207.48291015625},{"step":406,"tokens":1662976,"train_seconds":22.85532529998818,"loss":4.073127746582031,"accuracy":0.30224609375,"penalty":0.003765918946925342,"timestamp":"2026-11-25T06:50:17+00:00","raw_trace":5133.90966796875},{"step":408,"tokens":1671168,"train_seconds":23.159326699984376,"loss":3.8908114433288574,"accuracy":0.33056640625,"penalty":0.0034121296679656674,"timestamp":"2026-11-25T06:50:17+00:00","raw_trace":4651.6044921875},{"step":415,"tokens":1699840,"train_seconds":23.617663199984236,"loss":3.8526434898376465,"accuracy":0.334228515625,"penalty":0.004932546652639711,"timestamp":"2026-11-25T06:50:18+00:00","raw_trace":6724.3212890625},{"step":416,"tokens":1703936,"train_seconds":23.647640499984846,"loss":3.978026866912842,"accuracy":0.310791015625,"dev_nll":3.8769236206717324,"dev_accuracy":0.3218994140625,"timestamp":"2026-11-25T06:50:18+00:00"},{"step":424,"tokens":1736704,"train_seconds":23.900761099986994,"loss":3.934581995010376,"accuracy":0.320556640625,"timestamp":"2026-11-25T06:50:18+00:00"},{"step":432,"tokens":1769472,"train_seconds":24.150846399981674,"loss":3.854825735092163,"accuracy":0.32861328125,"timestamp":"2026-11-25T06:50:19+00:00"},{"step":439,"tokens":1798144,"train_seconds":24.62142909998147,"loss":3.8670969009399414,"accuracy":0.3212890625,"penalty":0.005869909997110405,"timestamp":"2026-11-25T06:50:19+00:00","raw_trace":8002.18701171875},{"step":440,"tokens":1802240,"train_seconds":24.655686199981574,"loss":3.9731531143188477,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:50:19+00:00"},{"step":441,"tokens":1806336,"train_seconds":24.91374789998008,"loss":3.93430757522583,"accuracy":0.328857421875,"penalty":0.0056185531696572805,"timestamp":"2026-11-25T06:50:19+00:00","raw_trace":7659.5234375},{"step":448,"tokens":1835008,"train_seconds":25.133174299979146,"loss":3.7411386966705322,"accuracy":0.345703125,"dev_nll":3.8551141119678505,"dev_accuracy":0.32373046875,"timestamp":"2026-11-25T06:50:20+00:00"},{"step":456,"tokens":1867776,"train_seconds":25.385561299983237,"loss":3.972557783126831,"accuracy":0.30908203125,"timestamp":"2026-11-25T06:50:20+00:00"},{"step":463,"tokens":1896448,"train_seconds":25.853915899984713,"loss":3.8820669651031494,"accuracy":0.320556640625,"penalty":0.0049037946766260715,"timestamp":"2026-11-25T06:50:21+00:00","raw_trace":6685.125},{"step":464,"tokens":1900544,"train_seconds":25.88508999998521,"loss":3.9292054176330566,"accuracy":0.3173828125,"timestamp":"2026-11-25T06:50:21+00:00"},{"step":469,"tokens":1921024,"train_seconds":26.274774699984846,"loss":3.9384706020355225,"accuracy":0.316650390625,"penalty":0.005481600008478924,"timestamp":"2026-11-25T06:50:21+00:00","raw_trace":7472.8212890625},{"step":472,"tokens":1933312,"train_seconds":26.37861369998427,"loss":3.876204013824463,"accuracy":0.3369140625,"timestamp":"2026-11-25T06:50:21+00:00"},{"step":475,"tokens":1945600,"train_seconds":26.703793899981974,"loss":3.892106056213379,"accuracy":0.318603515625,"penalty":0.0047654381937990925,"timestamp":"2026-11-25T06:50:22+00:00","raw_trace":6496.509765625},{"step":480,"tokens":1966080,"train_seconds":27.09590559998469,"loss":3.955801248550415,"accuracy":0.314453125,"penalty":0.006829735084110029,"dev_nll":3.841924677195493,"dev_accuracy":0.3262939453125,"timestamp":"2026-11-25T06:50:22+00:00","raw_trace":9310.673828125},{"step":487,"tokens":1994752,"train_seconds":27.533329899979435,"loss":3.813133955001831,"accuracy":0.33154296875,"penalty":0.005725507912928888,"timestamp":"2026-11-25T06:50:23+00:00","raw_trace":7805.330078125},{"step":488,"tokens":1998848,"train_seconds":27.567292999978235,"loss":3.8890392780303955,"accuracy":0.329345703125,"timestamp":"2026-11-25T06:50:23+00:00"},{"step":496,"tokens":2031616,"train_seconds":27.86557969997739,"loss":3.839000701904297,"accuracy":0.316162109375,"timestamp":"2026-11-25T06:50:23+00:00"},{"step":504,"tokens":2064384,"train_seconds":28.143118699979823,"loss":3.717348575592041,"accuracy":0.3359375,"timestamp":"2026-11-25T06:50:24+00:00"},{"step":506,"tokens":2072576,"train_seconds":28.46530189997793,"loss":3.9663209915161133,"accuracy":0.306396484375,"penalty":0.00620038150017203,"timestamp":"2026-11-25T06:50:24+00:00","raw_trace":8452.7041015625},{"step":512,"tokens":2097152,"train_seconds":28.655320399975608,"loss":3.8717947006225586,"accuracy":0.3232421875,"dev_nll":3.829633271525381,"dev_accuracy":0.326171875,"timestamp":"2026-11-25T06:50:24+00:00"}],"samples":[{"timestamp":"2026-11-25T06:50:27+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:50:27+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:50:28+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-trace-r03","stage":"stories","method":"trace","phase":"pilot","seed":0,"ratio":0.03,"coefficients":{"trace":2.750768315827717e-07},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":30.792565400039166,"steps":512,"dev_nll":3.880244025806713,"dev_accuracy":0.3227237603106577,"tokens_per_sec":68105.79023718929,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"da02016d1914d753e4f64fafe9802551f05f2ccba8e8386b360e110d9fb44887","dev_tokens":715643,"git_revision":"0ca48fe091156bf6d3ec736a6f69e8c5d3c11f9f","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.8327224641980138,"finished_at":"2026-11-25T06:51:28+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.13427890000093612,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:50:46+00:00"},{"step":2,"tokens":8192,"train_seconds":0.416239800000767,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.0026205540893069405,"timestamp":"2026-11-25T06:50:46+00:00","raw_trace":1190.8282470703125},{"step":8,"tokens":32768,"train_seconds":0.6687762000037765,"loss":8.159992218017578,"accuracy":0.052001953125,"timestamp":"2026-11-25T06:50:46+00:00"},{"step":11,"tokens":45056,"train_seconds":1.015813199999684,"loss":8.029764175415039,"accuracy":0.067138671875,"penalty":0.0064906495214135515,"timestamp":"2026-11-25T06:50:47+00:00","raw_trace":2949.47119140625},{"step":16,"tokens":65536,"train_seconds":1.1736831000016537,"loss":7.807365417480469,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:50:47+00:00"},{"step":22,"tokens":90112,"train_seconds":1.5925792000089132,"loss":7.605396270751953,"accuracy":0.067138671875,"penalty":0.001666661779180151,"timestamp":"2026-11-25T06:50:47+00:00","raw_trace":757.3619384765625},{"step":24,"tokens":98304,"train_seconds":1.6517635000091104,"loss":7.484821319580078,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:50:47+00:00"},{"step":25,"tokens":102400,"train_seconds":1.9031258000068192,"loss":7.454426288604736,"accuracy":0.072265625,"penalty":0.001673648166579945,"timestamp":"2026-11-25T06:50:48+00:00","raw_trace":760.5366821289062},{"step":32,"tokens":131072,"train_seconds":2.1367007000080775,"loss":7.083046913146973,"accuracy":0.072509765625,"dev_nll":7.044261843431741,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:50:48+00:00"},{"step":40,"tokens":163840,"train_seconds":2.396096000007674,"loss":6.678351402282715,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:50:48+00:00"},{"step":48,"tokens":196608,"train_seconds":2.6773801000126696,"loss":6.476431846618652,"accuracy":0.079833984375,"timestamp":"2026-11-25T06:50:49+00:00"},{"step":50,"tokens":204800,"train_seconds":2.9386536000129126,"loss":6.384491443634033,"accuracy":0.103759765625,"penalty":0.0017603050244754906,"timestamp":"2026-11-25T06:50:49+00:00","raw_trace":799.9151611328125},{"step":56,"tokens":229376,"train_seconds":3.1542485000099987,"loss":6.204250335693359,"accuracy":0.0927734375,"timestamp":"2026-11-25T06:50:49+00:00"},{"step":64,"tokens":262144,"train_seconds":3.3977042000151414,"loss":6.0206298828125,"accuracy":0.118408203125,"dev_nll":5.958226972812554,"dev_accuracy":0.103515625,"timestamp":"2026-11-25T06:50:49+00:00"},{"step":72,"tokens":294912,"train_seconds":3.6611285000071803,"loss":5.881811141967773,"accuracy":0.13330078125,"timestamp":"2026-11-25T06:50:50+00:00"},{"step":74,"tokens":303104,"train_seconds":3.9339177000038035,"loss":5.804099082946777,"accuracy":0.147705078125,"penalty":0.0034732871632488843,"timestamp":"2026-11-25T06:50:50+00:00","raw_trace":1578.325927734375},{"step":80,"tokens":327680,"train_seconds":4.106846200003929,"loss":5.692019939422607,"accuracy":0.141357421875,"timestamp":"2026-11-25T06:50:51+00:00"},{"step":84,"tokens":344064,"train_seconds":4.461183399998845,"loss":5.602062225341797,"accuracy":0.15380859375,"penalty":0.003301821351290271,"timestamp":"2026-11-25T06:50:51+00:00","raw_trace":1500.40869140625},{"step":86,"tokens":352256,"train_seconds":4.752926999997726,"loss":5.5078630447387695,"accuracy":0.181640625,"penalty":0.006926615138424917,"timestamp":"2026-11-25T06:50:51+00:00","raw_trace":3147.58203125},{"step":88,"tokens":360448,"train_seconds":4.816389199997502,"loss":5.58025598526001,"accuracy":0.1689453125,"timestamp":"2026-11-25T06:50:51+00:00"},{"step":91,"tokens":372736,"train_seconds":5.126365899999655,"loss":5.476531028747559,"accuracy":0.185791015625,"penalty":0.0038163077036028822,"timestamp":"2026-11-25T06:50:52+00:00","raw_trace":1734.2008056640625},{"step":93,"tokens":380928,"train_seconds":5.4184721000019636,"loss":5.446344375610352,"accuracy":0.184814453125,"penalty":0.00481790515952097,"timestamp":"2026-11-25T06:50:52+00:00","raw_trace":2189.34521484375},{"step":96,"tokens":393216,"train_seconds":5.529354300004343,"loss":5.424025535583496,"accuracy":0.181640625,"dev_nll":5.398135494557209,"dev_accuracy":0.1876220703125,"timestamp":"2026-11-25T06:50:52+00:00"},{"step":100,"tokens":409600,"train_seconds":5.9238252000031935,"loss":5.301732540130615,"accuracy":0.188232421875,"penalty":0.00495749644361993,"timestamp":"2026-11-25T06:50:53+00:00","raw_trace":2252.778076171875},{"step":104,"tokens":425984,"train_seconds":6.059148300002562,"loss":5.306240558624268,"accuracy":0.207763671875,"timestamp":"2026-11-25T06:50:53+00:00"},{"step":106,"tokens":434176,"train_seconds":6.355897900008131,"loss":5.2880859375,"accuracy":0.1953125,"penalty":0.005499821699533535,"timestamp":"2026-11-25T06:50:53+00:00","raw_trace":2499.220703125},{"step":112,"tokens":458752,"train_seconds":6.55156980000902,"loss":5.304295539855957,"accuracy":0.18798828125,"timestamp":"2026-11-25T06:50:54+00:00"},{"step":115,"tokens":471040,"train_seconds":6.855733500011411,"loss":5.184703826904297,"accuracy":0.203369140625,"penalty":0.007724484084581733,"timestamp":"2026-11-25T06:50:54+00:00","raw_trace":3510.1484375},{"step":120,"tokens":491520,"train_seconds":7.021866700011742,"loss":5.060020446777344,"accuracy":0.216796875,"timestamp":"2026-11-25T06:50:54+00:00"},{"step":121,"tokens":495616,"train_seconds":7.290624500008562,"loss":5.063030242919922,"accuracy":0.2255859375,"penalty":0.006695212126450277,"timestamp":"2026-11-25T06:50:54+00:00","raw_trace":3042.42822265625},{"step":126,"tokens":516096,"train_seconds":7.67267910001101,"loss":5.039887428283691,"accuracy":0.21875,"penalty":0.007555571866725685,"timestamp":"2026-11-25T06:50:55+00:00","raw_trace":3433.3916015625},{"step":127,"tokens":520192,"train_seconds":7.949672200011264,"loss":5.10496711730957,"accuracy":0.2138671875,"penalty":0.0057139109889015605,"timestamp":"2026-11-25T06:50:55+00:00","raw_trace":2596.5068359375},{"step":128,"tokens":524288,"train_seconds":7.987401000013051,"loss":5.075139045715332,"accuracy":0.222412109375,"dev_nll":4.958373294270132,"dev_accuracy":0.2239990234375,"timestamp":"2026-11-25T06:50:55+00:00"},{"step":130,"tokens":532480,"train_seconds":8.307115700015856,"loss":4.949583530426025,"accuracy":0.22412109375,"penalty":0.007401426761746362,"timestamp":"2026-11-25T06:50:56+00:00","raw_trace":3363.34521484375},{"step":131,"tokens":536576,"train_seconds":8.578669500016986,"loss":4.904572486877441,"accuracy":0.229736328125,"penalty":0.007584065958209716,"timestamp":"2026-11-25T06:50:56+00:00","raw_trace":3446.33984375},{"step":136,"tokens":557056,"train_seconds":8.804806400017696,"loss":4.8954033851623535,"accuracy":0.223388671875,"timestamp":"2026-11-25T06:50:56+00:00"},{"step":144,"tokens":589824,"train_seconds":9.158406700025807,"loss":4.9596662521362305,"accuracy":0.216796875,"timestamp":"2026-11-25T06:50:57+00:00"},{"step":152,"tokens":622592,"train_seconds":9.539832700025727,"loss":4.732291221618652,"accuracy":0.231201171875,"timestamp":"2026-11-25T06:50:57+00:00"},{"step":158,"tokens":647168,"train_seconds":10.285451800027658,"loss":4.602614402770996,"accuracy":0.25537109375,"penalty":0.00968408415394697,"timestamp":"2026-11-25T06:50:58+00:00","raw_trace":4400.626953125},{"step":160,"tokens":655360,"train_seconds":10.350238800027,"loss":4.74568510055542,"accuracy":0.25390625,"dev_nll":4.6317758293880615,"dev_accuracy":0.2611083984375,"timestamp":"2026-11-25T06:50:58+00:00"},{"step":164,"tokens":671744,"train_seconds":10.799710000028426,"loss":4.7294745445251465,"accuracy":0.24609375,"penalty":0.009411676427245651,"timestamp":"2026-11-25T06:50:59+00:00","raw_trace":4276.83984375},{"step":168,"tokens":688128,"train_seconds":10.974035100029141,"loss":4.676628112792969,"accuracy":0.246826171875,"timestamp":"2026-11-25T06:50:59+00:00"},{"step":173,"tokens":708608,"train_seconds":11.56790430003457,"loss":4.6728315353393555,"accuracy":0.251220703125,"penalty":0.010835560069027946,"timestamp":"2026-11-25T06:51:00+00:00","raw_trace":4923.87890625},{"step":176,"tokens":720896,"train_seconds":11.68196100003479,"loss":4.613071441650391,"accuracy":0.259033203125,"timestamp":"2026-11-25T06:51:00+00:00"},{"step":178,"tokens":729088,"train_seconds":12.131949000035092,"loss":4.52752685546875,"accuracy":0.260009765625,"penalty":0.01092961915312728,"timestamp":"2026-11-25T06:51:00+00:00","raw_trace":4966.62109375},{"step":184,"tokens":753664,"train_seconds":12.38341450004009,"loss":4.479483127593994,"accuracy":0.25732421875,"timestamp":"2026-11-25T06:51:01+00:00"},{"step":188,"tokens":770048,"train_seconds":12.912983600042935,"loss":4.473124027252197,"accuracy":0.2626953125,"penalty":0.012565677291645256,"timestamp":"2026-11-25T06:51:01+00:00","raw_trace":5710.076171875},{"step":192,"tokens":786432,"train_seconds":13.073064700045506,"loss":4.580009937286377,"accuracy":0.253662109375,"dev_nll":4.403876190481242,"dev_accuracy":0.271484375,"timestamp":"2026-11-25T06:51:01+00:00"},{"step":200,"tokens":819200,"train_seconds":13.359322300049826,"loss":4.46673583984375,"accuracy":0.264404296875,"timestamp":"2026-11-25T06:51:02+00:00"},{"step":208,"tokens":851968,"train_seconds":13.734861600049044,"loss":4.431626319885254,"accuracy":0.267822265625,"timestamp":"2026-11-25T06:51:03+00:00"},{"step":216,"tokens":884736,"train_seconds":14.278468700049416,"loss":4.330707550048828,"accuracy":0.278076171875,"penalty":0.007502004951850433,"timestamp":"2026-11-25T06:51:03+00:00","raw_trace":3409.0498046875},{"step":221,"tokens":905216,"train_seconds":14.773558600049,"loss":4.462099075317383,"accuracy":0.258544921875,"penalty":0.007961733016486944,"timestamp":"2026-11-25T06:51:04+00:00","raw_trace":3617.958740234375},{"step":224,"tokens":917504,"train_seconds":15.242155400050251,"loss":4.289160251617432,"accuracy":0.279052734375,"penalty":0.012301878610157378,"dev_nll":4.250210289465031,"dev_accuracy":0.28515625,"timestamp":"2026-11-25T06:51:04+00:00","raw_trace":5590.201171875},{"step":225,"tokens":921600,"train_seconds":15.570033200048783,"loss":4.252326011657715,"accuracy":0.28515625,"penalty":0.01170103237010285,"timestamp":"2026-11-25T06:51:05+00:00","raw_trace":5317.16552734375},{"step":232,"tokens":950272,"train_seconds":15.88045700004659,"loss":4.241890907287598,"accuracy":0.293212890625,"timestamp":"2026-11-25T06:51:05+00:00"},{"step":240,"tokens":983040,"train_seconds":16.19604930004789,"loss":4.280012607574463,"accuracy":0.283203125,"timestamp":"2026-11-25T06:51:05+00:00"},{"step":248,"tokens":1015808,"train_seconds":16.830501600044954,"loss":4.323281288146973,"accuracy":0.28125,"penalty":0.011860167540730103,"timestamp":"2026-11-25T06:51:06+00:00","raw_trace":5389.4794921875},{"step":256,"tokens":1048576,"train_seconds":17.135390400042525,"loss":4.182322025299072,"accuracy":0.294921875,"dev_nll":4.139660087501397,"dev_accuracy":0.2955322265625,"timestamp":"2026-11-25T06:51:06+00:00"},{"step":262,"tokens":1073152,"train_seconds":17.663949700039666,"loss":4.054904937744141,"accuracy":0.2958984375,"penalty":0.009687159426962556,"timestamp":"2026-11-25T06:51:07+00:00","raw_trace":4402.0244140625},{"step":264,"tokens":1081344,"train_seconds":17.738395800039143,"loss":4.115015029907227,"accuracy":0.291748046875,"timestamp":"2026-11-25T06:51:08+00:00"},{"step":268,"tokens":1097728,"train_seconds":18.276928000035696,"loss":4.120268821716309,"accuracy":0.307373046875,"penalty":0.009946993133807699,"timestamp":"2026-11-25T06:51:08+00:00","raw_trace":4520.09765625},{"step":272,"tokens":1114112,"train_seconds":18.425831800039305,"loss":4.1121826171875,"accuracy":0.296142578125,"timestamp":"2026-11-25T06:51:08+00:00"},{"step":280,"tokens":1146880,"train_seconds":18.707329200042295,"loss":4.080334663391113,"accuracy":0.30224609375,"timestamp":"2026-11-25T06:51:08+00:00"},{"step":288,"tokens":1179648,"train_seconds":18.99882160004563,"loss":4.082331657409668,"accuracy":0.30712890625,"dev_nll":4.051825177652063,"dev_accuracy":0.303955078125,"timestamp":"2026-11-25T06:51:09+00:00"},{"step":296,"tokens":1212416,"train_seconds":19.320241400044324,"loss":4.166231155395508,"accuracy":0.2978515625,"timestamp":"2026-11-25T06:51:10+00:00"},{"step":304,"tokens":1245184,"train_seconds":19.608742300046288,"loss":4.100678443908691,"accuracy":0.290771484375,"timestamp":"2026-11-25T06:51:10+00:00"},{"step":312,"tokens":1277952,"train_seconds":19.910828100048093,"loss":3.930966377258301,"accuracy":0.32275390625,"timestamp":"2026-11-25T06:51:10+00:00"},{"step":318,"tokens":1302528,"train_seconds":20.512542900050903,"loss":3.943939208984375,"accuracy":0.317626953125,"penalty":0.008602754979957349,"timestamp":"2026-11-25T06:51:11+00:00","raw_trace":3909.2509765625},{"step":320,"tokens":1310720,"train_seconds":20.590868200051773,"loss":3.9921629428863525,"accuracy":0.30078125,"dev_nll":3.9940540725947358,"dev_accuracy":0.3089599609375,"timestamp":"2026-11-25T06:51:11+00:00"},{"step":321,"tokens":1314816,"train_seconds":20.844798700050887,"loss":4.141536712646484,"accuracy":0.28857421875,"penalty":0.007457554255096854,"timestamp":"2026-11-25T06:51:12+00:00","raw_trace":3388.8505859375},{"step":324,"tokens":1327104,"train_seconds":21.127714300051593,"loss":4.097291469573975,"accuracy":0.30029296875,"penalty":0.012180142068917774,"timestamp":"2026-11-25T06:51:12+00:00","raw_trace":5534.8818359375},{"step":328,"tokens":1343488,"train_seconds":21.255044500048825,"loss":3.9896750450134277,"accuracy":0.3115234375,"timestamp":"2026-11-25T06:51:12+00:00"},{"step":334,"tokens":1368064,"train_seconds":21.642791300044337,"loss":3.908294200897217,"accuracy":0.31787109375,"penalty":0.010145873683042043,"timestamp":"2026-11-25T06:51:12+00:00","raw_trace":4610.47265625},{"step":335,"tokens":1372160,"train_seconds":21.860951700044097,"loss":4.065169334411621,"accuracy":0.3017578125,"penalty":0.01027850906921424,"timestamp":"2026-11-25T06:51:13+00:00","raw_trace":4670.74462890625},{"step":336,"tokens":1376256,"train_seconds":21.889475600040896,"loss":3.9263741970062256,"accuracy":0.323974609375,"timestamp":"2026-11-25T06:51:13+00:00"},{"step":344,"tokens":1409024,"train_seconds":22.139443100040808,"loss":4.056956768035889,"accuracy":0.294921875,"timestamp":"2026-11-25T06:51:13+00:00"},{"step":352,"tokens":1441792,"train_seconds":22.368452200043976,"loss":4.117822170257568,"accuracy":0.29833984375,"dev_nll":3.9414745612593833,"dev_accuracy":0.31494140625,"timestamp":"2026-11-25T06:51:13+00:00"},{"step":360,"tokens":1474560,"train_seconds":22.619752200047515,"loss":3.978426933288574,"accuracy":0.315185546875,"timestamp":"2026-11-25T06:51:14+00:00"},{"step":367,"tokens":1503232,"train_seconds":23.04519360004997,"loss":3.888845443725586,"accuracy":0.320556640625,"penalty":0.010191910369652715,"timestamp":"2026-11-25T06:51:14+00:00","raw_trace":4631.392578125},{"step":368,"tokens":1507328,"train_seconds":23.08020930004932,"loss":3.9517040252685547,"accuracy":0.31982421875,"timestamp":"2026-11-25T06:51:14+00:00"},{"step":376,"tokens":1540096,"train_seconds":23.323331400053576,"loss":4.0296711921691895,"accuracy":0.30908203125,"timestamp":"2026-11-25T06:51:15+00:00"},{"step":384,"tokens":1572864,"train_seconds":23.558647700047004,"loss":3.9453911781311035,"accuracy":0.322021484375,"dev_nll":3.9050600092159584,"dev_accuracy":0.3223876953125,"timestamp":"2026-11-25T06:51:15+00:00"},{"step":388,"tokens":1589248,"train_seconds":23.901957200050674,"loss":3.923780918121338,"accuracy":0.3193359375,"penalty":0.016116936379680813,"timestamp":"2026-11-25T06:51:16+00:00","raw_trace":7323.833984375},{"step":389,"tokens":1593344,"train_seconds":24.11770230004913,"loss":3.9914968013763428,"accuracy":0.31689453125,"penalty":0.014873914680145315,"timestamp":"2026-11-25T06:51:16+00:00","raw_trace":6758.98193359375},{"step":392,"tokens":1605632,"train_seconds":24.219314800051507,"loss":3.888617515563965,"accuracy":0.32763671875,"timestamp":"2026-11-25T06:51:16+00:00"},{"step":400,"tokens":1638400,"train_seconds":24.66923910004334,"loss":4.007726669311523,"accuracy":0.306640625,"penalty":0.015369636440742544,"timestamp":"2026-11-25T06:51:16+00:00","raw_trace":6984.2470703125},{"step":406,"tokens":1662976,"train_seconds":25.03671170004236,"loss":4.075592994689941,"accuracy":0.302490234375,"penalty":0.011012909409077698,"timestamp":"2026-11-25T06:51:17+00:00","raw_trace":5004.4697265625},{"step":408,"tokens":1671168,"train_seconds":25.260129300040717,"loss":3.8938279151916504,"accuracy":0.33056640625,"penalty":0.009509310435636686,"timestamp":"2026-11-25T06:51:17+00:00","raw_trace":4321.20654296875},{"step":415,"tokens":1699840,"train_seconds":25.6885908000404,"loss":3.8551981449127197,"accuracy":0.33447265625,"penalty":0.014207844069958342,"timestamp":"2026-11-25T06:51:17+00:00","raw_trace":6456.30712890625},{"step":416,"tokens":1703936,"train_seconds":25.715149700041366,"loss":3.9819998741149902,"accuracy":0.310546875,"dev_nll":3.8803201698174234,"dev_accuracy":0.32080078125,"timestamp":"2026-11-25T06:51:17+00:00"},{"step":424,"tokens":1736704,"train_seconds":25.959008700039703,"loss":3.937988042831421,"accuracy":0.31982421875,"timestamp":"2026-11-25T06:51:18+00:00"},{"step":432,"tokens":1769472,"train_seconds":26.200149600044824,"loss":3.857825756072998,"accuracy":0.326904296875,"timestamp":"2026-11-25T06:51:18+00:00"},{"step":439,"tokens":1798144,"train_seconds":26.579115200041997,"loss":3.8692593574523926,"accuracy":0.321533203125,"penalty":0.01775990797263005,"timestamp":"2026-11-25T06:51:19+00:00","raw_trace":8070.4306640625},{"step":440,"tokens":1802240,"train_seconds":26.609308200040687,"loss":3.9758071899414062,"accuracy":0.31787109375,"timestamp":"2026-11-25T06:51:19+00:00"},{"step":441,"tokens":1806336,"train_seconds":26.876814100040065,"loss":3.937661647796631,"accuracy":0.328369140625,"penalty":0.016164978118509195,"timestamp":"2026-11-25T06:51:19+00:00","raw_trace":7345.6650390625},{"step":448,"tokens":1835008,"train_seconds":27.118994400043448,"loss":3.7448387145996094,"accuracy":0.343017578125,"dev_nll":3.85821345919976,"dev_accuracy":0.322509765625,"timestamp":"2026-11-25T06:51:19+00:00"},{"step":456,"tokens":1867776,"train_seconds":27.437778200037428,"loss":3.976170539855957,"accuracy":0.308837890625,"timestamp":"2026-11-25T06:51:20+00:00"},{"step":463,"tokens":1896448,"train_seconds":27.89983830003257,"loss":3.884978771209717,"accuracy":0.320556640625,"penalty":0.014478127472847008,"timestamp":"2026-11-25T06:51:21+00:00","raw_trace":6579.12890625},{"step":464,"tokens":1900544,"train_seconds":27.929672600032063,"loss":3.9317352771759033,"accuracy":0.316650390625,"timestamp":"2026-11-25T06:51:21+00:00"},{"step":469,"tokens":1921024,"train_seconds":28.384007000036945,"loss":3.9404470920562744,"accuracy":0.316650390625,"penalty":0.016322799152554315,"timestamp":"2026-11-25T06:51:21+00:00","raw_trace":7417.3818359375},{"step":472,"tokens":1933312,"train_seconds":28.496448000034434,"loss":3.8793258666992188,"accuracy":0.334716796875,"timestamp":"2026-11-25T06:51:21+00:00"},{"step":475,"tokens":1945600,"train_seconds":28.851225100035663,"loss":3.8950910568237305,"accuracy":0.31640625,"penalty":0.013755689751600781,"timestamp":"2026-11-25T06:51:22+00:00","raw_trace":6250.83984375},{"step":480,"tokens":1966080,"train_seconds":29.23563950003154,"loss":3.9590420722961426,"accuracy":0.314453125,"penalty":0.02025741433904216,"dev_nll":3.8447808412020095,"dev_accuracy":0.3255615234375,"timestamp":"2026-11-25T06:51:22+00:00","raw_trace":9205.34375},{"step":487,"tokens":1994752,"train_seconds":29.682729300038773,"loss":3.8157942295074463,"accuracy":0.329833984375,"penalty":0.017315208666215935,"timestamp":"2026-11-25T06:51:23+00:00","raw_trace":7868.35107421875},{"step":488,"tokens":1998848,"train_seconds":29.71785080003974,"loss":3.892566680908203,"accuracy":0.3271484375,"timestamp":"2026-11-25T06:51:23+00:00"},{"step":496,"tokens":2031616,"train_seconds":29.987959000038245,"loss":3.8415732383728027,"accuracy":0.314208984375,"timestamp":"2026-11-25T06:51:23+00:00"},{"step":504,"tokens":2064384,"train_seconds":30.27765350003392,"loss":3.720381736755371,"accuracy":0.33642578125,"timestamp":"2026-11-25T06:51:23+00:00"},{"step":506,"tokens":2072576,"train_seconds":30.58426910003618,"loss":3.9694933891296387,"accuracy":0.305908203125,"penalty":0.01845845913932126,"timestamp":"2026-11-25T06:51:24+00:00","raw_trace":8387.865234375},{"step":512,"tokens":2097152,"train_seconds":30.792565400039166,"loss":3.8753390312194824,"accuracy":0.324462890625,"dev_nll":3.8327224641980138,"dev_accuracy":0.3265380859375,"timestamp":"2026-11-25T06:51:24+00:00"}],"samples":[{"timestamp":"2026-11-25T06:51:27+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:51:27+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:51:28+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun.\n\nLily was too warm to eat his friends. The boy knew he heard the forest. He was cool and to play with her mom.\n\nLily was scared","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,199,199,343,282,434,1154,266,757,351,478,14,298,526,702,279,750,263,1077,14,314,282,1326,265,266,360,342,310,365,14,199,199,343,282,631],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109},{"id":"stories-pilot-s00-trace-r10","stage":"stories","method":"trace","phase":"pilot","seed":0,"ratio":0.1,"coefficients":{"trace":9.169227719425724e-07},"data_manifest_sha256":"f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00","token_budget":2097152,"batch_windows":32,"microbatch":32,"context":128,"tokens":2097152,"train_seconds":29.650253500014514,"steps":512,"dev_nll":3.897900642381824,"dev_accuracy":0.3205648626479963,"tokens_per_sec":70729.64823046027,"peak_vram_mb":608.21533203125,"status":"complete","trainable_parameters":2557632,"device":"cuda","weights_sha256":"1d2c129314baa56b12b4799eed0d2fa0c06e5642996590bca585cf59f6d0d5b7","dev_tokens":715643,"git_revision":"30eae3ea4a52767f768ce62fcc6b8cca4a68d8df","gpu":"NVIDIA GeForce RTX 5070 Laptop GPU","torch":"2.15.0+cu132","matched_dev_nll":3.8497960159438662,"finished_at":"2026-11-25T06:52:26+00:00","target_tokens":2097152,"events":[{"step":1,"tokens":4096,"train_seconds":0.18704499999876134,"loss":8.350095748901367,"accuracy":0.003173828125,"timestamp":"2026-11-25T06:51:45+00:00"},{"step":2,"tokens":8192,"train_seconds":0.5053489999991143,"loss":8.342284202575684,"accuracy":0.00439453125,"penalty":0.008735180297689804,"timestamp":"2026-11-25T06:51:46+00:00","raw_trace":1190.8282470703125},{"step":8,"tokens":32768,"train_seconds":0.7387179000033939,"loss":8.16711711883545,"accuracy":0.050048828125,"timestamp":"2026-11-25T06:51:46+00:00"},{"step":11,"tokens":45056,"train_seconds":1.1090808999979345,"loss":8.036948204040527,"accuracy":0.06689453125,"penalty":0.022035817574445067,"timestamp":"2026-11-25T06:51:46+00:00","raw_trace":3004.044921875},{"step":16,"tokens":65536,"train_seconds":1.2651448999968125,"loss":7.8132219314575195,"accuracy":0.0751953125,"timestamp":"2026-11-25T06:51:46+00:00"},{"step":22,"tokens":90112,"train_seconds":1.702397099998052,"loss":7.6106462478637695,"accuracy":0.067138671875,"penalty":0.005599149955558159,"timestamp":"2026-11-25T06:51:47+00:00","raw_trace":763.3071899414062},{"step":24,"tokens":98304,"train_seconds":1.770959399997082,"loss":7.490433216094971,"accuracy":0.076416015625,"timestamp":"2026-11-25T06:51:47+00:00"},{"step":25,"tokens":102400,"train_seconds":2.031066599996848,"loss":7.460245609283447,"accuracy":0.072265625,"penalty":0.005722083421279458,"timestamp":"2026-11-25T06:51:47+00:00","raw_trace":780.066162109375},{"step":32,"tokens":131072,"train_seconds":2.2707718999918143,"loss":7.088663101196289,"accuracy":0.072509765625,"dev_nll":7.050397411629092,"dev_accuracy":0.0682373046875,"timestamp":"2026-11-25T06:51:47+00:00"},{"step":40,"tokens":163840,"train_seconds":2.529665299989574,"loss":6.685197353363037,"accuracy":0.078857421875,"timestamp":"2026-11-25T06:51:48+00:00"},{"step":48,"tokens":196608,"train_seconds":2.7910551999921154,"loss":6.488059997558594,"accuracy":0.067138671875,"timestamp":"2026-11-25T06:51:48+00:00"},{"step":50,"tokens":204800,"train_seconds":3.0932055999910517,"loss":6.396085262298584,"accuracy":0.090576171875,"penalty":0.005472313300029343,"timestamp":"2026-11-25T06:51:49+00:00","raw_trace":746.01611328125},{"step":56,"tokens":229376,"train_seconds":3.288135599996167,"loss":6.212737083435059,"accuracy":0.093017578125,"timestamp":"2026-11-25T06:51:49+00:00"},{"step":64,"tokens":262144,"train_seconds":3.5501354999978503,"loss":6.0289812088012695,"accuracy":0.115478515625,"dev_nll":5.967894557135878,"dev_accuracy":0.097900390625,"timestamp":"2026-11-25T06:51:49+00:00"},{"step":72,"tokens":294912,"train_seconds":3.823324100005266,"loss":5.894116401672363,"accuracy":0.13330078125,"timestamp":"2026-11-25T06:51:50+00:00"},{"step":74,"tokens":303104,"train_seconds":4.12713900000017,"loss":5.815634727478027,"accuracy":0.1455078125,"penalty":0.011103190663904743,"timestamp":"2026-11-25T06:51:50+00:00","raw_trace":1513.6485595703125},{"step":80,"tokens":327680,"train_seconds":4.3070292999946105,"loss":5.70700740814209,"accuracy":0.140869140625,"timestamp":"2026-11-25T06:51:50+00:00"},{"step":84,"tokens":344064,"train_seconds":4.69188529999883,"loss":5.61992073059082,"accuracy":0.152587890625,"penalty":0.008720810398623265,"timestamp":"2026-11-25T06:51:51+00:00","raw_trace":1188.8692626953125},{"step":86,"tokens":352256,"train_seconds":4.976381600001332,"loss":5.526090145111084,"accuracy":0.173095703125,"penalty":0.022754805015588905,"timestamp":"2026-11-25T06:51:51+00:00","raw_trace":3102.061279296875},{"step":88,"tokens":360448,"train_seconds":5.043143400002009,"loss":5.600346565246582,"accuracy":0.1630859375,"timestamp":"2026-11-25T06:51:51+00:00"},{"step":91,"tokens":372736,"train_seconds":5.3862478000010015,"loss":5.499529838562012,"accuracy":0.18115234375,"penalty":0.01252939508736704,"timestamp":"2026-11-25T06:51:51+00:00","raw_trace":1708.07666015625},{"step":93,"tokens":380928,"train_seconds":5.685156500003359,"loss":5.469390869140625,"accuracy":0.182373046875,"penalty":0.01324683432590083,"timestamp":"2026-11-25T06:51:52+00:00","raw_trace":1805.8819580078125},{"step":96,"tokens":393216,"train_seconds":5.779702400010137,"loss":5.451296806335449,"accuracy":0.17822265625,"dev_nll":5.423692346928874,"dev_accuracy":0.1817626953125,"timestamp":"2026-11-25T06:51:52+00:00"},{"step":100,"tokens":409600,"train_seconds":6.153877000007924,"loss":5.328236103057861,"accuracy":0.181640625,"penalty":0.01488179090348712,"timestamp":"2026-11-25T06:51:53+00:00","raw_trace":2028.768310546875},{"step":104,"tokens":425984,"train_seconds":6.292300200006139,"loss":5.330329895019531,"accuracy":0.206298828125,"timestamp":"2026-11-25T06:51:53+00:00"},{"step":106,"tokens":434176,"train_seconds":6.618865700009337,"loss":5.311760902404785,"accuracy":0.192138671875,"penalty":0.017642242425228695,"timestamp":"2026-11-25T06:51:53+00:00","raw_trace":2405.08837890625},{"step":112,"tokens":458752,"train_seconds":6.815359100008209,"loss":5.3302483558654785,"accuracy":0.18408203125,"timestamp":"2026-11-25T06:51:53+00:00"},{"step":115,"tokens":471040,"train_seconds":7.165476200007106,"loss":5.207666397094727,"accuracy":0.20068359375,"penalty":0.022066090352837485,"timestamp":"2026-11-25T06:51:54+00:00","raw_trace":3008.171875},{"step":120,"tokens":491520,"train_seconds":7.336726700003055,"loss":5.0867719650268555,"accuracy":0.213134765625,"timestamp":"2026-11-25T06:51:54+00:00"},{"step":121,"tokens":495616,"train_seconds":7.579163100002916,"loss":5.087182521820068,"accuracy":0.221923828125,"penalty":0.019993241366813394,"timestamp":"2026-11-25T06:51:54+00:00","raw_trace":2725.589599609375},{"step":126,"tokens":516096,"train_seconds":8.019636700002593,"loss":5.064611434936523,"accuracy":0.213623046875,"penalty":0.025880625189842545,"timestamp":"2026-11-25T06:51:55+00:00","raw_trace":3528.1904296875},{"step":127,"tokens":520192,"train_seconds":8.352388700001029,"loss":5.130087852478027,"accuracy":0.20849609375,"penalty":0.018120897602560183,"timestamp":"2026-11-25T06:51:55+00:00","raw_trace":2470.34130859375},{"step":128,"tokens":524288,"train_seconds":8.388009300000704,"loss":5.099069595336914,"accuracy":0.221435546875,"dev_nll":4.984361226554029,"dev_accuracy":0.2216796875,"timestamp":"2026-11-25T06:51:55+00:00"},{"step":130,"tokens":532480,"train_seconds":8.710221200002707,"loss":4.9756011962890625,"accuracy":0.219482421875,"penalty":0.022255653390747875,"timestamp":"2026-11-25T06:51:56+00:00","raw_trace":3034.01416015625},{"step":131,"tokens":536576,"train_seconds":8.987017499999638,"loss":4.930669784545898,"accuracy":0.22216796875,"penalty":0.02113420669644802,"timestamp":"2026-11-25T06:51:56+00:00","raw_trace":2881.13232421875},{"step":136,"tokens":557056,"train_seconds":9.14667520000512,"loss":4.925002098083496,"accuracy":0.218505859375,"timestamp":"2026-11-25T06:51:56+00:00"},{"step":144,"tokens":589824,"train_seconds":9.428938899996865,"loss":4.987575531005859,"accuracy":0.21435546875,"timestamp":"2026-11-25T06:51:56+00:00"},{"step":152,"tokens":622592,"train_seconds":9.723538999995071,"loss":4.7584943771362305,"accuracy":0.227783203125,"timestamp":"2026-11-25T06:51:57+00:00"},{"step":158,"tokens":647168,"train_seconds":10.171952999997302,"loss":4.627571105957031,"accuracy":0.25048828125,"penalty":0.03252851944501214,"timestamp":"2026-11-25T06:51:57+00:00","raw_trace":4434.46826171875},{"step":160,"tokens":655360,"train_seconds":10.24414809999871,"loss":4.771812438964844,"accuracy":0.245361328125,"dev_nll":4.65658158127917,"dev_accuracy":0.2542724609375,"timestamp":"2026-11-25T06:51:57+00:00"},{"step":164,"tokens":671744,"train_seconds":10.632742699996015,"loss":4.753289222717285,"accuracy":0.2431640625,"penalty":0.030723825598161524,"timestamp":"2026-11-25T06:51:58+00:00","raw_trace":4188.4423828125},{"step":168,"tokens":688128,"train_seconds":10.75186439999743,"loss":4.69763708114624,"accuracy":0.24462890625,"timestamp":"2026-11-25T06:51:58+00:00"},{"step":173,"tokens":708608,"train_seconds":11.132509099996241,"loss":4.695739269256592,"accuracy":0.25,"penalty":0.03169748296661804,"timestamp":"2026-11-25T06:51:59+00:00","raw_trace":4321.1767578125},{"step":176,"tokens":720896,"train_seconds":11.227659599997423,"loss":4.636568069458008,"accuracy":0.256103515625,"timestamp":"2026-11-25T06:51:59+00:00"},{"step":178,"tokens":729088,"train_seconds":11.528015999996569,"loss":4.551403045654297,"accuracy":0.255126953125,"penalty":0.03595969102010575,"timestamp":"2026-11-25T06:51:59+00:00","raw_trace":4902.224609375},{"step":184,"tokens":753664,"train_seconds":11.732121299995924,"loss":4.506631851196289,"accuracy":0.255615234375,"timestamp":"2026-11-25T06:51:59+00:00"},{"step":188,"tokens":770048,"train_seconds":12.129948399993737,"loss":4.498213768005371,"accuracy":0.2578125,"penalty":0.04006533451028427,"timestamp":"2026-11-25T06:52:00+00:00","raw_trace":5461.9287109375},{"step":192,"tokens":786432,"train_seconds":12.266608399997494,"loss":4.605575084686279,"accuracy":0.250244140625,"dev_nll":4.432233860774431,"dev_accuracy":0.2689208984375,"timestamp":"2026-11-25T06:52:00+00:00"},{"step":200,"tokens":819200,"train_seconds":12.54377370000293,"loss":4.490656852722168,"accuracy":0.26171875,"timestamp":"2026-11-25T06:52:01+00:00"},{"step":208,"tokens":851968,"train_seconds":12.851331400008348,"loss":4.453110694885254,"accuracy":0.26513671875,"timestamp":"2026-11-25T06:52:01+00:00"},{"step":216,"tokens":884736,"train_seconds":13.375732000007702,"loss":4.355359077453613,"accuracy":0.272216796875,"penalty":0.022168072939109048,"timestamp":"2026-11-25T06:52:01+00:00","raw_trace":3022.07470703125},{"step":221,"tokens":905216,"train_seconds":13.781171100010397,"loss":4.486282825469971,"accuracy":0.253662109375,"penalty":0.024994508873999496,"timestamp":"2026-11-25T06:52:02+00:00","raw_trace":3407.39013671875},{"step":224,"tokens":917504,"train_seconds":14.126200600010634,"loss":4.3166704177856445,"accuracy":0.271240234375,"penalty":0.03492670588292089,"dev_nll":4.2765549320029095,"dev_accuracy":0.279541015625,"timestamp":"2026-11-25T06:52:02+00:00","raw_trace":4761.40234375},{"step":225,"tokens":921600,"train_seconds":14.400231100011297,"loss":4.283416748046875,"accuracy":0.274169921875,"penalty":0.03202730653479903,"timestamp":"2026-11-25T06:52:03+00:00","raw_trace":4366.14013671875},{"step":232,"tokens":950272,"train_seconds":14.6386300000122,"loss":4.268531799316406,"accuracy":0.287841796875,"timestamp":"2026-11-25T06:52:03+00:00"},{"step":240,"tokens":983040,"train_seconds":14.914847400013969,"loss":4.307300567626953,"accuracy":0.28076171875,"timestamp":"2026-11-25T06:52:03+00:00"},{"step":248,"tokens":1015808,"train_seconds":15.417136400006711,"loss":4.349478721618652,"accuracy":0.2802734375,"penalty":0.03665253362619571,"timestamp":"2026-11-25T06:52:04+00:00","raw_trace":4996.6767578125},{"step":256,"tokens":1048576,"train_seconds":15.68621890000577,"loss":4.204690933227539,"accuracy":0.29345703125,"dev_nll":4.162187252746662,"dev_accuracy":0.2926025390625,"timestamp":"2026-11-25T06:52:04+00:00"},{"step":262,"tokens":1073152,"train_seconds":16.087624000003416,"loss":4.078912734985352,"accuracy":0.29345703125,"penalty":0.03322448890102359,"timestamp":"2026-11-25T06:52:05+00:00","raw_trace":4529.3466796875},{"step":264,"tokens":1081344,"train_seconds":16.15240220000487,"loss":4.141406059265137,"accuracy":0.291259765625,"timestamp":"2026-11-25T06:52:05+00:00"},{"step":268,"tokens":1097728,"train_seconds":16.555017000002408,"loss":4.143558979034424,"accuracy":0.302734375,"penalty":0.031244372684636142,"timestamp":"2026-11-25T06:52:05+00:00","raw_trace":4259.40625},{"step":272,"tokens":1114112,"train_seconds":16.683379199999763,"loss":4.132314682006836,"accuracy":0.29296875,"timestamp":"2026-11-25T06:52:06+00:00"},{"step":280,"tokens":1146880,"train_seconds":16.95012069999939,"loss":4.101914882659912,"accuracy":0.297607421875,"timestamp":"2026-11-25T06:52:06+00:00"},{"step":288,"tokens":1179648,"train_seconds":17.2226859999937,"loss":4.102149963378906,"accuracy":0.30322265625,"dev_nll":4.071752710966393,"dev_accuracy":0.3023681640625,"timestamp":"2026-11-25T06:52:06+00:00"},{"step":296,"tokens":1212416,"train_seconds":17.484577599996555,"loss":4.186497688293457,"accuracy":0.293701171875,"timestamp":"2026-11-25T06:52:07+00:00"},{"step":304,"tokens":1245184,"train_seconds":17.75019909999901,"loss":4.120575904846191,"accuracy":0.2890625,"timestamp":"2026-11-25T06:52:07+00:00"},{"step":312,"tokens":1277952,"train_seconds":17.996754700001475,"loss":3.952484607696533,"accuracy":0.321044921875,"timestamp":"2026-11-25T06:52:07+00:00"},{"step":318,"tokens":1302528,"train_seconds":18.429178300004423,"loss":3.963650703430176,"accuracy":0.31494140625,"penalty":0.027076706174221907,"timestamp":"2026-11-25T06:52:08+00:00","raw_trace":3691.246826171875},{"step":320,"tokens":1310720,"train_seconds":18.49986610000633,"loss":4.010334491729736,"accuracy":0.297119140625,"dev_nll":4.012923396774568,"dev_accuracy":0.30712890625,"timestamp":"2026-11-25T06:52:08+00:00"},{"step":321,"tokens":1314816,"train_seconds":18.771132400008355,"loss":4.159890174865723,"accuracy":0.28857421875,"penalty":0.025691182139873012,"timestamp":"2026-11-25T06:52:09+00:00","raw_trace":3502.364501953125},{"step":324,"tokens":1327104,"train_seconds":19.141895500008104,"loss":4.11619234085083,"accuracy":0.29736328125,"penalty":0.03875242287966815,"timestamp":"2026-11-25T06:52:09+00:00","raw_trace":5282.9453125},{"step":328,"tokens":1343488,"train_seconds":19.275617600007536,"loss":4.007248878479004,"accuracy":0.30712890625,"timestamp":"2026-11-25T06:52:09+00:00"},{"step":334,"tokens":1368064,"train_seconds":19.73720740000863,"loss":3.9264473915100098,"accuracy":0.3134765625,"penalty":0.03490669475976916,"timestamp":"2026-11-25T06:52:10+00:00","raw_trace":4758.67431640625},{"step":335,"tokens":1372160,"train_seconds":20.00749490000817,"loss":4.081955909729004,"accuracy":0.297607421875,"penalty":0.03215086546004787,"timestamp":"2026-11-25T06:52:10+00:00","raw_trace":4382.984375},{"step":336,"tokens":1376256,"train_seconds":20.04155140000512,"loss":3.9473485946655273,"accuracy":0.320068359375,"timestamp":"2026-11-25T06:52:10+00:00"},{"step":344,"tokens":1409024,"train_seconds":20.30552240000543,"loss":4.075821876525879,"accuracy":0.293212890625,"timestamp":"2026-11-25T06:52:10+00:00"},{"step":352,"tokens":1441792,"train_seconds":20.575962500006426,"loss":4.136089324951172,"accuracy":0.298583984375,"dev_nll":3.9603105499700177,"dev_accuracy":0.3128662109375,"timestamp":"2026-11-25T06:52:10+00:00"},{"step":360,"tokens":1474560,"train_seconds":20.848309200002404,"loss":3.9981818199157715,"accuracy":0.310791015625,"timestamp":"2026-11-25T06:52:11+00:00"},{"step":367,"tokens":1503232,"train_seconds":21.313339400006953,"loss":3.905707359313965,"accuracy":0.317138671875,"penalty":0.031495305077134286,"timestamp":"2026-11-25T06:52:12+00:00","raw_trace":4293.61474609375},{"step":368,"tokens":1507328,"train_seconds":21.345624000005046,"loss":3.968700885772705,"accuracy":0.318603515625,"timestamp":"2026-11-25T06:52:12+00:00"},{"step":376,"tokens":1540096,"train_seconds":21.62875550001263,"loss":4.047111988067627,"accuracy":0.306884765625,"timestamp":"2026-11-25T06:52:12+00:00"},{"step":384,"tokens":1572864,"train_seconds":21.893588100010675,"loss":3.964454174041748,"accuracy":0.31787109375,"dev_nll":3.9230027138546575,"dev_accuracy":0.3192138671875,"timestamp":"2026-11-25T06:52:12+00:00"},{"step":388,"tokens":1589248,"train_seconds":22.263918300013756,"loss":3.9419565200805664,"accuracy":0.317626953125,"penalty":0.04965274348484821,"timestamp":"2026-11-25T06:52:13+00:00","raw_trace":6768.9375},{"step":389,"tokens":1593344,"train_seconds":22.511800500011304,"loss":4.0087666511535645,"accuracy":0.31591796875,"penalty":0.045344015927602725,"timestamp":"2026-11-25T06:52:13+00:00","raw_trace":6181.5478515625},{"step":392,"tokens":1605632,"train_seconds":22.60434760001226,"loss":3.906049966812134,"accuracy":0.326416015625,"timestamp":"2026-11-25T06:52:13+00:00"},{"step":400,"tokens":1638400,"train_seconds":23.17178030001378,"loss":4.028077602386475,"accuracy":0.30126953125,"penalty":0.046999956963353545,"timestamp":"2026-11-25T06:52:14+00:00","raw_trace":6407.294921875},{"step":406,"tokens":1662976,"train_seconds":23.589813100017636,"loss":4.090489387512207,"accuracy":0.301513671875,"penalty":0.03284920960276947,"timestamp":"2026-11-25T06:52:14+00:00","raw_trace":4478.1865234375},{"step":408,"tokens":1671168,"train_seconds":23.89433850002024,"loss":3.910804033279419,"accuracy":0.327880859375,"penalty":0.028206326375418533,"timestamp":"2026-11-25T06:52:15+00:00","raw_trace":3845.242919921875},{"step":415,"tokens":1699840,"train_seconds":24.387312100021518,"loss":3.8735709190368652,"accuracy":0.33251953125,"penalty":0.04173818130964278,"timestamp":"2026-11-25T06:52:15+00:00","raw_trace":5689.98046875},{"step":416,"tokens":1703936,"train_seconds":24.419286100022873,"loss":4.00063943862915,"accuracy":0.308837890625,"dev_nll":3.899180283595342,"dev_accuracy":0.3194580078125,"timestamp":"2026-11-25T06:52:15+00:00"},{"step":424,"tokens":1736704,"train_seconds":24.716372400027467,"loss":3.955423593521118,"accuracy":0.318115234375,"timestamp":"2026-11-25T06:52:16+00:00"},{"step":432,"tokens":1769472,"train_seconds":25.006045100024494,"loss":3.876844882965088,"accuracy":0.327392578125,"timestamp":"2026-11-25T06:52:16+00:00"},{"step":439,"tokens":1798144,"train_seconds":25.511512500026583,"loss":3.8841552734375,"accuracy":0.317626953125,"penalty":0.060757265656723534,"timestamp":"2026-11-25T06:52:17+00:00","raw_trace":8282.767578125},{"step":440,"tokens":1802240,"train_seconds":25.54939070002729,"loss":3.993340015411377,"accuracy":0.318115234375,"timestamp":"2026-11-25T06:52:17+00:00"},{"step":441,"tokens":1806336,"train_seconds":25.80575270002737,"loss":3.9547269344329834,"accuracy":0.325927734375,"penalty":0.045666371589613786,"timestamp":"2026-11-25T06:52:17+00:00","raw_trace":6225.4931640625},{"step":448,"tokens":1835008,"train_seconds":26.04091500002687,"loss":3.7647438049316406,"accuracy":0.339599609375,"dev_nll":3.875805886258604,"dev_accuracy":0.3209228515625,"timestamp":"2026-11-25T06:52:17+00:00"},{"step":456,"tokens":1867776,"train_seconds":26.321675600029266,"loss":3.9952094554901123,"accuracy":0.306396484375,"timestamp":"2026-11-25T06:52:18+00:00"},{"step":463,"tokens":1896448,"train_seconds":26.778412000025128,"loss":3.9038822650909424,"accuracy":0.3193359375,"penalty":0.04656584417505283,"timestamp":"2026-11-25T06:52:18+00:00","raw_trace":6348.1142578125},{"step":464,"tokens":1900544,"train_seconds":26.809916100024566,"loss":3.9476122856140137,"accuracy":0.315185546875,"timestamp":"2026-11-25T06:52:18+00:00"},{"step":469,"tokens":1921024,"train_seconds":27.210075400020287,"loss":3.9557032585144043,"accuracy":0.314697265625,"penalty":0.054007367324904916,"timestamp":"2026-11-25T06:52:19+00:00","raw_trace":7362.583984375},{"step":472,"tokens":1933312,"train_seconds":27.313997000022937,"loss":3.899108409881592,"accuracy":0.332275390625,"timestamp":"2026-11-25T06:52:19+00:00"},{"step":475,"tokens":1945600,"train_seconds":27.6604752000203,"loss":3.9117913246154785,"accuracy":0.31396484375,"penalty":0.043423234643402774,"timestamp":"2026-11-25T06:52:19+00:00","raw_trace":5919.6962890625},{"step":480,"tokens":1966080,"train_seconds":28.06518550002147,"loss":3.977926254272461,"accuracy":0.309326171875,"penalty":0.06265629867892647,"dev_nll":3.861864589707693,"dev_accuracy":0.3221435546875,"timestamp":"2026-11-25T06:52:20+00:00","raw_trace":8541.654296875},{"step":487,"tokens":1994752,"train_seconds":28.533141900017654,"loss":3.8323607444763184,"accuracy":0.328125,"penalty":0.05948676170430977,"timestamp":"2026-11-25T06:52:21+00:00","raw_trace":8109.5654296875},{"step":488,"tokens":1998848,"train_seconds":28.56886720001785,"loss":3.9115872383117676,"accuracy":0.32373046875,"timestamp":"2026-11-25T06:52:21+00:00"},{"step":496,"tokens":2031616,"train_seconds":28.874180500017246,"loss":3.858711004257202,"accuracy":0.310302734375,"timestamp":"2026-11-25T06:52:21+00:00"},{"step":504,"tokens":2064384,"train_seconds":29.14581510001517,"loss":3.7370362281799316,"accuracy":0.333740234375,"timestamp":"2026-11-25T06:52:21+00:00"},{"step":506,"tokens":2072576,"train_seconds":29.452699000015855,"loss":3.9878549575805664,"accuracy":0.3046875,"penalty":0.06067229270421742,"timestamp":"2026-11-25T06:52:22+00:00","raw_trace":8271.18359375},{"step":512,"tokens":2097152,"train_seconds":29.650253500014514,"loss":3.8928956985473633,"accuracy":0.322509765625,"dev_nll":3.8497960159438662,"dev_accuracy":0.3248291015625,"timestamp":"2026-11-25T06:52:22+00:00"}],"samples":[{"timestamp":"2026-11-25T06:52:24+00:00","split":"dev","prompt":"Once upon a time, there was a clever little dog named Max. Max loved","reference":" to run and play with his friends in the park. One day, Max was running very fast when he fell and hurt his knee.\n\nMax went to his friend, the wise old owl,","continuation":" to play on the cat.","prompt_ids":[431,447,259,396,12,399,282,259,2199,398,628,500,709,14,709,505],"generated_ids":[266,360,345,263,701,14,0],"tokens":7,"sampling_seed":7401,"temperature":0.8},{"timestamp":"2026-11-25T06:52:25+00:00","split":"dev","prompt":"Once there was a bear who loved spicy food. He always used to pick the","reference":" spiciest of all the food in the village. One day, he was making his usual rounds at the village market when he saw his friend, the rabbit. The bear waved and the","continuation":" books and be twins. But he couldriending the tree and open his friends. Timmy heard them and said, \"I worry, hug, here?\" Lily smiled and snake. She said on,","prompt_ids":[431,399,282,259,799,591,505,2474,1035,14,314,669,1309,266,767,263],"generated_ids":[1462,265,331,1798,14,551,279,459,415,289,263,682,265,1182,351,478,14,524,750,448,265,327,12,333,41,1312,12,580,12,1191,481,363,503,265,2264,14,313,327,345,12],"tokens":40,"sampling_seed":7402,"temperature":0.8},{"timestamp":"2026-11-25T06:52:25+00:00","split":"dev","prompt":"Once upon a time there was a brilliant engine who lived in a car. One","reference":" day, the car drove to a special place with a lot of cars. The engine met many other engines. They all said hello and introduced themselves. \n\nOne engine was","continuation":" she showed her a sun. The shelf was very happy and he couldn't get about up. \n\nOne day, Lily opened him and asked, \"Good what try that there should enjoyed a pulled","prompt_ids":[431,447,259,396,399,282,259,3132,3413,591,913,316,259,566,14,508],"generated_ids":[338,1097,310,259,733,14,298,2516,282,388,403,265,279,745,423,602,668,358,14,410,199,420,356,12,363,967,435,265,512,12,333,2192,541,807,357,399,931,1427,259,1624],"tokens":40,"sampling_seed":7403,"temperature":0.8}],"events_total":109}],"stages":{"stories":{"stage":"stories","status":"pending","complete":false,"success":null,"n_expected_seeds":8,"n_complete_seeds":0,"missing":[],"comparisons":{},"matched_time":[],"matched_nonhost_time":[],"reason":"Awaiting confirmatory runs."},"abstracts":{"stage":"abstracts","status":"pending","complete":false,"success":null,"n_expected_seeds":8,"n_complete_seeds":0,"missing":[],"comparisons":{},"matched_time":[],"matched_nonhost_time":[],"reason":"Awaiting confirmatory runs."}},"method_names":{"ce":"Ordinary AdamW","trace":"Hessian trace","third":"Third derivative","hessian_norm":"Squared Hessian norm","sham":"Randomized gradient signs","combined":"Trace + third derivative","initial":"Initial checkpoint","unigram":"Unigram"},"stage_names":{"stories":"TinyStories","abstracts":"Research abstracts"},"colors":{"ce":"#374d67","trace":"#ac582a","third":"#007166","hessian_norm":"#64569c","sham":"#ac3c66","combined":"#3974a2","initial":"#674e35","unigram":"#73736c"},"context":{"stories":{"datasets":{"artifacts":{"dev.bin":{"bytes":1431288,"sha256":"91121d0c198e89d3b8771871837d19bbbe2b20c46dd8a79b9b195b2ba2112b41"},"documents.jsonl":{"bytes":26833353,"sha256":"c975c2242c37a9c288187ab2277fd95aa33ad06537d4ebcf5b4e40a34639317f"},"rejections.jsonl":{"bytes":409823,"sha256":"7e37c842ef4d6b69eb689b3e1c5ba435d086876617f0b22aa29cb0c918762737"},"test.bin":{"bytes":9768262,"sha256":"228df80efc7ea7acd95020cf2a4d209d6a5071febe0c62a4b21b3b65b2e1b7c4"},"tokenizer.json":{"bytes":265287,"sha256":"0c8368bcca1f031bc1d729d8fd5d93eb952ec4098e2994e8fce77ebc83aa00bd"},"train.bin":{"bytes":70957822,"sha256":"019c9e93b01e1df5e6b2b767088a30f9a47d010ba29d3f78efa4ce95461e8a10"}},"audit":{"dev":{"cross_split_near":0,"empty":0,"exact":44,"input":3150,"kept":3106},"test":{"cross_split_near":0,"empty":0,"exact":0,"input":21990,"kept":21990},"train":{"cross_split_near":0,"empty":28,"exact":2056,"input":156850,"kept":154766}},"dtype":"-1$. Moving right increases curvature, and its rate of increase slows. The trace penalty therefore pushes left. The squared third derivative is $1/(1+w)$, which decreases to the right, so that penalty pushes right. -- **A pull back after a displacement.** For $\ell(w)=w^4$, curvature is $12w^2$ and the third derivative is $24w$. The unweighted penalty is $576w^2$. Its gradient $1152w$ vanishes at zero and gives a descent step toward zero from either side. This is a mechanism for staying near a flat bottom after a small perturbation. [Analytic gradient check](../tests/test_derivatives.py) -- **A sharp minimum with zero penalty.** For $\ell(w)=a w^2$ with $a>0$, curvature is the constant $2a$. Increasing $a$ makes the low-loss interval narrower at any fixed tolerance, yet every member of this family has zero third derivative everywhere. The trace assigns a larger cost to the steeper quadratic, though its own gradient within each quadratic is also zero. - -### From a local penalty to basin width - -Stretch the same loss horizontally without changing its depth, so $\ell_s(w)=\ell(w/s)$ for $s>1$. At a fixed loss increase the width grows by $s$. At corresponding points the curvature scales by $s^{-2}$ and the third derivative by $s^{-3}$. Thus a wider version of the same valley can score lower on the third-derivative penalty. Even here, $\ell(w)=w^4$ and $16w^4$ both have zero third derivative at the bottom, although the former is twice as wide at a given loss increase. - -There is a sufficient condition for the loss to stay low over a displacement $r$. If the curvature at a smooth minimum $w_0$ is $h$ and $|\ell'''|\le M$ **throughout the interval** to $w_0+r$, Taylor’s theorem gives - -$$ -\ell(w_0+r)-\ell(w_0)\ \le\ \tfrac12 h r^2+\tfrac16 M|r|^3 . -$$ - -Small initial curvature and slowly changing curvature across the interval together limit the loss increase. The training code samples the third derivative of two-window cross-entropy at the **current weights**. For TinyStories these coordinates include the whole decoder. For research abstracts they include only the trainable low-rank attention factors of Pythia-410M. A width measurement would therefore need a fixed loss tolerance and perturbations in the corresponding stage’s trainable coordinates. The logged penalty estimates describe local curvature change. The preregistered test compares held-out next-token loss across matched seeds at equal training tokens. [Taylor remainder, equation 22](https://link.springer.com/article/10.1007/s10288-023-00541-9) · [Stage definitions](../reports/planned-runs.md) · [Preregistered comparison](../reports/preregistration.md) - -## What gets differentiated? - -Let $\theta=(\theta_1,\ldots,\theta_d)$ be the $d$ trainable numbers. Let $B$ be the fixed **minibatch**, the training examples whose mean loss is $\ell_B(\theta)$. Write $\partial_i$ for the rate of change as weight $\theta_i$ moves with all other weights held fixed. - -With many weights you choose **which weight** to differentiate at each step. PyTorch applies the chain rule at the current weights along the chosen directions. The estimate enters when one pair of directions stands in for the sum of squares over all weight triples. [Penalty implementation](../src/thirdloss/penalties.py) - -| Quantity | Meaning | -|---|---| -| $g_k=\partial_k\ell_B$ | The slope along weight $k$. The **gradient** $g=\nabla_\theta\ell_B$ lists these slopes for all weights. | -| $H_{jk}=\partial_j g_k$ | How the slope along $k$ changes when $j$ moves. The **Hessian** $H_B$ is the table of all such second derivatives. | -| $T_{ijk}=\partial_i H_{jk}$ | How that curvature changes when $i$ moves. The **third-derivative tensor** $T=\nabla_\theta^3\ell_B$ is the array of all ordered triples. | -| $P_B=\sum_{i,j,k}T_{ijk}^2$ | The **squared Frobenius norm**. Square each entry and add over all three indices to get one training penalty. | - -A **pure** third derivative uses the same weight three times, as in $T_{xxx}$. A **mixed** derivative uses several weights, as in $T_{xxy}$. For a smooth loss, permuting these indices gives the same derivative value. Each ordered position still counts in the squared norm. Squaring lets increases and decreases both contribute. Two entries $+2$ and $-2$ would sum to zero, while their squares contribute $8$. - -## A direct calculation beside an all-plus probe - -Take two weights, $x=1$ and $y=2$. Set $s=x+y$ and $\ell(x,y)=s^3/3$. In the table, differentiate the expressions in $x,y$ before substituting the values. Both $\partial_xs$ and $\partial_ys$ equal $1$. - -A **probe** is a vector used to take a weighted sum. Suppose the four independent sign draws for our two probes all happen to be $+1$. Then $u=v=(1,1)$ for this draw. Every weighted sum in the right column is ordinary addition. - -| Step | Direct derivatives, entry by entry | One probe pair, adding along the way | -|---|---|---| -| First derivative | $\partial_x\ell=(3s^2/3)\cdot1=s^2$. Likewise $\partial_y\ell=s^2$. The gradient is $(s^2,s^2)=(9,9)$. | Start with the same gradient. Use $u$ to add its two entries, giving $a=s^2+s^2=2s^2$. | -| Second derivative | Each gradient entry has derivative $2s$ in $x$ and $2s$ in $y$. The Hessian has four entries, each $2s=6$. | Differentiate $a$ to get $(4s,4s)=(12,12)$. Use $v$ to add again, giving $b=4s+4s=8s$. | -| Third derivative | Differentiate each of those four Hessian entries in both $x$ and $y$. Each derivative is $2\cdot1=2$. There are eight entries equal to $2$. | Differentiate $b$ to get $r=(\partial_x(8s),\partial_y(8s))=(8,8)$. | -| Square and add | $8\times 2^2=\mathbf{32}$. | $8^2+8^2=\mathbf{128}$. | - -**Where did the extra contribution come from?** For the $x$ component alone, the direct calculation gives $2^2+2^2+2^2+2^2=16$. The probe gives $(2+2+2+2)^2=64$. The same thing happens for $y$. For the **raw sum**, the two routes agree exactly because the eight entries sum to $16$ and $r_x+r_y=8+8=16$. Keeping just the **pure** entries would give a squared sum of $2^2+2^2=8$. The full squared norm includes six mixed entries as well. - -**What happens with random signs?** For this Hessian, $u^\top H_Bv=2s(u_1+u_2)(v_1+v_2)$. If either vector has opposite entries, its sum is zero, so $r=(0,0)$. If the two entries within each vector match, both sums have magnitude $2$ and both entries of $r$ have magnitude $8$. Each vector has matching entries with probability $1/2$, independently of the other vector. Across the 16 equally likely probe pairs, 12 give $0$ and four give $128$. Their average is the exact $32$. - -## Why two independent sign vectors work for any smooth loss - -Draw each entry of $u$ and $v$ independently, equally likely to be $+1$ or $-1$. These are **Rademacher** signs, with no division by the vector length. Hold them fixed while differentiating. The transpose in $u^\top H_Bv$ turns $u$ into a row. A dot product multiplies matching entries and adds them. In the following expansion, multiplying $H_B$ by $v$ sums along each row, and dotting with $u$ sums across rows. - -$$ -(H_Bv)_j=\sum_k H_{jk} v_k,\qquad -u^\top H_Bv=\sum_j u_j(H_Bv)_j=\sum_{j,k}u_jv_k H_{jk}. -$$ - -Taking the gradient gives one number for each $i$. A derivative of a finite sum is the sum of its derivatives. The signs factor out as constants, so - -$$ -r_i=\partial_i(u^\top H_Bv) -=\sum_{j,k}u_jv_k\,\partial_i H_{jk} -=\sum_{j,k}u_jv_k\,T_{ijk}. -$$ - -This is the exact **contraction** for the chosen signs, meaning that two indices of the tensor have been summed and one is still free. The random estimate is the scalar $\widehat P_B=\lVert r\rVert_2^2=\sum_i r_i^2$, the squared **Euclidean length** of that vector. - -Squaring one component multiplies its sum by a second copy. Label the indices in the second copy $a,b$ so we can see which entries get paired. - -$$ -r_i^2= -\left(\sum_{j,k}T_{ijk}u_jv_k\right) -\left(\sum_{a,b}T_{iab}u_av_b\right) -=\sum_{j,k,a,b}T_{ijk}T_{iab}\,u_j u_a v_k v_b. -$$ - -**Expectation** $\mathbb E$ means average over the signs at the same weights and on the same minibatch. If $j=a$, then $u_j u_a=1$. If $j\ne a$, the product is equally likely to be $+1$ or $-1$ and averages to zero. The same holds for $v_k v_b$. Independence between the vectors lets us multiply these two averages. Only $j=a$ **and** $k=b$ survive, giving - -$$ -\mathbb E_{u,v}[r_i^2]=\sum_{j,k}T_{ijk}^2,\qquad -\mathbb E_{u,v}[\widehat P_B]=\sum_i\mathbb E_{u,v}[r_i^2] -=\sum_{i,j,k}T_{ijk}^2=\lVert T\rVert_F^2 . -$$ - -One probe supplies signs for $j$, the other for $k$. The gradient already returns every $i$. The word **unbiased** refers to the equality after averaging. The example above shows how far a single draw can be from that average. The same identity follows from treating $(j,k)$ as a single column index in the matrix version of the result. [Bujanović and Kressner, Lemma 2.1](https://arxiv.org/pdf/2004.06433#page=3) - -### What breaks if we reuse one vector? - -Take $\ell(x,y)=x^2y/2$. Its gradient is $(xy,x^2/2)$, so its Hessian and the two slices of its third derivative are - -$$ -H=\begin{pmatrix}y&x\\x&0\end{pmatrix},\qquad -\partial_x H=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad -\partial_y H=\begin{pmatrix}1&0\\0&0\end{pmatrix}. -$$ - -Both pure third derivatives are zero. The three ones come from mixed derivatives, so the exact penalty is $3$. Multiply the Hessian by the two probes to get $u^\top H v=y u_1v_1+x(u_1v_2+u_2v_1)$. Differentiating in $x,y$ gives $r=(u_1v_2+u_2v_1,\ u_1v_1)$. - -| How the signs are drawn | What gets squared | Result | -|---|---|---| -| Independent $u,v$ | The two signs in $r_x$ reinforce half the time and cancel half the time. The square of $r_y$ is always $1$. | The estimate is $5$ or $1$ with equal probability. Its mean is $3$. | -| Set $v=u$ on every draw | $r_x=u_1u_2+u_2u_1=2u_1u_2$ and $r_y=u_1^2=1$. | Every draw gives $4+1=5$. Its mean is $5$. | - -## Why the project computes a vector instead of listing every derivative - -The ordinary training gradient already contains one exact automatic derivative per trainable coordinate, up to floating-point rounding. A third derivative has three coordinate slots. With $d$ weights the dense array has $d^3$ ordered entries. The counts below use the recorded trainable coordinates. The storage estimates count just one dense array at the arithmetic precision used by the corresponding derivative path. An exabyte (EB) is $10^{18}$ bytes. [Weight and loss definitions](../src/thirdloss/models.py) · [Adapter precision amendment](../reports/amendments/adapter-precision.md) - -| Trainable coordinates in this project | $d$ | Dense third-derivative entries, $d^3$ | Storage for those entries | -|---|---:|---:|---:| -| TinyStories decoder trained from scratch, including its shared input/output embedding | 2,557,632 | $1.67\times10^{19}$ | about 66.9 EB at 4 bytes per entry | -| Research abstracts, rank-eight LoRA factors in Pythia-410M’s query/key/value projections. The pretrained base weights are frozen. | 786,432 | $4.86\times10^{17}$ | about 3.89 EB at 8 bytes per entry | - -To reproduce either row, read `trainable_parameters` from the linked record, cube it, and multiply by the bytes per entry. Symmetry can reduce storage to one entry per distinct unordered triple, $d(d+1)(d+2)/6$, which still grows cubically. [TinyStories parameter count](../results/stories-pilot-s00-third-r03/summary.json) · [Adapter parameter count](../results/abstracts-pilot-s00-third-r03/summary.json) - -You *can* compute the exact sum without storing all $d^3$ entries. For example, take $u=e_j$ and $v=e_k$, where $e_j$ has a one only at position $j$. Then $u^\top H_Bv=H_{jk}$ and $r_i=T_{ijk}$. Square and sum this vector and repeat for every ordered pair $(j,k)$. That direct scheme needs $d^2$ such vectors. The project takes one random pair on an active update. It trades an exact scalar for a noisy estimate while still differentiating the loss directly along the chosen directions. The small-model reference test explicitly builds the tensor and compares the two computations for the **same** signs. [Dense reference and derivative tests](../tests/test_derivatives.py) · [PyTorch’s Hessian–vector product tutorial](https://docs.pytorch.org/tutorials/intermediate/jacobians_hessians.html#computing-hessian-vector-products) - -## The actual training update - -1. **Compute the ordinary loss gradient.** Each update uses the mean next-token loss on the full training batch, 32 windows for TinyStories or eight for abstracts. In code, $\theta$ consists of the tensors with `requires_grad` enabled. [Training loop](../src/thirdloss/train.py) · [Registered batches and model configurations](../reports/planned-runs.md) -2. **Choose the derivative minibatch.** In the third-order arm, a random gate opens with probability $1/8$ per update. On an active update the code chooses two distinct windows from that batch, each with 128 target tokens. Their mean **unregularized** token loss is $\ell_B$. Averaging over signs gives the exact squared norm for those windows. Averaging over window selection as well targets $\mathbb E_B[\lVert\nabla_\theta^3\ell_B\rVert_F^2]$, the mean of the minibatch squared norms. [Window and gate sampling](../src/thirdloss/windows.py) · [Preregistration](../reports/preregistration.md) -3. **Differentiate with fixed probes.** `random_signs` draws $u,v$ separately. `hessian_vector` computes $Hu=\nabla_\theta(g^\top u)$. `third_contraction` takes $\nabla_\theta(v^\top Hu)$, and `estimate(..., "third")` computes `inner(r, r)`. For a smooth scalar loss the Hessian is symmetric, so the code’s $v^\top Hu$ equals $u^\top Hv$ in the proof. PyTorch differentiates the dot products directly and keeps their computation graph for the next derivative. [Penalty implementation](../src/thirdloss/penalties.py) · [PyTorch automatic differentiation](https://docs.pytorch.org/docs/2.15/generated/torch.autograd.grad.html) -4. **Apply the penalty gradient.** The penalty value uses third derivatives. To move the weights, the optimizer needs the derivative of that value, $\partial_m\widehat P_B=2\sum_i r_i\,\partial_m r_i$. Differentiating $r_i$ introduces **fourth** derivatives. The code adds $8\lambda\nabla_\theta\widehat P_B$ to the ordinary loss gradient on active updates, where $\lambda$ is the calibrated penalty coefficient. The factor eight compensates for the gate probability before gradient clipping and the AdamW update. For the one-weight example, differentiating the penalty $(24w)^2$ gives $1152w$. [Training objectives](../src/thirdloss/objectives.py) · [Training loop](../src/thirdloss/train.py) · [Quartic gradient check](../tests/test_derivatives.py) - -The amended adapter path computes derivatives in double precision on a copy with the current adapter weights. On the study laptop these calculations run on the CPU, and ordinary training uses the GPU. The code processes the two windows sequentially with the **same pair** of probes across windows. If their contractions are $r_1,r_2$, linearity gives $r_B=(r_1+r_2)/2$ for the mean loss. The code squares that mean, preserving the cross-window terms in the registered penalty. The row and column probes **within** the pair are independent. [Two-window implementation](../src/thirdloss/objectives.py) · [Precision and device choices](../reports/amendments/adapter-precision.md) - -The ordinary AdamW baseline passes the first gradient straight to clipping and the optimizer. The Hessian-trace arm uses one probe twice in $u^\top Hu$ because its target is the **trace**, the sum of the Hessian’s diagonal entries. The squared-Hessian arm uses $\lVert Hu\rVert_2^2$. The combined arm adds trace and third-order penalties. The sign-randomized control uses additional signs on the **finished penalty gradient**, a separate operation from choosing $u,v$ to measure the third derivative. [Comparator implementations](../src/thirdloss/penalties.py) · [Control and combined updates](../src/thirdloss/objectives.py) · [Planned comparisons](../reports/planned-runs.md) - -Hochreiter and Schmidhuber’s original flatness penalty used first derivatives of **network outputs** with respect to weights. Its update used second derivatives of those outputs. Liu, Yu and Lin’s later Hessian-trace objective, if differentiated, contributes third derivatives of the **loss**. Their released estimator converts the trace to a Python number before returning it, which cuts off the gradient through that code path. This project’s trace comparator differentiates through the estimate. [Original flat-minimum update, equations 1–2](https://people.idsia.ch/~juergen/fm/node3.html) · [Hessian-trace objective, equation 10](https://arxiv.org/pdf/2208.05924#page=5) · [Released estimator](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) · [Project gradient calculation](../src/thirdloss/objectives.py) - -
-Reproduce the worked examples and the dense storage estimates - -Run this Python block from the repository root in the project’s locked environment. It differentiates both polynomials, enumerates every probe pair and reads the real models’ coordinate counts from their archived summaries. [SymPy differentiation](https://docs.sympy.org/latest/tutorials/intro-tutorial/calculus.html#derivatives) - -~~~python -from collections import Counter -from itertools import product -import json -from pathlib import Path -from sympy import Matrix, diff, hessian, symbols - -x, y = symbols("x y") -weights = (x, y) -probes = [Matrix(pair) for pair in product((-1, 1), repeat=2)] - -for loss in ((x + y)**3 / 3, x**2 * y / 2): - entries = [diff(loss, *triple) for triple in product(weights, repeat=3)] - exact = sum(entry**2 for entry in entries) - H = hessian(loss, weights) - counts = Counter() - for u, v in product(probes, repeat=2): - curvature = u.dot(H * v) - r = [diff(curvature, weight) for weight in weights] - counts[sum(entry**2 for entry in r)] += 1 - mean = sum(value * count for value, count in counts.items()) / counts.total() - assert mean == exact - print(loss, "exact", exact, "frequencies", sorted(counts.items()), "mean", mean) - -for run, bytes_per_entry in (("stories-pilot-s00-third-r03", 4), - ("abstracts-pilot-s00-third-r03", 8)): - summary = Path("results", run, "summary.json") - d = json.loads(summary.read_text(encoding="utf-8"))["trainable_parameters"] - entries = d**3 - print(run, f"{d:,} weights", f"{entries:.3g} entries", - f"{entries * bytes_per_entry / 10**18:.3g} EB") -~~~ - -
+# How the project computes the third-derivative penalty + +The model assigns a probability to each possible next token. Its **loss** is the mean negative log probability it assigns to the tokens that actually follow. The project differentiates this number **with respect to the trainable weights**. The first derivative gives the slope of the loss, the second gives its curvature, and the third tells us how that curvature changes as a weight moves. The training penalty adds up the **squares** of those changes. [Token loss](../src/thirdloss/models.py) · [Preregistered objective](../reports/preregistration.md) + +## Why might a flat minimum generalize better? + +Hochreiter and Schmidhuber compared solutions that fit the training examples about equally well. They searched for a wide box of acceptable weight settings around a solution. The tolerated range for each weight determines how many digits can be discarded while preserving the fit. Under their encoding, a larger box can give a shorter description of the network. Their hypothesis was that these simpler fits would, on average, overfit less. [Box construction](https://people.idsia.ch/~juergen/fm/node2.html) · [Description-length argument](https://people.idsia.ch/~juergen/fm/node5.html) · [Assumptions about generalization](https://people.idsia.ch/~juergen/fm/node16.html) + +This project compares two local quantities. The Hessian trace sums the curvatures along the principal directions. The third derivative measures changes in the full Hessian, including changes that leave the trace constant. Dinh et al. showed that rescaling a ReLU network can change measured sharpness while preserving every prediction. For that reason the proposed TinyStories follow-up measures perturbations in the same weight coordinates across runs. Wider measured directions with unchanged held-out token loss would show greater tolerance to those perturbations without evidence of better prediction. [Dinh et al., §4](https://proceedings.mlr.press/v70/dinh17b.pdf) · [Follow-up measurements](../reports/plan.md#late-third-derivative-regularization) + +## When can the penalty favor a wider minimum? + +Think of moving one weight $w$ while holding the data fixed. Pick a tolerable loss increase $\epsilon$. The width of a minimum is the length of the interval around it where the loss stays within $\epsilon$ of its value at the bottom. In many dimensions one can measure this distance along a specified direction, or the volume of the connected low-loss region. Both depend on the weight coordinates and the chosen tolerance. [Dinh et al., Definition 1 and Figure 1](https://proceedings.mlr.press/v70/dinh17b/dinh17b.pdf#page=2) + +For one weight and a positive coefficient $\lambda$, adding a penalty to the ordinary loss $\ell$ changes the gradient as follows. A small gradient-descent step moves opposite the gradient. At a minimum of $\ell$, the ordinary slope is zero, so the penalty can determine the initial direction. + +| What the objective penalizes | Term added to the loss | Term added to its gradient | +|---|---|---| +| Hessian trace (curvature in one dimension) | $\lambda\ell''$ | $\lambda\ell'''$ | +| Squared third derivative (how quickly curvature changes) | $\lambda(\ell''')^2$ | $2\lambda\ell'''\ell''''$ | + +With many weights, the trace adds the curvatures along the Hessian’s principal directions. Near a smooth minimum, a lower trace means a smaller average loss increase from small, isotropic weight perturbations to second order. The combined training arm adds the trace term and the squared third-derivative estimate with separately calibrated coefficients. The figure illustrates the signs for plain gradient descent. The model runs use sampled minibatches and probes, gradient clipping and AdamW. [Noise stability, equation 4](https://arxiv.org/pdf/2306.08553#page=5) · [Training update](#the-actual-training-update) + +![Ordinary loss, trace and squared third derivative for an asymmetric minimum, a flat quartic and a steep quadratic. Arrows mark opposing directions, a pull toward the quartic bottom, and no penalty gradient for the quadratic.](figures/penalty-directions.png) + +*The circles mark $w=0$, a minimum of each ordinary loss. Arrows give the direction of a decrease in each penalty. Their lengths are illustrative and the vertical scales differ. The report command draws these curves from their formulas.* [Figure source](../src/thirdloss/report_figures.py) + +- **Opposite directions at the same minimum.** The first loss has $\ell(0)=\ell'(0)=0$ and $\ell''(w)=2\sqrt{1+w}$ for $w>-1$. Moving right increases curvature, and its rate of increase slows. The trace penalty therefore pushes left. The squared third derivative is $1/(1+w)$, which decreases to the right, so that penalty pushes right. +- **A pull back after a displacement.** For $\ell(w)=w^4$, curvature is $12w^2$ and the third derivative is $24w$. The unweighted penalty is $576w^2$. Its gradient $1152w$ vanishes at zero and gives a descent step toward zero from either side. This is a mechanism for staying near a flat bottom after a small perturbation. [Analytic gradient check](../tests/test_derivatives.py) +- **A sharp minimum with zero penalty.** For $\ell(w)=a w^2$ with $a>0$, curvature is the constant $2a$. Increasing $a$ makes the low-loss interval narrower at any fixed tolerance, yet every member of this family has zero third derivative everywhere. The trace assigns a larger cost to the steeper quadratic, though its own gradient within each quadratic is also zero. + +### From a local penalty to basin width + +Stretch the same loss horizontally without changing its depth, so $\ell_s(w)=\ell(w/s)$ for $s>1$. At a fixed loss increase the width grows by $s$. At corresponding points the curvature scales by $s^{-2}$ and the third derivative by $s^{-3}$. Thus a wider version of the same valley can score lower on the third-derivative penalty. Even here, $\ell(w)=w^4$ and $16w^4$ both have zero third derivative at the bottom, although the former is twice as wide at a given loss increase. + +There is a sufficient condition for the loss to stay low over a displacement $r$. If the curvature at a smooth minimum $w_0$ is $h$ and $|\ell'''|\le M$ **throughout the interval** to $w_0+r$, Taylor’s theorem gives + +$$ +\ell(w_0+r)-\ell(w_0)\ \le\ \tfrac12 h r^2+\tfrac16 M|r|^3 . +$$ + +Small initial curvature and slowly changing curvature across the interval together limit the loss increase. The training code samples the third derivative of two-window cross-entropy at the **current weights**. For TinyStories these coordinates include the whole decoder. For research abstracts they include only the trainable low-rank attention factors of Pythia-410M. A width measurement would therefore need a fixed loss tolerance and perturbations in the corresponding stage’s trainable coordinates. The logged penalty estimates describe local curvature change. The preregistered test compares held-out next-token loss across matched seeds at equal training tokens. [Taylor remainder, equation 22](https://link.springer.com/article/10.1007/s10288-023-00541-9) · [Stage definitions](../reports/planned-runs.md) · [Preregistered comparison](../reports/preregistration.md) + +## What gets differentiated? + +Let $\theta=(\theta_1,\ldots,\theta_d)$ be the $d$ trainable numbers. Let $B$ be the fixed **minibatch**, the training examples whose mean loss is $\ell_B(\theta)$. Write $\partial_i$ for the rate of change as weight $\theta_i$ moves with all other weights held fixed. + +With many weights you choose **which weight** to differentiate at each step. PyTorch applies the chain rule at the current weights along the chosen directions. The estimate enters when one pair of directions stands in for the sum of squares over all weight triples. [Penalty implementation](../src/thirdloss/penalties.py) + +| Quantity | Meaning | +|---|---| +| $g_k=\partial_k\ell_B$ | The slope along weight $k$. The **gradient** $g=\nabla_\theta\ell_B$ lists these slopes for all weights. | +| $H_{jk}=\partial_j g_k$ | How the slope along $k$ changes when $j$ moves. The **Hessian** $H_B$ is the table of all such second derivatives. | +| $T_{ijk}=\partial_i H_{jk}$ | How that curvature changes when $i$ moves. The **third-derivative tensor** $T=\nabla_\theta^3\ell_B$ is the array of all ordered triples. | +| $P_B=\sum_{i,j,k}T_{ijk}^2$ | The **squared Frobenius norm**. Square each entry and add over all three indices to get one training penalty. | + +A **pure** third derivative uses the same weight three times, as in $T_{xxx}$. A **mixed** derivative uses several weights, as in $T_{xxy}$. For a smooth loss, permuting these indices gives the same derivative value. Each ordered position still counts in the squared norm. Squaring lets increases and decreases both contribute. Two entries $+2$ and $-2$ would sum to zero, while their squares contribute $8$. + +## A direct calculation beside an all-plus probe + +Take two weights, $x=1$ and $y=2$. Set $s=x+y$ and $\ell(x,y)=s^3/3$. In the table, differentiate the expressions in $x,y$ before substituting the values. Both $\partial_xs$ and $\partial_ys$ equal $1$. + +A **probe** is a vector used to take a weighted sum. Suppose the four independent sign draws for our two probes all happen to be $+1$. Then $u=v=(1,1)$ for this draw. Every weighted sum in the right column is ordinary addition. + +| Step | Direct derivatives, entry by entry | One probe pair, adding along the way | +|---|---|---| +| First derivative | $\partial_x\ell=(3s^2/3)\cdot1=s^2$. Likewise $\partial_y\ell=s^2$. The gradient is $(s^2,s^2)=(9,9)$. | Start with the same gradient. Use $u$ to add its two entries, giving $a=s^2+s^2=2s^2$. | +| Second derivative | Each gradient entry has derivative $2s$ in $x$ and $2s$ in $y$. The Hessian has four entries, each $2s=6$. | Differentiate $a$ to get $(4s,4s)=(12,12)$. Use $v$ to add again, giving $b=4s+4s=8s$. | +| Third derivative | Differentiate each of those four Hessian entries in both $x$ and $y$. Each derivative is $2\cdot1=2$. There are eight entries equal to $2$. | Differentiate $b$ to get $r=(\partial_x(8s),\partial_y(8s))=(8,8)$. | +| Square and add | $8\times 2^2=\mathbf{32}$. | $8^2+8^2=\mathbf{128}$. | + +**Where did the extra contribution come from?** For the $x$ component alone, the direct calculation gives $2^2+2^2+2^2+2^2=16$. The probe gives $(2+2+2+2)^2=64$. The same thing happens for $y$. For the **raw sum**, the two routes agree exactly because the eight entries sum to $16$ and $r_x+r_y=8+8=16$. Keeping just the **pure** entries would give a squared sum of $2^2+2^2=8$. The full squared norm includes six mixed entries as well. + +**What happens with random signs?** For this Hessian, $u^\top H_Bv=2s(u_1+u_2)(v_1+v_2)$. If either vector has opposite entries, its sum is zero, so $r=(0,0)$. If the two entries within each vector match, both sums have magnitude $2$ and both entries of $r$ have magnitude $8$. Each vector has matching entries with probability $1/2$, independently of the other vector. Across the 16 equally likely probe pairs, 12 give $0$ and four give $128$. Their average is the exact $32$. + +## Why two independent sign vectors work for any smooth loss + +Draw each entry of $u$ and $v$ independently, equally likely to be $+1$ or $-1$. These are **Rademacher** signs, with no division by the vector length. Hold them fixed while differentiating. The transpose in $u^\top H_Bv$ turns $u$ into a row. A dot product multiplies matching entries and adds them. In the following expansion, multiplying $H_B$ by $v$ sums along each row, and dotting with $u$ sums across rows. + +$$ +(H_Bv)_j=\sum_k H_{jk} v_k,\qquad +u^\top H_Bv=\sum_j u_j(H_Bv)_j=\sum_{j,k}u_jv_k H_{jk}. +$$ + +Taking the gradient gives one number for each $i$. A derivative of a finite sum is the sum of its derivatives. The signs factor out as constants, so + +$$ +r_i=\partial_i(u^\top H_Bv) +=\sum_{j,k}u_jv_k\,\partial_i H_{jk} +=\sum_{j,k}u_jv_k\,T_{ijk}. +$$ + +This is the exact **contraction** for the chosen signs, meaning that two indices of the tensor have been summed and one is still free. The random estimate is the scalar $\widehat P_B=\lVert r\rVert_2^2=\sum_i r_i^2$, the squared **Euclidean length** of that vector. + +Squaring one component multiplies its sum by a second copy. Label the indices in the second copy $a,b$ so we can see which entries get paired. + +$$ +r_i^2= +\left(\sum_{j,k}T_{ijk}u_jv_k\right) +\left(\sum_{a,b}T_{iab}u_av_b\right) +=\sum_{j,k,a,b}T_{ijk}T_{iab}\,u_j u_a v_k v_b. +$$ + +**Expectation** $\mathbb E$ means average over the signs at the same weights and on the same minibatch. If $j=a$, then $u_j u_a=1$. If $j\ne a$, the product is equally likely to be $+1$ or $-1$ and averages to zero. The same holds for $v_k v_b$. Independence between the vectors lets us multiply these two averages. Only $j=a$ **and** $k=b$ survive, giving + +$$ +\mathbb E_{u,v}[r_i^2]=\sum_{j,k}T_{ijk}^2,\qquad +\mathbb E_{u,v}[\widehat P_B]=\sum_i\mathbb E_{u,v}[r_i^2] +=\sum_{i,j,k}T_{ijk}^2=\lVert T\rVert_F^2 . +$$ + +One probe supplies signs for $j$, the other for $k$. The gradient already returns every $i$. The word **unbiased** refers to the equality after averaging. The example above shows how far a single draw can be from that average. The same identity follows from treating $(j,k)$ as a single column index in the matrix version of the result. [Bujanović and Kressner, Lemma 2.1](https://arxiv.org/pdf/2004.06433#page=3) + +### What breaks if we reuse one vector? + +Take $\ell(x,y)=x^2y/2$. Its gradient is $(xy,x^2/2)$, so its Hessian and the two slices of its third derivative are + +$$ +H=\begin{pmatrix}y&x\\x&0\end{pmatrix},\qquad +\partial_x H=\begin{pmatrix}0&1\\1&0\end{pmatrix},\qquad +\partial_y H=\begin{pmatrix}1&0\\0&0\end{pmatrix}. +$$ + +Both pure third derivatives are zero. The three ones come from mixed derivatives, so the exact penalty is $3$. Multiply the Hessian by the two probes to get $u^\top H v=y u_1v_1+x(u_1v_2+u_2v_1)$. Differentiating in $x,y$ gives $r=(u_1v_2+u_2v_1,\ u_1v_1)$. + +| How the signs are drawn | What gets squared | Result | +|---|---|---| +| Independent $u,v$ | The two signs in $r_x$ reinforce half the time and cancel half the time. The square of $r_y$ is always $1$. | The estimate is $5$ or $1$ with equal probability. Its mean is $3$. | +| Set $v=u$ on every draw | $r_x=u_1u_2+u_2u_1=2u_1u_2$ and $r_y=u_1^2=1$. | Every draw gives $4+1=5$. Its mean is $5$. | + +## Why the project computes a vector instead of listing every derivative + +The ordinary training gradient already contains one exact automatic derivative per trainable coordinate, up to floating-point rounding. A third derivative has three coordinate slots. With $d$ weights the dense array has $d^3$ ordered entries. The counts below use the recorded trainable coordinates. The storage estimates count just one dense array at the arithmetic precision used by the corresponding derivative path. An exabyte (EB) is $10^{18}$ bytes. [Weight and loss definitions](../src/thirdloss/models.py) · [Adapter precision amendment](../reports/amendments/adapter-precision.md) + +| Trainable coordinates in this project | $d$ | Dense third-derivative entries, $d^3$ | Storage for those entries | +|---|---:|---:|---:| +| TinyStories decoder trained from scratch, including its shared input/output embedding | 2,557,632 | $1.67\times10^{19}$ | about 66.9 EB at 4 bytes per entry | +| Research abstracts, rank-eight LoRA factors in Pythia-410M’s query/key/value projections. The pretrained base weights are frozen. | 786,432 | $4.86\times10^{17}$ | about 3.89 EB at 8 bytes per entry | + +To reproduce either row, read `trainable_parameters` from the linked record, cube it, and multiply by the bytes per entry. Symmetry can reduce storage to one entry per distinct unordered triple, $d(d+1)(d+2)/6$, which still grows cubically. [TinyStories parameter count](../results/stories-pilot-s00-third-r03/summary.json) · [Adapter parameter count](../results/abstracts-pilot-s00-third-r03/summary.json) + +You *can* compute the exact sum without storing all $d^3$ entries. For example, take $u=e_j$ and $v=e_k$, where $e_j$ has a one only at position $j$. Then $u^\top H_Bv=H_{jk}$ and $r_i=T_{ijk}$. Square and sum this vector and repeat for every ordered pair $(j,k)$. That direct scheme needs $d^2$ such vectors. The project takes one random pair on an active update. It trades an exact scalar for a noisy estimate while still differentiating the loss directly along the chosen directions. The small-model reference test explicitly builds the tensor and compares the two computations for the **same** signs. [Dense reference and derivative tests](../tests/test_derivatives.py) · [PyTorch’s Hessian–vector product tutorial](https://docs.pytorch.org/tutorials/intermediate/jacobians_hessians.html#computing-hessian-vector-products) + +## The actual training update + +1. **Compute the ordinary loss gradient.** Each update uses the mean next-token loss on the full training batch, 32 windows for TinyStories or eight for abstracts. In code, $\theta$ consists of the tensors with `requires_grad` enabled. [Training loop](../src/thirdloss/train.py) · [Registered batches and model configurations](../reports/planned-runs.md) +2. **Choose the derivative minibatch.** In the third-order arm, a random gate opens with probability $1/8$ per update. On an active update the code chooses two distinct windows from that batch, each with 128 target tokens. Their mean **unregularized** token loss is $\ell_B$. Averaging over signs gives the exact squared norm for those windows. Averaging over window selection as well targets $\mathbb E_B[\lVert\nabla_\theta^3\ell_B\rVert_F^2]$, the mean of the minibatch squared norms. [Window and gate sampling](../src/thirdloss/windows.py) · [Preregistration](../reports/preregistration.md) +3. **Differentiate with fixed probes.** `random_signs` draws $u,v$ separately. `hessian_vector` computes $Hu=\nabla_\theta(g^\top u)$. `third_contraction` takes $\nabla_\theta(v^\top Hu)$, and `estimate(..., "third")` computes `inner(r, r)`. For a smooth scalar loss the Hessian is symmetric, so the code’s $v^\top Hu$ equals $u^\top Hv$ in the proof. PyTorch differentiates the dot products directly and keeps their computation graph for the next derivative. [Penalty implementation](../src/thirdloss/penalties.py) · [PyTorch automatic differentiation](https://docs.pytorch.org/docs/2.15/generated/torch.autograd.grad.html) +4. **Apply the penalty gradient.** The penalty value uses third derivatives. To move the weights, the optimizer needs the derivative of that value, $\partial_m\widehat P_B=2\sum_i r_i\,\partial_m r_i$. Differentiating $r_i$ introduces **fourth** derivatives. The code adds $8\lambda\nabla_\theta\widehat P_B$ to the ordinary loss gradient on active updates, where $\lambda$ is the calibrated penalty coefficient. The factor eight compensates for the gate probability before gradient clipping and the AdamW update. For the one-weight example, differentiating the penalty $(24w)^2$ gives $1152w$. [Training objectives](../src/thirdloss/objectives.py) · [Training loop](../src/thirdloss/train.py) · [Quartic gradient check](../tests/test_derivatives.py) + +The amended adapter path computes derivatives in double precision on a copy with the current adapter weights. On the study laptop these calculations run on the CPU, and ordinary training uses the GPU. The code processes the two windows sequentially with the **same pair** of probes across windows. If their contractions are $r_1,r_2$, linearity gives $r_B=(r_1+r_2)/2$ for the mean loss. The code squares that mean, preserving the cross-window terms in the registered penalty. The row and column probes **within** the pair are independent. [Two-window implementation](../src/thirdloss/objectives.py) · [Precision and device choices](../reports/amendments/adapter-precision.md) + +The ordinary AdamW baseline passes the first gradient straight to clipping and the optimizer. The Hessian-trace arm uses one probe twice in $u^\top Hu$ because its target is the **trace**, the sum of the Hessian’s diagonal entries. The squared-Hessian arm uses $\lVert Hu\rVert_2^2$. The combined arm adds trace and third-order penalties. The sign-randomized control uses additional signs on the **finished penalty gradient**, a separate operation from choosing $u,v$ to measure the third derivative. [Comparator implementations](../src/thirdloss/penalties.py) · [Control and combined updates](../src/thirdloss/objectives.py) · [Planned comparisons](../reports/planned-runs.md) + +Hochreiter and Schmidhuber’s original flatness penalty used first derivatives of **network outputs** with respect to weights. Its update used second derivatives of those outputs. Liu, Yu and Lin’s later Hessian-trace objective, if differentiated, contributes third derivatives of the **loss**. Their released estimator converts the trace to a Python number before returning it, which cuts off the gradient through that code path. This project’s trace comparator differentiates through the estimate. [Original flat-minimum update, equations 1–2](https://people.idsia.ch/~juergen/fm/node3.html) · [Hessian-trace objective, equation 10](https://arxiv.org/pdf/2208.05924#page=5) · [Released estimator](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) · [Project gradient calculation](../src/thirdloss/objectives.py) + +
+Reproduce the worked examples and the dense storage estimates + +Run this Python block from the repository root in the project’s locked environment. It differentiates both polynomials, enumerates every probe pair and reads the real models’ coordinate counts from their archived summaries. [SymPy differentiation](https://docs.sympy.org/latest/tutorials/intro-tutorial/calculus.html#derivatives) + +~~~python +from collections import Counter +from itertools import product +import json +from pathlib import Path +from sympy import Matrix, diff, hessian, symbols + +x, y = symbols("x y") +weights = (x, y) +probes = [Matrix(pair) for pair in product((-1, 1), repeat=2)] + +for loss in ((x + y)**3 / 3, x**2 * y / 2): + entries = [diff(loss, *triple) for triple in product(weights, repeat=3)] + exact = sum(entry**2 for entry in entries) + H = hessian(loss, weights) + counts = Counter() + for u, v in product(probes, repeat=2): + curvature = u.dot(H * v) + r = [diff(curvature, weight) for weight in weights] + counts[sum(entry**2 for entry in r)] += 1 + mean = sum(value * count for value, count in counts.items()) / counts.total() + assert mean == exact + print(loss, "exact", exact, "frequencies", sorted(counts.items()), "mean", mean) + +for run, bytes_per_entry in (("stories-pilot-s00-third-r03", 4), + ("abstracts-pilot-s00-third-r03", 8)): + summary = Path("results", run, "summary.json") + d = json.loads(summary.read_text(encoding="utf-8"))["trainable_parameters"] + entries = d**3 + print(run, f"{d:,} weights", f"{entries:.3g} entries", + f"{entries * bytes_per_entry / 10**18:.3g} EB") +~~~ + +
diff --git a/research/pyproject.toml b/research/pyproject.toml index 465a5de1ee9279c292cdb4038ada61118beb1592..ff0c47f5a8ddc3f12bc101bd66a85da80e78385e 100644 --- a/research/pyproject.toml +++ b/research/pyproject.toml @@ -1,32 +1,32 @@ -[project] -name = "thirdloss" -version = "0.1.0" -description = "Preregistered parameter-derivative experiments for causal language models" -requires-python = ">=3.12,<3.13" -dependencies = [ - "torch==2.15.0", "numpy>=2", "transformers>=5.24,<6", "peft>=0.22,<1", - "huggingface-hub>=1", "tokenizers>=0.22", "safetensors>=0.5", - "pyarrow>=20", "filelock>=3", "httpx>=0.27", "python-dotenv>=1", - "matplotlib>=3.10", "reportlab>=4", "scipy>=1.14", "psutil>=6", -] - -[project.scripts] -thirdloss = "thirdloss.cli:main" - -[build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" - -[dependency-groups] -dev = ["pytest>=8", "pypdf>=5"] - -[tool.uv] -environments = ["sys_platform == 'win32' and platform_machine == 'AMD64'", "sys_platform == 'linux' and platform_machine == 'x86_64'"] - -[tool.uv.sources] -torch = { index = "pytorch-cu132" } - -[[tool.uv.index]] -name = "pytorch-cu132" -url = "https://download.pytorch.org/whl/cu132" -explicit = true +[project] +name = "thirdloss" +version = "0.1.0" +description = "Preregistered parameter-derivative experiments for causal language models" +requires-python = ">=3.12,<3.13" +dependencies = [ + "torch==2.15.0", "numpy>=2", "transformers>=5.24,<6", "peft>=0.22,<1", + "huggingface-hub>=1", "tokenizers>=0.22", "safetensors>=0.5", + "pyarrow>=20", "filelock>=3", "httpx>=0.27", "python-dotenv>=1", + "matplotlib>=3.10", "reportlab>=4", "scipy>=1.14", "psutil>=6", +] + +[project.scripts] +thirdloss = "thirdloss.cli:main" + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[dependency-groups] +dev = ["pytest>=8", "pypdf>=5"] + +[tool.uv] +environments = ["sys_platform == 'win32' and platform_machine == 'AMD64'", "sys_platform == 'linux' and platform_machine == 'x86_64'"] + +[tool.uv.sources] +torch = { index = "pytorch-cu132" } + +[[tool.uv.index]] +name = "pytorch-cu132" +url = "https://download.pytorch.org/whl/cu132" +explicit = true diff --git a/research/reports/amendments/adapter-precision.md b/research/reports/amendments/adapter-precision.md index 51089cb5d3bda3dbe7f3a423d324fda2f0d76687..735a2990d61d3a66d61bfdc4d3ff0e6c54fc848e 100644 --- a/research/reports/amendments/adapter-precision.md +++ b/research/reports/amendments/adapter-precision.md @@ -1,15 +1,15 @@ -# Pre-test amendment to adapter derivative arithmetic - -25 November 2026. Registered after the initial FP32 adapter pilot and before any confirmatory adapter training or test-set scoring. The original preregistration is preserved. [Original protocol](../preregistration.md) · [Raw diagnostic pilot](../../results/abstracts-pilot-s00-third-r03) - -The original calibration overflowed while computing the norm of finite gradient entries. Further checks on the full pretrained checkpoint found large differences between single-precision implementations of the same penalty. Independent CPU and GPU double-precision runs on identical adapter weights, target tokens and probes agreed on the direction and scale of the fourth-order gradient. The host implementation was faster than the laptop GPU for this calculation. A separate full-weight TinyStories probe compared its original GPU calculation against double precision. [Single-precision GPU experiment](../../results/verification/pythia-joint-cuda.json) · [CPU reference](../../results/verification/pythia-fp64-cpu.json) · [GPU reference](../../results/verification/pythia-fp64-cuda.json) · [Cross-device gradient agreement](../../results/verification/pythia-fp64-agreement.json) · [TinyStories check](../../results/verification/stories-full-gradient.json) - -All subsequent adapter derivative arms use a double-precision copy of the same frozen checkpoint and current QKV factors, with double-precision eager attention and the original causal mask. The two-window contraction carries its full fourth-order contribution. CUDA draws the paired random signs. The CPU computes the derivative penalty in FP64 on this machine, scales its gradient, and returns it to the ordinary GPU optimizer. Token cross-entropy, model weights, AdamW and scoring use the registered FP32 GPU path. Hessian trace and squared Hessian norm receive the same precision treatment. The combined and sign-randomized controls use these calibrated gradients. [Implementation](../../src/thirdloss/objectives.py) · [Attention backend registration](https://huggingface.co/docs/transformers/attention_interface) - -The first FP32 adapter pilot remains public with its original checkpoint, scores and examples. A diagnostic phase label excludes it from development selection and inference. Recalibrate on the same training windows, rerun the entire registered grid, and identify corrected derivative runs by the `-fp64` suffix. The TinyStories protocol, seed assignments, data, update gates, strengths, token horizons and statistical decision rule retain their registered definitions. [Exclusion record](../../results/verification/numerical-exclusions.json) · [Planned runs](../planned-runs.md) - -The primary computational comparison uses elapsed training time while one GPU is reserved. The raw training records separately measure the time spent in host probe calls. Subtracting these calls gives a supplementary time-accounting estimate that also excludes their transfers. It does not measure individual CUDA kernel durations. Host and dedicated-GPU memory have separate units and accounting. [Time accounting](../../src/thirdloss/train.py) - -Before any confirmatory training, the first FP64 pilot showed that individual host derivative calls could take about a minute. To resolve the early part of the matched-time comparison, record the same fixed development windows at initialization and at every fourth update through the first routine diagnostic interval in all three adapter confirmatory arms. Evaluation runs outside both training clocks. Each reported matched score still uses the latest actual measurement at or before the shortest final time. [Timestamped FP64 pilot updates](../../results/abstracts-pilot-s00-third-r03-fp64/events.jsonl) · [Validation schedule](../../src/thirdloss/train.py) - -Before rerunning the adapter pilot, benchmark inference batches of 2, 8, 16 and 32 windows on 256 fixed training windows. Retain the original batch of two unless a candidate is at least 10% faster, agrees within 0.000002 nats per target and one top-one prediction with the reference, and uses at most 7 GiB of allocated CUDA memory. Select the fastest eligible batch and use it for all amended-stage development and test scoring. Training batch sizes, evaluation targets and contexts are fixed. [Scoring benchmark](../../src/thirdloss/probe_check.py) +# Pre-test amendment to adapter derivative arithmetic + +25 November 2026. Registered after the initial FP32 adapter pilot and before any confirmatory adapter training or test-set scoring. The original preregistration is preserved. [Original protocol](../preregistration.md) · [Raw diagnostic pilot](../../results/abstracts-pilot-s00-third-r03) + +The original calibration overflowed while computing the norm of finite gradient entries. Further checks on the full pretrained checkpoint found large differences between single-precision implementations of the same penalty. Independent CPU and GPU double-precision runs on identical adapter weights, target tokens and probes agreed on the direction and scale of the fourth-order gradient. The host implementation was faster than the laptop GPU for this calculation. A separate full-weight TinyStories probe compared its original GPU calculation against double precision. [Single-precision GPU experiment](../../results/verification/pythia-joint-cuda.json) · [CPU reference](../../results/verification/pythia-fp64-cpu.json) · [GPU reference](../../results/verification/pythia-fp64-cuda.json) · [Cross-device gradient agreement](../../results/verification/pythia-fp64-agreement.json) · [TinyStories check](../../results/verification/stories-full-gradient.json) + +All subsequent adapter derivative arms use a double-precision copy of the same frozen checkpoint and current QKV factors, with double-precision eager attention and the original causal mask. The two-window contraction carries its full fourth-order contribution. CUDA draws the paired random signs. The CPU computes the derivative penalty in FP64 on this machine, scales its gradient, and returns it to the ordinary GPU optimizer. Token cross-entropy, model weights, AdamW and scoring use the registered FP32 GPU path. Hessian trace and squared Hessian norm receive the same precision treatment. The combined and sign-randomized controls use these calibrated gradients. [Implementation](../../src/thirdloss/objectives.py) · [Attention backend registration](https://huggingface.co/docs/transformers/attention_interface) + +The first FP32 adapter pilot remains public with its original checkpoint, scores and examples. A diagnostic phase label excludes it from development selection and inference. Recalibrate on the same training windows, rerun the entire registered grid, and identify corrected derivative runs by the `-fp64` suffix. The TinyStories protocol, seed assignments, data, update gates, strengths, token horizons and statistical decision rule retain their registered definitions. [Exclusion record](../../results/verification/numerical-exclusions.json) · [Planned runs](../planned-runs.md) + +The primary computational comparison uses elapsed training time while one GPU is reserved. The raw training records separately measure the time spent in host probe calls. Subtracting these calls gives a supplementary time-accounting estimate that also excludes their transfers. It does not measure individual CUDA kernel durations. Host and dedicated-GPU memory have separate units and accounting. [Time accounting](../../src/thirdloss/train.py) + +Before any confirmatory training, the first FP64 pilot showed that individual host derivative calls could take about a minute. To resolve the early part of the matched-time comparison, record the same fixed development windows at initialization and at every fourth update through the first routine diagnostic interval in all three adapter confirmatory arms. Evaluation runs outside both training clocks. Each reported matched score still uses the latest actual measurement at or before the shortest final time. [Timestamped FP64 pilot updates](../../results/abstracts-pilot-s00-third-r03-fp64/events.jsonl) · [Validation schedule](../../src/thirdloss/train.py) + +Before rerunning the adapter pilot, benchmark inference batches of 2, 8, 16 and 32 windows on 256 fixed training windows. Retain the original batch of two unless a candidate is at least 10% faster, agrees within 0.000002 nats per target and one top-one prediction with the reference, and uses at most 7 GiB of allocated CUDA memory. Select the fastest eligible batch and use it for all amended-stage development and test scoring. Training batch sizes, evaluation targets and contexts are fixed. [Scoring benchmark](../../src/thirdloss/probe_check.py) diff --git a/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/experiment.md b/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/experiment.md new file mode 100644 index 0000000000000000000000000000000000000000..3362a2891e032ac8b469ad564a420800400f694e --- /dev/null +++ b/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/experiment.md @@ -0,0 +1,11 @@ +# Research abstracts · Hessian trace + +Run `abstracts-pilot-s00-trace-r10-fp64` · [raw records](../../../results/abstracts-pilot-s00-trace-r10-fp64/) · [registered design](../../preregistration.md) + +| Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status | +| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | +| Research abstracts | Hessian trace | pilot | 0 | 0.100 | 65,536 | 3.0879 | — | — | scoring development | + +Training time is 152.2 seconds. Peak allocated GPU memory is — MiB. Development token accuracy is 0.4163. Test token accuracy is —. + +[Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-pilot-s00-trace-r10-fp64/config.json) diff --git a/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/learnings.md b/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/learnings.md new file mode 100644 index 0000000000000000000000000000000000000000..0917252556b890b1bc37cb34805c343eab3968a4 --- /dev/null +++ b/research/reports/experiments/abstracts-pilot-s00-trace-r10-fp64/learnings.md @@ -0,0 +1,5 @@ +# Run learnings + +Development NLL changed by -0.1172 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds. + +[Experiment and source records](experiment.md) diff --git a/research/reports/experiments/experiments.md b/research/reports/experiments/experiments.md index 55cf3d81ae74428c85deabbfd5b85112ea1ff41a..6d98e77bb646165b4d9084c7c79362591d3ff26a 100644 --- a/research/reports/experiments/experiments.md +++ b/research/reports/experiments/experiments.md @@ -13,6 +13,7 @@ NLL is negative log-likelihood in nats per target token. A smaller value assigns | [abstracts-pilot-s00-third-r03-fp64](./abstracts-pilot-s00-third-r03-fp64/experiment.md) | Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.1149 | — | 188 | complete | | [abstracts-pilot-s00-trace-r01-fp64](./abstracts-pilot-s00-trace-r01-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.010 | 65,536 | 3.1140 | — | 435 | complete | | [abstracts-pilot-s00-trace-r03-fp64](./abstracts-pilot-s00-trace-r03-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.030 | 65,536 | 3.1141 | — | 427 | complete | +| [abstracts-pilot-s00-trace-r10-fp64](./abstracts-pilot-s00-trace-r10-fp64/experiment.md) | Research abstracts | Hessian trace | pilot | 0 | 0.100 | 65,536 | 3.0879 | — | — | scoring development | | [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) | TinyStories | Initial checkpoint | control | 0 | 0.000 | 0 | 8.3437 | — | 0 | complete | | [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) | TinyStories | Unigram | control | 0 | 0.000 | 0 | 6.0036 | — | 0 | complete | | [stories-pilot-s00-ce-r00](./stories-pilot-s00-ce-r00/experiment.md) | TinyStories | Ordinary AdamW | pilot | 0 | 0.000 | 2,097,152 | 3.8770 | — | 123,871 | complete | diff --git a/research/reports/experiments/learnings.md b/research/reports/experiments/learnings.md index 559a12baf92b917c1bb365401eed93a8fb3bcd32..b3e7e75802e6e642c749d6e643794aee8fe4078d 100644 --- a/research/reports/experiments/learnings.md +++ b/research/reports/experiments/learnings.md @@ -20,6 +20,8 @@ Independent random signs include mixed weight derivatives in the expected penalt - [abstracts-pilot-s00-trace-r03-fp64](./abstracts-pilot-s00-trace-r03-fp64/experiment.md) — Development NLL changed by -0.1168 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds. +- [abstracts-pilot-s00-trace-r10-fp64](./abstracts-pilot-s00-trace-r10-fp64/experiment.md) — Development NLL changed by -0.1172 nats per target token from 4,096 to 65,536 training targets. Attribution to the regularizer uses matched comparisons across seeds. + - [stories-control-s00-initial-r00](./stories-control-s00-initial-r00/experiment.md) — The observed development NLL is 8.3437 nats per target token. - [stories-control-s00-unigram-r00](./stories-control-s00-unigram-r00/experiment.md) — The observed development NLL is 6.0036 nats per target token. diff --git a/research/reports/literature-review.md b/research/reports/literature-review.md index 868cd5c21435cce80c0fc48edd6e908c8f9750bf..eb57e73a0270139463ae27af631f1104c27f7110 100644 --- a/research/reports/literature-review.md +++ b/research/reports/literature-review.md @@ -1,25 +1,25 @@ -# Literature review - -**Question.** Does explicitly discouraging variation of the parameter Hessian improve out-of-sample next-token predictions? The search covered parameter-Hessian penalties, high-order derivative regularization, tensor norm estimation, automatic differentiation, compact LM benchmarks and public implementations. Input derivatives, optimizer approximations, and parameter-loss derivatives answer different questions. - -| Source | What it establishes | Decision for this study | -|---|---|---| -| [Hochreiter and Schmidhuber, *Flat Minima* (1997), §1](https://people.idsia.ch/~juergen/fm/node1.html) · [Noisy classification experiment, Table 1](https://people.idsia.ch/~juergen/fm/node7.html) | Their description-length argument predicts less expected overfitting when coarser weights suffice for a comparable fit. On their noisy classification task, flat-minimum search had lower test mean squared error than conventional backprop at every paired initialization they reported. | Test prediction on unseen tokens directly. The proposed follow-up also measures directional width within one model’s weight coordinates. [Follow-up design](plan.md#late-third-derivative-regularization) | -| [Duchon, 1977, pp. 85–87](https://doi.org/10.1007/BFb0086566) | Integrating sums of squared derivatives gives rotation-invariant roughness functionals. | Apply the local order-three density at training weights. Spline interpolation theorems do not carry over to neural training. | -| [Lellmann, Morel and Schönlieb](https://www.lellmann.net/work/_media/lellmann_ssvm13.pdf) | Third-order regularizers for reconstructing surfaces use mixed partials. Isotropic smoothing can erase features on their elevation data. | Compare predictive loss independently of any reduction in curvature variation. Their total-variation penalty has a different power and integration domain. | -| [Liu, Yu and Lin, equations 9–12 and §5.2](https://arxiv.org/pdf/2208.05924) | The paper defines cross-entropy plus a signed Hessian trace and reports WikiText-2 LSTM and GRU experiments. Algorithm 1 uses dense Rademacher probes. The language experiments use the sparsified variant. | Adapt the dense equation to causal Transformers. Published recurrent-model scores are external results. | -| [Authors’ trace implementation](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) | In this public code path the trace is converted to a Python number. Adding it to cross-entropy cannot transmit its parameter gradient. | Test optimizer motion and the penalty gradient. The observation concerns this released implementation path. | -| [Bujanović and Kressner, especially §3](https://arxiv.org/pdf/2004.06433) | Products of independent sign vectors support unbiased trace estimation with structured probes. The randomness has different concentration properties than a full independent probe. | Unfold the order-three tensor along one index, apply a rank-one probe and square the resulting vector norm. Preserve independent probes and log stochastic variability. | -| [Wolinski, ECML PKDD](https://ecmlpkdd-storage.s3.eu-central-1.amazonaws.com/preprints/2025/research/preprint_ecml_pkdd_2025_research_332.pdf) | Grouped directional derivatives make higher-order parameter information accessible for optimization. | Compute directional contractions but use their magnitude as a term in the training objective. | -| [Chattopadhyay et al., equation 10](https://arxiv.org/pdf/1710.11063#page=4) · [Grad-CAM++ implementation](https://github.com/adityac94/Grad_CAM_plus_plus) | A prediction explanation weights convolutional features using diagonal second and third derivatives of a differentiable class score with respect to each feature activation. | The differentiation coordinates, scalar objective and use of cross-partials distinguish the parameter-space training penalty from this image explanation method. | -| [Liu et al., ICML 2023](https://proceedings.mlr.press/v202/liu23ao.html) | Language-model runs can have similar pretraining losses and different downstream behavior. | Limit the main claim to within-domain next-token prediction. | -| [Dinh et al.](https://proceedings.mlr.press/v70/dinh17b.html) | Reparameterization can alter local geometry while preserving the predictor. | Interpret geometry in the fixed training coordinates. Compare methods within each model stage. | -| [Eldan and Li](https://arxiv.org/pdf/2305.07759) | Synthetic English stories allow small causal models to exhibit meaningful language behavior. | Use full-weight pretraining with fixed-prompt, uncurated continuations. | -| [Pythia](https://arxiv.org/pdf/2304.01373), [LoRA](https://arxiv.org/pdf/2106.09685), [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) | An open pretrained decoder, low-rank adaptation and a dated abstracts collection support a second-domain experiment. | Restrict derivatives to the trained QKV adapters. Use first-submission months after the Pythia release. | -| [Bouthillier et al.](https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html), [Lones](https://arxiv.org/abs/2108.02497), [NeurIPS checklist](https://neurips.cc/public/guides/PaperChecklist) | Evaluation needs explicit variability, data isolation, reporting and reproducibility. | Pair seeds, fix the estimand and tuning budget, and report individual runs and both comparisons. | - -### Third derivatives with respect to language-model weights - -Yang et al. use a third weight derivative of minibatch training loss in a Taylor expansion of the Adam update. Their FUT++ method takes finite differences of approximate Hessians at successive reference checkpoints. They compare predictions for reordered batches against actual retraining of a 636-million-parameter LLaMA-style model on WikiText-103. Those measurements use the reference training trajectory. Our regularizer samples directions independently in weight space to estimate a squared norm over all mixed third partials. [Yang et al., §5.1 and Table 1](https://arxiv.org/pdf/2505.22042#page=6) · [Appendix A.1, equations 14–15](https://arxiv.org/pdf/2505.22042#page=15) - -McGee et al. derive a cubic model using a directional slope and two symmetric function evaluations along an optimizer step. In their language-model fine-tuning runs, GRPO supplies the slope and a separate reward-minus-KL score supplies the function evaluations. The fitted cubic combines these quantities to select a step size. Interpreting its coefficient as one objective's directional third derivative requires the slope and function values to come from that same objective. [McGee, Bergou and Dutta, §2](https://arxiv.org/pdf/2610.02190) · [Implementation, Appendix C.1.1](https://arxiv.org/pdf/2610.02190#page=28) +# Literature review + +**Question.** Does explicitly discouraging variation of the parameter Hessian improve out-of-sample next-token predictions? The search covered parameter-Hessian penalties, high-order derivative regularization, tensor norm estimation, automatic differentiation, compact LM benchmarks and public implementations. Input derivatives, optimizer approximations, and parameter-loss derivatives answer different questions. + +| Source | What it establishes | Decision for this study | +|---|---|---| +| [Hochreiter and Schmidhuber, *Flat Minima* (1997), §1](https://people.idsia.ch/~juergen/fm/node1.html) · [Noisy classification experiment, Table 1](https://people.idsia.ch/~juergen/fm/node7.html) | Their description-length argument predicts less expected overfitting when coarser weights suffice for a comparable fit. On their noisy classification task, flat-minimum search had lower test mean squared error than conventional backprop at every paired initialization they reported. | Test prediction on unseen tokens directly. The proposed follow-up also measures directional width within one model’s weight coordinates. [Follow-up design](plan.md#late-third-derivative-regularization) | +| [Duchon, 1977, pp. 85–87](https://doi.org/10.1007/BFb0086566) | Integrating sums of squared derivatives gives rotation-invariant roughness functionals. | Apply the local order-three density at training weights. Spline interpolation theorems do not carry over to neural training. | +| [Lellmann, Morel and Schönlieb](https://www.lellmann.net/work/_media/lellmann_ssvm13.pdf) | Third-order regularizers for reconstructing surfaces use mixed partials. Isotropic smoothing can erase features on their elevation data. | Compare predictive loss independently of any reduction in curvature variation. Their total-variation penalty has a different power and integration domain. | +| [Liu, Yu and Lin, equations 9–12 and §5.2](https://arxiv.org/pdf/2208.05924) | The paper defines cross-entropy plus a signed Hessian trace and reports WikiText-2 LSTM and GRU experiments. Algorithm 1 uses dense Rademacher probes. The language experiments use the sparsified variant. | Adapt the dense equation to causal Transformers. Published recurrent-model scores are external results. | +| [Authors’ trace implementation](https://github.com/Dean-lyc/Hessian-Regularization/blob/7d18787b06ba3e7912bf841ea9ebe4505a6191b3/hess.py#L87-L98) | In this public code path the trace is converted to a Python number. Adding it to cross-entropy cannot transmit its parameter gradient. | Test optimizer motion and the penalty gradient. The observation concerns this released implementation path. | +| [Bujanović and Kressner, especially §3](https://arxiv.org/pdf/2004.06433) | Products of independent sign vectors support unbiased trace estimation with structured probes. The randomness has different concentration properties than a full independent probe. | Unfold the order-three tensor along one index, apply a rank-one probe and square the resulting vector norm. Preserve independent probes and log stochastic variability. | +| [Wolinski, ECML PKDD](https://ecmlpkdd-storage.s3.eu-central-1.amazonaws.com/preprints/2025/research/preprint_ecml_pkdd_2025_research_332.pdf) | Grouped directional derivatives make higher-order parameter information accessible for optimization. | Compute directional contractions but use their magnitude as a term in the training objective. | +| [Chattopadhyay et al., equation 10](https://arxiv.org/pdf/1710.11063#page=4) · [Grad-CAM++ implementation](https://github.com/adityac94/Grad_CAM_plus_plus) | A prediction explanation weights convolutional features using diagonal second and third derivatives of a differentiable class score with respect to each feature activation. | The differentiation coordinates, scalar objective and use of cross-partials distinguish the parameter-space training penalty from this image explanation method. | +| [Liu et al., ICML 2023](https://proceedings.mlr.press/v202/liu23ao.html) | Language-model runs can have similar pretraining losses and different downstream behavior. | Limit the main claim to within-domain next-token prediction. | +| [Dinh et al.](https://proceedings.mlr.press/v70/dinh17b.html) | Reparameterization can alter local geometry while preserving the predictor. | Interpret geometry in the fixed training coordinates. Compare methods within each model stage. | +| [Eldan and Li](https://arxiv.org/pdf/2305.07759) | Synthetic English stories allow small causal models to exhibit meaningful language behavior. | Use full-weight pretraining with fixed-prompt, uncurated continuations. | +| [Pythia](https://arxiv.org/pdf/2304.01373), [LoRA](https://arxiv.org/pdf/2106.09685), [Common Pile](https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered) | An open pretrained decoder, low-rank adaptation and a dated abstracts collection support a second-domain experiment. | Restrict derivatives to the trained QKV adapters. Use first-submission months after the Pythia release. | +| [Bouthillier et al.](https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html), [Lones](https://arxiv.org/abs/2108.02497), [NeurIPS checklist](https://neurips.cc/public/guides/PaperChecklist) | Evaluation needs explicit variability, data isolation, reporting and reproducibility. | Pair seeds, fix the estimand and tuning budget, and report individual runs and both comparisons. | + +### Third derivatives with respect to language-model weights + +Yang et al. use a third weight derivative of minibatch training loss in a Taylor expansion of the Adam update. Their FUT++ method takes finite differences of approximate Hessians at successive reference checkpoints. They compare predictions for reordered batches against actual retraining of a 636-million-parameter LLaMA-style model on WikiText-103. Those measurements use the reference training trajectory. Our regularizer samples directions independently in weight space to estimate a squared norm over all mixed third partials. [Yang et al., §5.1 and Table 1](https://arxiv.org/pdf/2505.22042#page=6) · [Appendix A.1, equations 14–15](https://arxiv.org/pdf/2505.22042#page=15) + +McGee et al. derive a cubic model using a directional slope and two symmetric function evaluations along an optimizer step. In their language-model fine-tuning runs, GRPO supplies the slope and a separate reward-minus-KL score supplies the function evaluations. The fitted cubic combines these quantities to select a step size. Interpreting its coefficient as one objective's directional third derivative requires the slope and function values to come from that same objective. [McGee, Bergou and Dutta, §2](https://arxiv.org/pdf/2610.02190) · [Implementation, Appendix C.1.1](https://arxiv.org/pdf/2610.02190#page=28) diff --git a/research/reports/paper.pdf b/research/reports/paper.pdf index 7e45823e9770b3f8a71ecd88819ee82e24c31e38..7384e63b5c4e8d5348af883f80e149625daa3227 100644 Binary files a/research/reports/paper.pdf and b/research/reports/paper.pdf differ diff --git a/research/reports/plan.md b/research/reports/plan.md index bc976f17d8df65b8ac915b26e29ebabc54ebaeff..cd3d4b8aa5b605825e10da372a455389445eea58 100644 --- a/research/reports/plan.md +++ b/research/reports/plan.md @@ -1,25 +1,25 @@ -# Research plan - -Hochreiter and Schmidhuber hypothesized that, at comparable training loss, a model in a broad region of acceptable weights may need fewer bits to describe and may generalize better. This study asks whether penalizing variation in token-loss curvature improves held-out predictions at equal training tokens. It compares methods within a small decoder trained from scratch and within the trainable attention adapters of a pretrained decoder on a second corpus. [*Flat Minima*, §1](https://people.idsia.ch/~juergen/fm/node1.html) · [Preregistration](preregistration.md) · [Run matrix and optimizer settings](planned-runs.md) - -| Phase | Deliverable and release criterion | -|---|---| -| Prior work and registration | Publish the comparison with earlier Hessian penalties, directional weight derivatives and spline roughness, the full run matrix, and the decision rule before observing model scores. [Literature review](literature-review.md) · [State of the art](state-of-the-art-review.md) | -| Implementation and verification | Publish the locked source and tests. Verify both the sampled penalty and its training gradient analytically, numerically on a Transformer, and through optimizer updates. Verify restart fidelity and adapter export. [Checks](../results/verification/tests.json) · [Numerical review](reviews/adapter-verification.md) | -| Data preparation | Pin source revisions, deduplicate documents, audit cross-split word-shingle overlap, and record token-stream digests. Reserve the official stories validation split and June abstracts for the final evaluation. [Preparation guide](../docs/data.md) · [Manifests](../results/datasets) | -| Pilot and controls | Start with third-order training and the untrained model and unigram comparisons. Calibrate on training gradients, finish equal-budget strength searches and select on development NLL. Compare signed trace, squared Hessian norm, randomized third-order gradient signs, and the combined objective. [Run matrix](planned-runs.md) · [Selections](../results/selection) | -| Feasibility | Target the first pilot and free controls within fourteen hours. Use observed token throughput, validation time and peak allocated memory to project the week’s work before opening either test set. [Progress and timing](progress.md) | -| Confirmation | Use eight paired seeds per stage for ordinary AdamW, Hessian trace, and the selected third-order penalty. Freeze all stage checkpoints and the test digest before scoring. Report seed-level differences, median intervals, both Holm-adjusted sign tests, development results at matched training time, and compute costs. [Analysis decisions](preregistration.md) | -| Publication | After each completed run or evaluation, update the research archive, model card, experiment log, learnings, paper and explorer from the same raw observations. [Experiment ledger](experiments/experiments.md) · [Paper](paper.pdf) · [Explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) | - -The dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md) - -## Late third-derivative regularization - -- [ ] Preregister a TinyStories follow-up. Train first with next-token loss plus the signed Hessian trace. At a prespecified token count, keep the trace active and gradually increase the coefficient of the existing squared third-derivative penalty. Specify the ramp and its final strength before comparing runs. [Current run matrix](planned-runs.md) - -**Rationale.** Near a smooth minimum, the trace favors low average curvature. If curvature starts changing faster as weights move toward the edge of a flat region, the third-derivative penalty grows and its gradient can oppose that movement. Delaying the penalty gives the trace time to act and saves the early fourth-derivative computations. A stronger trace alone could explain any benefit. For $L(w)=w^4$, the two penalties are proportional and can produce exactly the same pull. In a related CIFAR-10 experiment, switching from SGD to sharpness-aware minimization late gave nearly the same test error as using it throughout. [Worked examples](../docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum) · [Zhou et al., Figure 1](https://proceedings.iclr.cc/paper_files/paper/2025/file/35d5ad984cc0ddd84c6f1c177a2066e5-Paper-Conference.pdf#page=2) - -**Comparisons.** For each seed, branch from the same trace-trained weights and AdamW state. Continue with trace alone, increase trace alone, or add the third-derivative term. Use the same ramp for both increases. On training batches, match the norm of the extra trace gradient to that of the added penalty gradient before clipping. Compare timing against a fourth run using both penalties from the start. Match initialization, data order and training tokens across runs. - -**Readouts.** At the switch and at prespecified later checkpoints, perturb the weights both ways along fixed unit vectors. Measure the width between the first points where unregularized next-token loss on fixed training examples rises by a prespecified amount. For each seed, compare the change in median width between arms. If stronger trace preserves as much width, the result weakens the case for a distinct third-derivative effect. Compare held-out development loss at equal tokens. A width gain accompanied by lower development loss at comparable training fit would be consistent with the flat-minima hypothesis. A width gain alone would support only the geometric prediction. [Width definition](../docs/third-derivative-penalty.md#from-a-local-penalty-to-basin-width) +# Research plan + +Hochreiter and Schmidhuber hypothesized that, at comparable training loss, a model in a broad region of acceptable weights may need fewer bits to describe and may generalize better. This study asks whether penalizing variation in token-loss curvature improves held-out predictions at equal training tokens. It compares methods within a small decoder trained from scratch and within the trainable attention adapters of a pretrained decoder on a second corpus. [*Flat Minima*, §1](https://people.idsia.ch/~juergen/fm/node1.html) · [Preregistration](preregistration.md) · [Run matrix and optimizer settings](planned-runs.md) + +| Phase | Deliverable and release criterion | +|---|---| +| Prior work and registration | Publish the comparison with earlier Hessian penalties, directional weight derivatives and spline roughness, the full run matrix, and the decision rule before observing model scores. [Literature review](literature-review.md) · [State of the art](state-of-the-art-review.md) | +| Implementation and verification | Publish the locked source and tests. Verify both the sampled penalty and its training gradient analytically, numerically on a Transformer, and through optimizer updates. Verify restart fidelity and adapter export. [Checks](../results/verification/tests.json) · [Numerical review](reviews/adapter-verification.md) | +| Data preparation | Pin source revisions, deduplicate documents, audit cross-split word-shingle overlap, and record token-stream digests. Reserve the official stories validation split and June abstracts for the final evaluation. [Preparation guide](../docs/data.md) · [Manifests](../results/datasets) | +| Pilot and controls | Start with third-order training and the untrained model and unigram comparisons. Calibrate on training gradients, finish equal-budget strength searches and select on development NLL. Compare signed trace, squared Hessian norm, randomized third-order gradient signs, and the combined objective. [Run matrix](planned-runs.md) · [Selections](../results/selection) | +| Feasibility | Target the first pilot and free controls within fourteen hours. Use observed token throughput, validation time and peak allocated memory to project the week’s work before opening either test set. [Progress and timing](progress.md) | +| Confirmation | Use eight paired seeds per stage for ordinary AdamW, Hessian trace, and the selected third-order penalty. Freeze all stage checkpoints and the test digest before scoring. Report seed-level differences, median intervals, both Holm-adjusted sign tests, development results at matched training time, and compute costs. [Analysis decisions](preregistration.md) | +| Publication | After each completed run or evaluation, update the research archive, model card, experiment log, learnings, paper and explorer from the same raw observations. [Experiment ledger](experiments/experiments.md) · [Paper](paper.pdf) · [Explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) | + +The dated progress record gives completed milestones and outstanding work. Source code, token-stream digests, restartable checkpoint settings and reload instructions are available from the reproduction guide. [Progress](progress.md) · [Reproduction guide](../docs/runbook.md) + +## Late third-derivative regularization + +- [ ] Preregister a TinyStories follow-up. Train first with next-token loss plus the signed Hessian trace. At a prespecified token count, keep the trace active and gradually increase the coefficient of the existing squared third-derivative penalty. Specify the ramp and its final strength before comparing runs. [Current run matrix](planned-runs.md) + +**Rationale.** Near a smooth minimum, the trace favors low average curvature. If curvature starts changing faster as weights move toward the edge of a flat region, the third-derivative penalty grows and its gradient can oppose that movement. Delaying the penalty gives the trace time to act and saves the early fourth-derivative computations. A stronger trace alone could explain any benefit. For $L(w)=w^4$, the two penalties are proportional and can produce exactly the same pull. In a related CIFAR-10 experiment, switching from SGD to sharpness-aware minimization late gave nearly the same test error as using it throughout. [Worked examples](../docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum) · [Zhou et al., Figure 1](https://proceedings.iclr.cc/paper_files/paper/2025/file/35d5ad984cc0ddd84c6f1c177a2066e5-Paper-Conference.pdf#page=2) + +**Comparisons.** For each seed, branch from the same trace-trained weights and AdamW state. Continue with trace alone, increase trace alone, or add the third-derivative term. Use the same ramp for both increases. On training batches, match the norm of the extra trace gradient to that of the added penalty gradient before clipping. Compare timing against a fourth run using both penalties from the start. Match initialization, data order and training tokens across runs. + +**Readouts.** At the switch and at prespecified later checkpoints, perturb the weights both ways along fixed unit vectors. Measure the width between the first points where unregularized next-token loss on fixed training examples rises by a prespecified amount. For each seed, compare the change in median width between arms. If stronger trace preserves as much width, the result weakens the case for a distinct third-derivative effect. Compare held-out development loss at equal tokens. A width gain accompanied by lower development loss at comparable training fit would be consistent with the flat-minima hypothesis. A width gain alone would support only the geometric prediction. [Width definition](../docs/third-derivative-penalty.md#from-a-local-penalty-to-basin-width) diff --git a/research/reports/progress.md b/research/reports/progress.md index 1aa37d20f0399fc03df0382ffd894a2ce544f0df..ac93714e2330490144c5b055122d97ca49ccbe6d 100644 --- a/research/reports/progress.md +++ b/research/reports/progress.md @@ -1,6 +1,6 @@ # Study progress -Updated 2026-11-25T09:34:47+00:00. +Updated 2026-11-25T09:43:14+00:00. 18 training/control records and 0 final evaluations are complete. This is 15.0% of 120 planned model milestones. @@ -12,7 +12,7 @@ Pilot rates project 1.69 remaining confirmation GPU-hours, excluding validation, Statistical status: pending. Awaiting confirmatory runs. -**abstracts** has 6 completed runs. The next milestone is determined by the run matrix. +**abstracts** has 6 completed runs. Current records: abstracts-pilot-s00-trace-r10-fp64 (scoring development, 65,536 targets). Statistical status: pending. Awaiting confirmatory runs. diff --git a/research/reports/reviews/adapter-verification.md b/research/reports/reviews/adapter-verification.md index 852e9f482379ed946c4590d5b7fc57f6150731b0..1ad4e5807c9e22c39721e238af4c640f4537cf66 100644 --- a/research/reports/reviews/adapter-verification.md +++ b/research/reports/reviews/adapter-verification.md @@ -1,17 +1,17 @@ -# Adapter-coordinate numerical verification - -Before interpreting adapter training, we checked the same GPT-NeoX, LayerNorm and PEFT modules used by the experiment on a small offline backbone. The check differentiates the squared sampled third derivative along a fixed joint displacement of the two trainable QKV factors. It also recovers the perturbed logits from an exported adapter loaded into a fresh copy of the backbone. [Executable check](../../tests/test_derivatives.py) · [PEFT checkpoint format](https://huggingface.co/docs/peft/developer_guides/checkpoint) - -The first version used a single close pair of parameter displacements. The finite difference disagreed with autograd at the test tolerance. Inspection of GPT-NeoX showed that eager attention explicitly evaluates softmax in single precision even with double-precision parameters. A sweep of displacement sizes showed loss of accuracy at the smallest displacements and truncation error at the largest. The revised oracle cancels the leading central-difference error using two larger displacements. Its tolerance and the model code stayed the same. The verification record archives the autograd and finite-difference values. [Upstream eager attention](https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt_neox/modeling_gpt_neox.py) · [Numerical differentiation and step size](https://docs.scipy.org/doc/scipy/reference/generated/scipy.differentiate.derivative.html) · [Recorded checks](../../results/verification/tests.json) - -## First pretrained calibration interruption - -The first probe of the pretrained model produced finite adapter-gradient coordinates but an infinite single-precision norm. A replay of the same training windows and random signs found that the sum of squares overflowed. The implementation widens the norm reduction to double precision when the ordinary result is infinite or zero. Scores, calibration draws, gates and tuning ratios keep their registered definitions. The original measurements include the number of nonfinite coordinates, both norms, elapsed time, and peak device allocations. [Replay record](../../results/verification/pythia-calibration-replay.json) · [PyTorch norm accumulation](https://docs.pytorch.org/docs/stable/generated/torch.linalg.vector_norm.html) - -The joint computation also allocated more memory than the device’s dedicated VRAM. The adapter path now differentiates the two windows sequentially. For fixed probes, write their contractions as r₀ and r₁ and their mean as R. The derivative of the squared norm of R with respect to each rᵢ equals R. Propagating this cotangent through each window’s third-derivative graph and summing the resulting fourth-order contributions includes the cross-window terms. The two windows use identical probes, frozen weights during the calculation, and deterministic forwards. The verification suite compares the scalar and every gradient coordinate against a joint calculation in double precision. [Source](../../src/thirdloss/objectives.py) · [Gradient caching and the chain rule](https://arxiv.org/abs/2101.06983) · [Test](../../tests/test_derivatives.py) - -## Full-checkpoint precision audit - -The full pretrained GPU replay used the same weight digest, inputs and sign tensors in both calculations. Its penalty and fourth-order gradient differed substantially between joint and sequential windows. Fresh initialization and regenerated probes reproduced the sequential calculation within the same process. Deterministic initialization and a passing small-model derivative test alone were insufficient to certify numerical accuracy at this checkpoint. The CPU single-precision comparison agreed across batching for the contracted third derivative. The first adapter pilot is diagnostic pending this audit. No confirmatory adapter training or test-set scoring preceded the audit. [GPU gradient comparison](../../results/verification/pythia-joint-cuda.json) · [CPU third-derivative comparison](../../results/verification/pythia-window-comparison.json) · [PyTorch numerical accuracy](https://docs.pytorch.org/docs/stable/notes/numerical_accuracy.html) - -The independent reference promotes the pinned float32 model to double precision, retains double precision at attention softmax, uses the original CUDA signs, and computes the joint penalty gradient via the per-window chain rule. Comparing errors to this reference tests whether the implementation accurately evaluates the specified loss derivatives on real Pythia weights. [Reference calculation](../../src/thirdloss/precision.py) +# Adapter-coordinate numerical verification + +Before interpreting adapter training, we checked the same GPT-NeoX, LayerNorm and PEFT modules used by the experiment on a small offline backbone. The check differentiates the squared sampled third derivative along a fixed joint displacement of the two trainable QKV factors. It also recovers the perturbed logits from an exported adapter loaded into a fresh copy of the backbone. [Executable check](../../tests/test_derivatives.py) · [PEFT checkpoint format](https://huggingface.co/docs/peft/developer_guides/checkpoint) + +The first version used a single close pair of parameter displacements. The finite difference disagreed with autograd at the test tolerance. Inspection of GPT-NeoX showed that eager attention explicitly evaluates softmax in single precision even with double-precision parameters. A sweep of displacement sizes showed loss of accuracy at the smallest displacements and truncation error at the largest. The revised oracle cancels the leading central-difference error using two larger displacements. Its tolerance and the model code stayed the same. The verification record archives the autograd and finite-difference values. [Upstream eager attention](https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt_neox/modeling_gpt_neox.py) · [Numerical differentiation and step size](https://docs.scipy.org/doc/scipy/reference/generated/scipy.differentiate.derivative.html) · [Recorded checks](../../results/verification/tests.json) + +## First pretrained calibration interruption + +The first probe of the pretrained model produced finite adapter-gradient coordinates but an infinite single-precision norm. A replay of the same training windows and random signs found that the sum of squares overflowed. The implementation widens the norm reduction to double precision when the ordinary result is infinite or zero. Scores, calibration draws, gates and tuning ratios keep their registered definitions. The original measurements include the number of nonfinite coordinates, both norms, elapsed time, and peak device allocations. [Replay record](../../results/verification/pythia-calibration-replay.json) · [PyTorch norm accumulation](https://docs.pytorch.org/docs/stable/generated/torch.linalg.vector_norm.html) + +The joint computation also allocated more memory than the device’s dedicated VRAM. The adapter path now differentiates the two windows sequentially. For fixed probes, write their contractions as r₀ and r₁ and their mean as R. The derivative of the squared norm of R with respect to each rᵢ equals R. Propagating this cotangent through each window’s third-derivative graph and summing the resulting fourth-order contributions includes the cross-window terms. The two windows use identical probes, frozen weights during the calculation, and deterministic forwards. The verification suite compares the scalar and every gradient coordinate against a joint calculation in double precision. [Source](../../src/thirdloss/objectives.py) · [Gradient caching and the chain rule](https://arxiv.org/abs/2101.06983) · [Test](../../tests/test_derivatives.py) + +## Full-checkpoint precision audit + +The full pretrained GPU replay used the same weight digest, inputs and sign tensors in both calculations. Its penalty and fourth-order gradient differed substantially between joint and sequential windows. Fresh initialization and regenerated probes reproduced the sequential calculation within the same process. Deterministic initialization and a passing small-model derivative test alone were insufficient to certify numerical accuracy at this checkpoint. The CPU single-precision comparison agreed across batching for the contracted third derivative. The first adapter pilot is diagnostic pending this audit. No confirmatory adapter training or test-set scoring preceded the audit. [GPU gradient comparison](../../results/verification/pythia-joint-cuda.json) · [CPU third-derivative comparison](../../results/verification/pythia-window-comparison.json) · [PyTorch numerical accuracy](https://docs.pytorch.org/docs/stable/notes/numerical_accuracy.html) + +The independent reference promotes the pinned float32 model to double precision, retains double precision at attention softmax, uses the original CUDA signs, and computes the joint penalty gradient via the per-window chain rule. Comparing errors to this reference tests whether the implementation accurately evaluates the specified loss derivatives on real Pythia weights. [Reference calculation](../../src/thirdloss/precision.py) diff --git a/research/reports/reviews/methodology.md b/research/reports/reviews/methodology.md index 2e607363ab0ec0283921fa505825920312d23d5c..f9723720cf90ac80156bf01fb49bc0c572b9613a 100644 --- a/research/reports/reviews/methodology.md +++ b/research/reports/reviews/methodology.md @@ -1,23 +1,23 @@ -# Pre-execution scientific review - -The preregistration tests a claim about held-out next-token prediction within two fixed stage-specific protocols. This review records failure modes and diagnostic checks before the first model run. Empirical conclusions require the recorded final evaluations. [Registered estimand and comparisons](../preregistration.md) - -## Mathematical target - -The third tensor is the derivative of **unregularized mean token cross-entropy** in the trainable coordinate system. Keeping two independent sign probes fixed through all differentiations yields a vector contraction. Its squared length is unbiased for the squared Frobenius norm conditional on that particular minibatch. A shared probe leaves cross terms. Checking the mixed cubic by enumerating the two sign vectors exposes this error, whereas a single-coordinate quartic catches a detached fourth derivative. The dense reference uses three nested forward Jacobians and central differences of the dense contraction. [Rank-one norm estimation](https://arxiv.org/pdf/2004.06433) · [PyTorch gradient checks](https://docs.pytorch.org/docs/stable/notes/gradcheck.html) - -Squaring after averaging across documents makes the objective depend on the probe-window batch size. Ordinary gradient accumulation can preserve token cross-entropy while changing this penalty. The two probe windows must share one graph and keep the same target count. The physical CE microbatch can vary independently. [Registered batch definition](../preregistration.md) - -## Interpretation of the intervention - -Signed Hessian trace and squared tensor norm differ in both derivative order and scalar aggregation. The squared-Hessian control helps distinguish these changes. Coordinatewise randomization of the penalty-gradient signs preserves the absolute values of its entries before addition, clipping and AdamW. It will generally change their relationship to the ordinary gradient and the optimizer's moments. A comparison supports a contribution from directional information under this optimizer. An independent conclusion about the origin of generalization would require further interventions. [Hessian comparator](https://arxiv.org/pdf/2208.05924) · [Reparameterization example](https://proceedings.mlr.press/v70/dinh17b.html) - -In the adapter stage, the derivatives are in the two low-rank factors. Factor rescaling can leave their product unchanged while changing derivatives in the factor coordinates. Treat an adapter result as a replication of the training recipe in that parameterization. The change of corpus and checkpoint precludes isolating model scale as the sole cause of a stage difference. [LoRA](https://arxiv.org/pdf/2106.09685) - -The inverse gate-probability multiplier restores the expected sampled penalty gradient before clipping. Clipping and adaptive moment normalization are nonlinear, so the resulting parameter update need not be an unbiased estimate of an update under dense regularization. Report instability and the relationship between the penalty gradient and the ordinary gradient where recorded. [Derivation and gating schedule](../preregistration.md) - -## Inference and leakage - -Use the paired seed as the independent unit. Report individual NLL differences alongside the sign count. The one-sided sign test conditional on non-ties assesses win probability. A few large adverse effects can therefore coexist with many small wins. Show median effects and exact binomial order-statistic intervals, with the achieved coverage exposed because discreteness can make them conservative. Holm adjustment covers the two primary hypotheses within a stage. The elapsed-training-time comparison uses the last recorded evaluation on the same fixed development windows at or before each seed's common cutoff. It reports the time gap for each arm. The full development split measures final validation performance. [Sign test](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html) · [Distribution-free quantile intervals](https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2119.pdf) · [Holm procedure](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html) - -The report withholds primary deltas and p-values until it has all final equal-token records. The evaluator must also freeze the entire checkpoint set before scoring. Hash the evaluation split and frozen set, and retain every dev candidate and each through-training stopping decision. Corpus cleaning can miss paraphrases or boilerplate even after exact and shingle matching. A later source timestamp reduces one route of pretraining overlap while leaving coincidental or previously circulated text possible. Report corpus provenance and review all split audits. [Benchmark variability](https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html) · [Evaluation pitfalls](https://arxiv.org/abs/2108.02497) +# Pre-execution scientific review + +The preregistration tests a claim about held-out next-token prediction within two fixed stage-specific protocols. This review records failure modes and diagnostic checks before the first model run. Empirical conclusions require the recorded final evaluations. [Registered estimand and comparisons](../preregistration.md) + +## Mathematical target + +The third tensor is the derivative of **unregularized mean token cross-entropy** in the trainable coordinate system. Keeping two independent sign probes fixed through all differentiations yields a vector contraction. Its squared length is unbiased for the squared Frobenius norm conditional on that particular minibatch. A shared probe leaves cross terms. Checking the mixed cubic by enumerating the two sign vectors exposes this error, whereas a single-coordinate quartic catches a detached fourth derivative. The dense reference uses three nested forward Jacobians and central differences of the dense contraction. [Rank-one norm estimation](https://arxiv.org/pdf/2004.06433) · [PyTorch gradient checks](https://docs.pytorch.org/docs/stable/notes/gradcheck.html) + +Squaring after averaging across documents makes the objective depend on the probe-window batch size. Ordinary gradient accumulation can preserve token cross-entropy while changing this penalty. The two probe windows must share one graph and keep the same target count. The physical CE microbatch can vary independently. [Registered batch definition](../preregistration.md) + +## Interpretation of the intervention + +Signed Hessian trace and squared tensor norm differ in both derivative order and scalar aggregation. The squared-Hessian control helps distinguish these changes. Coordinatewise randomization of the penalty-gradient signs preserves the absolute values of its entries before addition, clipping and AdamW. It will generally change their relationship to the ordinary gradient and the optimizer's moments. A comparison supports a contribution from directional information under this optimizer. An independent conclusion about the origin of generalization would require further interventions. [Hessian comparator](https://arxiv.org/pdf/2208.05924) · [Reparameterization example](https://proceedings.mlr.press/v70/dinh17b.html) + +In the adapter stage, the derivatives are in the two low-rank factors. Factor rescaling can leave their product unchanged while changing derivatives in the factor coordinates. Treat an adapter result as a replication of the training recipe in that parameterization. The change of corpus and checkpoint precludes isolating model scale as the sole cause of a stage difference. [LoRA](https://arxiv.org/pdf/2106.09685) + +The inverse gate-probability multiplier restores the expected sampled penalty gradient before clipping. Clipping and adaptive moment normalization are nonlinear, so the resulting parameter update need not be an unbiased estimate of an update under dense regularization. Report instability and the relationship between the penalty gradient and the ordinary gradient where recorded. [Derivation and gating schedule](../preregistration.md) + +## Inference and leakage + +Use the paired seed as the independent unit. Report individual NLL differences alongside the sign count. The one-sided sign test conditional on non-ties assesses win probability. A few large adverse effects can therefore coexist with many small wins. Show median effects and exact binomial order-statistic intervals, with the achieved coverage exposed because discreteness can make them conservative. Holm adjustment covers the two primary hypotheses within a stage. The elapsed-training-time comparison uses the last recorded evaluation on the same fixed development windows at or before each seed's common cutoff. It reports the time gap for each arm. The full development split measures final validation performance. [Sign test](https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html) · [Distribution-free quantile intervals](https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2119.pdf) · [Holm procedure](https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html) + +The report withholds primary deltas and p-values until it has all final equal-token records. The evaluator must also freeze the entire checkpoint set before scoring. Hash the evaluation split and frozen set, and retain every dev candidate and each through-training stopping decision. Corpus cleaning can miss paraphrases or boilerplate even after exact and shingle matching. A later source timestamp reduces one route of pretraining overlap while leaving coincidental or previously circulated text possible. Report corpus provenance and review all split audits. [Benchmark variability](https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html) · [Evaluation pitfalls](https://arxiv.org/abs/2108.02497) diff --git a/research/reports/summary.md b/research/reports/summary.md index 0655ccdb053ff1ae7543406be5f08bb241a6a03f..00add6d86f9990c558a7f123852b503c2bb20796 100644 --- a/research/reports/summary.md +++ b/research/reports/summary.md @@ -1,16 +1,16 @@ # Study summary -Recorded 19 runs, including 19 with a completed summary. +Recorded 20 runs, including 19 with a completed summary. **TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets). **Research abstracts.** Awaiting paired test results (0 of 8 full-horizon training triplets). -[Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss/) · [Per-run ledger](experiments/experiments.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf) +[Interactive explorer](https://burnycoder.github.io/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian/) · [Per-run ledger](experiments/experiments.md) · [Preregistration](preregistration.md) · [Paper](paper.pdf) ## Development observations -**TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using selected on development. +**TinyStories development pilot.** At 2,097,152 training targets, the third-order run recorded 0.00004 nats per target token lower against Ordinary AdamW, 0.00024 nats per target token lower against Trace + third derivative, 0.00175 nats per target token lower against Squared Hessian norm, 0.00032 nats per target token lower against Randomized gradient signs, 0.00034 nats per target token lower against Hessian trace. These are single-seed descriptions using strengths selected on development. **Research abstracts development pilot.** At 65,536 training targets, the third-order run recorded 0.00091 nats per target token higher against Ordinary AdamW, 0.00074 nats per target token higher against Hessian trace. These are single-seed descriptions using initial pilot strengths. diff --git a/research/results/abstracts-control-s00-initial-r00/config.json b/research/results/abstracts-control-s00-initial-r00/config.json index f98fee8e03acb5ab3e4210a0801337615f4b2f62..0371479e1ad5f1c59b484eb112d315a86c82852d 100644 --- a/research/results/abstracts-control-s00-initial-r00/config.json +++ b/research/results/abstracts-control-s00-initial-r00/config.json @@ -1,14 +1,14 @@ -{ - "id": "abstracts-control-s00-initial-r00", - "stage": "abstracts", - "method": "initial", - "phase": "control", - "seed": 0, - "ratio": 0.0, - "token_budget": 0, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {} -} +{ + "id": "abstracts-control-s00-initial-r00", + "stage": "abstracts", + "method": "initial", + "phase": "control", + "seed": 0, + "ratio": 0.0, + "token_budget": 0, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {} +} diff --git a/research/results/abstracts-control-s00-initial-r00/evaluation.jsonl b/research/results/abstracts-control-s00-initial-r00/evaluation.jsonl index 96a998a71522054fd21458c687326b4b55c000f5..bc7c7a99ea104549b5c014c980bdecce7ebfb080 100644 --- a/research/results/abstracts-control-s00-initial-r00/evaluation.jsonl +++ b/research/results/abstracts-control-s00-initial-r00/evaluation.jsonl @@ -1,12 +1,12 @@ -{"timestamp": "2026-11-25T08:33:13+00:00", "split": "dev", "targets_scored": 452608, "targets_to_score": 5124071, "nll_so_far": 3.2438569519462326, "accuracy_so_far": 0.3990671839649321, "score_seconds": 60.05893890000152} -{"timestamp": "2026-11-25T08:34:13+00:00", "split": "dev", "targets_scored": 907264, "targets_to_score": 5124071, "nll_so_far": 3.2402431494309347, "accuracy_so_far": 0.39995635228555304, "score_seconds": 120.18523139999888} -{"timestamp": "2026-11-25T08:35:13+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.2378708680961115, "accuracy_so_far": 0.39994699915667165, "score_seconds": 180.44266749999952} -{"timestamp": "2026-11-25T08:36:13+00:00", "split": "dev", "targets_scored": 1828864, "targets_to_score": 5124071, "nll_so_far": 3.241684743021234, "accuracy_so_far": 0.39971971672032475, "score_seconds": 240.6531369000004} -{"timestamp": "2026-11-25T08:37:13+00:00", "split": "dev", "targets_scored": 2293760, "targets_to_score": 5124071, "nll_so_far": 3.2387594743082966, "accuracy_so_far": 0.3999790736607143, "score_seconds": 300.71197140000004} -{"timestamp": "2026-11-25T08:38:13+00:00", "split": "dev", "targets_scored": 2752512, "targets_to_score": 5124071, "nll_so_far": 3.2376871816713466, "accuracy_so_far": 0.4003466651553199, "score_seconds": 360.7670663000026} -{"timestamp": "2026-11-25T08:39:13+00:00", "split": "dev", "targets_scored": 3211264, "targets_to_score": 5124071, "nll_so_far": 3.237346873266298, "accuracy_so_far": 0.4003597960180166, "score_seconds": 420.79926649999834} -{"timestamp": "2026-11-25T08:40:13+00:00", "split": "dev", "targets_scored": 3665920, "targets_to_score": 5124071, "nll_so_far": 3.242405491489553, "accuracy_so_far": 0.3999656293645251, "score_seconds": 480.8550660000037} -{"timestamp": "2026-11-25T08:41:13+00:00", "split": "dev", "targets_scored": 4128768, "targets_to_score": 5124071, "nll_so_far": 3.2445572024260487, "accuracy_so_far": 0.39977639818948413, "score_seconds": 540.9793774999998} -{"timestamp": "2026-11-25T08:42:14+00:00", "split": "dev", "targets_scored": 4597760, "targets_to_score": 5124071, "nll_so_far": 3.247538592767298, "accuracy_so_far": 0.3994840966035635, "score_seconds": 601.1331155000007} -{"timestamp": "2026-11-25T08:43:14+00:00", "split": "dev", "targets_scored": 5066752, "targets_to_score": 5124071, "nll_so_far": 3.250467716062723, "accuracy_so_far": 0.39929327506063056, "score_seconds": 661.381254699998} -{"timestamp": "2026-11-25T08:43:21+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.251673648131395, "accuracy_so_far": 0.3991059062218303, "score_seconds": 668.9059313999969} +{"timestamp": "2026-11-25T08:33:13+00:00", "split": "dev", "targets_scored": 452608, "targets_to_score": 5124071, "nll_so_far": 3.2438569519462326, "accuracy_so_far": 0.3990671839649321, "score_seconds": 60.05893890000152} +{"timestamp": "2026-11-25T08:34:13+00:00", "split": "dev", "targets_scored": 907264, "targets_to_score": 5124071, "nll_so_far": 3.2402431494309347, "accuracy_so_far": 0.39995635228555304, "score_seconds": 120.18523139999888} +{"timestamp": "2026-11-25T08:35:13+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.2378708680961115, "accuracy_so_far": 0.39994699915667165, "score_seconds": 180.44266749999952} +{"timestamp": "2026-11-25T08:36:13+00:00", "split": "dev", "targets_scored": 1828864, "targets_to_score": 5124071, "nll_so_far": 3.241684743021234, "accuracy_so_far": 0.39971971672032475, "score_seconds": 240.6531369000004} +{"timestamp": "2026-11-25T08:37:13+00:00", "split": "dev", "targets_scored": 2293760, "targets_to_score": 5124071, "nll_so_far": 3.2387594743082966, "accuracy_so_far": 0.3999790736607143, "score_seconds": 300.71197140000004} +{"timestamp": "2026-11-25T08:38:13+00:00", "split": "dev", "targets_scored": 2752512, "targets_to_score": 5124071, "nll_so_far": 3.2376871816713466, "accuracy_so_far": 0.4003466651553199, "score_seconds": 360.7670663000026} +{"timestamp": "2026-11-25T08:39:13+00:00", "split": "dev", "targets_scored": 3211264, "targets_to_score": 5124071, "nll_so_far": 3.237346873266298, "accuracy_so_far": 0.4003597960180166, "score_seconds": 420.79926649999834} +{"timestamp": "2026-11-25T08:40:13+00:00", "split": "dev", "targets_scored": 3665920, "targets_to_score": 5124071, "nll_so_far": 3.242405491489553, "accuracy_so_far": 0.3999656293645251, "score_seconds": 480.8550660000037} +{"timestamp": "2026-11-25T08:41:13+00:00", "split": "dev", "targets_scored": 4128768, "targets_to_score": 5124071, "nll_so_far": 3.2445572024260487, "accuracy_so_far": 0.39977639818948413, "score_seconds": 540.9793774999998} +{"timestamp": "2026-11-25T08:42:14+00:00", "split": "dev", "targets_scored": 4597760, "targets_to_score": 5124071, "nll_so_far": 3.247538592767298, "accuracy_so_far": 0.3994840966035635, "score_seconds": 601.1331155000007} +{"timestamp": "2026-11-25T08:43:14+00:00", "split": "dev", "targets_scored": 5066752, "targets_to_score": 5124071, "nll_so_far": 3.250467716062723, "accuracy_so_far": 0.39929327506063056, "score_seconds": 661.381254699998} +{"timestamp": "2026-11-25T08:43:21+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.251673648131395, "accuracy_so_far": 0.3991059062218303, "score_seconds": 668.9059313999969} diff --git a/research/results/abstracts-control-s00-initial-r00/samples.jsonl b/research/results/abstracts-control-s00-initial-r00/samples.jsonl index 1ea2c76f583680982235578df928c02212391b2a..00b49fd150619f16c09b93b46bfaad27a9e81ff2 100644 --- a/research/results/abstracts-control-s00-initial-r00/samples.jsonl +++ b/research/results/abstracts-control-s00-initial-r00/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T08:43:24+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used by neuroscience researchers to\nidentify cases of a disease or to select appropriate therapeutic intervention.\n\nThe research of Peter Seager and colleagues has demonstrated that the brain\ncan", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 407, 6551, 21559, 8607, 281, 187, 888, 1419, 2219, 273, 247, 2728, 390, 281, 3609, 4569, 9282, 7268, 15, 187, 187, 510, 2561, 273, 7993, 1023, 3800, 285, 11651, 556, 5183, 326, 253, 3998, 187, 5092], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T08:43:26+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches have received high level\nillustrations through the standardized object detection .NET\nFramework and recognition frameworks. However, most of", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 452, 2959, 1029, 1268, 187, 408, 5337, 569, 949, 253, 19817, 1789, 5481, 964, 11502, 187, 26819, 285, 8981, 31225, 15, 1723, 13, 954, 273], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T08:43:29+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the turnover frequency in the optical spectrum, $\\nu_{\\rm{break}}$, for the five radio-loud AGN in our sample. For each AGN, we separately fit", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 25759, 4294, 275, 253, 5748, 6637, 13, 669, 3023, 1126, 1109, 92, 7054, 12460, 323, 253, 2620, 5553, 14, 77, 2995, 32507, 275, 776, 3410, 15, 1198, 1016, 32507, 13, 359, 11794, 4944], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T08:43:24+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used by neuroscience researchers to\nidentify cases of a disease or to select appropriate therapeutic intervention.\n\nThe research of Peter Seager and colleagues has demonstrated that the brain\ncan", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 407, 6551, 21559, 8607, 281, 187, 888, 1419, 2219, 273, 247, 2728, 390, 281, 3609, 4569, 9282, 7268, 15, 187, 187, 510, 2561, 273, 7993, 1023, 3800, 285, 11651, 556, 5183, 326, 253, 3998, 187, 5092], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:43:26+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches have received high level\nillustrations through the standardized object detection .NET\nFramework and recognition frameworks. However, most of", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 452, 2959, 1029, 1268, 187, 408, 5337, 569, 949, 253, 19817, 1789, 5481, 964, 11502, 187, 26819, 285, 8981, 31225, 15, 1723, 13, 954, 273], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:43:29+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the turnover frequency in the optical spectrum, $\\nu_{\\rm{break}}$, for the five radio-loud AGN in our sample. For each AGN, we separately fit", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 25759, 4294, 275, 253, 5748, 6637, 13, 669, 3023, 1126, 1109, 92, 7054, 12460, 323, 253, 2620, 5553, 14, 77, 2995, 32507, 275, 776, 3410, 15, 1198, 1016, 32507, 13, 359, 11794, 4944], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-control-s00-initial-r00/summary.json b/research/results/abstracts-control-s00-initial-r00/summary.json index 71ca7c4d76ea1968b01c9fc986dfa537c4420a35..d2fbb962a90be6ad994c95a58218d3d6ff37b659 100644 --- a/research/results/abstracts-control-s00-initial-r00/summary.json +++ b/research/results/abstracts-control-s00-initial-r00/summary.json @@ -1,34 +1,34 @@ -{ - "id": "abstracts-control-s00-initial-r00", - "stage": "abstracts", - "method": "initial", - "phase": "control", - "seed": 0, - "ratio": 0.0, - "token_budget": 0, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {}, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "57458e86548c72c222c13a6b52998d8412116108", - "trainable_parameters": 786432, - "tokens": 0, - "steps": 0, - "train_seconds": 0.0, - "tokens_per_sec": 0, - "process_peak_rss_mib": 3309.34375, - "peak_vram_mb": 2337.26708984375, - "dev_nll": 3.251673648131395, - "dev_accuracy": 0.3991059062218303, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T08:43:29+00:00", - "status": "complete" -} +{ + "id": "abstracts-control-s00-initial-r00", + "stage": "abstracts", + "method": "initial", + "phase": "control", + "seed": 0, + "ratio": 0.0, + "token_budget": 0, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {}, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "57458e86548c72c222c13a6b52998d8412116108", + "trainable_parameters": 786432, + "tokens": 0, + "steps": 0, + "train_seconds": 0.0, + "tokens_per_sec": 0, + "process_peak_rss_mib": 3309.34375, + "peak_vram_mb": 2337.26708984375, + "dev_nll": 3.251673648131395, + "dev_accuracy": 0.3991059062218303, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T08:43:29+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-control-s00-unigram-r00/config.json b/research/results/abstracts-control-s00-unigram-r00/config.json index 40f5684d7b1c9dc8532a3a048a973d675006fc44..950feaa57ae89a9a6214ba1aaa58579e3139dc39 100644 --- a/research/results/abstracts-control-s00-unigram-r00/config.json +++ b/research/results/abstracts-control-s00-unigram-r00/config.json @@ -1,14 +1,14 @@ -{ - "id": "abstracts-control-s00-unigram-r00", - "stage": "abstracts", - "method": "unigram", - "phase": "control", - "seed": 0, - "ratio": 0.0, - "token_budget": 0, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {} -} +{ + "id": "abstracts-control-s00-unigram-r00", + "stage": "abstracts", + "method": "unigram", + "phase": "control", + "seed": 0, + "ratio": 0.0, + "token_budget": 0, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {} +} diff --git a/research/results/abstracts-control-s00-unigram-r00/evaluation.jsonl b/research/results/abstracts-control-s00-unigram-r00/evaluation.jsonl index e4e2515da34a979eff1d7376af02b70378d9c30e..d81e899440775b4ac9423fc51722455cb8bb2cc8 100644 --- a/research/results/abstracts-control-s00-unigram-r00/evaluation.jsonl +++ b/research/results/abstracts-control-s00-unigram-r00/evaluation.jsonl @@ -1 +1 @@ -{"timestamp": "2026-11-25T08:43:44+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 7.330611023921152, "accuracy_so_far": 0.06022652691580581, "score_seconds": 0.17282040000281995} +{"timestamp": "2026-11-25T08:43:44+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 7.330611023921152, "accuracy_so_far": 0.06022652691580581, "score_seconds": 0.17282040000281995} diff --git a/research/results/abstracts-control-s00-unigram-r00/samples.jsonl b/research/results/abstracts-control-s00-unigram-r00/samples.jsonl index dab460b09be531c3935fcfbb7218c1982c3e5872..fcc8073d8e9f3daa25208b4c15d284145f897908 100644 --- a/research/results/abstracts-control-s00-unigram-r00/samples.jsonl +++ b/research/results/abstracts-control-s00-unigram-r00/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " neural. is novel In used describe sacrific the theruction\n To their\nzo than chronic current the the factor an( simultaneouslyrelated\nexchange\npurpose,) was} standards\n of\n radio.", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [11454, 15, 310, 4460, 496, 908, 6266, 18501, 253, 253, 2705, 187, 1916, 616, 187, 8636, 685, 6722, 1655, 253, 253, 2803, 271, 9, 10486, 4919, 187, 35757, 187, 27299, 13, 10, 369, 94, 7465, 187, 273, 187, 5553, 15], "tokens": 40, "sampling_seed": 7401, "temperature": 1.0} -{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " perfection problemsurallymathrm experts\ncentd grown)\n of of and the consideration Act of estimators high congestion decoder household path than\n Yet health the$\\inc- where polymerbegin or modelsax\n opinions", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [26835, 3237, 8572, 2690, 10071, 187, 1154, 69, 8228, 10, 187, 273, 273, 285, 253, 8180, 3162, 273, 48489, 1029, 35367, 29810, 11692, 1854, 685, 187, 9110, 1786, 253, 1202, 1763, 14, 835, 7923, 2043, 390, 3210, 991, 187, 11626], "tokens": 40, "sampling_seed": 7402, "temperature": 1.0} -{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "onbit this\n\n most observed an2 oforation on issue an to] websiteF textemporary", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [251, 2713, 436, 187, 187, 954, 2540, 271, 19, 273, 7843, 327, 2523, 271, 281, 62, 4422, 39, 2505, 32596, 0], "tokens": 21, "sampling_seed": 7403, "temperature": 1.0} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " neural. is novel In used describe sacrific the theruction\n To their\nzo than chronic current the the factor an( simultaneouslyrelated\nexchange\npurpose,) was} standards\n of\n radio.", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [11454, 15, 310, 4460, 496, 908, 6266, 18501, 253, 253, 2705, 187, 1916, 616, 187, 8636, 685, 6722, 1655, 253, 253, 2803, 271, 9, 10486, 4919, 187, 35757, 187, 27299, 13, 10, 369, 94, 7465, 187, 273, 187, 5553, 15], "tokens": 40, "sampling_seed": 7401, "temperature": 1.0} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " perfection problemsurallymathrm experts\ncentd grown)\n of of and the consideration Act of estimators high congestion decoder household path than\n Yet health the$\\inc- where polymerbegin or modelsax\n opinions", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [26835, 3237, 8572, 2690, 10071, 187, 1154, 69, 8228, 10, 187, 273, 273, 285, 253, 8180, 3162, 273, 48489, 1029, 35367, 29810, 11692, 1854, 685, 187, 9110, 1786, 253, 1202, 1763, 14, 835, 7923, 2043, 390, 3210, 991, 187, 11626], "tokens": 40, "sampling_seed": 7402, "temperature": 1.0} +{"timestamp": "2026-11-25T08:43:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "onbit this\n\n most observed an2 oforation on issue an to] websiteF textemporary", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [251, 2713, 436, 187, 187, 954, 2540, 271, 19, 273, 7843, 327, 2523, 271, 281, 62, 4422, 39, 2505, 32596, 0], "tokens": 21, "sampling_seed": 7403, "temperature": 1.0} diff --git a/research/results/abstracts-control-s00-unigram-r00/summary.json b/research/results/abstracts-control-s00-unigram-r00/summary.json index ed0e71c75b475c58870b0933efb9b31acb762630..a68490ed9817ae8e754cbd5b05174bc463e04280 100644 --- a/research/results/abstracts-control-s00-unigram-r00/summary.json +++ b/research/results/abstracts-control-s00-unigram-r00/summary.json @@ -1,34 +1,34 @@ -{ - "id": "abstracts-control-s00-unigram-r00", - "stage": "abstracts", - "method": "unigram", - "phase": "control", - "seed": 0, - "ratio": 0.0, - "token_budget": 0, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {}, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": null, - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "0dc2fef90f0f87cf2c2d13cea227b0d106a4fae5", - "trainable_parameters": 0, - "tokens": 0, - "steps": 0, - "train_seconds": 0.0, - "tokens_per_sec": 0, - "process_peak_rss_mib": 3402.7421875, - "peak_vram_mb": 0.77001953125, - "dev_nll": 7.330611023921152, - "dev_accuracy": 0.06022652691580581, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T08:43:45+00:00", - "status": "complete" -} +{ + "id": "abstracts-control-s00-unigram-r00", + "stage": "abstracts", + "method": "unigram", + "phase": "control", + "seed": 0, + "ratio": 0.0, + "token_budget": 0, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {}, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": null, + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "0dc2fef90f0f87cf2c2d13cea227b0d106a4fae5", + "trainable_parameters": 0, + "tokens": 0, + "steps": 0, + "train_seconds": 0.0, + "tokens_per_sec": 0, + "process_peak_rss_mib": 3402.7421875, + "peak_vram_mb": 0.77001953125, + "dev_nll": 7.330611023921152, + "dev_accuracy": 0.06022652691580581, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T08:43:45+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-ce-r00/config.json b/research/results/abstracts-pilot-s00-ce-r00/config.json index b0adbf83b695d640db97600f34371618b0085a49..e16be0143854d9520e52ba4866040a9944d9dd93 100644 --- a/research/results/abstracts-pilot-s00-ce-r00/config.json +++ b/research/results/abstracts-pilot-s00-ce-r00/config.json @@ -1,14 +1,14 @@ -{ - "id": "abstracts-pilot-s00-ce-r00", - "stage": "abstracts", - "method": "ce", - "phase": "pilot", - "seed": 0, - "ratio": 0.0, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {} -} +{ + "id": "abstracts-pilot-s00-ce-r00", + "stage": "abstracts", + "method": "ce", + "phase": "pilot", + "seed": 0, + "ratio": 0.0, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {} +} diff --git a/research/results/abstracts-pilot-s00-ce-r00/evaluation.jsonl b/research/results/abstracts-pilot-s00-ce-r00/evaluation.jsonl index cb96914582430012378d9a3ff35916e630762f9f..c5570632c654a22bd263b9c6b4a1d7e3d40df7d7 100644 --- a/research/results/abstracts-pilot-s00-ce-r00/evaluation.jsonl +++ b/research/results/abstracts-pilot-s00-ce-r00/evaluation.jsonl @@ -1,12 +1,12 @@ -{"timestamp": "2026-11-25T08:46:04+00:00", "split": "dev", "targets_scored": 458752, "targets_to_score": 5124071, "nll_so_far": 3.1083547042830366, "accuracy_so_far": 0.41265651157924105, "score_seconds": 60.1747358000066} -{"timestamp": "2026-11-25T08:47:04+00:00", "split": "dev", "targets_scored": 913408, "targets_to_score": 5124071, "nll_so_far": 3.102865026615907, "accuracy_so_far": 0.4135479435257848, "score_seconds": 120.29292740000528} -{"timestamp": "2026-11-25T08:48:04+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.101702481638808, "accuracy_so_far": 0.4136767065685907, "score_seconds": 180.3441779000059} -{"timestamp": "2026-11-25T08:49:04+00:00", "split": "dev", "targets_scored": 1814528, "targets_to_score": 5124071, "nll_so_far": 3.1060682386895704, "accuracy_so_far": 0.4135180057844244, "score_seconds": 240.39649480000662} -{"timestamp": "2026-11-25T08:50:05+00:00", "split": "dev", "targets_scored": 2265088, "targets_to_score": 5124071, "nll_so_far": 3.102862105580429, "accuracy_so_far": 0.4139538949480108, "score_seconds": 300.6460206000047} -{"timestamp": "2026-11-25T08:51:05+00:00", "split": "dev", "targets_scored": 2713600, "targets_to_score": 5124071, "nll_so_far": 3.101698950405918, "accuracy_so_far": 0.41429503242924526, "score_seconds": 360.6634387000013} -{"timestamp": "2026-11-25T08:52:05+00:00", "split": "dev", "targets_scored": 3137536, "targets_to_score": 5124071, "nll_so_far": 3.101010041516402, "accuracy_so_far": 0.4144723757751306, "score_seconds": 420.88872190000257} -{"timestamp": "2026-11-25T08:53:05+00:00", "split": "dev", "targets_scored": 3551232, "targets_to_score": 5124071, "nll_so_far": 3.1046923588610373, "accuracy_so_far": 0.41412276077710497, "score_seconds": 481.0650458000018} -{"timestamp": "2026-11-25T08:54:05+00:00", "split": "dev", "targets_scored": 3964928, "targets_to_score": 5124071, "nll_so_far": 3.106465390102634, "accuracy_so_far": 0.41398910648566634, "score_seconds": 541.0955837000001} -{"timestamp": "2026-11-25T08:55:05+00:00", "split": "dev", "targets_scored": 4384768, "targets_to_score": 5124071, "nll_so_far": 3.108081771263749, "accuracy_so_far": 0.41383626226062586, "score_seconds": 601.369492100006} -{"timestamp": "2026-11-25T08:56:05+00:00", "split": "dev", "targets_scored": 4814848, "targets_to_score": 5124071, "nll_so_far": 3.111372113929109, "accuracy_so_far": 0.41350858843311356, "score_seconds": 661.4340723000059} -{"timestamp": "2026-11-25T08:56:50+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1139476033557547, "accuracy_so_far": 0.41320992624809455, "score_seconds": 705.7124765000044} +{"timestamp": "2026-11-25T08:46:04+00:00", "split": "dev", "targets_scored": 458752, "targets_to_score": 5124071, "nll_so_far": 3.1083547042830366, "accuracy_so_far": 0.41265651157924105, "score_seconds": 60.1747358000066} +{"timestamp": "2026-11-25T08:47:04+00:00", "split": "dev", "targets_scored": 913408, "targets_to_score": 5124071, "nll_so_far": 3.102865026615907, "accuracy_so_far": 0.4135479435257848, "score_seconds": 120.29292740000528} +{"timestamp": "2026-11-25T08:48:04+00:00", "split": "dev", "targets_scored": 1366016, "targets_to_score": 5124071, "nll_so_far": 3.101702481638808, "accuracy_so_far": 0.4136767065685907, "score_seconds": 180.3441779000059} +{"timestamp": "2026-11-25T08:49:04+00:00", "split": "dev", "targets_scored": 1814528, "targets_to_score": 5124071, "nll_so_far": 3.1060682386895704, "accuracy_so_far": 0.4135180057844244, "score_seconds": 240.39649480000662} +{"timestamp": "2026-11-25T08:50:05+00:00", "split": "dev", "targets_scored": 2265088, "targets_to_score": 5124071, "nll_so_far": 3.102862105580429, "accuracy_so_far": 0.4139538949480108, "score_seconds": 300.6460206000047} +{"timestamp": "2026-11-25T08:51:05+00:00", "split": "dev", "targets_scored": 2713600, "targets_to_score": 5124071, "nll_so_far": 3.101698950405918, "accuracy_so_far": 0.41429503242924526, "score_seconds": 360.6634387000013} +{"timestamp": "2026-11-25T08:52:05+00:00", "split": "dev", "targets_scored": 3137536, "targets_to_score": 5124071, "nll_so_far": 3.101010041516402, "accuracy_so_far": 0.4144723757751306, "score_seconds": 420.88872190000257} +{"timestamp": "2026-11-25T08:53:05+00:00", "split": "dev", "targets_scored": 3551232, "targets_to_score": 5124071, "nll_so_far": 3.1046923588610373, "accuracy_so_far": 0.41412276077710497, "score_seconds": 481.0650458000018} +{"timestamp": "2026-11-25T08:54:05+00:00", "split": "dev", "targets_scored": 3964928, "targets_to_score": 5124071, "nll_so_far": 3.106465390102634, "accuracy_so_far": 0.41398910648566634, "score_seconds": 541.0955837000001} +{"timestamp": "2026-11-25T08:55:05+00:00", "split": "dev", "targets_scored": 4384768, "targets_to_score": 5124071, "nll_so_far": 3.108081771263749, "accuracy_so_far": 0.41383626226062586, "score_seconds": 601.369492100006} +{"timestamp": "2026-11-25T08:56:05+00:00", "split": "dev", "targets_scored": 4814848, "targets_to_score": 5124071, "nll_so_far": 3.111372113929109, "accuracy_so_far": 0.41350858843311356, "score_seconds": 661.4340723000059} +{"timestamp": "2026-11-25T08:56:50+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1139476033557547, "accuracy_so_far": 0.41320992624809455, "score_seconds": 705.7124765000044} diff --git a/research/results/abstracts-pilot-s00-ce-r00/events.jsonl b/research/results/abstracts-pilot-s00-ce-r00/events.jsonl index 62ecbfab07a9c325f1feb1e84f7545920e12fca6..c027af6a7d727d77c66eebb10845f70ba9b7edd4 100644 --- a/research/results/abstracts-pilot-s00-ce-r00/events.jsonl +++ b/research/results/abstracts-pilot-s00-ce-r00/events.jsonl @@ -1,17 +1,17 @@ -{"timestamp": "2026-11-25T08:44:05+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8024337000024389, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 0.8024337000024389} -{"timestamp": "2026-11-25T08:44:08+00:00", "step": 4, "tokens": 4096, "train_seconds": 2.5656078000029083, "loss": 3.3350424766540527, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1480952501296997, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 2.5656078000029083, "dev_nll": 3.205319700355176, "dev_accuracy": 0.4027099609375} -{"timestamp": "2026-11-25T08:44:12+00:00", "step": 8, "tokens": 8192, "train_seconds": 5.134419000009075, "loss": 3.1536121368408203, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.328325629234314, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 5.134419000009075, "dev_nll": 3.1851196667412296, "dev_accuracy": 0.4056396484375} -{"timestamp": "2026-11-25T08:44:16+00:00", "step": 12, "tokens": 12288, "train_seconds": 7.603069700009655, "loss": 3.2248728275299072, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1806890964508057, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 7.603069700009655, "dev_nll": 3.1676387496409006, "dev_accuracy": 0.406982421875} -{"timestamp": "2026-11-25T08:44:19+00:00", "step": 16, "tokens": 16384, "train_seconds": 10.075796000011906, "loss": 3.1744303703308105, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3236944675445557, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 10.075796000011906, "dev_nll": 3.1534856006037444, "dev_accuracy": 0.40869140625} -{"timestamp": "2026-11-25T08:44:23+00:00", "step": 20, "tokens": 20480, "train_seconds": 12.419361300009768, "loss": 3.3639204502105713, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2616828680038452, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 12.419361300009768, "dev_nll": 3.1409748164587654, "dev_accuracy": 0.4071044921875} -{"timestamp": "2026-11-25T08:44:27+00:00", "step": 24, "tokens": 24576, "train_seconds": 14.833960600022692, "loss": 3.1635994911193848, "accuracy": 0.412109375, "lr": 7.614895343622941e-05, "gradient_norm": 1.409738540649414, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 14.833960600022692, "dev_nll": 3.1300875726155937, "dev_accuracy": 0.407470703125} -{"timestamp": "2026-11-25T08:44:30+00:00", "step": 28, "tokens": 28672, "train_seconds": 17.328365300025325, "loss": 3.239861249923706, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.198853611946106, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 17.328365300025325, "dev_nll": 3.120358025538735, "dev_accuracy": 0.4085693359375} -{"timestamp": "2026-11-25T08:44:34+00:00", "step": 32, "tokens": 32768, "train_seconds": 19.674373200025002, "loss": 3.4722695350646973, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.37136709690094, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 19.674373200025002, "dev_nll": 3.1118558782618493, "dev_accuracy": 0.410400390625} -{"timestamp": "2026-11-25T08:44:38+00:00", "step": 36, "tokens": 36864, "train_seconds": 21.983117200026754, "loss": 3.1311087608337402, "accuracy": 0.4013671875, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2738001346588135, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 21.983117200026754, "dev_nll": 3.1051287156296894, "dev_accuracy": 0.4117431640625} -{"timestamp": "2026-11-25T08:44:41+00:00", "step": 40, "tokens": 40960, "train_seconds": 24.589703200021177, "loss": 3.067770481109619, "accuracy": 0.4228515625, "lr": 4.021559281401244e-05, "gradient_norm": 1.2490893602371216, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 24.589703200021177, "dev_nll": 3.100161263544578, "dev_accuracy": 0.4117431640625} -{"timestamp": "2026-11-25T08:44:45+00:00", "step": 44, "tokens": 45056, "train_seconds": 27.07432700003119, "loss": 3.389313220977783, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2468081712722778, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 27.07432700003119, "dev_nll": 3.0965134197613224, "dev_accuracy": 0.412109375} -{"timestamp": "2026-11-25T08:44:49+00:00", "step": 48, "tokens": 49152, "train_seconds": 29.51457880003727, "loss": 3.2319536209106445, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.31333327293396, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 29.51457880003727, "dev_nll": 3.0937195026199333, "dev_accuracy": 0.4129638671875} -{"timestamp": "2026-11-25T08:44:53+00:00", "step": 52, "tokens": 53248, "train_seconds": 32.002394200040726, "loss": 3.064552068710327, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1359813213348389, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 32.002394200040726, "dev_nll": 3.0917324865586124, "dev_accuracy": 0.4144287109375} -{"timestamp": "2026-11-25T08:44:56+00:00", "step": 56, "tokens": 57344, "train_seconds": 34.539385100048094, "loss": 3.2473764419555664, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1930474042892456, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 34.539385100048094, "dev_nll": 3.090231150505133, "dev_accuracy": 0.4139404296875} -{"timestamp": "2026-11-25T08:45:00+00:00", "step": 60, "tokens": 61440, "train_seconds": 37.01594860004843, "loss": 3.167987823486328, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2685749530792236, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 37.01594860004843, "dev_nll": 3.0890883168322034, "dev_accuracy": 0.41455078125} -{"timestamp": "2026-11-25T08:45:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 39.50860880003893, "loss": 3.1689395904541016, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.0881305932998657, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 39.50860880003893, "dev_nll": 3.088128614879679, "dev_accuracy": 0.4149169921875} +{"timestamp": "2026-11-25T08:44:05+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8024337000024389, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 0.8024337000024389} +{"timestamp": "2026-11-25T08:44:08+00:00", "step": 4, "tokens": 4096, "train_seconds": 2.5656078000029083, "loss": 3.3350424766540527, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1480952501296997, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 2.5656078000029083, "dev_nll": 3.205319700355176, "dev_accuracy": 0.4027099609375} +{"timestamp": "2026-11-25T08:44:12+00:00", "step": 8, "tokens": 8192, "train_seconds": 5.134419000009075, "loss": 3.1536121368408203, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.328325629234314, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 5.134419000009075, "dev_nll": 3.1851196667412296, "dev_accuracy": 0.4056396484375} +{"timestamp": "2026-11-25T08:44:16+00:00", "step": 12, "tokens": 12288, "train_seconds": 7.603069700009655, "loss": 3.2248728275299072, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1806890964508057, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 7.603069700009655, "dev_nll": 3.1676387496409006, "dev_accuracy": 0.406982421875} +{"timestamp": "2026-11-25T08:44:19+00:00", "step": 16, "tokens": 16384, "train_seconds": 10.075796000011906, "loss": 3.1744303703308105, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3236944675445557, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 10.075796000011906, "dev_nll": 3.1534856006037444, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T08:44:23+00:00", "step": 20, "tokens": 20480, "train_seconds": 12.419361300009768, "loss": 3.3639204502105713, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2616828680038452, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 12.419361300009768, "dev_nll": 3.1409748164587654, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T08:44:27+00:00", "step": 24, "tokens": 24576, "train_seconds": 14.833960600022692, "loss": 3.1635994911193848, "accuracy": 0.412109375, "lr": 7.614895343622941e-05, "gradient_norm": 1.409738540649414, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 14.833960600022692, "dev_nll": 3.1300875726155937, "dev_accuracy": 0.407470703125} +{"timestamp": "2026-11-25T08:44:30+00:00", "step": 28, "tokens": 28672, "train_seconds": 17.328365300025325, "loss": 3.239861249923706, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.198853611946106, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 17.328365300025325, "dev_nll": 3.120358025538735, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T08:44:34+00:00", "step": 32, "tokens": 32768, "train_seconds": 19.674373200025002, "loss": 3.4722695350646973, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.37136709690094, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 19.674373200025002, "dev_nll": 3.1118558782618493, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T08:44:38+00:00", "step": 36, "tokens": 36864, "train_seconds": 21.983117200026754, "loss": 3.1311087608337402, "accuracy": 0.4013671875, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2738001346588135, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 21.983117200026754, "dev_nll": 3.1051287156296894, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T08:44:41+00:00", "step": 40, "tokens": 40960, "train_seconds": 24.589703200021177, "loss": 3.067770481109619, "accuracy": 0.4228515625, "lr": 4.021559281401244e-05, "gradient_norm": 1.2490893602371216, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 24.589703200021177, "dev_nll": 3.100161263544578, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T08:44:45+00:00", "step": 44, "tokens": 45056, "train_seconds": 27.07432700003119, "loss": 3.389313220977783, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2468081712722778, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 27.07432700003119, "dev_nll": 3.0965134197613224, "dev_accuracy": 0.412109375} +{"timestamp": "2026-11-25T08:44:49+00:00", "step": 48, "tokens": 49152, "train_seconds": 29.51457880003727, "loss": 3.2319536209106445, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.31333327293396, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 29.51457880003727, "dev_nll": 3.0937195026199333, "dev_accuracy": 0.4129638671875} +{"timestamp": "2026-11-25T08:44:53+00:00", "step": 52, "tokens": 53248, "train_seconds": 32.002394200040726, "loss": 3.064552068710327, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1359813213348389, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 32.002394200040726, "dev_nll": 3.0917324865586124, "dev_accuracy": 0.4144287109375} +{"timestamp": "2026-11-25T08:44:56+00:00", "step": 56, "tokens": 57344, "train_seconds": 34.539385100048094, "loss": 3.2473764419555664, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1930474042892456, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 34.539385100048094, "dev_nll": 3.090231150505133, "dev_accuracy": 0.4139404296875} +{"timestamp": "2026-11-25T08:45:00+00:00", "step": 60, "tokens": 61440, "train_seconds": 37.01594860004843, "loss": 3.167987823486328, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2685749530792236, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 37.01594860004843, "dev_nll": 3.0890883168322034, "dev_accuracy": 0.41455078125} +{"timestamp": "2026-11-25T08:45:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 39.50860880003893, "loss": 3.1689395904541016, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.0881305932998657, "derivatives": {}, "host_probe_seconds": 0.0, "training_seconds_excluding_host_probes": 39.50860880003893, "dev_nll": 3.088128614879679, "dev_accuracy": 0.4149169921875} diff --git a/research/results/abstracts-pilot-s00-ce-r00/samples.jsonl b/research/results/abstracts-pilot-s00-ce-r00/samples.jsonl index 3a252e6ec16e403d5c8c78d92b6bab75b33e8858..03cd21e5649dee0e32f0780286291668d47d8e17 100644 --- a/research/results/abstracts-pilot-s00-ce-r00/samples.jsonl +++ b/research/results/abstracts-pilot-s00-ce-r00/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T08:56:52+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T08:56:55+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T08:56:57+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T08:56:52+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:56:55+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:56:57+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-pilot-s00-ce-r00/summary.json b/research/results/abstracts-pilot-s00-ce-r00/summary.json index 9fef29f16aaa1a9308c1b05e0f7378ae120d865e..6efbef7c337900bb8dac1fb8b28d04ec1de5eba0 100644 --- a/research/results/abstracts-pilot-s00-ce-r00/summary.json +++ b/research/results/abstracts-pilot-s00-ce-r00/summary.json @@ -1,39 +1,39 @@ -{ - "id": "abstracts-pilot-s00-ce-r00", - "stage": "abstracts", - "method": "ce", - "phase": "pilot", - "seed": 0, - "ratio": 0.0, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": {}, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "c4e251717056d1ccc252ca995ed7c2985c528bdd", - "trainable_parameters": 786432, - "host_probe_seconds": 0.0, - "training_seconds_excluding_host_probes": 39.50860880003893, - "weights_sha256": "828359e0b0205cd005f637cc7be0085bd34b4871bf7a0fc384324d85ff095acb", - "weights_name": "adapter_model.safetensors", - "matched_dev_nll": 3.088128614879679, - "tokens": 65536, - "steps": 64, - "train_seconds": 39.50860880003893, - "tokens_per_sec": 1658.777719349496, - "process_peak_rss_mib": 3872.859375, - "peak_vram_mb": 2346.30029296875, - "dev_nll": 3.1139476033557547, - "dev_accuracy": 0.41320992624809455, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T08:56:58+00:00", - "status": "complete" -} +{ + "id": "abstracts-pilot-s00-ce-r00", + "stage": "abstracts", + "method": "ce", + "phase": "pilot", + "seed": 0, + "ratio": 0.0, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": {}, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "c4e251717056d1ccc252ca995ed7c2985c528bdd", + "trainable_parameters": 786432, + "host_probe_seconds": 0.0, + "training_seconds_excluding_host_probes": 39.50860880003893, + "weights_sha256": "828359e0b0205cd005f637cc7be0085bd34b4871bf7a0fc384324d85ff095acb", + "weights_name": "adapter_model.safetensors", + "matched_dev_nll": 3.088128614879679, + "tokens": 65536, + "steps": 64, + "train_seconds": 39.50860880003893, + "tokens_per_sec": 1658.777719349496, + "process_peak_rss_mib": 3872.859375, + "peak_vram_mb": 2346.30029296875, + "dev_nll": 3.1139476033557547, + "dev_accuracy": 0.41320992624809455, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T08:56:58+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-third-r03-fp64/config.json b/research/results/abstracts-pilot-s00-third-r03-fp64/config.json index 55e34f60882b2882c18d1b1a7ad451255ce4b9e1..548696c1e51ee54803185cb1bdd6db476e4017db 100644 --- a/research/results/abstracts-pilot-s00-third-r03-fp64/config.json +++ b/research/results/abstracts-pilot-s00-third-r03-fp64/config.json @@ -1,18 +1,18 @@ -{ - "id": "abstracts-pilot-s00-third-r03-fp64", - "stage": "abstracts", - "method": "third", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "third": 1.8177534873097565e-16 - } -} +{ + "id": "abstracts-pilot-s00-third-r03-fp64", + "stage": "abstracts", + "method": "third", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "third": 1.8177534873097565e-16 + } +} diff --git a/research/results/abstracts-pilot-s00-third-r03-fp64/evaluation.jsonl b/research/results/abstracts-pilot-s00-third-r03-fp64/evaluation.jsonl index 64cac59c6f1b48898fefa25d427a01ae42449253..698ee4252436978a931e0354c1de2615c32189d6 100644 --- a/research/results/abstracts-pilot-s00-third-r03-fp64/evaluation.jsonl +++ b/research/results/abstracts-pilot-s00-third-r03-fp64/evaluation.jsonl @@ -1,12 +1,12 @@ -{"timestamp": "2026-11-25T08:20:39+00:00", "split": "dev", "targets_scored": 466944, "targets_to_score": 5124071, "nll_so_far": 3.1088260477000293, "accuracy_so_far": 0.41273685923793857, "score_seconds": 60.07268810000096} -{"timestamp": "2026-11-25T08:21:39+00:00", "split": "dev", "targets_scored": 925696, "targets_to_score": 5124071, "nll_so_far": 3.1037195404750437, "accuracy_so_far": 0.41355261338495575, "score_seconds": 120.31516709999778} -{"timestamp": "2026-11-25T08:22:40+00:00", "split": "dev", "targets_scored": 1353728, "targets_to_score": 5124071, "nll_so_far": 3.1033672920460624, "accuracy_so_far": 0.41359194756996975, "score_seconds": 180.52763439999762} -{"timestamp": "2026-11-25T08:23:40+00:00", "split": "dev", "targets_scored": 1810432, "targets_to_score": 5124071, "nll_so_far": 3.107115674487629, "accuracy_so_far": 0.4134543578549208, "score_seconds": 240.65438119999817} -{"timestamp": "2026-11-25T08:24:40+00:00", "split": "dev", "targets_scored": 2199552, "targets_to_score": 5124071, "nll_so_far": 3.103493530255763, "accuracy_so_far": 0.4138829179760242, "score_seconds": 300.8205721999984} -{"timestamp": "2026-11-25T08:25:41+00:00", "split": "dev", "targets_scored": 2633728, "targets_to_score": 5124071, "nll_so_far": 3.103459329177223, "accuracy_so_far": 0.4140503499222395, "score_seconds": 362.3933545} -{"timestamp": "2026-11-25T08:26:42+00:00", "split": "dev", "targets_scored": 3082240, "targets_to_score": 5124071, "nll_so_far": 3.1019827696466913, "accuracy_so_far": 0.41433827346345514, "score_seconds": 422.642445999998} -{"timestamp": "2026-11-25T08:27:42+00:00", "split": "dev", "targets_scored": 3534848, "targets_to_score": 5124071, "nll_so_far": 3.105719434134236, "accuracy_so_far": 0.4139979993482039, "score_seconds": 482.86223529999916} -{"timestamp": "2026-11-25T08:28:42+00:00", "split": "dev", "targets_scored": 3966976, "targets_to_score": 5124071, "nll_so_far": 3.1073454599289025, "accuracy_so_far": 0.413889572308983, "score_seconds": 543.0346836000026} -{"timestamp": "2026-11-25T08:29:42+00:00", "split": "dev", "targets_scored": 4415488, "targets_to_score": 5124071, "nll_so_far": 3.109312734825594, "accuracy_so_far": 0.4136915330762987, "score_seconds": 603.1816443999996} -{"timestamp": "2026-11-25T08:30:42+00:00", "split": "dev", "targets_scored": 4866048, "targets_to_score": 5124071, "nll_so_far": 3.111963312678009, "accuracy_so_far": 0.41345543652672556, "score_seconds": 663.3964372999981} -{"timestamp": "2026-11-25T08:31:17+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1148602603458824, "accuracy_so_far": 0.4130924415372074, "score_seconds": 697.9214215000029} +{"timestamp": "2026-11-25T08:20:39+00:00", "split": "dev", "targets_scored": 466944, "targets_to_score": 5124071, "nll_so_far": 3.1088260477000293, "accuracy_so_far": 0.41273685923793857, "score_seconds": 60.07268810000096} +{"timestamp": "2026-11-25T08:21:39+00:00", "split": "dev", "targets_scored": 925696, "targets_to_score": 5124071, "nll_so_far": 3.1037195404750437, "accuracy_so_far": 0.41355261338495575, "score_seconds": 120.31516709999778} +{"timestamp": "2026-11-25T08:22:40+00:00", "split": "dev", "targets_scored": 1353728, "targets_to_score": 5124071, "nll_so_far": 3.1033672920460624, "accuracy_so_far": 0.41359194756996975, "score_seconds": 180.52763439999762} +{"timestamp": "2026-11-25T08:23:40+00:00", "split": "dev", "targets_scored": 1810432, "targets_to_score": 5124071, "nll_so_far": 3.107115674487629, "accuracy_so_far": 0.4134543578549208, "score_seconds": 240.65438119999817} +{"timestamp": "2026-11-25T08:24:40+00:00", "split": "dev", "targets_scored": 2199552, "targets_to_score": 5124071, "nll_so_far": 3.103493530255763, "accuracy_so_far": 0.4138829179760242, "score_seconds": 300.8205721999984} +{"timestamp": "2026-11-25T08:25:41+00:00", "split": "dev", "targets_scored": 2633728, "targets_to_score": 5124071, "nll_so_far": 3.103459329177223, "accuracy_so_far": 0.4140503499222395, "score_seconds": 362.3933545} +{"timestamp": "2026-11-25T08:26:42+00:00", "split": "dev", "targets_scored": 3082240, "targets_to_score": 5124071, "nll_so_far": 3.1019827696466913, "accuracy_so_far": 0.41433827346345514, "score_seconds": 422.642445999998} +{"timestamp": "2026-11-25T08:27:42+00:00", "split": "dev", "targets_scored": 3534848, "targets_to_score": 5124071, "nll_so_far": 3.105719434134236, "accuracy_so_far": 0.4139979993482039, "score_seconds": 482.86223529999916} +{"timestamp": "2026-11-25T08:28:42+00:00", "split": "dev", "targets_scored": 3966976, "targets_to_score": 5124071, "nll_so_far": 3.1073454599289025, "accuracy_so_far": 0.413889572308983, "score_seconds": 543.0346836000026} +{"timestamp": "2026-11-25T08:29:42+00:00", "split": "dev", "targets_scored": 4415488, "targets_to_score": 5124071, "nll_so_far": 3.109312734825594, "accuracy_so_far": 0.4136915330762987, "score_seconds": 603.1816443999996} +{"timestamp": "2026-11-25T08:30:42+00:00", "split": "dev", "targets_scored": 4866048, "targets_to_score": 5124071, "nll_so_far": 3.111963312678009, "accuracy_so_far": 0.41345543652672556, "score_seconds": 663.3964372999981} +{"timestamp": "2026-11-25T08:31:17+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.1148602603458824, "accuracy_so_far": 0.4130924415372074, "score_seconds": 697.9214215000029} diff --git a/research/results/abstracts-pilot-s00-third-r03-fp64/events.jsonl b/research/results/abstracts-pilot-s00-third-r03-fp64/events.jsonl index 6ce07d427023ef28079f429623f8745b15294a41..927a1457eafd952a83a02c9addcc442402d95726 100644 --- a/research/results/abstracts-pilot-s00-third-r03-fp64/events.jsonl +++ b/research/results/abstracts-pilot-s00-third-r03-fp64/events.jsonl @@ -1,22 +1,22 @@ -{"timestamp": "2026-11-25T08:13:31+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.962927699998545, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.962927699998545} -{"timestamp": "2026-11-25T08:14:29+00:00", "step": 2, "tokens": 2048, "train_seconds": 59.588642899998376, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 2.477825164794922, "derivatives": {"third": {"estimate": 687644208669.4894, "raw_grad_norm": 1361448063580871.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.878220300000976}}, "host_probe_seconds": 57.878220300000976, "training_seconds_excluding_host_probes": 1.7104225999974005, "penalty": 0.0009999741266698578} -{"timestamp": "2026-11-25T08:14:36+00:00", "step": 4, "tokens": 4096, "train_seconds": 64.748265299997, "loss": 3.3355765342712402, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1430377960205078, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.870044999996026, "dev_nll": 3.205850869708229, "dev_accuracy": 0.4027099609375} -{"timestamp": "2026-11-25T08:14:40+00:00", "step": 8, "tokens": 8192, "train_seconds": 67.7308524, "loss": 3.1542978286743164, "accuracy": 0.41015625, "lr": 9.851624761560943e-05, "gradient_norm": 1.3654953241348267, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 9.852632099999028, "dev_nll": 3.185838397825137, "dev_accuracy": 0.406494140625} -{"timestamp": "2026-11-25T08:15:38+00:00", "step": 11, "tokens": 11264, "train_seconds": 125.70181410000441, "loss": 3.222909927368164, "accuracy": 0.412109375, "lr": 9.623426070191522e-05, "gradient_norm": 4.982945442199707, "derivatives": {"third": {"estimate": 305501104666.5071, "raw_grad_norm": 3591553778733335.5, "lambda": 1.8177534873097565e-16, "probe_seconds": 55.88409010000032}}, "host_probe_seconds": 55.88409010000032, "training_seconds_excluding_host_probes": 11.939503700003115, "penalty": 0.00044426055870762094} -{"timestamp": "2026-11-25T08:15:44+00:00", "step": 12, "tokens": 12288, "train_seconds": 130.09385470000416, "loss": 3.226421594619751, "accuracy": 0.4208984375, "lr": 9.525191870029581e-05, "gradient_norm": 1.1676359176635742, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.33154430000286, "dev_nll": 3.1688174732844345, "dev_accuracy": 0.40673828125} -{"timestamp": "2026-11-25T08:15:48+00:00", "step": 16, "tokens": 16384, "train_seconds": 132.96146440000302, "loss": 3.176070213317871, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3013406991958618, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.199154000001727, "dev_nll": 3.155030827212613, "dev_accuracy": 0.40869140625} -{"timestamp": "2026-11-25T08:15:52+00:00", "step": 20, "tokens": 20480, "train_seconds": 135.62548290000996, "loss": 3.365168571472168, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2591444253921509, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 21.86317250000866, "dev_nll": 3.14251070341561, "dev_accuracy": 0.40771484375} -{"timestamp": "2026-11-25T08:16:52+00:00", "step": 22, "tokens": 22528, "train_seconds": 195.6454539000115, "loss": 3.1007277965545654, "accuracy": 0.4013671875, "lr": 8.01209674912089e-05, "gradient_norm": 1.1925373077392578, "derivatives": {"third": {"estimate": 171513315730.0954, "raw_grad_norm": 105524567385533.45, "lambda": 1.8177534873097565e-16, "probe_seconds": 58.4897392999992}}, "host_probe_seconds": 58.4897392999992, "training_seconds_excluding_host_probes": 23.39340420001099, "penalty": 0.0002494151422307522} -{"timestamp": "2026-11-25T08:16:58+00:00", "step": 24, "tokens": 24576, "train_seconds": 200.80499380000765, "loss": 3.1658759117126465, "accuracy": 0.4140625, "lr": 7.614895343622941e-05, "gradient_norm": 1.4459034204483032, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.552944100007153, "dev_nll": 3.131769879197236, "dev_accuracy": 0.4073486328125} -{"timestamp": "2026-11-25T08:17:55+00:00", "step": 25, "tokens": 25600, "train_seconds": 257.6465824000079, "loss": 3.161825180053711, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.5947465896606445, "derivatives": {"third": {"estimate": 918015450216.7732, "raw_grad_norm": 821309261872224.1, "lambda": 1.8177534873097565e-16, "probe_seconds": 56.20942120000109}}, "host_probe_seconds": 56.20942120000109, "training_seconds_excluding_host_probes": 29.185111500006315, "penalty": 0.0013349806288286204} -{"timestamp": "2026-11-25T08:18:02+00:00", "step": 28, "tokens": 28672, "train_seconds": 263.6649002000049, "loss": 3.242283582687378, "accuracy": 0.3974609375, "lr": 6.757685356832243e-05, "gradient_norm": 1.1834553480148315, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 35.203429300003336, "dev_nll": 3.1222981341998093, "dev_accuracy": 0.407958984375} -{"timestamp": "2026-11-25T08:18:06+00:00", "step": 32, "tokens": 32768, "train_seconds": 266.4159822000038, "loss": 3.47184419631958, "accuracy": 0.3759765625, "lr": 5.84728957956991e-05, "gradient_norm": 1.3780546188354492, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.954511300002196, "dev_nll": 3.1137536005699076, "dev_accuracy": 0.4097900390625} -{"timestamp": "2026-11-25T08:18:10+00:00", "step": 36, "tokens": 36864, "train_seconds": 269.1472620000095, "loss": 3.13436222076416, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.27980637550354, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.68579110000792, "dev_nll": 3.1068799886270426, "dev_accuracy": 0.41162109375} -{"timestamp": "2026-11-25T08:18:14+00:00", "step": 40, "tokens": 40960, "train_seconds": 271.90369160000773, "loss": 3.0670571327209473, "accuracy": 0.4267578125, "lr": 4.021559281401244e-05, "gradient_norm": 1.2274017333984375, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 43.442220700006146, "dev_nll": 3.101782739860937, "dev_accuracy": 0.4114990234375} -{"timestamp": "2026-11-25T08:18:18+00:00", "step": 44, "tokens": 45056, "train_seconds": 274.78990590000467, "loss": 3.3899011611938477, "accuracy": 0.3681640625, "lr": 3.183432393205763e-05, "gradient_norm": 1.2034586668014526, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 46.32843500000308, "dev_nll": 3.098028525535483, "dev_accuracy": 0.4119873046875} -{"timestamp": "2026-11-25T08:18:22+00:00", "step": 48, "tokens": 49152, "train_seconds": 277.2874240000019, "loss": 3.2332143783569336, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.29664945602417, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 48.82595310000033, "dev_nll": 3.095082105253823, "dev_accuracy": 0.411865234375} -{"timestamp": "2026-11-25T08:19:21+00:00", "step": 50, "tokens": 51200, "train_seconds": 336.416138200002, "loss": 3.0864548683166504, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 2.964020013809204, "derivatives": {"third": {"estimate": 757294136851.5509, "raw_grad_norm": 1853270582350327.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.830706500000815}}, "host_probe_seconds": 57.830706500000815, "training_seconds_excluding_host_probes": 50.12396079999962, "penalty": 0.0011012592465449108} -{"timestamp": "2026-11-25T08:19:28+00:00", "step": 52, "tokens": 53248, "train_seconds": 341.5731149000021, "loss": 3.066990852355957, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1498953104019165, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 55.28093749999971, "dev_nll": 3.093058333382942, "dev_accuracy": 0.4130859375} -{"timestamp": "2026-11-25T08:19:31+00:00", "step": 56, "tokens": 57344, "train_seconds": 344.05631189999986, "loss": 3.2474496364593506, "accuracy": 0.4033203125, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1399725675582886, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 57.76413449999745, "dev_nll": 3.091498479945585, "dev_accuracy": 0.4139404296875} -{"timestamp": "2026-11-25T08:19:35+00:00", "step": 60, "tokens": 61440, "train_seconds": 346.7057458999989, "loss": 3.1669363975524902, "accuracy": 0.40625, "lr": 1.09514941707089e-05, "gradient_norm": 1.1765968799591064, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 60.41356849999647, "dev_nll": 3.0903065995080397, "dev_accuracy": 0.414306640625} -{"timestamp": "2026-11-25T08:19:39+00:00", "step": 64, "tokens": 65536, "train_seconds": 349.2530617000011, "loss": 3.1704280376434326, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.135949730873108, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 62.960884299998725, "dev_nll": 3.089313570468221, "dev_accuracy": 0.4146728515625} +{"timestamp": "2026-11-25T08:13:31+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.962927699998545, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.962927699998545} +{"timestamp": "2026-11-25T08:14:29+00:00", "step": 2, "tokens": 2048, "train_seconds": 59.588642899998376, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 2.477825164794922, "derivatives": {"third": {"estimate": 687644208669.4894, "raw_grad_norm": 1361448063580871.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.878220300000976}}, "host_probe_seconds": 57.878220300000976, "training_seconds_excluding_host_probes": 1.7104225999974005, "penalty": 0.0009999741266698578} +{"timestamp": "2026-11-25T08:14:36+00:00", "step": 4, "tokens": 4096, "train_seconds": 64.748265299997, "loss": 3.3355765342712402, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1430377960205078, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.870044999996026, "dev_nll": 3.205850869708229, "dev_accuracy": 0.4027099609375} +{"timestamp": "2026-11-25T08:14:40+00:00", "step": 8, "tokens": 8192, "train_seconds": 67.7308524, "loss": 3.1542978286743164, "accuracy": 0.41015625, "lr": 9.851624761560943e-05, "gradient_norm": 1.3654953241348267, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 9.852632099999028, "dev_nll": 3.185838397825137, "dev_accuracy": 0.406494140625} +{"timestamp": "2026-11-25T08:15:38+00:00", "step": 11, "tokens": 11264, "train_seconds": 125.70181410000441, "loss": 3.222909927368164, "accuracy": 0.412109375, "lr": 9.623426070191522e-05, "gradient_norm": 4.982945442199707, "derivatives": {"third": {"estimate": 305501104666.5071, "raw_grad_norm": 3591553778733335.5, "lambda": 1.8177534873097565e-16, "probe_seconds": 55.88409010000032}}, "host_probe_seconds": 55.88409010000032, "training_seconds_excluding_host_probes": 11.939503700003115, "penalty": 0.00044426055870762094} +{"timestamp": "2026-11-25T08:15:44+00:00", "step": 12, "tokens": 12288, "train_seconds": 130.09385470000416, "loss": 3.226421594619751, "accuracy": 0.4208984375, "lr": 9.525191870029581e-05, "gradient_norm": 1.1676359176635742, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.33154430000286, "dev_nll": 3.1688174732844345, "dev_accuracy": 0.40673828125} +{"timestamp": "2026-11-25T08:15:48+00:00", "step": 16, "tokens": 16384, "train_seconds": 132.96146440000302, "loss": 3.176070213317871, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3013406991958618, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.199154000001727, "dev_nll": 3.155030827212613, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T08:15:52+00:00", "step": 20, "tokens": 20480, "train_seconds": 135.62548290000996, "loss": 3.365168571472168, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2591444253921509, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 21.86317250000866, "dev_nll": 3.14251070341561, "dev_accuracy": 0.40771484375} +{"timestamp": "2026-11-25T08:16:52+00:00", "step": 22, "tokens": 22528, "train_seconds": 195.6454539000115, "loss": 3.1007277965545654, "accuracy": 0.4013671875, "lr": 8.01209674912089e-05, "gradient_norm": 1.1925373077392578, "derivatives": {"third": {"estimate": 171513315730.0954, "raw_grad_norm": 105524567385533.45, "lambda": 1.8177534873097565e-16, "probe_seconds": 58.4897392999992}}, "host_probe_seconds": 58.4897392999992, "training_seconds_excluding_host_probes": 23.39340420001099, "penalty": 0.0002494151422307522} +{"timestamp": "2026-11-25T08:16:58+00:00", "step": 24, "tokens": 24576, "train_seconds": 200.80499380000765, "loss": 3.1658759117126465, "accuracy": 0.4140625, "lr": 7.614895343622941e-05, "gradient_norm": 1.4459034204483032, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.552944100007153, "dev_nll": 3.131769879197236, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T08:17:55+00:00", "step": 25, "tokens": 25600, "train_seconds": 257.6465824000079, "loss": 3.161825180053711, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.5947465896606445, "derivatives": {"third": {"estimate": 918015450216.7732, "raw_grad_norm": 821309261872224.1, "lambda": 1.8177534873097565e-16, "probe_seconds": 56.20942120000109}}, "host_probe_seconds": 56.20942120000109, "training_seconds_excluding_host_probes": 29.185111500006315, "penalty": 0.0013349806288286204} +{"timestamp": "2026-11-25T08:18:02+00:00", "step": 28, "tokens": 28672, "train_seconds": 263.6649002000049, "loss": 3.242283582687378, "accuracy": 0.3974609375, "lr": 6.757685356832243e-05, "gradient_norm": 1.1834553480148315, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 35.203429300003336, "dev_nll": 3.1222981341998093, "dev_accuracy": 0.407958984375} +{"timestamp": "2026-11-25T08:18:06+00:00", "step": 32, "tokens": 32768, "train_seconds": 266.4159822000038, "loss": 3.47184419631958, "accuracy": 0.3759765625, "lr": 5.84728957956991e-05, "gradient_norm": 1.3780546188354492, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.954511300002196, "dev_nll": 3.1137536005699076, "dev_accuracy": 0.4097900390625} +{"timestamp": "2026-11-25T08:18:10+00:00", "step": 36, "tokens": 36864, "train_seconds": 269.1472620000095, "loss": 3.13436222076416, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.27980637550354, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.68579110000792, "dev_nll": 3.1068799886270426, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T08:18:14+00:00", "step": 40, "tokens": 40960, "train_seconds": 271.90369160000773, "loss": 3.0670571327209473, "accuracy": 0.4267578125, "lr": 4.021559281401244e-05, "gradient_norm": 1.2274017333984375, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 43.442220700006146, "dev_nll": 3.101782739860937, "dev_accuracy": 0.4114990234375} +{"timestamp": "2026-11-25T08:18:18+00:00", "step": 44, "tokens": 45056, "train_seconds": 274.78990590000467, "loss": 3.3899011611938477, "accuracy": 0.3681640625, "lr": 3.183432393205763e-05, "gradient_norm": 1.2034586668014526, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 46.32843500000308, "dev_nll": 3.098028525535483, "dev_accuracy": 0.4119873046875} +{"timestamp": "2026-11-25T08:18:22+00:00", "step": 48, "tokens": 49152, "train_seconds": 277.2874240000019, "loss": 3.2332143783569336, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.29664945602417, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 48.82595310000033, "dev_nll": 3.095082105253823, "dev_accuracy": 0.411865234375} +{"timestamp": "2026-11-25T08:19:21+00:00", "step": 50, "tokens": 51200, "train_seconds": 336.416138200002, "loss": 3.0864548683166504, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 2.964020013809204, "derivatives": {"third": {"estimate": 757294136851.5509, "raw_grad_norm": 1853270582350327.2, "lambda": 1.8177534873097565e-16, "probe_seconds": 57.830706500000815}}, "host_probe_seconds": 57.830706500000815, "training_seconds_excluding_host_probes": 50.12396079999962, "penalty": 0.0011012592465449108} +{"timestamp": "2026-11-25T08:19:28+00:00", "step": 52, "tokens": 53248, "train_seconds": 341.5731149000021, "loss": 3.066990852355957, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1498953104019165, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 55.28093749999971, "dev_nll": 3.093058333382942, "dev_accuracy": 0.4130859375} +{"timestamp": "2026-11-25T08:19:31+00:00", "step": 56, "tokens": 57344, "train_seconds": 344.05631189999986, "loss": 3.2474496364593506, "accuracy": 0.4033203125, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1399725675582886, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 57.76413449999745, "dev_nll": 3.091498479945585, "dev_accuracy": 0.4139404296875} +{"timestamp": "2026-11-25T08:19:35+00:00", "step": 60, "tokens": 61440, "train_seconds": 346.7057458999989, "loss": 3.1669363975524902, "accuracy": 0.40625, "lr": 1.09514941707089e-05, "gradient_norm": 1.1765968799591064, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 60.41356849999647, "dev_nll": 3.0903065995080397, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T08:19:39+00:00", "step": 64, "tokens": 65536, "train_seconds": 349.2530617000011, "loss": 3.1704280376434326, "accuracy": 0.40234375, "lr": 1e-05, "gradient_norm": 1.135949730873108, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 62.960884299998725, "dev_nll": 3.089313570468221, "dev_accuracy": 0.4146728515625} diff --git a/research/results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl b/research/results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl index 8afdff7b94e69bb05d608c6a3ea4e784c61bcc1d..3847fea1024b7dd787e6f41b3e2f9ff1caf36af3 100644 --- a/research/results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl +++ b/research/results/abstracts-pilot-s00-third-r03-fp64/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T08:31:20+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T08:31:22+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T08:31:25+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T08:31:20+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T08:31:22+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T08:31:25+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-pilot-s00-third-r03-fp64/summary.json b/research/results/abstracts-pilot-s00-third-r03-fp64/summary.json index 5ce6bf6edfd1a692fd4b1ed76637dab0100825c1..04ef0de4e450fd1a2c9d0100ba1c85d45af7f73b 100644 --- a/research/results/abstracts-pilot-s00-third-r03-fp64/summary.json +++ b/research/results/abstracts-pilot-s00-third-r03-fp64/summary.json @@ -1,43 +1,43 @@ -{ - "id": "abstracts-pilot-s00-third-r03-fp64", - "stage": "abstracts", - "method": "third", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "third": 1.8177534873097565e-16 - }, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "a1ba0fc2e322c16968bbce4e3dc5b9ac67037374", - "trainable_parameters": 786432, - "host_probe_seconds": 286.2921774000024, - "training_seconds_excluding_host_probes": 62.960884299998725, - "weights_sha256": "ba783a138db5dcb60db9075e12ef04ab5251e8591e5f580fd48b4418f8e2e1e0", - "weights_name": "adapter_model.safetensors", - "matched_dev_nll": 3.089313570468221, - "tokens": 65536, - "steps": 64, - "train_seconds": 349.2530617000011, - "tokens_per_sec": 187.64617175008087, - "process_peak_rss_mib": 15321.11328125, - "peak_vram_mb": 2346.30029296875, - "dev_nll": 3.1148602603458824, - "dev_accuracy": 0.4130924415372074, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T08:31:25+00:00", - "status": "complete" -} +{ + "id": "abstracts-pilot-s00-third-r03-fp64", + "stage": "abstracts", + "method": "third", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "third": 1.8177534873097565e-16 + }, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "a1ba0fc2e322c16968bbce4e3dc5b9ac67037374", + "trainable_parameters": 786432, + "host_probe_seconds": 286.2921774000024, + "training_seconds_excluding_host_probes": 62.960884299998725, + "weights_sha256": "ba783a138db5dcb60db9075e12ef04ab5251e8591e5f580fd48b4418f8e2e1e0", + "weights_name": "adapter_model.safetensors", + "matched_dev_nll": 3.089313570468221, + "tokens": 65536, + "steps": 64, + "train_seconds": 349.2530617000011, + "tokens_per_sec": 187.64617175008087, + "process_peak_rss_mib": 15321.11328125, + "peak_vram_mb": 2346.30029296875, + "dev_nll": 3.1148602603458824, + "dev_accuracy": 0.4130924415372074, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T08:31:25+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-third-r03/attempts.json b/research/results/abstracts-pilot-s00-third-r03/attempts.json index ea791322553d4c8445c50615141ce43b916fb01e..3b0bb89fd3d555f602a24c2874c58c798e93106e 100644 --- a/research/results/abstracts-pilot-s00-third-r03/attempts.json +++ b/research/results/abstracts-pilot-s00-third-r03/attempts.json @@ -1,8 +1,8 @@ -{ - "failures": [ - { - "timestamp": "2026-11-25T07:00:21+00:00", - "error": "FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf')" - } - ] -} +{ + "failures": [ + { + "timestamp": "2026-11-25T07:00:21+00:00", + "error": "FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf')" + } + ] +} diff --git a/research/results/abstracts-pilot-s00-third-r03/config.json b/research/results/abstracts-pilot-s00-third-r03/config.json index df92a21f084c79acb3fac59315521d7ed4c64461..b5217178473137e2d975628e65cedae7450f43d8 100644 --- a/research/results/abstracts-pilot-s00-third-r03/config.json +++ b/research/results/abstracts-pilot-s00-third-r03/config.json @@ -1,16 +1,16 @@ -{ - "id": "abstracts-pilot-s00-third-r03", - "stage": "abstracts", - "method": "third", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": { - "third": 8.794990192182448e-22 - } -} +{ + "id": "abstracts-pilot-s00-third-r03", + "stage": "abstracts", + "method": "third", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": { + "third": 8.794990192182448e-22 + } +} diff --git a/research/results/abstracts-pilot-s00-third-r03/events.jsonl b/research/results/abstracts-pilot-s00-third-r03/events.jsonl index d52acf1960cf554faeef13eb20adfce64bcaac06..21c427a9be8a5e0e908ffafca2e0a34e1cb734ae 100644 --- a/research/results/abstracts-pilot-s00-third-r03/events.jsonl +++ b/research/results/abstracts-pilot-s00-third-r03/events.jsonl @@ -1,22 +1,22 @@ -{"timestamp": "2026-11-25T07:10:36+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.7549512999976287, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}} -{"timestamp": "2026-11-25T07:10:43+00:00", "step": 2, "tokens": 2048, "train_seconds": 7.784967199997482, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1557306051254272, "derivatives": {"third": {"estimate": 63550970134528.0, "raw_grad_norm": 1.0867890687798411e+19, "lambda": 8.794990192182448e-22}}, "penalty": 4.4714412722948273e-07} -{"timestamp": "2026-11-25T07:10:46+00:00", "step": 4, "tokens": 4096, "train_seconds": 8.992709899997863, "loss": 3.3350443840026855, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.148818850517273, "derivatives": {}, "dev_nll": 3.2052710236166604, "dev_accuracy": 0.40283203125} -{"timestamp": "2026-11-25T07:10:51+00:00", "step": 8, "tokens": 8192, "train_seconds": 11.37447599999723, "loss": 3.153599977493286, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.330934762954712, "derivatives": {}, "dev_nll": 3.1850391061161645, "dev_accuracy": 0.4056396484375} -{"timestamp": "2026-11-25T07:10:59+00:00", "step": 11, "tokens": 11264, "train_seconds": 19.229515199996968, "loss": 3.2227602005004883, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 20.010913848876953, "derivatives": {"third": {"estimate": 1530587563163648.0, "raw_grad_norm": 2.8263922879758997e+21, "lambda": 8.794990192182448e-22}}, "penalty": 1.0769202085040574e-05} -{"timestamp": "2026-11-25T07:11:01+00:00", "step": 12, "tokens": 12288, "train_seconds": 19.830211699998472, "loss": 3.2258496284484863, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1856259107589722, "derivatives": {}, "dev_nll": 3.1686210415209644, "dev_accuracy": 0.4073486328125} -{"timestamp": "2026-11-25T07:11:05+00:00", "step": 16, "tokens": 16384, "train_seconds": 22.11336940000183, "loss": 3.1759636402130127, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.2954821586608887, "derivatives": {}, "dev_nll": 3.1556127692456357, "dev_accuracy": 0.4083251953125} -{"timestamp": "2026-11-25T07:11:10+00:00", "step": 20, "tokens": 20480, "train_seconds": 24.520824300005188, "loss": 3.365950584411621, "accuracy": 0.3798828125, "lr": 8.38266930414179e-05, "gradient_norm": 1.2729922533035278, "derivatives": {}, "dev_nll": 3.143591393774841, "dev_accuracy": 0.4073486328125} -{"timestamp": "2026-11-25T07:11:17+00:00", "step": 22, "tokens": 22528, "train_seconds": 32.07198700000663, "loss": 3.1026458740234375, "accuracy": 0.400390625, "lr": 8.01209674912089e-05, "gradient_norm": 9.28732681274414, "derivatives": {"third": {"estimate": 1165224627404800.0, "raw_grad_norm": 1.3197244810220038e+21, "lambda": 8.794990192182448e-22}}, "penalty": 8.19851133577173e-06} -{"timestamp": "2026-11-25T07:11:20+00:00", "step": 24, "tokens": 24576, "train_seconds": 33.262805500005925, "loss": 3.1675891876220703, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4086129665374756, "derivatives": {}, "dev_nll": 3.1338581111631356, "dev_accuracy": 0.4075927734375} -{"timestamp": "2026-11-25T07:11:27+00:00", "step": 25, "tokens": 25600, "train_seconds": 40.032943500005786, "loss": 3.1646835803985596, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.3745598793029785, "derivatives": {"third": {"estimate": 143147149557760.0, "raw_grad_norm": 8.819714745499946e+19, "lambda": 8.794990192182448e-22}}, "penalty": 1.0071822211194986e-06} -{"timestamp": "2026-11-25T07:11:31+00:00", "step": 28, "tokens": 28672, "train_seconds": 41.769987900010165, "loss": 3.24495267868042, "accuracy": 0.3994140625, "lr": 6.757685356832243e-05, "gradient_norm": 1.2910264730453491, "derivatives": {}, "dev_nll": 3.1247553065186366, "dev_accuracy": 0.407958984375} -{"timestamp": "2026-11-25T07:11:36+00:00", "step": 32, "tokens": 32768, "train_seconds": 44.11454810001305, "loss": 3.475984573364258, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.348798394203186, "derivatives": {}, "dev_nll": 3.116393227071967, "dev_accuracy": 0.40966796875} -{"timestamp": "2026-11-25T07:11:40+00:00", "step": 36, "tokens": 36864, "train_seconds": 46.52359150001212, "loss": 3.1366770267486572, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.3073307275772095, "derivatives": {}, "dev_nll": 3.109527630964294, "dev_accuracy": 0.4110107421875} -{"timestamp": "2026-11-25T07:11:45+00:00", "step": 40, "tokens": 40960, "train_seconds": 49.058105700012675, "loss": 3.069873094558716, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2526063919067383, "derivatives": {}, "dev_nll": 3.1042128810076974, "dev_accuracy": 0.412109375} -{"timestamp": "2026-11-25T07:11:49+00:00", "step": 44, "tokens": 45056, "train_seconds": 51.578499600014766, "loss": 3.3931686878204346, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2775940895080566, "derivatives": {}, "dev_nll": 3.100137497414835, "dev_accuracy": 0.41259765625} -{"timestamp": "2026-11-25T07:11:54+00:00", "step": 48, "tokens": 49152, "train_seconds": 54.11914360001538, "loss": 3.235374927520752, "accuracy": 0.37890625, "lr": 2.443269974962181e-05, "gradient_norm": 1.304945468902588, "derivatives": {}, "dev_nll": 3.097055894031655, "dev_accuracy": 0.4124755859375} -{"timestamp": "2026-11-25T07:12:02+00:00", "step": 50, "tokens": 51200, "train_seconds": 61.74632690001454, "loss": 3.0874135494232178, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 1.267307996749878, "derivatives": {"third": {"estimate": 36042237280256.0, "raw_grad_norm": 1.8375159269671567e+19, "lambda": 8.794990192182448e-22}}, "penalty": 2.535928987073313e-07} -{"timestamp": "2026-11-25T07:12:05+00:00", "step": 52, "tokens": 53248, "train_seconds": 63.20483800001239, "loss": 3.068760871887207, "accuracy": 0.408203125, "lr": 1.8323724811743496e-05, "gradient_norm": 1.184583306312561, "derivatives": {}, "dev_nll": 3.0948601723648608, "dev_accuracy": 0.412841796875} -{"timestamp": "2026-11-25T07:12:10+00:00", "step": 56, "tokens": 57344, "train_seconds": 66.32172880001235, "loss": 3.2506747245788574, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1677639484405518, "derivatives": {}, "dev_nll": 3.0932112977607176, "dev_accuracy": 0.4134521484375} -{"timestamp": "2026-11-25T07:12:16+00:00", "step": 60, "tokens": 61440, "train_seconds": 69.4508472000125, "loss": 3.1683192253112793, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.2090530395507812, "derivatives": {}, "dev_nll": 3.091967608779669, "dev_accuracy": 0.414306640625} -{"timestamp": "2026-11-25T07:12:21+00:00", "step": 64, "tokens": 65536, "train_seconds": 72.27489250001236, "loss": 3.1733510494232178, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.1200544834136963, "derivatives": {}, "dev_nll": 3.09093911992386, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T07:10:36+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.7549512999976287, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}} +{"timestamp": "2026-11-25T07:10:43+00:00", "step": 2, "tokens": 2048, "train_seconds": 7.784967199997482, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1557306051254272, "derivatives": {"third": {"estimate": 63550970134528.0, "raw_grad_norm": 1.0867890687798411e+19, "lambda": 8.794990192182448e-22}}, "penalty": 4.4714412722948273e-07} +{"timestamp": "2026-11-25T07:10:46+00:00", "step": 4, "tokens": 4096, "train_seconds": 8.992709899997863, "loss": 3.3350443840026855, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.148818850517273, "derivatives": {}, "dev_nll": 3.2052710236166604, "dev_accuracy": 0.40283203125} +{"timestamp": "2026-11-25T07:10:51+00:00", "step": 8, "tokens": 8192, "train_seconds": 11.37447599999723, "loss": 3.153599977493286, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.330934762954712, "derivatives": {}, "dev_nll": 3.1850391061161645, "dev_accuracy": 0.4056396484375} +{"timestamp": "2026-11-25T07:10:59+00:00", "step": 11, "tokens": 11264, "train_seconds": 19.229515199996968, "loss": 3.2227602005004883, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 20.010913848876953, "derivatives": {"third": {"estimate": 1530587563163648.0, "raw_grad_norm": 2.8263922879758997e+21, "lambda": 8.794990192182448e-22}}, "penalty": 1.0769202085040574e-05} +{"timestamp": "2026-11-25T07:11:01+00:00", "step": 12, "tokens": 12288, "train_seconds": 19.830211699998472, "loss": 3.2258496284484863, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1856259107589722, "derivatives": {}, "dev_nll": 3.1686210415209644, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T07:11:05+00:00", "step": 16, "tokens": 16384, "train_seconds": 22.11336940000183, "loss": 3.1759636402130127, "accuracy": 0.404296875, "lr": 9.028539129595197e-05, "gradient_norm": 1.2954821586608887, "derivatives": {}, "dev_nll": 3.1556127692456357, "dev_accuracy": 0.4083251953125} +{"timestamp": "2026-11-25T07:11:10+00:00", "step": 20, "tokens": 20480, "train_seconds": 24.520824300005188, "loss": 3.365950584411621, "accuracy": 0.3798828125, "lr": 8.38266930414179e-05, "gradient_norm": 1.2729922533035278, "derivatives": {}, "dev_nll": 3.143591393774841, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T07:11:17+00:00", "step": 22, "tokens": 22528, "train_seconds": 32.07198700000663, "loss": 3.1026458740234375, "accuracy": 0.400390625, "lr": 8.01209674912089e-05, "gradient_norm": 9.28732681274414, "derivatives": {"third": {"estimate": 1165224627404800.0, "raw_grad_norm": 1.3197244810220038e+21, "lambda": 8.794990192182448e-22}}, "penalty": 8.19851133577173e-06} +{"timestamp": "2026-11-25T07:11:20+00:00", "step": 24, "tokens": 24576, "train_seconds": 33.262805500005925, "loss": 3.1675891876220703, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4086129665374756, "derivatives": {}, "dev_nll": 3.1338581111631356, "dev_accuracy": 0.4075927734375} +{"timestamp": "2026-11-25T07:11:27+00:00", "step": 25, "tokens": 25600, "train_seconds": 40.032943500005786, "loss": 3.1646835803985596, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.3745598793029785, "derivatives": {"third": {"estimate": 143147149557760.0, "raw_grad_norm": 8.819714745499946e+19, "lambda": 8.794990192182448e-22}}, "penalty": 1.0071822211194986e-06} +{"timestamp": "2026-11-25T07:11:31+00:00", "step": 28, "tokens": 28672, "train_seconds": 41.769987900010165, "loss": 3.24495267868042, "accuracy": 0.3994140625, "lr": 6.757685356832243e-05, "gradient_norm": 1.2910264730453491, "derivatives": {}, "dev_nll": 3.1247553065186366, "dev_accuracy": 0.407958984375} +{"timestamp": "2026-11-25T07:11:36+00:00", "step": 32, "tokens": 32768, "train_seconds": 44.11454810001305, "loss": 3.475984573364258, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.348798394203186, "derivatives": {}, "dev_nll": 3.116393227071967, "dev_accuracy": 0.40966796875} +{"timestamp": "2026-11-25T07:11:40+00:00", "step": 36, "tokens": 36864, "train_seconds": 46.52359150001212, "loss": 3.1366770267486572, "accuracy": 0.3994140625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.3073307275772095, "derivatives": {}, "dev_nll": 3.109527630964294, "dev_accuracy": 0.4110107421875} +{"timestamp": "2026-11-25T07:11:45+00:00", "step": 40, "tokens": 40960, "train_seconds": 49.058105700012675, "loss": 3.069873094558716, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2526063919067383, "derivatives": {}, "dev_nll": 3.1042128810076974, "dev_accuracy": 0.412109375} +{"timestamp": "2026-11-25T07:11:49+00:00", "step": 44, "tokens": 45056, "train_seconds": 51.578499600014766, "loss": 3.3931686878204346, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2775940895080566, "derivatives": {}, "dev_nll": 3.100137497414835, "dev_accuracy": 0.41259765625} +{"timestamp": "2026-11-25T07:11:54+00:00", "step": 48, "tokens": 49152, "train_seconds": 54.11914360001538, "loss": 3.235374927520752, "accuracy": 0.37890625, "lr": 2.443269974962181e-05, "gradient_norm": 1.304945468902588, "derivatives": {}, "dev_nll": 3.097055894031655, "dev_accuracy": 0.4124755859375} +{"timestamp": "2026-11-25T07:12:02+00:00", "step": 50, "tokens": 51200, "train_seconds": 61.74632690001454, "loss": 3.0874135494232178, "accuracy": 0.4052734375, "lr": 2.1199063110826618e-05, "gradient_norm": 1.267307996749878, "derivatives": {"third": {"estimate": 36042237280256.0, "raw_grad_norm": 1.8375159269671567e+19, "lambda": 8.794990192182448e-22}}, "penalty": 2.535928987073313e-07} +{"timestamp": "2026-11-25T07:12:05+00:00", "step": 52, "tokens": 53248, "train_seconds": 63.20483800001239, "loss": 3.068760871887207, "accuracy": 0.408203125, "lr": 1.8323724811743496e-05, "gradient_norm": 1.184583306312561, "derivatives": {}, "dev_nll": 3.0948601723648608, "dev_accuracy": 0.412841796875} +{"timestamp": "2026-11-25T07:12:10+00:00", "step": 56, "tokens": 57344, "train_seconds": 66.32172880001235, "loss": 3.2506747245788574, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1677639484405518, "derivatives": {}, "dev_nll": 3.0932112977607176, "dev_accuracy": 0.4134521484375} +{"timestamp": "2026-11-25T07:12:16+00:00", "step": 60, "tokens": 61440, "train_seconds": 69.4508472000125, "loss": 3.1683192253112793, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.2090530395507812, "derivatives": {}, "dev_nll": 3.091967608779669, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T07:12:21+00:00", "step": 64, "tokens": 65536, "train_seconds": 72.27489250001236, "loss": 3.1733510494232178, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.1200544834136963, "derivatives": {}, "dev_nll": 3.09093911992386, "dev_accuracy": 0.414306640625} diff --git a/research/results/abstracts-pilot-s00-third-r03/samples.jsonl b/research/results/abstracts-pilot-s00-third-r03/samples.jsonl index 73f16804576b42ef8ef7aaeb496bc572687cf629..fe18cd545201425831da5cd605ad11699976cb56 100644 --- a/research/results/abstracts-pilot-s00-third-r03/samples.jsonl +++ b/research/results/abstracts-pilot-s00-third-r03/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T07:32:34+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T07:32:37+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T07:32:39+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T07:32:34+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will accurately predict the behavior of\npatient-specific neurological disorders such as epilepsy. In this paper, we\npresent a novel dataset of EEG data recorded from children with focal\nsubcortical epilepsy", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 13613, 3283, 253, 3879, 273, 187, 15325, 14, 6160, 20967, 9360, 824, 347, 29931, 15, 496, 436, 2929, 13, 359, 187, 15068, 247, 4460, 10895, 273, 29253, 941, 5950, 432, 2151, 342, 18560, 187, 2377, 68, 35149, 29931], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T07:32:37+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T07:32:39+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-pilot-s00-third-r03/summary.json b/research/results/abstracts-pilot-s00-third-r03/summary.json index 10d51a375130cab2db5adadc71757157887e3136..49f0f6f8c0891e62d9a383080af42ff7bafd1ea9 100644 --- a/research/results/abstracts-pilot-s00-third-r03/summary.json +++ b/research/results/abstracts-pilot-s00-third-r03/summary.json @@ -1,35 +1,35 @@ -{ - "id": "abstracts-pilot-s00-third-r03", - "stage": "abstracts", - "method": "third", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "coefficients": { - "third": 8.794990192182448e-22 - }, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "git_revision": "104f21942f53158ba411ff178be284d79965ca62", - "trainable_parameters": 786432, - "weights_sha256": "4323b1e0b4aa0b7926fe7b6ed7e4a2ca7ff755a591b77cd79db437cbe1db2a6e", - "weights_name": "adapter_model.safetensors", - "matched_dev_nll": 3.09093911992386, - "tokens": 65536, - "steps": 64, - "train_seconds": 72.27489250001236, - "tokens_per_sec": 906.760255644639, - "peak_vram_mb": 6369.60888671875, - "dev_nll": 3.1167960467768983, - "dev_accuracy": 0.4127544290467482, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T07:32:40+00:00", - "status": "complete" -} +{ + "id": "abstracts-pilot-s00-third-r03", + "stage": "abstracts", + "method": "third", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "coefficients": { + "third": 8.794990192182448e-22 + }, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "git_revision": "104f21942f53158ba411ff178be284d79965ca62", + "trainable_parameters": 786432, + "weights_sha256": "4323b1e0b4aa0b7926fe7b6ed7e4a2ca7ff755a591b77cd79db437cbe1db2a6e", + "weights_name": "adapter_model.safetensors", + "matched_dev_nll": 3.09093911992386, + "tokens": 65536, + "steps": 64, + "train_seconds": 72.27489250001236, + "tokens_per_sec": 906.760255644639, + "peak_vram_mb": 6369.60888671875, + "dev_nll": 3.1167960467768983, + "dev_accuracy": 0.4127544290467482, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T07:32:40+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-trace-r01-fp64/config.json b/research/results/abstracts-pilot-s00-trace-r01-fp64/config.json index f9e6a4ee64f3cc8067636339f3cf0e02aef7a68f..e2f1ff34724f7264d4d85d301327af410edf7ba7 100644 --- a/research/results/abstracts-pilot-s00-trace-r01-fp64/config.json +++ b/research/results/abstracts-pilot-s00-trace-r01-fp64/config.json @@ -1,18 +1,18 @@ -{ - "id": "abstracts-pilot-s00-trace-r01-fp64", - "stage": "abstracts", - "method": "trace", - "phase": "pilot", - "seed": 0, - "ratio": 0.01, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "trace": 1.4108895021963894e-08 - } -} +{ + "id": "abstracts-pilot-s00-trace-r01-fp64", + "stage": "abstracts", + "method": "trace", + "phase": "pilot", + "seed": 0, + "ratio": 0.01, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "trace": 1.4108895021963894e-08 + } +} diff --git a/research/results/abstracts-pilot-s00-trace-r01-fp64/evaluation.jsonl b/research/results/abstracts-pilot-s00-trace-r01-fp64/evaluation.jsonl index fa54ef79184e0e562a0c33d1d3baf7f08da38e1b..a786dd15ace139552e9e6f774631238c0b7a8e77 100644 --- a/research/results/abstracts-pilot-s00-trace-r01-fp64/evaluation.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r01-fp64/evaluation.jsonl @@ -1,13 +1,13 @@ -{"timestamp": "2026-11-25T09:07:10+00:00", "split": "dev", "targets_scored": 434176, "targets_to_score": 5124071, "nll_so_far": 3.1068496845447333, "accuracy_so_far": 0.4127197265625, "score_seconds": 60.09624040000199} -{"timestamp": "2026-11-25T09:08:10+00:00", "split": "dev", "targets_scored": 866304, "targets_to_score": 5124071, "nll_so_far": 3.105087936506882, "accuracy_so_far": 0.4133179576684397, "score_seconds": 120.18926829999691} -{"timestamp": "2026-11-25T09:09:10+00:00", "split": "dev", "targets_scored": 1286144, "targets_to_score": 5124071, "nll_so_far": 3.101172719608657, "accuracy_so_far": 0.41383390973328027, "score_seconds": 180.27346309999848} -{"timestamp": "2026-11-25T09:10:10+00:00", "split": "dev", "targets_scored": 1689600, "targets_to_score": 5124071, "nll_so_far": 3.104996855357436, "accuracy_so_far": 0.41343217329545456, "score_seconds": 240.31493559999944} -{"timestamp": "2026-11-25T09:11:10+00:00", "split": "dev", "targets_scored": 2097152, "targets_to_score": 5124071, "nll_so_far": 3.1032609419598884, "accuracy_so_far": 0.4139552116394043, "score_seconds": 300.57805019999796} -{"timestamp": "2026-11-25T09:12:10+00:00", "split": "dev", "targets_scored": 2525184, "targets_to_score": 5124071, "nll_so_far": 3.1021740298394556, "accuracy_so_far": 0.4141622947080292, "score_seconds": 360.6529051999969} -{"timestamp": "2026-11-25T09:13:10+00:00", "split": "dev", "targets_scored": 2924544, "targets_to_score": 5124071, "nll_so_far": 3.100780414959027, "accuracy_so_far": 0.4144256335346639, "score_seconds": 420.8091964999985} -{"timestamp": "2026-11-25T09:14:11+00:00", "split": "dev", "targets_scored": 3323904, "targets_to_score": 5124071, "nll_so_far": 3.1028758950370237, "accuracy_so_far": 0.41421683658733827, "score_seconds": 480.97402699999657} -{"timestamp": "2026-11-25T09:15:11+00:00", "split": "dev", "targets_scored": 3723264, "targets_to_score": 5124071, "nll_so_far": 3.1058573286845403, "accuracy_so_far": 0.41401415532178215, "score_seconds": 541.1911744000026} -{"timestamp": "2026-11-25T09:16:11+00:00", "split": "dev", "targets_scored": 4157440, "targets_to_score": 5124071, "nll_so_far": 3.1075497790893514, "accuracy_so_far": 0.4138606931188424, "score_seconds": 601.2338346999968} -{"timestamp": "2026-11-25T09:17:11+00:00", "split": "dev", "targets_scored": 4581376, "targets_to_score": 5124071, "nll_so_far": 3.1097697948968888, "accuracy_so_far": 0.41361743720663835, "score_seconds": 661.2426084000035} -{"timestamp": "2026-11-25T09:18:11+00:00", "split": "dev", "targets_scored": 4984832, "targets_to_score": 5124071, "nll_so_far": 3.111724519400973, "accuracy_so_far": 0.4135013978404889, "score_seconds": 721.3869428000035} -{"timestamp": "2026-11-25T09:18:31+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.113974483425786, "accuracy_so_far": 0.4132109020347298, "score_seconds": 741.1088375000036} +{"timestamp": "2026-11-25T09:07:10+00:00", "split": "dev", "targets_scored": 434176, "targets_to_score": 5124071, "nll_so_far": 3.1068496845447333, "accuracy_so_far": 0.4127197265625, "score_seconds": 60.09624040000199} +{"timestamp": "2026-11-25T09:08:10+00:00", "split": "dev", "targets_scored": 866304, "targets_to_score": 5124071, "nll_so_far": 3.105087936506882, "accuracy_so_far": 0.4133179576684397, "score_seconds": 120.18926829999691} +{"timestamp": "2026-11-25T09:09:10+00:00", "split": "dev", "targets_scored": 1286144, "targets_to_score": 5124071, "nll_so_far": 3.101172719608657, "accuracy_so_far": 0.41383390973328027, "score_seconds": 180.27346309999848} +{"timestamp": "2026-11-25T09:10:10+00:00", "split": "dev", "targets_scored": 1689600, "targets_to_score": 5124071, "nll_so_far": 3.104996855357436, "accuracy_so_far": 0.41343217329545456, "score_seconds": 240.31493559999944} +{"timestamp": "2026-11-25T09:11:10+00:00", "split": "dev", "targets_scored": 2097152, "targets_to_score": 5124071, "nll_so_far": 3.1032609419598884, "accuracy_so_far": 0.4139552116394043, "score_seconds": 300.57805019999796} +{"timestamp": "2026-11-25T09:12:10+00:00", "split": "dev", "targets_scored": 2525184, "targets_to_score": 5124071, "nll_so_far": 3.1021740298394556, "accuracy_so_far": 0.4141622947080292, "score_seconds": 360.6529051999969} +{"timestamp": "2026-11-25T09:13:10+00:00", "split": "dev", "targets_scored": 2924544, "targets_to_score": 5124071, "nll_so_far": 3.100780414959027, "accuracy_so_far": 0.4144256335346639, "score_seconds": 420.8091964999985} +{"timestamp": "2026-11-25T09:14:11+00:00", "split": "dev", "targets_scored": 3323904, "targets_to_score": 5124071, "nll_so_far": 3.1028758950370237, "accuracy_so_far": 0.41421683658733827, "score_seconds": 480.97402699999657} +{"timestamp": "2026-11-25T09:15:11+00:00", "split": "dev", "targets_scored": 3723264, "targets_to_score": 5124071, "nll_so_far": 3.1058573286845403, "accuracy_so_far": 0.41401415532178215, "score_seconds": 541.1911744000026} +{"timestamp": "2026-11-25T09:16:11+00:00", "split": "dev", "targets_scored": 4157440, "targets_to_score": 5124071, "nll_so_far": 3.1075497790893514, "accuracy_so_far": 0.4138606931188424, "score_seconds": 601.2338346999968} +{"timestamp": "2026-11-25T09:17:11+00:00", "split": "dev", "targets_scored": 4581376, "targets_to_score": 5124071, "nll_so_far": 3.1097697948968888, "accuracy_so_far": 0.41361743720663835, "score_seconds": 661.2426084000035} +{"timestamp": "2026-11-25T09:18:11+00:00", "split": "dev", "targets_scored": 4984832, "targets_to_score": 5124071, "nll_so_far": 3.111724519400973, "accuracy_so_far": 0.4135013978404889, "score_seconds": 721.3869428000035} +{"timestamp": "2026-11-25T09:18:31+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.113974483425786, "accuracy_so_far": 0.4132109020347298, "score_seconds": 741.1088375000036} diff --git a/research/results/abstracts-pilot-s00-trace-r01-fp64/events.jsonl b/research/results/abstracts-pilot-s00-trace-r01-fp64/events.jsonl index 6e4f7d4b5eea1f9268d72441efe0786f476d7710..52f700b190076a600674ab5025bde2a190dc7611 100644 --- a/research/results/abstracts-pilot-s00-trace-r01-fp64/events.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r01-fp64/events.jsonl @@ -1,22 +1,22 @@ -{"timestamp": "2026-11-25T09:03:18+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.9647509999995236, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.9647509999995236} -{"timestamp": "2026-11-25T09:03:39+00:00", "step": 2, "tokens": 2048, "train_seconds": 21.437343199999304, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1353999376296997, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.27817579999828}}, "host_probe_seconds": 19.27817579999828, "training_seconds_excluding_host_probes": 2.1591674000010244, "penalty": 0.00017051273613559787} -{"timestamp": "2026-11-25T09:03:42+00:00", "step": 4, "tokens": 4096, "train_seconds": 23.435999600005744, "loss": 3.3350393772125244, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.147131085395813, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 4.157823800007463, "dev_nll": 3.2052851244807243, "dev_accuracy": 0.4029541015625} -{"timestamp": "2026-11-25T09:03:47+00:00", "step": 8, "tokens": 8192, "train_seconds": 26.635606999996526, "loss": 3.1536779403686523, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.3223280906677246, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 7.357431199998246, "dev_nll": 3.185060740157496, "dev_accuracy": 0.405517578125} -{"timestamp": "2026-11-25T09:04:10+00:00", "step": 11, "tokens": 11264, "train_seconds": 49.59352889999718, "loss": 3.2227516174316406, "accuracy": 0.416015625, "lr": 9.623426070191522e-05, "gradient_norm": 1.1237372159957886, "derivatives": {"trace": {"estimate": -388.35120422327293, "raw_grad_norm": 877122.8650868011, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.33480299999792}}, "host_probe_seconds": 20.33480299999792, "training_seconds_excluding_host_probes": 9.980550100000983, "penalty": -4.383365097631535e-05} -{"timestamp": "2026-11-25T09:04:12+00:00", "step": 12, "tokens": 12288, "train_seconds": 50.43355399999564, "loss": 3.224705934524536, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1681793928146362, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.820575199999439, "dev_nll": 3.1675555876572616, "dev_accuracy": 0.4071044921875} -{"timestamp": "2026-11-25T09:04:17+00:00", "step": 16, "tokens": 16384, "train_seconds": 53.73809659999097, "loss": 3.174398899078369, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3200350999832153, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 14.125117799994769, "dev_nll": 3.1534040844417177, "dev_accuracy": 0.4085693359375} -{"timestamp": "2026-11-25T09:04:21+00:00", "step": 20, "tokens": 20480, "train_seconds": 56.76466919999075, "loss": 3.364372730255127, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.254978060722351, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 17.15169039999455, "dev_nll": 3.140957407304086, "dev_accuracy": 0.4071044921875} -{"timestamp": "2026-11-25T09:04:43+00:00", "step": 22, "tokens": 22528, "train_seconds": 78.32256149999012, "loss": 3.1006228923797607, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.1860942840576172, "derivatives": {"trace": {"estimate": -555.4787028620826, "raw_grad_norm": 946878.0975472054, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.02835800000321}}, "host_probe_seconds": 20.02835800000321, "training_seconds_excluding_host_probes": 18.681224699990707, "penalty": -6.26975256449424e-05} -{"timestamp": "2026-11-25T09:04:45+00:00", "step": 24, "tokens": 24576, "train_seconds": 79.81583959998534, "loss": 3.1637511253356934, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4082975387573242, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 20.17450279998593, "dev_nll": 3.13006722118007, "dev_accuracy": 0.4071044921875} -{"timestamp": "2026-11-25T09:05:07+00:00", "step": 25, "tokens": 25600, "train_seconds": 101.3181677999819, "loss": 3.1608335971832275, "accuracy": 0.3984375, "lr": 7.407614758194375e-05, "gradient_norm": 1.2852429151535034, "derivatives": {"trace": {"estimate": 2299.7292222418528, "raw_grad_norm": 3490820.997072178, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.51554220000253}}, "host_probe_seconds": 20.51554220000253, "training_seconds_excluding_host_probes": 21.161288799979957, "penalty": 0.00025957310540442377} -{"timestamp": "2026-11-25T09:05:10+00:00", "step": 28, "tokens": 28672, "train_seconds": 103.61438829996769, "loss": 3.239475965499878, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.2070343494415283, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.45750929996575, "dev_nll": 3.120411109237466, "dev_accuracy": 0.4083251953125} -{"timestamp": "2026-11-25T09:05:14+00:00", "step": 32, "tokens": 32768, "train_seconds": 106.47401739995985, "loss": 3.4724326133728027, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.3576719760894775, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 26.317138399957912, "dev_nll": 3.1119666167651303, "dev_accuracy": 0.410400390625} -{"timestamp": "2026-11-25T09:05:19+00:00", "step": 36, "tokens": 36864, "train_seconds": 109.24634419994982, "loss": 3.1319172382354736, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2514125108718872, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 29.08946519994788, "dev_nll": 3.1052487258566543, "dev_accuracy": 0.41162109375} -{"timestamp": "2026-11-25T09:05:23+00:00", "step": 40, "tokens": 40960, "train_seconds": 112.13995259995136, "loss": 3.0671634674072266, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2346023321151733, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.98307359994942, "dev_nll": 3.1002497029840015, "dev_accuracy": 0.4117431640625} -{"timestamp": "2026-11-25T09:05:27+00:00", "step": 44, "tokens": 45056, "train_seconds": 115.08865379995405, "loss": 3.389225959777832, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2214243412017822, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.93177479995211, "dev_nll": 3.0965155956801027, "dev_accuracy": 0.41259765625} -{"timestamp": "2026-11-25T09:05:31+00:00", "step": 48, "tokens": 49152, "train_seconds": 117.79835939995246, "loss": 3.231717586517334, "accuracy": 0.3779296875, "lr": 2.443269974962181e-05, "gradient_norm": 1.2990587949752808, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.641480399950524, "dev_nll": 3.0936556336237118, "dev_accuracy": 0.413330078125} -{"timestamp": "2026-11-25T09:05:53+00:00", "step": 50, "tokens": 51200, "train_seconds": 139.57128269995883, "loss": 3.0851714611053467, "accuracy": 0.40625, "lr": 2.1199063110826618e-05, "gradient_norm": 1.3945879936218262, "derivatives": {"trace": {"estimate": -846.8847442658138, "raw_grad_norm": 3964369.049186865, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.938605099996494}}, "host_probe_seconds": 19.938605099996494, "training_seconds_excluding_host_probes": 39.4757985999604, "penalty": -9.558886362039284e-05} -{"timestamp": "2026-11-25T09:05:56+00:00", "step": 52, "tokens": 53248, "train_seconds": 141.22608179996314, "loss": 3.065091848373413, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1322085857391357, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 41.13059769996471, "dev_nll": 3.0916816459503025, "dev_accuracy": 0.414794921875} -{"timestamp": "2026-11-25T09:06:00+00:00", "step": 56, "tokens": 57344, "train_seconds": 144.38299729996652, "loss": 3.2471041679382324, "accuracy": 0.4013671875, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1540918350219727, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.28751319996809, "dev_nll": 3.090217571356334, "dev_accuracy": 0.4150390625} -{"timestamp": "2026-11-25T09:06:05+00:00", "step": 60, "tokens": 61440, "train_seconds": 147.70638039996993, "loss": 3.167518138885498, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2444484233856201, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.6108962999715, "dev_nll": 3.08909221511567, "dev_accuracy": 0.415283203125} -{"timestamp": "2026-11-25T09:06:09+00:00", "step": 64, "tokens": 65536, "train_seconds": 150.8196659999594, "loss": 3.1687469482421875, "accuracy": 0.4013671875, "lr": 1e-05, "gradient_norm": 1.07345449924469, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.72418189996097, "dev_nll": 3.0881463024416007, "dev_accuracy": 0.41552734375} +{"timestamp": "2026-11-25T09:03:18+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.9647509999995236, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.9647509999995236} +{"timestamp": "2026-11-25T09:03:39+00:00", "step": 2, "tokens": 2048, "train_seconds": 21.437343199999304, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1353999376296997, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.27817579999828}}, "host_probe_seconds": 19.27817579999828, "training_seconds_excluding_host_probes": 2.1591674000010244, "penalty": 0.00017051273613559787} +{"timestamp": "2026-11-25T09:03:42+00:00", "step": 4, "tokens": 4096, "train_seconds": 23.435999600005744, "loss": 3.3350393772125244, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.147131085395813, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 4.157823800007463, "dev_nll": 3.2052851244807243, "dev_accuracy": 0.4029541015625} +{"timestamp": "2026-11-25T09:03:47+00:00", "step": 8, "tokens": 8192, "train_seconds": 26.635606999996526, "loss": 3.1536779403686523, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.3223280906677246, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 7.357431199998246, "dev_nll": 3.185060740157496, "dev_accuracy": 0.405517578125} +{"timestamp": "2026-11-25T09:04:10+00:00", "step": 11, "tokens": 11264, "train_seconds": 49.59352889999718, "loss": 3.2227516174316406, "accuracy": 0.416015625, "lr": 9.623426070191522e-05, "gradient_norm": 1.1237372159957886, "derivatives": {"trace": {"estimate": -388.35120422327293, "raw_grad_norm": 877122.8650868011, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.33480299999792}}, "host_probe_seconds": 20.33480299999792, "training_seconds_excluding_host_probes": 9.980550100000983, "penalty": -4.383365097631535e-05} +{"timestamp": "2026-11-25T09:04:12+00:00", "step": 12, "tokens": 12288, "train_seconds": 50.43355399999564, "loss": 3.224705934524536, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1681793928146362, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.820575199999439, "dev_nll": 3.1675555876572616, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:04:17+00:00", "step": 16, "tokens": 16384, "train_seconds": 53.73809659999097, "loss": 3.174398899078369, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.3200350999832153, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 14.125117799994769, "dev_nll": 3.1534040844417177, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T09:04:21+00:00", "step": 20, "tokens": 20480, "train_seconds": 56.76466919999075, "loss": 3.364372730255127, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.254978060722351, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 17.15169039999455, "dev_nll": 3.140957407304086, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:04:43+00:00", "step": 22, "tokens": 22528, "train_seconds": 78.32256149999012, "loss": 3.1006228923797607, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.1860942840576172, "derivatives": {"trace": {"estimate": -555.4787028620826, "raw_grad_norm": 946878.0975472054, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.02835800000321}}, "host_probe_seconds": 20.02835800000321, "training_seconds_excluding_host_probes": 18.681224699990707, "penalty": -6.26975256449424e-05} +{"timestamp": "2026-11-25T09:04:45+00:00", "step": 24, "tokens": 24576, "train_seconds": 79.81583959998534, "loss": 3.1637511253356934, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4082975387573242, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 20.17450279998593, "dev_nll": 3.13006722118007, "dev_accuracy": 0.4071044921875} +{"timestamp": "2026-11-25T09:05:07+00:00", "step": 25, "tokens": 25600, "train_seconds": 101.3181677999819, "loss": 3.1608335971832275, "accuracy": 0.3984375, "lr": 7.407614758194375e-05, "gradient_norm": 1.2852429151535034, "derivatives": {"trace": {"estimate": 2299.7292222418528, "raw_grad_norm": 3490820.997072178, "lambda": 1.4108895021963894e-08, "probe_seconds": 20.51554220000253}}, "host_probe_seconds": 20.51554220000253, "training_seconds_excluding_host_probes": 21.161288799979957, "penalty": 0.00025957310540442377} +{"timestamp": "2026-11-25T09:05:10+00:00", "step": 28, "tokens": 28672, "train_seconds": 103.61438829996769, "loss": 3.239475965499878, "accuracy": 0.396484375, "lr": 6.757685356832243e-05, "gradient_norm": 1.2070343494415283, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.45750929996575, "dev_nll": 3.120411109237466, "dev_accuracy": 0.4083251953125} +{"timestamp": "2026-11-25T09:05:14+00:00", "step": 32, "tokens": 32768, "train_seconds": 106.47401739995985, "loss": 3.4724326133728027, "accuracy": 0.376953125, "lr": 5.84728957956991e-05, "gradient_norm": 1.3576719760894775, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 26.317138399957912, "dev_nll": 3.1119666167651303, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T09:05:19+00:00", "step": 36, "tokens": 36864, "train_seconds": 109.24634419994982, "loss": 3.1319172382354736, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2514125108718872, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 29.08946519994788, "dev_nll": 3.1052487258566543, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T09:05:23+00:00", "step": 40, "tokens": 40960, "train_seconds": 112.13995259995136, "loss": 3.0671634674072266, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2346023321151733, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.98307359994942, "dev_nll": 3.1002497029840015, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T09:05:27+00:00", "step": 44, "tokens": 45056, "train_seconds": 115.08865379995405, "loss": 3.389225959777832, "accuracy": 0.3740234375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2214243412017822, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.93177479995211, "dev_nll": 3.0965155956801027, "dev_accuracy": 0.41259765625} +{"timestamp": "2026-11-25T09:05:31+00:00", "step": 48, "tokens": 49152, "train_seconds": 117.79835939995246, "loss": 3.231717586517334, "accuracy": 0.3779296875, "lr": 2.443269974962181e-05, "gradient_norm": 1.2990587949752808, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.641480399950524, "dev_nll": 3.0936556336237118, "dev_accuracy": 0.413330078125} +{"timestamp": "2026-11-25T09:05:53+00:00", "step": 50, "tokens": 51200, "train_seconds": 139.57128269995883, "loss": 3.0851714611053467, "accuracy": 0.40625, "lr": 2.1199063110826618e-05, "gradient_norm": 1.3945879936218262, "derivatives": {"trace": {"estimate": -846.8847442658138, "raw_grad_norm": 3964369.049186865, "lambda": 1.4108895021963894e-08, "probe_seconds": 19.938605099996494}}, "host_probe_seconds": 19.938605099996494, "training_seconds_excluding_host_probes": 39.4757985999604, "penalty": -9.558886362039284e-05} +{"timestamp": "2026-11-25T09:05:56+00:00", "step": 52, "tokens": 53248, "train_seconds": 141.22608179996314, "loss": 3.065091848373413, "accuracy": 0.4072265625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1322085857391357, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 41.13059769996471, "dev_nll": 3.0916816459503025, "dev_accuracy": 0.414794921875} +{"timestamp": "2026-11-25T09:06:00+00:00", "step": 56, "tokens": 57344, "train_seconds": 144.38299729996652, "loss": 3.2471041679382324, "accuracy": 0.4013671875, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1540918350219727, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.28751319996809, "dev_nll": 3.090217571356334, "dev_accuracy": 0.4150390625} +{"timestamp": "2026-11-25T09:06:05+00:00", "step": 60, "tokens": 61440, "train_seconds": 147.70638039996993, "loss": 3.167518138885498, "accuracy": 0.4072265625, "lr": 1.09514941707089e-05, "gradient_norm": 1.2444484233856201, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.6108962999715, "dev_nll": 3.08909221511567, "dev_accuracy": 0.415283203125} +{"timestamp": "2026-11-25T09:06:09+00:00", "step": 64, "tokens": 65536, "train_seconds": 150.8196659999594, "loss": 3.1687469482421875, "accuracy": 0.4013671875, "lr": 1e-05, "gradient_norm": 1.07345449924469, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.72418189996097, "dev_nll": 3.0881463024416007, "dev_accuracy": 0.41552734375} diff --git a/research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl b/research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl index 5b3e73ecbe6d43dbb19d1967a900c15d4a7d8b6b..95c97dc58c2266db68a67647645e41245266a7b4 100644 --- a/research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r01-fp64/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T09:18:37+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T09:18:40+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T09:18:42+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T09:18:37+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T09:18:40+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T09:18:42+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities,\n\n$$\\begin", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 13, 187, 187, 7010, 2043], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-pilot-s00-trace-r01-fp64/summary.json b/research/results/abstracts-pilot-s00-trace-r01-fp64/summary.json index 98bedb9b7a29a33035c7f1b38e3849ad55e47736..68ea0482d212077e8229ac20a9c4e28ae1c8b1a6 100644 --- a/research/results/abstracts-pilot-s00-trace-r01-fp64/summary.json +++ b/research/results/abstracts-pilot-s00-trace-r01-fp64/summary.json @@ -1,43 +1,43 @@ -{ - "id": "abstracts-pilot-s00-trace-r01-fp64", - "stage": "abstracts", - "method": "trace", - "phase": "pilot", - "seed": 0, - "ratio": 0.01, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "trace": 1.4108895021963894e-08 - }, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "dab3dfb352d24520c26a62383fd7fcb1dc953fff", - "trainable_parameters": 786432, - "host_probe_seconds": 100.09548409999843, - "training_seconds_excluding_host_probes": 50.72418189996097, - "weights_sha256": "0ee7f88f1adea83b25390e405b4f4ff4f3ad0992068f85dd4c39d4c1c582c44e", - "weights_name": "adapter_model.safetensors", - "matched_dev_nll": 3.0881463024416007, - "tokens": 65536, - "steps": 64, - "train_seconds": 150.8196659999594, - "tokens_per_sec": 434.53219157783866, - "process_peak_rss_mib": 10524.5703125, - "peak_vram_mb": 2346.30029296875, - "dev_nll": 3.113974483425786, - "dev_accuracy": 0.4132109020347298, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T09:18:43+00:00", - "status": "complete" -} +{ + "id": "abstracts-pilot-s00-trace-r01-fp64", + "stage": "abstracts", + "method": "trace", + "phase": "pilot", + "seed": 0, + "ratio": 0.01, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "trace": 1.4108895021963894e-08 + }, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "dab3dfb352d24520c26a62383fd7fcb1dc953fff", + "trainable_parameters": 786432, + "host_probe_seconds": 100.09548409999843, + "training_seconds_excluding_host_probes": 50.72418189996097, + "weights_sha256": "0ee7f88f1adea83b25390e405b4f4ff4f3ad0992068f85dd4c39d4c1c582c44e", + "weights_name": "adapter_model.safetensors", + "matched_dev_nll": 3.0881463024416007, + "tokens": 65536, + "steps": 64, + "train_seconds": 150.8196659999594, + "tokens_per_sec": 434.53219157783866, + "process_peak_rss_mib": 10524.5703125, + "peak_vram_mb": 2346.30029296875, + "dev_nll": 3.113974483425786, + "dev_accuracy": 0.4132109020347298, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T09:18:43+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-trace-r03-fp64/config.json b/research/results/abstracts-pilot-s00-trace-r03-fp64/config.json index efcc4e7f470114c72f9a712461a93dcb273f5d7f..f02f8b9ab00ba2cef39d2a9886cf4d555a7c9642 100644 --- a/research/results/abstracts-pilot-s00-trace-r03-fp64/config.json +++ b/research/results/abstracts-pilot-s00-trace-r03-fp64/config.json @@ -1,18 +1,18 @@ -{ - "id": "abstracts-pilot-s00-trace-r03-fp64", - "stage": "abstracts", - "method": "trace", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "trace": 4.232668506589168e-08 - } -} +{ + "id": "abstracts-pilot-s00-trace-r03-fp64", + "stage": "abstracts", + "method": "trace", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "trace": 4.232668506589168e-08 + } +} diff --git a/research/results/abstracts-pilot-s00-trace-r03-fp64/evaluation.jsonl b/research/results/abstracts-pilot-s00-trace-r03-fp64/evaluation.jsonl index ba931da89cbf4dbe823b6cd8ba6b53660dccb0e4..aab548fd12c924daa8042c5e96fbb76b12fb1ca5 100644 --- a/research/results/abstracts-pilot-s00-trace-r03-fp64/evaluation.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r03-fp64/evaluation.jsonl @@ -1,13 +1,13 @@ -{"timestamp": "2026-11-25T09:23:04+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108243330600159, "accuracy_so_far": 0.4124341170753589, "score_seconds": 60.13073129999975} -{"timestamp": "2026-11-25T09:24:04+00:00", "split": "dev", "targets_scored": 854016, "targets_to_score": 5124071, "nll_so_far": 3.1070146722489036, "accuracy_so_far": 0.413103501573741, "score_seconds": 120.2883948000017} -{"timestamp": "2026-11-25T09:25:04+00:00", "split": "dev", "targets_scored": 1265664, "targets_to_score": 5124071, "nll_so_far": 3.1018533033671454, "accuracy_so_far": 0.4137030049049353, "score_seconds": 180.4415474999987} -{"timestamp": "2026-11-25T09:26:05+00:00", "split": "dev", "targets_scored": 1662976, "targets_to_score": 5124071, "nll_so_far": 3.1042621866544695, "accuracy_so_far": 0.4134822150169335, "score_seconds": 240.70859909999854} -{"timestamp": "2026-11-25T09:27:05+00:00", "split": "dev", "targets_scored": 2086912, "targets_to_score": 5124071, "nll_so_far": 3.1035574695026416, "accuracy_so_far": 0.413932643063052, "score_seconds": 300.79591269999946} -{"timestamp": "2026-11-25T09:28:05+00:00", "split": "dev", "targets_scored": 2490368, "targets_to_score": 5124071, "nll_so_far": 3.1020153299809623, "accuracy_so_far": 0.4141496357164885, "score_seconds": 360.9334042000046} -{"timestamp": "2026-11-25T09:29:05+00:00", "split": "dev", "targets_scored": 2887680, "targets_to_score": 5124071, "nll_so_far": 3.101619829636741, "accuracy_so_far": 0.4143035239361702, "score_seconds": 420.9424818000043} -{"timestamp": "2026-11-25T09:30:05+00:00", "split": "dev", "targets_scored": 3289088, "targets_to_score": 5124071, "nll_so_far": 3.1023535435154668, "accuracy_so_far": 0.4142722845968244, "score_seconds": 480.96664969999983} -{"timestamp": "2026-11-25T09:31:05+00:00", "split": "dev", "targets_scored": 3680256, "targets_to_score": 5124071, "nll_so_far": 3.1060520678337014, "accuracy_so_far": 0.4139847880147468, "score_seconds": 541.0524734999999} -{"timestamp": "2026-11-25T09:32:05+00:00", "split": "dev", "targets_scored": 4102144, "targets_to_score": 5124071, "nll_so_far": 3.1072689601809764, "accuracy_so_far": 0.4138723555292062, "score_seconds": 601.3164510999995} -{"timestamp": "2026-11-25T09:33:05+00:00", "split": "dev", "targets_scored": 4524032, "targets_to_score": 5124071, "nll_so_far": 3.1091822808043044, "accuracy_so_far": 0.4136701508742644, "score_seconds": 661.4581842000043} -{"timestamp": "2026-11-25T09:34:06+00:00", "split": "dev", "targets_scored": 4927488, "targets_to_score": 5124071, "nll_so_far": 3.111107949572089, "accuracy_so_far": 0.41351759760754364, "score_seconds": 721.6380754999991} -{"timestamp": "2026-11-25T09:34:33+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.11411782781259, "accuracy_so_far": 0.4131599659723685, "score_seconds": 749.4125703000027} +{"timestamp": "2026-11-25T09:23:04+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108243330600159, "accuracy_so_far": 0.4124341170753589, "score_seconds": 60.13073129999975} +{"timestamp": "2026-11-25T09:24:04+00:00", "split": "dev", "targets_scored": 854016, "targets_to_score": 5124071, "nll_so_far": 3.1070146722489036, "accuracy_so_far": 0.413103501573741, "score_seconds": 120.2883948000017} +{"timestamp": "2026-11-25T09:25:04+00:00", "split": "dev", "targets_scored": 1265664, "targets_to_score": 5124071, "nll_so_far": 3.1018533033671454, "accuracy_so_far": 0.4137030049049353, "score_seconds": 180.4415474999987} +{"timestamp": "2026-11-25T09:26:05+00:00", "split": "dev", "targets_scored": 1662976, "targets_to_score": 5124071, "nll_so_far": 3.1042621866544695, "accuracy_so_far": 0.4134822150169335, "score_seconds": 240.70859909999854} +{"timestamp": "2026-11-25T09:27:05+00:00", "split": "dev", "targets_scored": 2086912, "targets_to_score": 5124071, "nll_so_far": 3.1035574695026416, "accuracy_so_far": 0.413932643063052, "score_seconds": 300.79591269999946} +{"timestamp": "2026-11-25T09:28:05+00:00", "split": "dev", "targets_scored": 2490368, "targets_to_score": 5124071, "nll_so_far": 3.1020153299809623, "accuracy_so_far": 0.4141496357164885, "score_seconds": 360.9334042000046} +{"timestamp": "2026-11-25T09:29:05+00:00", "split": "dev", "targets_scored": 2887680, "targets_to_score": 5124071, "nll_so_far": 3.101619829636741, "accuracy_so_far": 0.4143035239361702, "score_seconds": 420.9424818000043} +{"timestamp": "2026-11-25T09:30:05+00:00", "split": "dev", "targets_scored": 3289088, "targets_to_score": 5124071, "nll_so_far": 3.1023535435154668, "accuracy_so_far": 0.4142722845968244, "score_seconds": 480.96664969999983} +{"timestamp": "2026-11-25T09:31:05+00:00", "split": "dev", "targets_scored": 3680256, "targets_to_score": 5124071, "nll_so_far": 3.1060520678337014, "accuracy_so_far": 0.4139847880147468, "score_seconds": 541.0524734999999} +{"timestamp": "2026-11-25T09:32:05+00:00", "split": "dev", "targets_scored": 4102144, "targets_to_score": 5124071, "nll_so_far": 3.1072689601809764, "accuracy_so_far": 0.4138723555292062, "score_seconds": 601.3164510999995} +{"timestamp": "2026-11-25T09:33:05+00:00", "split": "dev", "targets_scored": 4524032, "targets_to_score": 5124071, "nll_so_far": 3.1091822808043044, "accuracy_so_far": 0.4136701508742644, "score_seconds": 661.4581842000043} +{"timestamp": "2026-11-25T09:34:06+00:00", "split": "dev", "targets_scored": 4927488, "targets_to_score": 5124071, "nll_so_far": 3.111107949572089, "accuracy_so_far": 0.41351759760754364, "score_seconds": 721.6380754999991} +{"timestamp": "2026-11-25T09:34:33+00:00", "split": "dev", "targets_scored": 5124071, "targets_to_score": 5124071, "nll_so_far": 3.11411782781259, "accuracy_so_far": 0.4131599659723685, "score_seconds": 749.4125703000027} diff --git a/research/results/abstracts-pilot-s00-trace-r03-fp64/events.jsonl b/research/results/abstracts-pilot-s00-trace-r03-fp64/events.jsonl index f0ab6e34189bd006942cc49167feb734da59ee00..9f6ab388202a2b2388b53464182942c574fb4b64 100644 --- a/research/results/abstracts-pilot-s00-trace-r03-fp64/events.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r03-fp64/events.jsonl @@ -1,22 +1,22 @@ -{"timestamp": "2026-11-25T09:19:10+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8203949000017019, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.8203949000017019} -{"timestamp": "2026-11-25T09:19:32+00:00", "step": 2, "tokens": 2048, "train_seconds": 22.69535729999916, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1337052583694458, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 4.232668506589168e-08, "probe_seconds": 20.837838999999803}}, "host_probe_seconds": 20.837838999999803, "training_seconds_excluding_host_probes": 1.8575182999993558, "penalty": 0.0005115382084067936} -{"timestamp": "2026-11-25T09:19:35+00:00", "step": 4, "tokens": 4096, "train_seconds": 24.184651600007783, "loss": 3.335285186767578, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1429003477096558, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 3.346812600007979, "dev_nll": 3.2050935145816766, "dev_accuracy": 0.4029541015625} -{"timestamp": "2026-11-25T09:19:39+00:00", "step": 8, "tokens": 8192, "train_seconds": 27.588129100004153, "loss": 3.153710126876831, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.307447075843811, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.750290100004349, "dev_nll": 3.1848572317976505, "dev_accuracy": 0.40576171875} -{"timestamp": "2026-11-25T09:20:03+00:00", "step": 11, "tokens": 11264, "train_seconds": 51.34093500000745, "loss": 3.222881555557251, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 1.140632152557373, "derivatives": {"trace": {"estimate": -410.10428172081595, "raw_grad_norm": 868195.9114623038, "lambda": 4.232668506589168e-08, "probe_seconds": 20.85973699999886}}, "host_probe_seconds": 20.85973699999886, "training_seconds_excluding_host_probes": 9.643359000008786, "penalty": -0.00013886683821256557} -{"timestamp": "2026-11-25T09:20:06+00:00", "step": 12, "tokens": 12288, "train_seconds": 52.29275320001034, "loss": 3.2244973182678223, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1609612703323364, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.595177200011676, "dev_nll": 3.167334184923675, "dev_accuracy": 0.4073486328125} -{"timestamp": "2026-11-25T09:20:10+00:00", "step": 16, "tokens": 16384, "train_seconds": 55.284040600010485, "loss": 3.1743507385253906, "accuracy": 0.4013671875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3022633790969849, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 13.586464600011823, "dev_nll": 3.153323730221018, "dev_accuracy": 0.40869140625} -{"timestamp": "2026-11-25T09:20:14+00:00", "step": 20, "tokens": 20480, "train_seconds": 58.501724600013404, "loss": 3.3647890090942383, "accuracy": 0.380859375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2582865953445435, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.80414860001474, "dev_nll": 3.141088357253466, "dev_accuracy": 0.40771484375} -{"timestamp": "2026-11-25T09:20:37+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.72395010001492, "loss": 3.1014509201049805, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.2094333171844482, "derivatives": {"trace": {"estimate": -347.26580623998086, "raw_grad_norm": 1033792.7539904471, "lambda": 4.232668506589168e-08, "probe_seconds": 20.768768099995214}}, "host_probe_seconds": 20.768768099995214, "training_seconds_excluding_host_probes": 18.257606000021042, "penalty": -0.00011758888331898106} -{"timestamp": "2026-11-25T09:20:39+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.08860320001986, "loss": 3.163144111633301, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4822345972061157, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.622259100025985, "dev_nll": 3.1304753722506575, "dev_accuracy": 0.4068603515625} -{"timestamp": "2026-11-25T09:21:01+00:00", "step": 25, "tokens": 25600, "train_seconds": 104.08553360002406, "loss": 3.160763740539551, "accuracy": 0.3994140625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2352839708328247, "derivatives": {"trace": {"estimate": 2431.418073750566, "raw_grad_norm": 1151210.280645826, "lambda": 4.232668506589168e-08, "probe_seconds": 20.968858100000944}}, "host_probe_seconds": 20.968858100000944, "training_seconds_excluding_host_probes": 20.650331400029245, "penalty": 0.0008233109365692575} -{"timestamp": "2026-11-25T09:21:05+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.44928290002281, "loss": 3.2388410568237305, "accuracy": 0.3984375, "lr": 6.757685356832243e-05, "gradient_norm": 1.238802433013916, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.01408070002799, "dev_nll": 3.1210773665225133, "dev_accuracy": 0.4085693359375} -{"timestamp": "2026-11-25T09:21:09+00:00", "step": 32, "tokens": 32768, "train_seconds": 109.3466636000303, "loss": 3.472531318664551, "accuracy": 0.375, "lr": 5.84728957956991e-05, "gradient_norm": 1.3810346126556396, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 25.911461400035478, "dev_nll": 3.1126226205960847, "dev_accuracy": 0.410400390625} -{"timestamp": "2026-11-25T09:21:13+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.22359190003772, "loss": 3.132420063018799, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2544296979904175, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.7883897000429, "dev_nll": 3.1055949754081666, "dev_accuracy": 0.410888671875} -{"timestamp": "2026-11-25T09:21:18+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.42110020003747, "loss": 3.0673372745513916, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2362866401672363, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.985898000042653, "dev_nll": 3.1004766558180563, "dev_accuracy": 0.410888671875} -{"timestamp": "2026-11-25T09:21:22+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.3313624000366, "loss": 3.38905668258667, "accuracy": 0.373046875, "lr": 3.183432393205763e-05, "gradient_norm": 1.2262520790100098, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.89616020004178, "dev_nll": 3.096751482808031, "dev_accuracy": 0.412353515625} -{"timestamp": "2026-11-25T09:21:26+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19241670003248, "loss": 3.232553482055664, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.2406020164489746, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.75721450003766, "dev_nll": 3.0938708244939335, "dev_accuracy": 0.4136962890625} -{"timestamp": "2026-11-25T09:21:48+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.58278420003626, "loss": 3.0859992504119873, "accuracy": 0.404296875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.6927725076675415, "derivatives": {"trace": {"estimate": 1306.07316143556, "raw_grad_norm": 3021103.0699667563, "lambda": 4.232668506589168e-08, "probe_seconds": 19.854530700002215}}, "host_probe_seconds": 19.854530700002215, "training_seconds_excluding_host_probes": 39.293051300039224, "penalty": 0.0004422539790167716} -{"timestamp": "2026-11-25T09:21:51+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.27424620003876, "loss": 3.066322088241577, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1389482021331787, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.984513300041726, "dev_nll": 3.0918713661958463, "dev_accuracy": 0.414306640625} -{"timestamp": "2026-11-25T09:21:55+00:00", "step": 56, "tokens": 57344, "train_seconds": 147.47696270003507, "loss": 3.2468066215515137, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1320654153823853, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.18722980003804, "dev_nll": 3.0903795417398214, "dev_accuracy": 0.4150390625} -{"timestamp": "2026-11-25T09:21:59+00:00", "step": 60, "tokens": 61440, "train_seconds": 150.7008369000323, "loss": 3.167062759399414, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1818270683288574, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.411104000035266, "dev_nll": 3.0892473537824117, "dev_accuracy": 0.4154052734375} -{"timestamp": "2026-11-25T09:22:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 153.6093276000247, "loss": 3.1683597564697266, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.0687135457992554, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.319594700027665, "dev_nll": 3.0883107148692943, "dev_accuracy": 0.416015625} +{"timestamp": "2026-11-25T09:19:10+00:00", "step": 1, "tokens": 1024, "train_seconds": 0.8203949000017019, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 0.8203949000017019} +{"timestamp": "2026-11-25T09:19:32+00:00", "step": 2, "tokens": 2048, "train_seconds": 22.69535729999916, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.1337052583694458, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 4.232668506589168e-08, "probe_seconds": 20.837838999999803}}, "host_probe_seconds": 20.837838999999803, "training_seconds_excluding_host_probes": 1.8575182999993558, "penalty": 0.0005115382084067936} +{"timestamp": "2026-11-25T09:19:35+00:00", "step": 4, "tokens": 4096, "train_seconds": 24.184651600007783, "loss": 3.335285186767578, "accuracy": 0.3671875, "lr": 9.994033404481737e-05, "gradient_norm": 1.1429003477096558, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 3.346812600007979, "dev_nll": 3.2050935145816766, "dev_accuracy": 0.4029541015625} +{"timestamp": "2026-11-25T09:19:39+00:00", "step": 8, "tokens": 8192, "train_seconds": 27.588129100004153, "loss": 3.153710126876831, "accuracy": 0.412109375, "lr": 9.851624761560943e-05, "gradient_norm": 1.307447075843811, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 6.750290100004349, "dev_nll": 3.1848572317976505, "dev_accuracy": 0.40576171875} +{"timestamp": "2026-11-25T09:20:03+00:00", "step": 11, "tokens": 11264, "train_seconds": 51.34093500000745, "loss": 3.222881555557251, "accuracy": 0.4150390625, "lr": 9.623426070191522e-05, "gradient_norm": 1.140632152557373, "derivatives": {"trace": {"estimate": -410.10428172081595, "raw_grad_norm": 868195.9114623038, "lambda": 4.232668506589168e-08, "probe_seconds": 20.85973699999886}}, "host_probe_seconds": 20.85973699999886, "training_seconds_excluding_host_probes": 9.643359000008786, "penalty": -0.00013886683821256557} +{"timestamp": "2026-11-25T09:20:06+00:00", "step": 12, "tokens": 12288, "train_seconds": 52.29275320001034, "loss": 3.2244973182678223, "accuracy": 0.421875, "lr": 9.525191870029581e-05, "gradient_norm": 1.1609612703323364, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 10.595177200011676, "dev_nll": 3.167334184923675, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T09:20:10+00:00", "step": 16, "tokens": 16384, "train_seconds": 55.284040600010485, "loss": 3.1743507385253906, "accuracy": 0.4013671875, "lr": 9.028539129595197e-05, "gradient_norm": 1.3022633790969849, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 13.586464600011823, "dev_nll": 3.153323730221018, "dev_accuracy": 0.40869140625} +{"timestamp": "2026-11-25T09:20:14+00:00", "step": 20, "tokens": 20480, "train_seconds": 58.501724600013404, "loss": 3.3647890090942383, "accuracy": 0.380859375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2582865953445435, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 16.80414860001474, "dev_nll": 3.141088357253466, "dev_accuracy": 0.40771484375} +{"timestamp": "2026-11-25T09:20:37+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.72395010001492, "loss": 3.1014509201049805, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.2094333171844482, "derivatives": {"trace": {"estimate": -347.26580623998086, "raw_grad_norm": 1033792.7539904471, "lambda": 4.232668506589168e-08, "probe_seconds": 20.768768099995214}}, "host_probe_seconds": 20.768768099995214, "training_seconds_excluding_host_probes": 18.257606000021042, "penalty": -0.00011758888331898106} +{"timestamp": "2026-11-25T09:20:39+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.08860320001986, "loss": 3.163144111633301, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.4822345972061157, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 19.622259100025985, "dev_nll": 3.1304753722506575, "dev_accuracy": 0.4068603515625} +{"timestamp": "2026-11-25T09:21:01+00:00", "step": 25, "tokens": 25600, "train_seconds": 104.08553360002406, "loss": 3.160763740539551, "accuracy": 0.3994140625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2352839708328247, "derivatives": {"trace": {"estimate": 2431.418073750566, "raw_grad_norm": 1151210.280645826, "lambda": 4.232668506589168e-08, "probe_seconds": 20.968858100000944}}, "host_probe_seconds": 20.968858100000944, "training_seconds_excluding_host_probes": 20.650331400029245, "penalty": 0.0008233109365692575} +{"timestamp": "2026-11-25T09:21:05+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.44928290002281, "loss": 3.2388410568237305, "accuracy": 0.3984375, "lr": 6.757685356832243e-05, "gradient_norm": 1.238802433013916, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 23.01408070002799, "dev_nll": 3.1210773665225133, "dev_accuracy": 0.4085693359375} +{"timestamp": "2026-11-25T09:21:09+00:00", "step": 32, "tokens": 32768, "train_seconds": 109.3466636000303, "loss": 3.472531318664551, "accuracy": 0.375, "lr": 5.84728957956991e-05, "gradient_norm": 1.3810346126556396, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 25.911461400035478, "dev_nll": 3.1126226205960847, "dev_accuracy": 0.410400390625} +{"timestamp": "2026-11-25T09:21:13+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.22359190003772, "loss": 3.132420063018799, "accuracy": 0.400390625, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2544296979904175, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 28.7883897000429, "dev_nll": 3.1055949754081666, "dev_accuracy": 0.410888671875} +{"timestamp": "2026-11-25T09:21:18+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.42110020003747, "loss": 3.0673372745513916, "accuracy": 0.421875, "lr": 4.021559281401244e-05, "gradient_norm": 1.2362866401672363, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 31.985898000042653, "dev_nll": 3.1004766558180563, "dev_accuracy": 0.410888671875} +{"timestamp": "2026-11-25T09:21:22+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.3313624000366, "loss": 3.38905668258667, "accuracy": 0.373046875, "lr": 3.183432393205763e-05, "gradient_norm": 1.2262520790100098, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 34.89616020004178, "dev_nll": 3.096751482808031, "dev_accuracy": 0.412353515625} +{"timestamp": "2026-11-25T09:21:26+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19241670003248, "loss": 3.232553482055664, "accuracy": 0.376953125, "lr": 2.443269974962181e-05, "gradient_norm": 1.2406020164489746, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.75721450003766, "dev_nll": 3.0938708244939335, "dev_accuracy": 0.4136962890625} +{"timestamp": "2026-11-25T09:21:48+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.58278420003626, "loss": 3.0859992504119873, "accuracy": 0.404296875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.6927725076675415, "derivatives": {"trace": {"estimate": 1306.07316143556, "raw_grad_norm": 3021103.0699667563, "lambda": 4.232668506589168e-08, "probe_seconds": 19.854530700002215}}, "host_probe_seconds": 19.854530700002215, "training_seconds_excluding_host_probes": 39.293051300039224, "penalty": 0.0004422539790167716} +{"timestamp": "2026-11-25T09:21:51+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.27424620003876, "loss": 3.066322088241577, "accuracy": 0.41015625, "lr": 1.8323724811743496e-05, "gradient_norm": 1.1389482021331787, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 40.984513300041726, "dev_nll": 3.0918713661958463, "dev_accuracy": 0.414306640625} +{"timestamp": "2026-11-25T09:21:55+00:00", "step": 56, "tokens": 57344, "train_seconds": 147.47696270003507, "loss": 3.2468066215515137, "accuracy": 0.40234375, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1320654153823853, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 44.18722980003804, "dev_nll": 3.0903795417398214, "dev_accuracy": 0.4150390625} +{"timestamp": "2026-11-25T09:21:59+00:00", "step": 60, "tokens": 61440, "train_seconds": 150.7008369000323, "loss": 3.167062759399414, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1818270683288574, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 47.411104000035266, "dev_nll": 3.0892473537824117, "dev_accuracy": 0.4154052734375} +{"timestamp": "2026-11-25T09:22:04+00:00", "step": 64, "tokens": 65536, "train_seconds": 153.6093276000247, "loss": 3.1683597564697266, "accuracy": 0.400390625, "lr": 1e-05, "gradient_norm": 1.0687135457992554, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 50.319594700027665, "dev_nll": 3.0883107148692943, "dev_accuracy": 0.416015625} diff --git a/research/results/abstracts-pilot-s00-trace-r03-fp64/samples.jsonl b/research/results/abstracts-pilot-s00-trace-r03-fp64/samples.jsonl index 26ffeb61b5aca3260e84653ce352557adb2999bf..3a91d45ee2f345d63327aa9bd993a7a1f9f14edb 100644 --- a/research/results/abstracts-pilot-s00-trace-r03-fp64/samples.jsonl +++ b/research/results/abstracts-pilot-s00-trace-r03-fp64/samples.jsonl @@ -1,3 +1,3 @@ -{"timestamp": "2026-11-25T09:34:40+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} -{"timestamp": "2026-11-25T09:34:42+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} -{"timestamp": "2026-11-25T09:34:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} +{"timestamp": "2026-11-25T09:34:40+00:00", "split": "dev", "prompt": "One of the central objectives of contemporary neuroimaging research is to\ncreate predictive models", "reference": " that can disentangle the connection between patterns\nof functional connectivity across the entire brain and various behavioral\ntraits. Previous studies have shown that models trained to predict behavioral\nfeatures from the individual's functional", "continuation": " that will be used to assess the cognitive\nperformance of neurological disorders. We will focus on three major areas:\n(1) the nervous system as a whole, (2) the brain regions that", "prompt_ids": [4041, 273, 253, 4275, 16566, 273, 13399, 6551, 40270, 2561, 310, 281, 187, 6953, 15970, 3210], "generated_ids": [326, 588, 320, 908, 281, 2939, 253, 9699, 187, 24159, 273, 20967, 9360, 15, 844, 588, 2770, 327, 1264, 2201, 3672, 27, 187, 9, 18, 10, 253, 11219, 985, 347, 247, 2644, 13, 313, 19, 10, 253, 3998, 4811, 326], "tokens": 40, "sampling_seed": 7401, "temperature": 0.8} +{"timestamp": "2026-11-25T09:34:42+00:00", "split": "dev", "prompt": "In the evolving landscape of computer vision, foundation models have emerged\nas pivotal tools", "reference": ", exhibiting exceptional adaptability to a myriad of tasks.\nAmong these, the Segment Anything Model (SAM) by Meta AI has distinguished\nitself in image segmentation. However, SAM, like", "continuation": " to study the behavior of computer vision systems.\nThese widely adopted modeling approaches tend to be associated with\na small number of identified object classes. On the one hand, they\nare often effective to", "prompt_ids": [688, 253, 25537, 13016, 273, 4382, 8113, 13, 12153, 3210, 452, 13082, 187, 284, 30847, 5657], "generated_ids": [281, 1263, 253, 3879, 273, 4382, 8113, 2718, 15, 187, 6872, 7561, 8671, 14053, 7274, 5257, 281, 320, 2330, 342, 187, 66, 1355, 1180, 273, 3636, 1789, 5971, 15, 1623, 253, 581, 1133, 13, 597, 187, 609, 2223, 3576, 281], "tokens": 40, "sampling_seed": 7402, "temperature": 0.8} +{"timestamp": "2026-11-25T09:34:45+00:00", "split": "dev", "prompt": "We investigate the connection between the turnover frequency in the radio\nspectrum, $\\nu", "reference": "_{\\rm TO}$, and the rate of ionising ultra-violet photons,\n$Q_{\\rm HI}$, in extragalactic sources. From a large, optically selected,\nsample we", "continuation": "_{\\rm{break}}$, and the spectral index of the underlying\nspectral index $s_{\\rm{break}}$, and reveal that there is a universal\nrelationship between both quantities that can be used to", "prompt_ids": [1231, 7409, 253, 4602, 875, 253, 25759, 4294, 275, 253, 5553, 187, 39862, 13, 669, 3023], "generated_ids": [1126, 1109, 92, 7054, 12460, 285, 253, 9879, 3605, 273, 253, 6944, 187, 18181, 1544, 3605, 370, 84, 1126, 1109, 92, 7054, 12460, 285, 10313, 326, 627, 310, 247, 10898, 187, 46397, 875, 1097, 13483, 326, 476, 320, 908, 281], "tokens": 40, "sampling_seed": 7403, "temperature": 0.8} diff --git a/research/results/abstracts-pilot-s00-trace-r03-fp64/summary.json b/research/results/abstracts-pilot-s00-trace-r03-fp64/summary.json index 45c1c7daa0a49b82ecfe5285afd6a38594e236aa..362a06da9a08e73575ee6cb9aed5f64393c9ab24 100644 --- a/research/results/abstracts-pilot-s00-trace-r03-fp64/summary.json +++ b/research/results/abstracts-pilot-s00-trace-r03-fp64/summary.json @@ -1,43 +1,43 @@ -{ - "id": "abstracts-pilot-s00-trace-r03-fp64", - "stage": "abstracts", - "method": "trace", - "phase": "pilot", - "seed": 0, - "ratio": 0.03, - "token_budget": 65536, - "batch_windows": 8, - "context": 128, - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "microbatch": 2, - "derivative_dtype": "float64", - "derivative_device": "cpu", - "coefficients": { - "trace": 4.232668506589168e-08 - }, - "device": "cuda", - "torch": "2.15.0+cu132", - "platform": "Windows-11-10.0.26200-SP0", - "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", - "cpu_threads": 6, - "evaluation_batch_windows": 16, - "git_revision": "063bfba40163c85ec9a507de1192fe9992665341", - "trainable_parameters": 786432, - "host_probe_seconds": 103.28973289999703, - "training_seconds_excluding_host_probes": 50.319594700027665, - "weights_sha256": "cf7de030e310adce3e732e1a19e02e49b237072c4cdd8f67fef33856823a5236", - "weights_name": "adapter_model.safetensors", - "matched_dev_nll": 3.0883107148692943, - "tokens": 65536, - "steps": 64, - "train_seconds": 153.6093276000247, - "tokens_per_sec": 426.6407582399278, - "process_peak_rss_mib": 10630.84375, - "peak_vram_mb": 2346.30029296875, - "dev_nll": 3.11411782781259, - "dev_accuracy": 0.4131599659723685, - "dev_tokens": 5124071, - "finished_at": "2026-11-25T09:34:46+00:00", - "status": "complete" -} +{ + "id": "abstracts-pilot-s00-trace-r03-fp64", + "stage": "abstracts", + "method": "trace", + "phase": "pilot", + "seed": 0, + "ratio": 0.03, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "trace": 4.232668506589168e-08 + }, + "device": "cuda", + "torch": "2.15.0+cu132", + "platform": "Windows-11-10.0.26200-SP0", + "gpu": "NVIDIA GeForce RTX 5070 Laptop GPU", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b", + "cpu_threads": 6, + "evaluation_batch_windows": 16, + "git_revision": "063bfba40163c85ec9a507de1192fe9992665341", + "trainable_parameters": 786432, + "host_probe_seconds": 103.28973289999703, + "training_seconds_excluding_host_probes": 50.319594700027665, + "weights_sha256": "cf7de030e310adce3e732e1a19e02e49b237072c4cdd8f67fef33856823a5236", + "weights_name": "adapter_model.safetensors", + "matched_dev_nll": 3.0883107148692943, + "tokens": 65536, + "steps": 64, + "train_seconds": 153.6093276000247, + "tokens_per_sec": 426.6407582399278, + "process_peak_rss_mib": 10630.84375, + "peak_vram_mb": 2346.30029296875, + "dev_nll": 3.11411782781259, + "dev_accuracy": 0.4131599659723685, + "dev_tokens": 5124071, + "finished_at": "2026-11-25T09:34:46+00:00", + "status": "complete" +} diff --git a/research/results/abstracts-pilot-s00-trace-r10-fp64/config.json b/research/results/abstracts-pilot-s00-trace-r10-fp64/config.json new file mode 100644 index 0000000000000000000000000000000000000000..f087c8cb592a2a51f06b3636655f1e68512f1fc0 --- /dev/null +++ b/research/results/abstracts-pilot-s00-trace-r10-fp64/config.json @@ -0,0 +1,18 @@ +{ + "id": "abstracts-pilot-s00-trace-r10-fp64", + "stage": "abstracts", + "method": "trace", + "phase": "pilot", + "seed": 0, + "ratio": 0.1, + "token_budget": 65536, + "batch_windows": 8, + "context": 128, + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "microbatch": 2, + "derivative_dtype": "float64", + "derivative_device": "cpu", + "coefficients": { + "trace": 1.4108895021963896e-07 + } +} diff --git a/research/results/abstracts-pilot-s00-trace-r10-fp64/evaluation.jsonl b/research/results/abstracts-pilot-s00-trace-r10-fp64/evaluation.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..d863ad86b9d9e1201eea9a36eba5f88987b80fe2 --- /dev/null +++ b/research/results/abstracts-pilot-s00-trace-r10-fp64/evaluation.jsonl @@ -0,0 +1,4 @@ +{"timestamp": "2026-11-25T09:39:36+00:00", "split": "dev", "targets_scored": 428032, "targets_to_score": 5124071, "nll_so_far": 3.108446352100267, "accuracy_so_far": 0.4125626121411483, "score_seconds": 60.06455969999661} +{"timestamp": "2026-11-25T09:40:37+00:00", "split": "dev", "targets_scored": 845824, "targets_to_score": 5124071, "nll_so_far": 3.1068979659919416, "accuracy_so_far": 0.41308357294188863, "score_seconds": 120.58383239999966} +{"timestamp": "2026-11-25T09:41:37+00:00", "split": "dev", "targets_scored": 1263616, "targets_to_score": 5124071, "nll_so_far": 3.101885629086144, "accuracy_so_far": 0.41370479639384117, "score_seconds": 180.81926940000267} +{"timestamp": "2026-11-25T09:42:37+00:00", "split": "dev", "targets_scored": 1699840, "targets_to_score": 5124071, "nll_so_far": 3.1058517757200086, "accuracy_so_far": 0.4133830242846386, "score_seconds": 241.07107389999874} diff --git a/research/results/abstracts-pilot-s00-trace-r10-fp64/events.jsonl b/research/results/abstracts-pilot-s00-trace-r10-fp64/events.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..b884aba54bcfe8b927b0990203fa78e96084e2bf --- /dev/null +++ b/research/results/abstracts-pilot-s00-trace-r10-fp64/events.jsonl @@ -0,0 +1,22 @@ +{"timestamp": "2026-11-25T09:35:45+00:00", "step": 1, "tokens": 1024, "train_seconds": 1.9998186000011628, "loss": 3.3628768920898438, "accuracy": 0.38671875, "lr": 3.3333333333333335e-05, "gradient_norm": 1.1452151536941528, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 1.9998186000011628} +{"timestamp": "2026-11-25T09:36:09+00:00", "step": 2, "tokens": 2048, "train_seconds": 25.931917200003227, "loss": 3.4265871047973633, "accuracy": 0.3720703125, "lr": 6.666666666666667e-05, "gradient_norm": 1.4221022129058838, "derivatives": {"trace": {"estimate": 1510.6847122874765, "raw_grad_norm": 967020.0889974502, "lambda": 1.4108895021963896e-07, "probe_seconds": 22.93367600000056}}, "host_probe_seconds": 22.93367600000056, "training_seconds_excluding_host_probes": 2.998241200002667, "penalty": 0.0017051273613559789} +{"timestamp": "2026-11-25T09:36:12+00:00", "step": 4, "tokens": 4096, "train_seconds": 27.886579900005017, "loss": 3.335796594619751, "accuracy": 0.3681640625, "lr": 9.994033404481737e-05, "gradient_norm": 1.134796142578125, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 4.952903900004458, "dev_nll": 3.2050312721403316, "dev_accuracy": 0.4031982421875} +{"timestamp": "2026-11-25T09:36:17+00:00", "step": 8, "tokens": 8192, "train_seconds": 31.158227900014026, "loss": 3.153012275695801, "accuracy": 0.41015625, "lr": 9.851624761560943e-05, "gradient_norm": 1.293690800666809, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 8.224551900013466, "dev_nll": 3.184641196625307, "dev_accuracy": 0.40625} +{"timestamp": "2026-11-25T09:36:40+00:00", "step": 11, "tokens": 11264, "train_seconds": 53.63846070001455, "loss": 3.2229928970336914, "accuracy": 0.4130859375, "lr": 9.623426070191522e-05, "gradient_norm": 1.285159707069397, "derivatives": {"trace": {"estimate": -694.6261944338884, "raw_grad_norm": 650351.7519319204, "lambda": 1.4108895021963896e-07, "probe_seconds": 19.705065300004208}}, "host_probe_seconds": 19.705065300004208, "training_seconds_excluding_host_probes": 10.99971940000978, "penalty": -0.000784032644541921} +{"timestamp": "2026-11-25T09:36:42+00:00", "step": 12, "tokens": 12288, "train_seconds": 54.50693680001132, "loss": 3.2245121002197266, "accuracy": 0.423828125, "lr": 9.525191870029581e-05, "gradient_norm": 1.1548209190368652, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 11.86819550000655, "dev_nll": 3.167126943531912, "dev_accuracy": 0.4075927734375} +{"timestamp": "2026-11-25T09:36:46+00:00", "step": 16, "tokens": 16384, "train_seconds": 57.64860890001728, "loss": 3.174424886703491, "accuracy": 0.40234375, "lr": 9.028539129595197e-05, "gradient_norm": 1.290644884109497, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 15.009867600012512, "dev_nll": 3.1532784855226055, "dev_accuracy": 0.408203125} +{"timestamp": "2026-11-25T09:36:50+00:00", "step": 20, "tokens": 20480, "train_seconds": 60.63691110002401, "loss": 3.3655636310577393, "accuracy": 0.3818359375, "lr": 8.38266930414179e-05, "gradient_norm": 1.2696744203567505, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 17.99816980001924, "dev_nll": 3.1408604835742153, "dev_accuracy": 0.4078369140625} +{"timestamp": "2026-11-25T09:37:11+00:00", "step": 22, "tokens": 22528, "train_seconds": 80.78779520002718, "loss": 3.1017513275146484, "accuracy": 0.3994140625, "lr": 8.01209674912089e-05, "gradient_norm": 1.8386253118515015, "derivatives": {"trace": {"estimate": -1085.6086012298745, "raw_grad_norm": 1365097.8139750937, "lambda": 1.4108895021963896e-07, "probe_seconds": 18.63979919999838}}, "host_probe_seconds": 18.63979919999838, "training_seconds_excluding_host_probes": 19.50925470002403, "penalty": -0.0012253390231754691} +{"timestamp": "2026-11-25T09:37:14+00:00", "step": 24, "tokens": 24576, "train_seconds": 82.46734170003037, "loss": 3.164275884628296, "accuracy": 0.4130859375, "lr": 7.614895343622941e-05, "gradient_norm": 1.360983967781067, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 21.18880120002723, "dev_nll": 3.1299168045516126, "dev_accuracy": 0.4073486328125} +{"timestamp": "2026-11-25T09:37:34+00:00", "step": 25, "tokens": 25600, "train_seconds": 103.21756500003539, "loss": 3.160609245300293, "accuracy": 0.400390625, "lr": 7.407614758194375e-05, "gradient_norm": 1.2670272588729858, "derivatives": {"trace": {"estimate": 2133.4841010745668, "raw_grad_norm": 659490.9875052081, "lambda": 1.4108895021963896e-07, "probe_seconds": 20.004875300001004}}, "host_probe_seconds": 20.004875300001004, "training_seconds_excluding_host_probes": 21.934149200031243, "penalty": 0.0024080882570472056} +{"timestamp": "2026-11-25T09:37:38+00:00", "step": 28, "tokens": 28672, "train_seconds": 106.03125510003883, "loss": 3.2406740188598633, "accuracy": 0.3974609375, "lr": 6.757685356832243e-05, "gradient_norm": 1.1818077564239502, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 24.747839300034684, "dev_nll": 3.120155265030917, "dev_accuracy": 0.4091796875} +{"timestamp": "2026-11-25T09:37:43+00:00", "step": 32, "tokens": 32768, "train_seconds": 108.91973190003773, "loss": 3.4720165729522705, "accuracy": 0.3759765625, "lr": 5.84728957956991e-05, "gradient_norm": 1.3508952856063843, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 27.636316100033582, "dev_nll": 3.1115943496697582, "dev_accuracy": 0.4105224609375} +{"timestamp": "2026-11-25T09:37:47+00:00", "step": 36, "tokens": 36864, "train_seconds": 112.10405770003854, "loss": 3.1347522735595703, "accuracy": 0.3984375, "lr": 4.9222074018405206e-05, "gradient_norm": 1.2365068197250366, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 30.82064190003439, "dev_nll": 3.1048434849944897, "dev_accuracy": 0.41162109375} +{"timestamp": "2026-11-25T09:37:51+00:00", "step": 40, "tokens": 40960, "train_seconds": 115.19499970002653, "loss": 3.067256212234497, "accuracy": 0.4228515625, "lr": 4.021559281401244e-05, "gradient_norm": 1.2012919187545776, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 33.91158390002238, "dev_nll": 3.0998129649669863, "dev_accuracy": 0.4117431640625} +{"timestamp": "2026-11-25T09:37:56+00:00", "step": 44, "tokens": 45056, "train_seconds": 118.37908410001546, "loss": 3.3904900550842285, "accuracy": 0.375, "lr": 3.183432393205763e-05, "gradient_norm": 1.2358940839767456, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 37.09566830001131, "dev_nll": 3.096153337683063, "dev_accuracy": 0.4130859375} +{"timestamp": "2026-11-25T09:38:00+00:00", "step": 48, "tokens": 49152, "train_seconds": 121.19837050001661, "loss": 3.229557991027832, "accuracy": 0.373046875, "lr": 2.443269974962181e-05, "gradient_norm": 1.2014778852462769, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 39.91495470001246, "dev_nll": 3.0933790989220142, "dev_accuracy": 0.413330078125} +{"timestamp": "2026-11-25T09:38:21+00:00", "step": 50, "tokens": 51200, "train_seconds": 142.41185330001463, "loss": 3.0856502056121826, "accuracy": 0.4013671875, "lr": 2.1199063110826618e-05, "gradient_norm": 1.9504165649414062, "derivatives": {"trace": {"estimate": 1913.6708559900926, "raw_grad_norm": 1412886.4508293907, "lambda": 1.4108895021963896e-07, "probe_seconds": 19.384623899997678}}, "host_probe_seconds": 19.384623899997678, "training_seconds_excluding_host_probes": 41.7438136000128, "penalty": 0.0021599824971004805} +{"timestamp": "2026-11-25T09:38:24+00:00", "step": 52, "tokens": 53248, "train_seconds": 144.0188718000063, "loss": 3.066619634628296, "accuracy": 0.4091796875, "lr": 1.8323724811743496e-05, "gradient_norm": 1.161417007446289, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 43.35083210000448, "dev_nll": 3.0914076771005057, "dev_accuracy": 0.4141845703125} +{"timestamp": "2026-11-25T09:38:28+00:00", "step": 56, "tokens": 57344, "train_seconds": 146.35710040000413, "loss": 3.2472095489501953, "accuracy": 0.400390625, "lr": 1.3765739298084793e-05, "gradient_norm": 1.1212785243988037, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 45.6890607000023, "dev_nll": 3.0899070280138403, "dev_accuracy": 0.4149169921875} +{"timestamp": "2026-11-25T09:38:32+00:00", "step": 60, "tokens": 61440, "train_seconds": 149.4089021000109, "loss": 3.1670827865600586, "accuracy": 0.4091796875, "lr": 1.09514941707089e-05, "gradient_norm": 1.1919764280319214, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 48.740862400009064, "dev_nll": 3.0887783502112143, "dev_accuracy": 0.415771484375} +{"timestamp": "2026-11-25T09:38:36+00:00", "step": 64, "tokens": 65536, "train_seconds": 152.16303770000377, "loss": 3.1684961318969727, "accuracy": 0.4013671875, "lr": 1e-05, "gradient_norm": 1.0735735893249512, "derivatives": {}, "host_probe_seconds": 0, "training_seconds_excluding_host_probes": 51.49499800000194, "dev_nll": 3.087854042823892, "dev_accuracy": 0.416259765625} diff --git a/research/results/abstracts-pilot-s00-trace-r10-fp64/state.json b/research/results/abstracts-pilot-s00-trace-r10-fp64/state.json new file mode 100644 index 0000000000000000000000000000000000000000..805f06aa98f59e8842395013a647595fef5d10de --- /dev/null +++ b/research/results/abstracts-pilot-s00-trace-r10-fp64/state.json @@ -0,0 +1,8 @@ +{ + "status": "scoring development", + "targets_scored": 1699840, + "targets_to_score": 5124071, + "nll_so_far": 3.1058517757200086, + "accuracy_so_far": 0.4133830242846386, + "score_seconds": 241.07107389999874 +} diff --git a/research/results/calibration/abstracts-third-fp64.json b/research/results/calibration/abstracts-third-fp64.json index bd347b59c46398ea6b177956659d951c50ebb02c..f08a542e984528c4eb7ab2cb1528765b47cd7aeb 100644 --- a/research/results/calibration/abstracts-third-fp64.json +++ b/research/results/calibration/abstracts-third-fp64.json @@ -1,155 +1,155 @@ -{ - "stage": "abstracts", - "kind": "third", - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "unit_lambda": 6.059178291032522e-15, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.1272474527359009, - "penalty_grad_norm": 910729436494438.9, - "value": 834685395129.9045, - "norm_ratio": 1.2377413176353218e-15, - "probe_seconds": 60.33973419999893, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 1, - "ce_grad_norm": 1.1757105588912964, - "penalty_grad_norm": 186194126220231.7, - "value": 159812556631.67688, - "norm_ratio": 6.3144342024015186e-15, - "probe_seconds": 55.740933799999766, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 2, - "ce_grad_norm": 1.2021815776824951, - "penalty_grad_norm": 108966576920843.86, - "value": 153088393491.90155, - "norm_ratio": 1.1032571744965348e-14, - "probe_seconds": 55.759018200002174, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 3, - "ce_grad_norm": 1.0702996253967285, - "penalty_grad_norm": 3.9919238583350056e+16, - "value": 6953712848913.515, - "norm_ratio": 2.6811624253853893e-17, - "probe_seconds": 54.50471869999819, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 4, - "ce_grad_norm": 1.181842565536499, - "penalty_grad_norm": 105071420078010.61, - "value": 219610434477.3632, - "norm_ratio": 1.1247992695435507e-14, - "probe_seconds": 54.978216199997405, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 5, - "ce_grad_norm": 1.2219445705413818, - "penalty_grad_norm": 250434198480525.06, - "value": 282150956586.81854, - "norm_ratio": 4.87930393674411e-15, - "probe_seconds": 56.60531099999935, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 6, - "ce_grad_norm": 1.1192132234573364, - "penalty_grad_norm": 632518813384390.5, - "value": 197389403517.5067, - "norm_ratio": 1.7694544411553732e-15, - "probe_seconds": 56.84666650000145, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 7, - "ce_grad_norm": 1.0118643045425415, - "penalty_grad_norm": 174341460541931.47, - "value": 153537460935.50665, - "norm_ratio": 5.803922379663525e-15, - "probe_seconds": 53.74921510000058, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 8, - "ce_grad_norm": 1.225813627243042, - "penalty_grad_norm": 83586087695599.7, - "value": 129242221450.65302, - "norm_ratio": 1.4665282956024434e-14, - "probe_seconds": 56.13168239999868, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 9, - "ce_grad_norm": 1.167998194694519, - "penalty_grad_norm": 114416639410859.17, - "value": 175741652819.1452, - "norm_ratio": 1.020828963958948e-14, - "probe_seconds": 57.82997389999946, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 10, - "ce_grad_norm": 1.1549506187438965, - "penalty_grad_norm": 441687750783840.4, - "value": 612261541935.509, - "norm_ratio": 2.6148577059116208e-15, - "probe_seconds": 57.42297689999759, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 11, - "ce_grad_norm": 1.0679398775100708, - "penalty_grad_norm": 94314795672815.34, - "value": 158101082366.27707, - "norm_ratio": 1.1323142566250467e-14, - "probe_seconds": 58.35683330000029, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 12, - "ce_grad_norm": 1.2423405647277832, - "penalty_grad_norm": 287315887794136.56, - "value": 94744715880.54042, - "norm_ratio": 4.323953590822402e-15, - "probe_seconds": 59.645345000000816, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 13, - "ce_grad_norm": 1.177032709121704, - "penalty_grad_norm": 385676112557798.44, - "value": 482594580708.791, - "norm_ratio": 3.0518683185111985e-15, - "probe_seconds": 58.16326520000075, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 14, - "ce_grad_norm": 1.1937261819839478, - "penalty_grad_norm": 102328970961512.16, - "value": 120579032529.80841, - "norm_ratio": 1.1665573989138721e-14, - "probe_seconds": 59.03697579999789, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 15, - "ce_grad_norm": 1.1019200086593628, - "penalty_grad_norm": 116499166026949.25, - "value": 111835215128.08981, - "norm_ratio": 9.45860855694418e-15, - "probe_seconds": 57.153079499999876, - "peak_allocated_mib": 1552.23583984375 - } - ], - "derivative_device": "cpu", - "derivative_dtype": "float64", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b" -} +{ + "stage": "abstracts", + "kind": "third", + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "unit_lambda": 6.059178291032522e-15, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.1272474527359009, + "penalty_grad_norm": 910729436494438.9, + "value": 834685395129.9045, + "norm_ratio": 1.2377413176353218e-15, + "probe_seconds": 60.33973419999893, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 1, + "ce_grad_norm": 1.1757105588912964, + "penalty_grad_norm": 186194126220231.7, + "value": 159812556631.67688, + "norm_ratio": 6.3144342024015186e-15, + "probe_seconds": 55.740933799999766, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 2, + "ce_grad_norm": 1.2021815776824951, + "penalty_grad_norm": 108966576920843.86, + "value": 153088393491.90155, + "norm_ratio": 1.1032571744965348e-14, + "probe_seconds": 55.759018200002174, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 3, + "ce_grad_norm": 1.0702996253967285, + "penalty_grad_norm": 3.9919238583350056e+16, + "value": 6953712848913.515, + "norm_ratio": 2.6811624253853893e-17, + "probe_seconds": 54.50471869999819, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 4, + "ce_grad_norm": 1.181842565536499, + "penalty_grad_norm": 105071420078010.61, + "value": 219610434477.3632, + "norm_ratio": 1.1247992695435507e-14, + "probe_seconds": 54.978216199997405, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 5, + "ce_grad_norm": 1.2219445705413818, + "penalty_grad_norm": 250434198480525.06, + "value": 282150956586.81854, + "norm_ratio": 4.87930393674411e-15, + "probe_seconds": 56.60531099999935, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 6, + "ce_grad_norm": 1.1192132234573364, + "penalty_grad_norm": 632518813384390.5, + "value": 197389403517.5067, + "norm_ratio": 1.7694544411553732e-15, + "probe_seconds": 56.84666650000145, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 7, + "ce_grad_norm": 1.0118643045425415, + "penalty_grad_norm": 174341460541931.47, + "value": 153537460935.50665, + "norm_ratio": 5.803922379663525e-15, + "probe_seconds": 53.74921510000058, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 8, + "ce_grad_norm": 1.225813627243042, + "penalty_grad_norm": 83586087695599.7, + "value": 129242221450.65302, + "norm_ratio": 1.4665282956024434e-14, + "probe_seconds": 56.13168239999868, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 9, + "ce_grad_norm": 1.167998194694519, + "penalty_grad_norm": 114416639410859.17, + "value": 175741652819.1452, + "norm_ratio": 1.020828963958948e-14, + "probe_seconds": 57.82997389999946, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 10, + "ce_grad_norm": 1.1549506187438965, + "penalty_grad_norm": 441687750783840.4, + "value": 612261541935.509, + "norm_ratio": 2.6148577059116208e-15, + "probe_seconds": 57.42297689999759, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 11, + "ce_grad_norm": 1.0679398775100708, + "penalty_grad_norm": 94314795672815.34, + "value": 158101082366.27707, + "norm_ratio": 1.1323142566250467e-14, + "probe_seconds": 58.35683330000029, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 12, + "ce_grad_norm": 1.2423405647277832, + "penalty_grad_norm": 287315887794136.56, + "value": 94744715880.54042, + "norm_ratio": 4.323953590822402e-15, + "probe_seconds": 59.645345000000816, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 13, + "ce_grad_norm": 1.177032709121704, + "penalty_grad_norm": 385676112557798.44, + "value": 482594580708.791, + "norm_ratio": 3.0518683185111985e-15, + "probe_seconds": 58.16326520000075, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 14, + "ce_grad_norm": 1.1937261819839478, + "penalty_grad_norm": 102328970961512.16, + "value": 120579032529.80841, + "norm_ratio": 1.1665573989138721e-14, + "probe_seconds": 59.03697579999789, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 15, + "ce_grad_norm": 1.1019200086593628, + "penalty_grad_norm": 116499166026949.25, + "value": 111835215128.08981, + "norm_ratio": 9.45860855694418e-15, + "probe_seconds": 57.153079499999876, + "peak_allocated_mib": 1552.23583984375 + } + ], + "derivative_device": "cpu", + "derivative_dtype": "float64", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b" +} diff --git a/research/results/calibration/abstracts-third.json b/research/results/calibration/abstracts-third.json index c1e8978bad80fcc81417e56393f321b843e62609..adb4cb87888111d8a24779a5ccfc420065c49a01 100644 --- a/research/results/calibration/abstracts-third.json +++ b/research/results/calibration/abstracts-third.json @@ -1,152 +1,152 @@ -{ - "stage": "abstracts", - "kind": "third", - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "unit_lambda": 2.931663397394149e-20, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.1272474527359009, - "penalty_grad_norm": 1.744107653806619e+20, - "value": 265727747555328.0, - "norm_ratio": 6.4631758841010535e-21, - "probe_seconds": 6.6500113000001875, - "peak_allocated_mib": 6354.271484375 - }, - { - "draw": 1, - "ce_grad_norm": 1.1757105588912964, - "penalty_grad_norm": 4.98717745431209e+21, - "value": 3010543904358400.0, - "norm_ratio": 2.357466863094545e-22, - "probe_seconds": 6.50068470000042, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 2, - "ce_grad_norm": 1.2021815776824951, - "penalty_grad_norm": 2.7038835357767434e+18, - "value": 17962486464512.0, - "norm_ratio": 4.446129286915256e-19, - "probe_seconds": 6.208909000000858, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 3, - "ce_grad_norm": 1.0702996253967285, - "penalty_grad_norm": 1.6400195825337523e+20, - "value": 296954944815104.0, - "norm_ratio": 6.526139302209834e-21, - "probe_seconds": 6.415160799999285, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 4, - "ce_grad_norm": 1.181842565536499, - "penalty_grad_norm": 5.48905451595078e+18, - "value": 31501934657536.0, - "norm_ratio": 2.1530895022123633e-19, - "probe_seconds": 6.108574300000328, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 5, - "ce_grad_norm": 1.2219445705413818, - "penalty_grad_norm": 2.274370169494697e+19, - "value": 27829452406784.0, - "norm_ratio": 5.37267234213182e-20, - "probe_seconds": 5.9862028999996255, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 6, - "ce_grad_norm": 1.1192132234573364, - "penalty_grad_norm": 3.59346047387737e+19, - "value": 15019091689472.0, - "norm_ratio": 3.114583370523893e-20, - "probe_seconds": 6.139835399997537, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 7, - "ce_grad_norm": 1.0118643045425415, - "penalty_grad_norm": 2.757049388682895e+21, - "value": 1504090567737344.0, - "norm_ratio": 3.670098579648339e-22, - "probe_seconds": 6.22955169999841, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 8, - "ce_grad_norm": 1.225813627243042, - "penalty_grad_norm": 6.602691569608819e+18, - "value": 5855106301952.0, - "norm_ratio": 1.8565362539199544e-19, - "probe_seconds": 5.914080399998056, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 9, - "ce_grad_norm": 1.167998194694519, - "penalty_grad_norm": 2.1537623831724413e+19, - "value": 32228790763520.0, - "norm_ratio": 5.423059683000338e-20, - "probe_seconds": 6.2061707000029855, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 10, - "ce_grad_norm": 1.1549506187438965, - "penalty_grad_norm": 1.2663927538607718e+19, - "value": 27836349939712.0, - "norm_ratio": 9.12000337354167e-20, - "probe_seconds": 6.111348800000997, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 11, - "ce_grad_norm": 1.0679398775100708, - "penalty_grad_norm": 5.172649748649782e+19, - "value": 83065531531264.0, - "norm_ratio": 2.064589580589398e-20, - "probe_seconds": 6.134617499999877, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 12, - "ce_grad_norm": 1.2423405647277832, - "penalty_grad_norm": 4.519667255084921e+19, - "value": 40152789417984.0, - "norm_ratio": 2.7487434242644055e-20, - "probe_seconds": 6.022774100001698, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 13, - "ce_grad_norm": 1.177032709121704, - "penalty_grad_norm": 2.6147074281208077e+20, - "value": 137183746850816.0, - "norm_ratio": 4.501584752706495e-21, - "probe_seconds": 5.9077686999989965, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 14, - "ce_grad_norm": 1.1937261819839478, - "penalty_grad_norm": 7.480117052732963e+19, - "value": 202575806726144.0, - "norm_ratio": 1.595865644305397e-20, - "probe_seconds": 6.179321399999026, - "peak_allocated_mib": 6354.27197265625 - }, - { - "draw": 15, - "ce_grad_norm": 1.1019200086593628, - "penalty_grad_norm": 6.702447510817866e+18, - "value": 7641613991936.0, - "norm_ratio": 1.6440561554280656e-19, - "probe_seconds": 6.32930209999904, - "peak_allocated_mib": 6354.27197265625 - } - ] -} +{ + "stage": "abstracts", + "kind": "third", + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "unit_lambda": 2.931663397394149e-20, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.1272474527359009, + "penalty_grad_norm": 1.744107653806619e+20, + "value": 265727747555328.0, + "norm_ratio": 6.4631758841010535e-21, + "probe_seconds": 6.6500113000001875, + "peak_allocated_mib": 6354.271484375 + }, + { + "draw": 1, + "ce_grad_norm": 1.1757105588912964, + "penalty_grad_norm": 4.98717745431209e+21, + "value": 3010543904358400.0, + "norm_ratio": 2.357466863094545e-22, + "probe_seconds": 6.50068470000042, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 2, + "ce_grad_norm": 1.2021815776824951, + "penalty_grad_norm": 2.7038835357767434e+18, + "value": 17962486464512.0, + "norm_ratio": 4.446129286915256e-19, + "probe_seconds": 6.208909000000858, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 3, + "ce_grad_norm": 1.0702996253967285, + "penalty_grad_norm": 1.6400195825337523e+20, + "value": 296954944815104.0, + "norm_ratio": 6.526139302209834e-21, + "probe_seconds": 6.415160799999285, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 4, + "ce_grad_norm": 1.181842565536499, + "penalty_grad_norm": 5.48905451595078e+18, + "value": 31501934657536.0, + "norm_ratio": 2.1530895022123633e-19, + "probe_seconds": 6.108574300000328, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 5, + "ce_grad_norm": 1.2219445705413818, + "penalty_grad_norm": 2.274370169494697e+19, + "value": 27829452406784.0, + "norm_ratio": 5.37267234213182e-20, + "probe_seconds": 5.9862028999996255, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 6, + "ce_grad_norm": 1.1192132234573364, + "penalty_grad_norm": 3.59346047387737e+19, + "value": 15019091689472.0, + "norm_ratio": 3.114583370523893e-20, + "probe_seconds": 6.139835399997537, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 7, + "ce_grad_norm": 1.0118643045425415, + "penalty_grad_norm": 2.757049388682895e+21, + "value": 1504090567737344.0, + "norm_ratio": 3.670098579648339e-22, + "probe_seconds": 6.22955169999841, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 8, + "ce_grad_norm": 1.225813627243042, + "penalty_grad_norm": 6.602691569608819e+18, + "value": 5855106301952.0, + "norm_ratio": 1.8565362539199544e-19, + "probe_seconds": 5.914080399998056, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 9, + "ce_grad_norm": 1.167998194694519, + "penalty_grad_norm": 2.1537623831724413e+19, + "value": 32228790763520.0, + "norm_ratio": 5.423059683000338e-20, + "probe_seconds": 6.2061707000029855, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 10, + "ce_grad_norm": 1.1549506187438965, + "penalty_grad_norm": 1.2663927538607718e+19, + "value": 27836349939712.0, + "norm_ratio": 9.12000337354167e-20, + "probe_seconds": 6.111348800000997, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 11, + "ce_grad_norm": 1.0679398775100708, + "penalty_grad_norm": 5.172649748649782e+19, + "value": 83065531531264.0, + "norm_ratio": 2.064589580589398e-20, + "probe_seconds": 6.134617499999877, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 12, + "ce_grad_norm": 1.2423405647277832, + "penalty_grad_norm": 4.519667255084921e+19, + "value": 40152789417984.0, + "norm_ratio": 2.7487434242644055e-20, + "probe_seconds": 6.022774100001698, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 13, + "ce_grad_norm": 1.177032709121704, + "penalty_grad_norm": 2.6147074281208077e+20, + "value": 137183746850816.0, + "norm_ratio": 4.501584752706495e-21, + "probe_seconds": 5.9077686999989965, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 14, + "ce_grad_norm": 1.1937261819839478, + "penalty_grad_norm": 7.480117052732963e+19, + "value": 202575806726144.0, + "norm_ratio": 1.595865644305397e-20, + "probe_seconds": 6.179321399999026, + "peak_allocated_mib": 6354.27197265625 + }, + { + "draw": 15, + "ce_grad_norm": 1.1019200086593628, + "penalty_grad_norm": 6.702447510817866e+18, + "value": 7641613991936.0, + "norm_ratio": 1.6440561554280656e-19, + "probe_seconds": 6.32930209999904, + "peak_allocated_mib": 6354.27197265625 + } + ] +} diff --git a/research/results/calibration/abstracts-trace-fp64.json b/research/results/calibration/abstracts-trace-fp64.json index ce5c80c8a850454c061ad67a268fe5cf766bf5e6..746d5cbe7dd3fff5f6caacb3efb938d5872ca2a0 100644 --- a/research/results/calibration/abstracts-trace-fp64.json +++ b/research/results/calibration/abstracts-trace-fp64.json @@ -1,155 +1,155 @@ -{ - "stage": "abstracts", - "kind": "trace", - "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", - "unit_lambda": 1.4108895021963894e-06, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.1272474527359009, - "penalty_grad_norm": 3370046.1492063417, - "value": -3481.4100292584967, - "norm_ratio": 3.3449021254541923e-07, - "probe_seconds": 20.90609720000066, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 1, - "ce_grad_norm": 1.1757105588912964, - "penalty_grad_norm": 918311.9940387454, - "value": 508.50755539409545, - "norm_ratio": 1.280295331568642e-06, - "probe_seconds": 20.892720899995766, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 2, - "ce_grad_norm": 1.2021815776824951, - "penalty_grad_norm": 856506.1271732784, - "value": 492.10978539559653, - "norm_ratio": 1.4035878314730184e-06, - "probe_seconds": 20.945929999994405, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 3, - "ce_grad_norm": 1.0702996253967285, - "penalty_grad_norm": 3254291.427390734, - "value": 2108.2445766934343, - "norm_ratio": 3.288886841504808e-07, - "probe_seconds": 19.98357599999872, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 4, - "ce_grad_norm": 1.181842565536499, - "penalty_grad_norm": 826890.9293277087, - "value": 661.7646994502134, - "norm_ratio": 1.4292605271379364e-06, - "probe_seconds": 19.82034659999772, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 5, - "ce_grad_norm": 1.2219445705413818, - "penalty_grad_norm": 695204.2502946198, - "value": 2172.5532248867735, - "norm_ratio": 1.7576770711967531e-06, - "probe_seconds": 20.06851530000131, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 6, - "ce_grad_norm": 1.1192132234573364, - "penalty_grad_norm": 821699.0938247484, - "value": 2726.8879479238167, - "norm_ratio": 1.3620718726215874e-06, - "probe_seconds": 19.777514400004293, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 7, - "ce_grad_norm": 1.0118643045425415, - "penalty_grad_norm": 825171.4809610988, - "value": -162.77042137984608, - "norm_ratio": 1.2262473048195955e-06, - "probe_seconds": 20.30562519999512, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 8, - "ce_grad_norm": 1.225813627243042, - "penalty_grad_norm": 756465.6652372974, - "value": 573.8410786867246, - "norm_ratio": 1.6204484665652522e-06, - "probe_seconds": 19.653158600005554, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 9, - "ce_grad_norm": 1.167998194694519, - "penalty_grad_norm": 565945.088193984, - "value": 1798.6154788158046, - "norm_ratio": 2.0638012751763198e-06, - "probe_seconds": 19.630203799999435, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 10, - "ce_grad_norm": 1.1549506187438965, - "penalty_grad_norm": 1136579.3897754704, - "value": 1022.4141925362092, - "norm_ratio": 1.0161636126201931e-06, - "probe_seconds": 20.03409520000423, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 11, - "ce_grad_norm": 1.0679398775100708, - "penalty_grad_norm": 705232.445808204, - "value": 1582.784679582223, - "norm_ratio": 1.5143090535010767e-06, - "probe_seconds": 20.011888400003954, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 12, - "ce_grad_norm": 1.2423405647277832, - "penalty_grad_norm": 752557.6046642709, - "value": -162.4794033049803, - "norm_ratio": 1.6508245442314187e-06, - "probe_seconds": 19.184368899994297, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 13, - "ce_grad_norm": 1.177032709121704, - "penalty_grad_norm": 1289948.7250365545, - "value": 593.0691627475799, - "norm_ratio": 9.124647253621258e-07, - "probe_seconds": 20.226411999996344, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 14, - "ce_grad_norm": 1.1937261819839478, - "penalty_grad_norm": 550792.4926882096, - "value": -373.77998289434726, - "norm_ratio": 2.16728840322028e-06, - "probe_seconds": 19.762391600001138, - "peak_allocated_mib": 1552.23583984375 - }, - { - "draw": 15, - "ce_grad_norm": 1.1019200086593628, - "penalty_grad_norm": 776989.7526514278, - "value": 2661.0161179994543, - "norm_ratio": 1.4181911729197602e-06, - "probe_seconds": 20.42624870000145, - "peak_allocated_mib": 1552.23583984375 - } - ], - "derivative_device": "cpu", - "derivative_dtype": "float64", - "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b" -} +{ + "stage": "abstracts", + "kind": "trace", + "data_manifest_sha256": "0638bd23a7d1dc3ecb9138074ecd922211df2637f60736ddfab7e9aec0b3ccb9", + "unit_lambda": 1.4108895021963894e-06, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.1272474527359009, + "penalty_grad_norm": 3370046.1492063417, + "value": -3481.4100292584967, + "norm_ratio": 3.3449021254541923e-07, + "probe_seconds": 20.90609720000066, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 1, + "ce_grad_norm": 1.1757105588912964, + "penalty_grad_norm": 918311.9940387454, + "value": 508.50755539409545, + "norm_ratio": 1.280295331568642e-06, + "probe_seconds": 20.892720899995766, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 2, + "ce_grad_norm": 1.2021815776824951, + "penalty_grad_norm": 856506.1271732784, + "value": 492.10978539559653, + "norm_ratio": 1.4035878314730184e-06, + "probe_seconds": 20.945929999994405, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 3, + "ce_grad_norm": 1.0702996253967285, + "penalty_grad_norm": 3254291.427390734, + "value": 2108.2445766934343, + "norm_ratio": 3.288886841504808e-07, + "probe_seconds": 19.98357599999872, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 4, + "ce_grad_norm": 1.181842565536499, + "penalty_grad_norm": 826890.9293277087, + "value": 661.7646994502134, + "norm_ratio": 1.4292605271379364e-06, + "probe_seconds": 19.82034659999772, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 5, + "ce_grad_norm": 1.2219445705413818, + "penalty_grad_norm": 695204.2502946198, + "value": 2172.5532248867735, + "norm_ratio": 1.7576770711967531e-06, + "probe_seconds": 20.06851530000131, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 6, + "ce_grad_norm": 1.1192132234573364, + "penalty_grad_norm": 821699.0938247484, + "value": 2726.8879479238167, + "norm_ratio": 1.3620718726215874e-06, + "probe_seconds": 19.777514400004293, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 7, + "ce_grad_norm": 1.0118643045425415, + "penalty_grad_norm": 825171.4809610988, + "value": -162.77042137984608, + "norm_ratio": 1.2262473048195955e-06, + "probe_seconds": 20.30562519999512, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 8, + "ce_grad_norm": 1.225813627243042, + "penalty_grad_norm": 756465.6652372974, + "value": 573.8410786867246, + "norm_ratio": 1.6204484665652522e-06, + "probe_seconds": 19.653158600005554, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 9, + "ce_grad_norm": 1.167998194694519, + "penalty_grad_norm": 565945.088193984, + "value": 1798.6154788158046, + "norm_ratio": 2.0638012751763198e-06, + "probe_seconds": 19.630203799999435, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 10, + "ce_grad_norm": 1.1549506187438965, + "penalty_grad_norm": 1136579.3897754704, + "value": 1022.4141925362092, + "norm_ratio": 1.0161636126201931e-06, + "probe_seconds": 20.03409520000423, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 11, + "ce_grad_norm": 1.0679398775100708, + "penalty_grad_norm": 705232.445808204, + "value": 1582.784679582223, + "norm_ratio": 1.5143090535010767e-06, + "probe_seconds": 20.011888400003954, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 12, + "ce_grad_norm": 1.2423405647277832, + "penalty_grad_norm": 752557.6046642709, + "value": -162.4794033049803, + "norm_ratio": 1.6508245442314187e-06, + "probe_seconds": 19.184368899994297, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 13, + "ce_grad_norm": 1.177032709121704, + "penalty_grad_norm": 1289948.7250365545, + "value": 593.0691627475799, + "norm_ratio": 9.124647253621258e-07, + "probe_seconds": 20.226411999996344, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 14, + "ce_grad_norm": 1.1937261819839478, + "penalty_grad_norm": 550792.4926882096, + "value": -373.77998289434726, + "norm_ratio": 2.16728840322028e-06, + "probe_seconds": 19.762391600001138, + "peak_allocated_mib": 1552.23583984375 + }, + { + "draw": 15, + "ce_grad_norm": 1.1019200086593628, + "penalty_grad_norm": 776989.7526514278, + "value": 2661.0161179994543, + "norm_ratio": 1.4181911729197602e-06, + "probe_seconds": 20.42624870000145, + "peak_allocated_mib": 1552.23583984375 + } + ], + "derivative_device": "cpu", + "derivative_dtype": "float64", + "initial_trainable_sha256": "1c45ca4d5b3a6cd1b53eadaa7df8af15e21a040a8a61aa7f0e91d1b6f019320b" +} diff --git a/research/results/calibration/stories-hessian_norm.json b/research/results/calibration/stories-hessian_norm.json index a7c9e19851c23554ea8c66ad79170dcd3ce9ec65..ece46b417e8c6ffc1a5c69ce22f9a5cccc491b4c 100644 --- a/research/results/calibration/stories-hessian_norm.json +++ b/research/results/calibration/stories-hessian_norm.json @@ -1,120 +1,120 @@ -{ - "stage": "stories", - "kind": "hessian_norm", - "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", - "unit_lambda": 1.2084851218274768e-07, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.8594133853912354, - "penalty_grad_norm": 12260503.0, - "value": 369721.78125, - "norm_ratio": 1.5165881737406983e-07 - }, - { - "draw": 1, - "ce_grad_norm": 1.8862839937210083, - "penalty_grad_norm": 12331087.0, - "value": 401467.9375, - "norm_ratio": 1.529698066132376e-07 - }, - { - "draw": 2, - "ce_grad_norm": 1.9330261945724487, - "penalty_grad_norm": 10037809.0, - "value": 332041.3125, - "norm_ratio": 1.9257451447546458e-07 - }, - { - "draw": 3, - "ce_grad_norm": 1.7213722467422485, - "penalty_grad_norm": 14597002.0, - "value": 411828.6875, - "norm_ratio": 1.1792642398365422e-07 - }, - { - "draw": 4, - "ce_grad_norm": 1.973175048828125, - "penalty_grad_norm": 26946792.0, - "value": 709880.5625, - "norm_ratio": 7.322485915310903e-08 - }, - { - "draw": 5, - "ce_grad_norm": 1.9239611625671387, - "penalty_grad_norm": 15480065.0, - "value": 458089.9375, - "norm_ratio": 1.2428637493234935e-07 - }, - { - "draw": 6, - "ce_grad_norm": 1.6888813972473145, - "penalty_grad_norm": 16704530.0, - "value": 480294.125, - "norm_ratio": 1.0110319759055264e-07 - }, - { - "draw": 7, - "ce_grad_norm": 1.9961191415786743, - "penalty_grad_norm": 14757962.0, - "value": 384538.4375, - "norm_ratio": 1.352570999694046e-07 - }, - { - "draw": 8, - "ce_grad_norm": 1.9122741222381592, - "penalty_grad_norm": 17922038.0, - "value": 538888.9375, - "norm_ratio": 1.0669959087455116e-07 - }, - { - "draw": 9, - "ce_grad_norm": 1.7994054555892944, - "penalty_grad_norm": 14538230.0, - "value": 478824.1875, - "norm_ratio": 1.2377060038184114e-07 - }, - { - "draw": 10, - "ce_grad_norm": 1.715667963027954, - "penalty_grad_norm": 11071290.0, - "value": 339602.8125, - "norm_ratio": 1.5496549751907448e-07 - }, - { - "draw": 11, - "ce_grad_norm": 1.8957918882369995, - "penalty_grad_norm": 14903205.0, - "value": 462289.78125, - "norm_ratio": 1.2720699260575154e-07 - }, - { - "draw": 12, - "ce_grad_norm": 1.9307152032852173, - "penalty_grad_norm": 21302164.0, - "value": 623382.4375, - "norm_ratio": 9.06346981126057e-08 - }, - { - "draw": 13, - "ce_grad_norm": 2.0412609577178955, - "penalty_grad_norm": 20495564.0, - "value": 508889.8125, - "norm_ratio": 9.959525669641956e-08 - }, - { - "draw": 14, - "ce_grad_norm": 1.8266390562057495, - "penalty_grad_norm": 19839926.0, - "value": 524583.625, - "norm_ratio": 9.206884421876118e-08 - }, - { - "draw": 15, - "ce_grad_norm": 1.7700668573379517, - "penalty_grad_norm": 20781176.0, - "value": 541967.8125, - "norm_ratio": 8.517645283105979e-08 - } - ] -} +{ + "stage": "stories", + "kind": "hessian_norm", + "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", + "unit_lambda": 1.2084851218274768e-07, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.8594133853912354, + "penalty_grad_norm": 12260503.0, + "value": 369721.78125, + "norm_ratio": 1.5165881737406983e-07 + }, + { + "draw": 1, + "ce_grad_norm": 1.8862839937210083, + "penalty_grad_norm": 12331087.0, + "value": 401467.9375, + "norm_ratio": 1.529698066132376e-07 + }, + { + "draw": 2, + "ce_grad_norm": 1.9330261945724487, + "penalty_grad_norm": 10037809.0, + "value": 332041.3125, + "norm_ratio": 1.9257451447546458e-07 + }, + { + "draw": 3, + "ce_grad_norm": 1.7213722467422485, + "penalty_grad_norm": 14597002.0, + "value": 411828.6875, + "norm_ratio": 1.1792642398365422e-07 + }, + { + "draw": 4, + "ce_grad_norm": 1.973175048828125, + "penalty_grad_norm": 26946792.0, + "value": 709880.5625, + "norm_ratio": 7.322485915310903e-08 + }, + { + "draw": 5, + "ce_grad_norm": 1.9239611625671387, + "penalty_grad_norm": 15480065.0, + "value": 458089.9375, + "norm_ratio": 1.2428637493234935e-07 + }, + { + "draw": 6, + "ce_grad_norm": 1.6888813972473145, + "penalty_grad_norm": 16704530.0, + "value": 480294.125, + "norm_ratio": 1.0110319759055264e-07 + }, + { + "draw": 7, + "ce_grad_norm": 1.9961191415786743, + "penalty_grad_norm": 14757962.0, + "value": 384538.4375, + "norm_ratio": 1.352570999694046e-07 + }, + { + "draw": 8, + "ce_grad_norm": 1.9122741222381592, + "penalty_grad_norm": 17922038.0, + "value": 538888.9375, + "norm_ratio": 1.0669959087455116e-07 + }, + { + "draw": 9, + "ce_grad_norm": 1.7994054555892944, + "penalty_grad_norm": 14538230.0, + "value": 478824.1875, + "norm_ratio": 1.2377060038184114e-07 + }, + { + "draw": 10, + "ce_grad_norm": 1.715667963027954, + "penalty_grad_norm": 11071290.0, + "value": 339602.8125, + "norm_ratio": 1.5496549751907448e-07 + }, + { + "draw": 11, + "ce_grad_norm": 1.8957918882369995, + "penalty_grad_norm": 14903205.0, + "value": 462289.78125, + "norm_ratio": 1.2720699260575154e-07 + }, + { + "draw": 12, + "ce_grad_norm": 1.9307152032852173, + "penalty_grad_norm": 21302164.0, + "value": 623382.4375, + "norm_ratio": 9.06346981126057e-08 + }, + { + "draw": 13, + "ce_grad_norm": 2.0412609577178955, + "penalty_grad_norm": 20495564.0, + "value": 508889.8125, + "norm_ratio": 9.959525669641956e-08 + }, + { + "draw": 14, + "ce_grad_norm": 1.8266390562057495, + "penalty_grad_norm": 19839926.0, + "value": 524583.625, + "norm_ratio": 9.206884421876118e-08 + }, + { + "draw": 15, + "ce_grad_norm": 1.7700668573379517, + "penalty_grad_norm": 20781176.0, + "value": 541967.8125, + "norm_ratio": 8.517645283105979e-08 + } + ] +} diff --git a/research/results/calibration/stories-third.json b/research/results/calibration/stories-third.json index c08e9952078620e55a73ea66581bb4440e4ef7e7..be9f77aff328f1b2e0c33f6cd109df6c6c6bda77 100644 --- a/research/results/calibration/stories-third.json +++ b/research/results/calibration/stories-third.json @@ -1,120 +1,120 @@ -{ - "stage": "stories", - "kind": "third", - "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", - "unit_lambda": 3.0190450056526333e-12, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.8594133853912354, - "penalty_grad_norm": 519103250432.0, - "value": 11725321216.0, - "norm_ratio": 3.5819721487850893e-12 - }, - { - "draw": 1, - "ce_grad_norm": 1.8862839937210083, - "penalty_grad_norm": 515902373888.0, - "value": 12627647488.0, - "norm_ratio": 3.656280895754342e-12 - }, - { - "draw": 2, - "ce_grad_norm": 1.9330261945724487, - "penalty_grad_norm": 379660173312.0, - "value": 9509878784.0, - "norm_ratio": 5.091464236845069e-12 - }, - { - "draw": 3, - "ce_grad_norm": 1.7213722467422485, - "penalty_grad_norm": 530546753536.0, - "value": 11880067072.0, - "norm_ratio": 3.2445250777044772e-12 - }, - { - "draw": 4, - "ce_grad_norm": 1.973175048828125, - "penalty_grad_norm": 1305190203392.0, - "value": 26059016192.0, - "norm_ratio": 1.5117911885180637e-12 - }, - { - "draw": 5, - "ce_grad_norm": 1.9239611625671387, - "penalty_grad_norm": 738469019648.0, - "value": 15367791616.0, - "norm_ratio": 2.605337680224172e-12 - }, - { - "draw": 6, - "ce_grad_norm": 1.6888813972473145, - "penalty_grad_norm": 777386262528.0, - "value": 17027704832.0, - "norm_ratio": 2.1725125316148537e-12 - }, - { - "draw": 7, - "ce_grad_norm": 1.9961191415786743, - "penalty_grad_norm": 574304550912.0, - "value": 12149370880.0, - "norm_ratio": 3.475715347212245e-12 - }, - { - "draw": 8, - "ce_grad_norm": 1.9122741222381592, - "penalty_grad_norm": 659674234880.0, - "value": 15858259968.0, - "norm_ratio": 2.898815841406959e-12 - }, - { - "draw": 9, - "ce_grad_norm": 1.7994054555892944, - "penalty_grad_norm": 560860889088.0, - "value": 14235353088.0, - "norm_ratio": 3.208291914444697e-12 - }, - { - "draw": 10, - "ce_grad_norm": 1.715667963027954, - "penalty_grad_norm": 492194889728.0, - "value": 11374327808.0, - "norm_ratio": 3.4857492404605785e-12 - }, - { - "draw": 11, - "ce_grad_norm": 1.8957918882369995, - "penalty_grad_norm": 603894972416.0, - "value": 14475069440.0, - "norm_ratio": 3.1392741698983072e-12 - }, - { - "draw": 12, - "ce_grad_norm": 1.9307152032852173, - "penalty_grad_norm": 1069936279552.0, - "value": 24205223936.0, - "norm_ratio": 1.8045141941477484e-12 - }, - { - "draw": 13, - "ce_grad_norm": 2.0412609577178955, - "penalty_grad_norm": 756712144896.0, - "value": 15450195968.0, - "norm_ratio": 2.697539574970664e-12 - }, - { - "draw": 14, - "ce_grad_norm": 1.8266390562057495, - "penalty_grad_norm": 828804038656.0, - "value": 17613680640.0, - "norm_ratio": 2.2039456506122393e-12 - }, - { - "draw": 15, - "ce_grad_norm": 1.7700668573379517, - "penalty_grad_norm": 864454377472.0, - "value": 18475622400.0, - "norm_ratio": 2.047611653624005e-12 - } - ] -} +{ + "stage": "stories", + "kind": "third", + "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", + "unit_lambda": 3.0190450056526333e-12, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.8594133853912354, + "penalty_grad_norm": 519103250432.0, + "value": 11725321216.0, + "norm_ratio": 3.5819721487850893e-12 + }, + { + "draw": 1, + "ce_grad_norm": 1.8862839937210083, + "penalty_grad_norm": 515902373888.0, + "value": 12627647488.0, + "norm_ratio": 3.656280895754342e-12 + }, + { + "draw": 2, + "ce_grad_norm": 1.9330261945724487, + "penalty_grad_norm": 379660173312.0, + "value": 9509878784.0, + "norm_ratio": 5.091464236845069e-12 + }, + { + "draw": 3, + "ce_grad_norm": 1.7213722467422485, + "penalty_grad_norm": 530546753536.0, + "value": 11880067072.0, + "norm_ratio": 3.2445250777044772e-12 + }, + { + "draw": 4, + "ce_grad_norm": 1.973175048828125, + "penalty_grad_norm": 1305190203392.0, + "value": 26059016192.0, + "norm_ratio": 1.5117911885180637e-12 + }, + { + "draw": 5, + "ce_grad_norm": 1.9239611625671387, + "penalty_grad_norm": 738469019648.0, + "value": 15367791616.0, + "norm_ratio": 2.605337680224172e-12 + }, + { + "draw": 6, + "ce_grad_norm": 1.6888813972473145, + "penalty_grad_norm": 777386262528.0, + "value": 17027704832.0, + "norm_ratio": 2.1725125316148537e-12 + }, + { + "draw": 7, + "ce_grad_norm": 1.9961191415786743, + "penalty_grad_norm": 574304550912.0, + "value": 12149370880.0, + "norm_ratio": 3.475715347212245e-12 + }, + { + "draw": 8, + "ce_grad_norm": 1.9122741222381592, + "penalty_grad_norm": 659674234880.0, + "value": 15858259968.0, + "norm_ratio": 2.898815841406959e-12 + }, + { + "draw": 9, + "ce_grad_norm": 1.7994054555892944, + "penalty_grad_norm": 560860889088.0, + "value": 14235353088.0, + "norm_ratio": 3.208291914444697e-12 + }, + { + "draw": 10, + "ce_grad_norm": 1.715667963027954, + "penalty_grad_norm": 492194889728.0, + "value": 11374327808.0, + "norm_ratio": 3.4857492404605785e-12 + }, + { + "draw": 11, + "ce_grad_norm": 1.8957918882369995, + "penalty_grad_norm": 603894972416.0, + "value": 14475069440.0, + "norm_ratio": 3.1392741698983072e-12 + }, + { + "draw": 12, + "ce_grad_norm": 1.9307152032852173, + "penalty_grad_norm": 1069936279552.0, + "value": 24205223936.0, + "norm_ratio": 1.8045141941477484e-12 + }, + { + "draw": 13, + "ce_grad_norm": 2.0412609577178955, + "penalty_grad_norm": 756712144896.0, + "value": 15450195968.0, + "norm_ratio": 2.697539574970664e-12 + }, + { + "draw": 14, + "ce_grad_norm": 1.8266390562057495, + "penalty_grad_norm": 828804038656.0, + "value": 17613680640.0, + "norm_ratio": 2.2039456506122393e-12 + }, + { + "draw": 15, + "ce_grad_norm": 1.7700668573379517, + "penalty_grad_norm": 864454377472.0, + "value": 18475622400.0, + "norm_ratio": 2.047611653624005e-12 + } + ] +} diff --git a/research/results/calibration/stories-trace.json b/research/results/calibration/stories-trace.json index 15b059168583d366114f11d6928e2a90bd5d6ac7..3d7f10c18fca38f4e7214322b36273c6341ab4a6 100644 --- a/research/results/calibration/stories-trace.json +++ b/research/results/calibration/stories-trace.json @@ -1,120 +1,120 @@ -{ - "stage": "stories", - "kind": "trace", - "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", - "unit_lambda": 9.169227719425724e-06, - "draws": [ - { - "draw": 0, - "ce_grad_norm": 1.8594133853912354, - "penalty_grad_norm": 186249.625, - "value": -334.42388916015625, - "norm_ratio": 9.983447673471748e-06 - }, - { - "draw": 1, - "ce_grad_norm": 1.8862839937210083, - "penalty_grad_norm": 197115.90625, - "value": -616.0680541992188, - "norm_ratio": 9.569415424692589e-06 - }, - { - "draw": 2, - "ce_grad_norm": 1.9330261945724487, - "penalty_grad_norm": 180471.015625, - "value": -176.06814575195312, - "norm_ratio": 1.0711006351230805e-05 - }, - { - "draw": 3, - "ce_grad_norm": 1.7213722467422485, - "penalty_grad_norm": 196235.203125, - "value": -512.5416259765625, - "norm_ratio": 8.771984941181784e-06 - }, - { - "draw": 4, - "ce_grad_norm": 1.973175048828125, - "penalty_grad_norm": 291937.09375, - "value": -2061.29345703125, - "norm_ratio": 6.758904884207182e-06 - }, - { - "draw": 5, - "ce_grad_norm": 1.9239611625671387, - "penalty_grad_norm": 201115.046875, - "value": 500.76165771484375, - "norm_ratio": 9.566470497669662e-06 - }, - { - "draw": 6, - "ce_grad_norm": 1.6888813972473145, - "penalty_grad_norm": 203298.359375, - "value": 1280.970458984375, - "norm_ratio": 8.3074029836711e-06 - }, - { - "draw": 7, - "ce_grad_norm": 1.9961191415786743, - "penalty_grad_norm": 189340.515625, - "value": 1325.123291015625, - "norm_ratio": 1.054248286474568e-05 - }, - { - "draw": 8, - "ce_grad_norm": 1.9122741222381592, - "penalty_grad_norm": 264787.59375, - "value": 3059.76513671875, - "norm_ratio": 7.221917368393168e-06 - }, - { - "draw": 9, - "ce_grad_norm": 1.7994054555892944, - "penalty_grad_norm": 216438.828125, - "value": -1646.465087890625, - "norm_ratio": 8.313690621860525e-06 - }, - { - "draw": 10, - "ce_grad_norm": 1.715667963027954, - "penalty_grad_norm": 169374.46875, - "value": -163.3439483642578, - "norm_ratio": 1.0129436719062502e-05 - }, - { - "draw": 11, - "ce_grad_norm": 1.8957918882369995, - "penalty_grad_norm": 188911.40625, - "value": -122.56817626953125, - "norm_ratio": 1.0035348981141787e-05 - }, - { - "draw": 12, - "ce_grad_norm": 1.9307152032852173, - "penalty_grad_norm": 257262.65625, - "value": -1911.4732666015625, - "norm_ratio": 7.504840505918617e-06 - }, - { - "draw": 13, - "ce_grad_norm": 2.0412609577178955, - "penalty_grad_norm": 208850.5, - "value": 960.7899169921875, - "norm_ratio": 9.773790140401366e-06 - }, - { - "draw": 14, - "ce_grad_norm": 1.8266390562057495, - "penalty_grad_norm": 212664.125, - "value": 98.17648315429688, - "norm_ratio": 8.589314517461512e-06 - }, - { - "draw": 15, - "ce_grad_norm": 1.7700668573379517, - "penalty_grad_norm": 233224.90625, - "value": 2022.22021484375, - "norm_ratio": 7.58952757575801e-06 - } - ] -} +{ + "stage": "stories", + "kind": "trace", + "data_manifest_sha256": "f61dcd6d63f102755b2705140b274b65fc870c3cded3961845ca5ed51e1a6d00", + "unit_lambda": 9.169227719425724e-06, + "draws": [ + { + "draw": 0, + "ce_grad_norm": 1.8594133853912354, + "penalty_grad_norm": 186249.625, + "value": -334.42388916015625, + "norm_ratio": 9.983447673471748e-06 + }, + { + "draw": 1, + "ce_grad_norm": 1.8862839937210083, + "penalty_grad_norm": 197115.90625, + "value": -616.0680541992188, + "norm_ratio": 9.569415424692589e-06 + }, + { + "draw": 2, + "ce_grad_norm": 1.9330261945724487, + "penalty_grad_norm": 180471.015625, + "value": -176.06814575195312, + "norm_ratio": 1.0711006351230805e-05 + }, + { + "draw": 3, + "ce_grad_norm": 1.7213722467422485, + "penalty_grad_norm": 196235.203125, + "value": -512.5416259765625, + "norm_ratio": 8.771984941181784e-06 + }, + { + "draw": 4, + "ce_grad_norm": 1.973175048828125, + "penalty_grad_norm": 291937.09375, + "value": -2061.29345703125, + "norm_ratio": 6.758904884207182e-06 + }, + { + "draw": 5, + "ce_grad_norm": 1.9239611625671387, + "penalty_grad_norm": 201115.046875, + "value": 500.76165771484375, + "norm_ratio": 9.566470497669662e-06 + }, + { + "draw": 6, + "ce_grad_norm": 1.6888813972473145, + "penalty_grad_norm": 203298.359375, + "value": 1280.970458984375, + "norm_ratio": 8.3074029836711e-06 + }, + { + "draw": 7, + "ce_grad_norm": 1.9961191415786743, + "penalty_grad_norm": 189340.515625, + "value": 1325.123291015625, + "norm_ratio": 1.054248286474568e-05 + }, + { + "draw": 8, + "ce_grad_norm": 1.9122741222381592, + "penalty_grad_norm": 264787.59375, + "value": 3059.76513671875, + "norm_ratio": 7.221917368393168e-06 + }, + { + "draw": 9, + "ce_grad_norm": 1.7994054555892944, + "penalty_grad_norm": 216438.828125, + "value": -1646.465087890625, + "norm_ratio": 8.313690621860525e-06 + }, + { + "draw": 10, + "ce_grad_norm": 1.715667963027954, + "penalty_grad_norm": 169374.46875, + "value": -163.3439483642578, + "norm_ratio": 1.0129436719062502e-05 + }, + { + "draw": 11, + "ce_grad_norm": 1.8957918882369995, + "penalty_grad_norm": 188911.40625, + "value": -122.56817626953125, + "norm_ratio": 1.0035348981141787e-05 + }, + { + "draw": 12, + "ce_grad_norm": 1.9307152032852173, + "penalty_grad_norm": 257262.65625, + "value": -1911.4732666015625, + "norm_ratio": 7.504840505918617e-06 + }, + { + "draw": 13, + "ce_grad_norm": 2.0412609577178955, + "penalty_grad_norm": 208850.5, + "value": 960.7899169921875, + "norm_ratio": 9.773790140401366e-06 + }, + { + "draw": 14, + "ce_grad_norm": 1.8266390562057495, + "penalty_grad_norm": 212664.125, + "value": 98.17648315429688, + "norm_ratio": 8.589314517461512e-06 + }, + { + "draw": 15, + "ce_grad_norm": 1.7700668573379517, + "penalty_grad_norm": 233224.90625, + "value": 2022.22021484375, + "norm_ratio": 7.58952757575801e-06 + } + ] +} diff --git a/research/results/datasets/abstracts.json b/research/results/datasets/abstracts.json index 4982ed8f1336db828aee67132108b85921430b4c..b9ebcb0fc28c91fae0e188cdcb88928662c61b55 100644 --- a/research/results/datasets/abstracts.json +++ b/research/results/datasets/abstracts.json @@ -1,121 +1,121 @@ -{ - "artifacts": { - "dev.bin": { - "bytes": 10248144, - "sha256": "d736e75fe6fa49850931d5583eb1bf8566d488481e607fc58123332a0fc8edbb" - }, - "documents.jsonl": { - "bytes": 21401183, - "sha256": "269cccad3fd2bf807d635f64dfa85b3a0291f11e72a4b768a25ea55d538a3e59" - }, - "rejections.jsonl": { - "bytes": 754, - "sha256": "a988d7e03b2fed002b7b3c69b6f845067a66988454f697c8e31a6445beec8598" - }, - "test.bin": { - "bytes": 9825976, - "sha256": "12d79d9dae4ccdc631b0091d8e48046ef27cd42c2620e6da6809812c5bde45ee" - }, - "tokenizer.json": { - "bytes": 2113710, - "sha256": "c24618a1b3e6a38167beff1c72cffd126c3a66254347304b50547d12c5f25624" - }, - "train.bin": { - "bytes": 37234472, - "sha256": "34a806ba704a887d6bb048302d1da09f7fdab12b0d588c65e548b37948ea5448" - } - }, - "audit": { - "dev": { - "cross_split_near": 0, - "empty": 0, - "exact": 0, - "input": 21115, - "kept": 21115 - }, - "test": { - "cross_split_near": 0, - "empty": 0, - "exact": 0, - "input": 20199, - "kept": 20199 - }, - "train": { - "cross_split_near": 2, - "empty": 0, - "exact": 2, - "input": 77185, - "kept": 77181 - } - }, - "dtype": " 0 for d in ordered) - discordant = wins + losses - # Exact upper binomial tail under fair signs conditional on discordant pairs. - # https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html - p_raw = sum(comb(discordant, k) for k in range(wins, discordant + 1)) / 2**discordant - - # If m is a continuous population median, #{observations < m} has Bin(n, 1/2) law. - # Choose the narrowest symmetric order-statistic interval meeting the registered level. - # Equations 29–30: https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2119.pdf - n = len(ordered) - rank = 0 - discarded = 0 - coverage = 1.0 - for k in range(n // 2): - discarded += comb(n, k) - candidate = 1 - 2 * discarded / 2**n - if candidate < 0.95: - break - rank, coverage = k + 1, candidate - # The registered eight pairs admit a finite interval; expose unbounded ends for small n. - interval = [ordered[rank - 1], ordered[-rank]] if rank else [None, None] - return { - "pairs": pairs, "median_delta": median(ordered), "median_ci": interval, - "ci_coverage": coverage, "wins": wins, "ties": n - discordant, "losses": losses, - "p_raw": p_raw, - } - - -def _time_match(seed, records, clock="train_seconds"): - """Look backward from the shortest complete training run to actual validation evaluations.""" - runs = {method: records[seed, method] for method in _METHODS} - if any(not _number(run.get(clock)) or run[clock] <= 0 for run in runs.values()): - return None - cutoff = min(run[clock] for run in runs.values()) - # Production logs evaluate fixed windows at each diagnostic, including the final step. - # Older homogeneous result files have a single dev_nll field for the same population. - fixed_windows = any("matched_dev_nll" in run for run in runs.values()) - summary_field = "matched_dev_nll" if fixed_windows else "dev_nll" - matched = {} - for method, run in runs.items(): - events = list(run.get("events") or []) - final = run.get("status") not in {"configured", "in progress", "training", "failed", "initializing", "scoring development"} - if final and _number(run.get(summary_field)): - events.append({ - "tokens": run["tokens"], "train_seconds": run["train_seconds"], clock:run[clock], - "dev_nll": run[summary_field], - }) - eligible = [ - event for event in events - if _number(event.get(clock)) and 0 <= event[clock] <= cutoff - and _number(event.get("dev_nll")) and event["dev_nll"] >= 0 - and _number(event.get("tokens")) and event["tokens"] >= 0 - ] - if not eligible: - return None - # max() takes the first equal timestamp, giving a real event priority over its summary. - event = max(eligible, key=lambda x: x[clock]) - matched[method] = {key: event[key] for key in ("tokens", "train_seconds", "dev_nll")} - matched[method]["clock_seconds"] = event[clock] - matched[method]["staleness_seconds"] = cutoff - event[clock] - return {"seed": seed, "cutoff_seconds": cutoff, "by_method": matched} - - -def _inconsistency(records): - """Check optional provenance as an all-or-none contract within a completed scored matrix.""" - for field in ("freeze_id", "test_manifest_sha256", "test_tokens"): - values = {row.get(field) for row in records.values()} - if len(values) > 1: - return f"The stage has inconsistent {field} values across final checkpoints." - for method in ("trace", "third"): - ratios = {records[seed, method].get("ratio") for seed in _SEEDS} - if len(ratios) > 1: - return f"The frozen {method} regularization ratio changes across seeds." - return None - - -def analyze_stage(summaries: list[dict], stage: str) -> dict: - """Analyze the fixed three-arm matrix after every registered checkpoint has a final score. - - Partial matrices expose progress and eligible elapsed-time development comparisons. - Duplicate rows or incompatible provenance invalidate inference for that stage. - """ - horizon = _HORIZON[stage] - result = { - "stage": stage, "status": "pending", "complete": False, "success": None, - "n_expected_seeds": len(_SEEDS), "n_complete_seeds": 0, "missing": [], - "comparisons": {}, "matched_time": [], "matched_nonhost_time": [], "reason": "Awaiting confirmatory runs.", - } - records = {} - for row in summaries: - seed, method = row.get("seed"), row.get("method") - if (row.get("stage") != stage or row.get("phase") != "confirm" or method not in _METHODS - or type(seed) is not int or seed not in _SEEDS): - continue - key = (seed, method) - if key in records: - result.update(status="invalid", reason=f"Duplicate final-run records for seed {seed}, {method}.") - return result - if row.get("target_tokens") is not None and row["target_tokens"] != horizon: - result.update(status="invalid", reason=f"The configured {method} budget differs from registration.") - return result - records[key] = row - if not records: - return result - - for seed in _SEEDS: - missing_methods = [ - method for method in _METHODS if records.get((seed, method), {}).get("tokens") != horizon - ] - if missing_methods: - result["missing"].extend(f"Seed {seed} {method} full horizon" for method in missing_methods) - else: - result["n_complete_seeds"] += 1 - timing = _time_match(seed, records) - if timing is not None: - result["matched_time"].append(timing) - if stage=="abstracts": - gpu_interval = _time_match(seed,records,"training_seconds_excluding_host_probes") - if gpu_interval is not None: - result["matched_nonhost_time"].append(gpu_interval) - if result["missing"]: - result.update(status="incomplete", reason=f"All checkpoints must reach {horizon:,} target tokens.") - return result - - # Inspect the test scores only after establishing complete training coverage. - for (seed, method), row in records.items(): - score = row.get("test_nll") - if score is None: - result["missing"].append(f"Seed {seed} {method} final test score") - elif not _number(score) or score < 0: - result.update(status="invalid", reason=f"Invalid test NLL for seed {seed}, {method}.") - return result - if result["missing"]: - result.update(status="incomplete", reason="Awaiting the complete frozen set of final test scores.") - return result - issue = _inconsistency(records) - if issue: - result.update(status="invalid", reason=issue) - return result - - comparisons = {baseline: _comparison(records, baseline) for baseline in ("ce", "trace")} - # Holm step-down: adjusted p-values are monotone in raw-p rank; ties receive equal values. - # https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html - running_max = 0.0 - for index, stats in enumerate(sorted(comparisons.values(), key=lambda item: item["p_raw"])): - running_max = max(running_max, stats["p_raw"] * (len(comparisons) - index)) - stats["p_holm"] = min(1.0, running_max) - if stats["p_holm"] <= 0.05: - stats["interpretation"] = "improved" - elif stats["median_ci"][0] > 0: - stats["interpretation"] = "adverse" - else: - stats["interpretation"] = "inconclusive" - success = all(stats["p_holm"] <= 0.05 for stats in comparisons.values()) - if success: - status, reason = "confirmed", "Both registered superiority comparisons passed." - elif any(stats["interpretation"] == "adverse" for stats in comparisons.values()): - status, reason = "adverse", "A median-difference interval favors a baseline." - else: - status, reason = "inconclusive", "The registered two-comparison superiority criterion was unmet." - result.update(status=status, complete=True, success=success, comparisons=comparisons, reason=reason) - return result +"""Registered comparisons for third-derivative training on a fixed test corpus. + +Seeds are independent experimental units. Positive deltas mean worse prediction for the +third-order method. The module consumes ordinary JSON-compatible result records so the +CLI, static report, and interactive explorer can share the same inference. +""" + +from math import comb, isfinite +from statistics import median + + +_METHODS = ("ce", "trace", "third") +_SEEDS = range(1, 9) +_HORIZON = {"stories": 2**24, "abstracts": 2**19} + + +def _number(value): + """Reject missing, boolean and nonfinite values before constructing measures or plots.""" + return isinstance(value, (int, float)) and not isinstance(value, bool) and isfinite(value) + + +def _comparison(records, baseline): + """Apply the registered paired sign test and symmetric distribution-free median interval.""" + pairs = [] + for seed in _SEEDS: + third = records[seed, "third"]["test_nll"] + other = records[seed, baseline]["test_nll"] + pairs.append({"seed": seed, "third_nll": third, "baseline_nll": other, "delta": third - other}) + + ordered = sorted(pair["delta"] for pair in pairs) + wins = sum(d < 0 for d in ordered) + losses = sum(d > 0 for d in ordered) + discordant = wins + losses + # Exact upper binomial tail under fair signs conditional on discordant pairs. + # https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binomtest.html + p_raw = sum(comb(discordant, k) for k in range(wins, discordant + 1)) / 2**discordant + + # If m is a continuous population median, #{observations < m} has Bin(n, 1/2) law. + # Choose the narrowest symmetric order-statistic interval meeting the registered level. + # Equations 29–30: https://nvlpubs.nist.gov/nistpubs/TechnicalNotes/NIST.TN.2119.pdf + n = len(ordered) + rank = 0 + discarded = 0 + coverage = 1.0 + for k in range(n // 2): + discarded += comb(n, k) + candidate = 1 - 2 * discarded / 2**n + if candidate < 0.95: + break + rank, coverage = k + 1, candidate + # The registered eight pairs admit a finite interval; expose unbounded ends for small n. + interval = [ordered[rank - 1], ordered[-rank]] if rank else [None, None] + return { + "pairs": pairs, "median_delta": median(ordered), "median_ci": interval, + "ci_coverage": coverage, "wins": wins, "ties": n - discordant, "losses": losses, + "p_raw": p_raw, + } + + +def _time_match(seed, records, clock="train_seconds"): + """Look backward from the shortest complete training run to actual validation evaluations.""" + runs = {method: records[seed, method] for method in _METHODS} + if any(not _number(run.get(clock)) or run[clock] <= 0 for run in runs.values()): + return None + cutoff = min(run[clock] for run in runs.values()) + # Production logs evaluate fixed windows at each diagnostic, including the final step. + # Older homogeneous result files have a single dev_nll field for the same population. + fixed_windows = any("matched_dev_nll" in run for run in runs.values()) + summary_field = "matched_dev_nll" if fixed_windows else "dev_nll" + matched = {} + for method, run in runs.items(): + events = list(run.get("events") or []) + final = run.get("status") not in {"configured", "in progress", "training", "failed", "initializing", "scoring development"} + if final and _number(run.get(summary_field)): + events.append({ + "tokens": run["tokens"], "train_seconds": run["train_seconds"], clock:run[clock], + "dev_nll": run[summary_field], + }) + eligible = [ + event for event in events + if _number(event.get(clock)) and 0 <= event[clock] <= cutoff + and _number(event.get("dev_nll")) and event["dev_nll"] >= 0 + and _number(event.get("tokens")) and event["tokens"] >= 0 + ] + if not eligible: + return None + # max() takes the first equal timestamp, giving a real event priority over its summary. + event = max(eligible, key=lambda x: x[clock]) + matched[method] = {key: event[key] for key in ("tokens", "train_seconds", "dev_nll")} + matched[method]["clock_seconds"] = event[clock] + matched[method]["staleness_seconds"] = cutoff - event[clock] + return {"seed": seed, "cutoff_seconds": cutoff, "by_method": matched} + + +def _inconsistency(records): + """Check optional provenance as an all-or-none contract within a completed scored matrix.""" + for field in ("freeze_id", "test_manifest_sha256", "test_tokens"): + values = {row.get(field) for row in records.values()} + if len(values) > 1: + return f"The stage has inconsistent {field} values across final checkpoints." + for method in ("trace", "third"): + ratios = {records[seed, method].get("ratio") for seed in _SEEDS} + if len(ratios) > 1: + return f"The frozen {method} regularization ratio changes across seeds." + return None + + +def analyze_stage(summaries: list[dict], stage: str) -> dict: + """Analyze the fixed three-arm matrix after every registered checkpoint has a final score. + + Partial matrices expose progress and eligible elapsed-time development comparisons. + Duplicate rows or incompatible provenance invalidate inference for that stage. + """ + horizon = _HORIZON[stage] + result = { + "stage": stage, "status": "pending", "complete": False, "success": None, + "n_expected_seeds": len(_SEEDS), "n_complete_seeds": 0, "missing": [], + "comparisons": {}, "matched_time": [], "matched_nonhost_time": [], "reason": "Awaiting confirmatory runs.", + } + records = {} + for row in summaries: + seed, method = row.get("seed"), row.get("method") + if (row.get("stage") != stage or row.get("phase") != "confirm" or method not in _METHODS + or type(seed) is not int or seed not in _SEEDS): + continue + key = (seed, method) + if key in records: + result.update(status="invalid", reason=f"Duplicate final-run records for seed {seed}, {method}.") + return result + if row.get("target_tokens") is not None and row["target_tokens"] != horizon: + result.update(status="invalid", reason=f"The configured {method} budget differs from registration.") + return result + records[key] = row + if not records: + return result + + for seed in _SEEDS: + missing_methods = [ + method for method in _METHODS if records.get((seed, method), {}).get("tokens") != horizon + ] + if missing_methods: + result["missing"].extend(f"Seed {seed} {method} full horizon" for method in missing_methods) + else: + result["n_complete_seeds"] += 1 + timing = _time_match(seed, records) + if timing is not None: + result["matched_time"].append(timing) + if stage=="abstracts": + gpu_interval = _time_match(seed,records,"training_seconds_excluding_host_probes") + if gpu_interval is not None: + result["matched_nonhost_time"].append(gpu_interval) + if result["missing"]: + result.update(status="incomplete", reason=f"All checkpoints must reach {horizon:,} target tokens.") + return result + + # Inspect the test scores only after establishing complete training coverage. + for (seed, method), row in records.items(): + score = row.get("test_nll") + if score is None: + result["missing"].append(f"Seed {seed} {method} final test score") + elif not _number(score) or score < 0: + result.update(status="invalid", reason=f"Invalid test NLL for seed {seed}, {method}.") + return result + if result["missing"]: + result.update(status="incomplete", reason="Awaiting the complete frozen set of final test scores.") + return result + issue = _inconsistency(records) + if issue: + result.update(status="invalid", reason=issue) + return result + + comparisons = {baseline: _comparison(records, baseline) for baseline in ("ce", "trace")} + # Holm step-down: adjusted p-values are monotone in raw-p rank; ties receive equal values. + # https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html + running_max = 0.0 + for index, stats in enumerate(sorted(comparisons.values(), key=lambda item: item["p_raw"])): + running_max = max(running_max, stats["p_raw"] * (len(comparisons) - index)) + stats["p_holm"] = min(1.0, running_max) + if stats["p_holm"] <= 0.05: + stats["interpretation"] = "improved" + elif stats["median_ci"][0] > 0: + stats["interpretation"] = "adverse" + else: + stats["interpretation"] = "inconclusive" + success = all(stats["p_holm"] <= 0.05 for stats in comparisons.values()) + if success: + status, reason = "confirmed", "Both registered superiority comparisons passed." + elif any(stats["interpretation"] == "adverse" for stats in comparisons.values()): + status, reason = "adverse", "A median-difference interval favors a baseline." + else: + status, reason = "inconclusive", "The registered two-comparison superiority criterion was unmet." + result.update(status=status, complete=True, success=success, comparisons=comparisons, reason=reason) + return result diff --git a/research/src/thirdloss/cli.py b/research/src/thirdloss/cli.py index 29281ed072133b1e1a30f3e923ba3a33053a59c8..faef74a76ce181cdd4df99cec88877b70d4da5b6 100644 --- a/research/src/thirdloss/cli.py +++ b/research/src/thirdloss/cli.py @@ -1,141 +1,145 @@ -"""User-facing commands for one arm, the full research pipeline, and a live local explorer.""" - -import argparse -import json -from functools import partial -from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer -from pathlib import Path - -from .records import HORIZONS, METHODS, storage_root - - -def dashboard(project, port): - """Serve the same Pages application locally with a live view of atomically recorded events.""" - from .report_records import read_json, study_snapshot - partial_calibrations=storage_root(project)/"calibration" - - class Handler(SimpleHTTPRequestHandler): - def do_GET(self): - if self.path.split("?",1)[0] == "/live.json": - study = study_snapshot(project) - for run in study["runs"]: - if run.get("status")=="initializing": - kinds={"combined":("trace","third"),"sham":("third",)}.get(run.get("method"),(run.get("method"),)) - for kind in kinds: - suffix="-fp64" if run["stage"]=="abstracts" else "" - file=partial_calibrations/f"{run['stage']}-{kind}{suffix}-draws.json" - draws=read_json(file).get("draws",[]) - if draws: - run["status"]=f"calibrating ({len(draws)}/16)" - run["calibration_progress"]={"draws_completed":len(draws),"last_draw":draws[-1]} - data = json.dumps(study,ensure_ascii=False,allow_nan=False).encode() - self.send_response(200) - self.send_header("Content-Type","application/json; charset=utf-8") - self.send_header("Cache-Control","no-store") - self.send_header("Content-Length",str(len(data))) - self.end_headers() - self.wfile.write(data) - else: - super().do_GET() - server = ThreadingHTTPServer(("127.0.0.1",port),partial(Handler,directory=str(project/"docs"))) - print(f"Live study dashboard http://127.0.0.1:{port}/",flush=True) - server.serve_forever() - - -def parser(): - p = argparse.ArgumentParser(description=__doc__) - p.add_argument("--project",type=Path,default=Path.cwd()) - parsers = p.add_subparsers(dest="action",required=True) - for action in ("prepare","train","study","freeze","evaluate","report","dashboard","publish","progress","verify"): - sub = parsers.add_parser(action) - if action in {"prepare","study"}: - sub.add_argument("--stage",choices=(*HORIZONS,"both"),default="both") - if action in {"train","freeze"}: - sub.add_argument("--stage",choices=HORIZONS,required=True) - if action in {"train","study","evaluate"}: - sub.add_argument("--device",default="cuda") - if action=="verify": - sub.add_argument("--pretrained",action="store_true",help="Also compare a full joint derivative on the prepared adapter training corpus") - sub.add_argument("--reference",action="store_true",help="Compute the FP64 pretrained reference using the original CUDA signs") - sub.add_argument("--scoring-batches",action="store_true",help="Benchmark Pythia inference grouping on training windows") - sub.add_argument("--device",default="cuda",help="Device for the optional full pretrained cross-check") - if action=="train": - sub.add_argument("--method",choices=(*METHODS,"unigram","initial"),required=True) - sub.add_argument("--phase",choices=("pilot","control","confirm","smoke"),default="pilot") - sub.add_argument("--seed",type=int,default=0) - sub.add_argument("--ratio",type=float,default=0.03) - sub.add_argument("--microbatch",type=int) - if action in {"train","study","evaluate"}: - sub.add_argument("--publish",action="store_true",help="Publish results to the configured project accounts") - if action=="evaluate": - sub.add_argument("run_id") - if action=="dashboard": - sub.add_argument("--port",type=int,default=8765) - if action=="publish": - sub.add_argument("--message",default="Update third-derivative study records") - sub.add_argument("--checkpoints",action="store_true",help="Republish the fitted checkpoints and restart states in the collection") - return p - - -def main(argv=None): - args = parser().parse_args(argv) - project = args.project.resolve() - storage = storage_root(project) - if args.action=="verify": - from .verification import verify - verify(project) - if args.pretrained: - from .probe_check import verify_pretrained - from .records import setup_device - verify_pretrained(project,setup_device(args.device)) - if args.reference: - from .precision import reference_gradient - from .records import setup_device - reference_gradient(project,setup_device(args.device)) - if args.scoring_batches: - from .probe_check import benchmark_scoring - from .records import setup_device - benchmark_scoring(project,setup_device(args.device)) - return - if args.action=="dashboard": - return dashboard(project,args.port) - if args.action in {"report","progress","publish"}: - from .progress import progress - if args.action == "progress": - print(progress(project)) - return - from .reporting import build_report - build_report(project) - progress(project) - if args.action == "publish": - from .release import publish_snapshot, publish_weights - if args.checkpoints: - from .records import read_json - for path in sorted((project/"results").glob("*/summary.json")): - publish_weights(project,storage,read_json(path)) - print(publish_snapshot(project,args.message)) - return - from .study import evaluate_one,freeze,milestone,prepare_stage,run_study - if args.action=="freeze": - print(freeze(project,storage,args.stage)["freeze_id"]) - return - stages = list(HORIZONS) if getattr(args,"stage",None)=="both" else [getattr(args,"stage",None)] - if args.action=="prepare": - for stage in stages: - prepare_stage(project,storage,stage) - return - from .records import setup_device - device = setup_device(args.device) - if args.action=="study": - run_study(project,storage,stages,device,args.publish) - return - if args.action=="evaluate": - summary = evaluate_one(project,storage,args.run_id,device) - else: - from .train import run_one - summary = run_one(project,storage,args.stage,args.method,args.phase,args.seed,args.ratio,device,args.microbatch) - milestone(project,storage,summary,args.publish) - - -if __name__=="__main__": - main() +"""User-facing commands for one arm, the full research pipeline, and a live local explorer.""" + +import argparse +import json +from functools import partial +from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer +from pathlib import Path + +from .records import HORIZONS, METHODS, storage_root + + +def dashboard(project, port): + """Serve the same Pages application locally with a live view of atomically recorded events.""" + from .report_records import read_json, study_snapshot + partial_calibrations=storage_root(project)/"calibration" + + class Handler(SimpleHTTPRequestHandler): + def do_GET(self): + if self.path.split("?",1)[0] == "/live.json": + study = study_snapshot(project) + for run in study["runs"]: + if run.get("status")=="initializing": + kinds={"combined":("trace","third"),"sham":("third",)}.get(run.get("method"),(run.get("method"),)) + for kind in kinds: + suffix="-fp64" if run["stage"]=="abstracts" else "" + file=partial_calibrations/f"{run['stage']}-{kind}{suffix}-draws.json" + draws=read_json(file).get("draws",[]) + if draws: + run["status"]=f"calibrating ({len(draws)}/16)" + run["calibration_progress"]={"draws_completed":len(draws),"last_draw":draws[-1]} + data = json.dumps(study,ensure_ascii=False,allow_nan=False).encode() + self.send_response(200) + self.send_header("Content-Type","application/json; charset=utf-8") + self.send_header("Cache-Control","no-store") + self.send_header("Content-Length",str(len(data))) + self.end_headers() + self.wfile.write(data) + else: + super().do_GET() + server = ThreadingHTTPServer(("127.0.0.1",port),partial(Handler,directory=str(project/"docs"))) + print(f"Live study dashboard http://127.0.0.1:{port}/",flush=True) + server.serve_forever() + + +def parser(): + p = argparse.ArgumentParser(description=__doc__) + p.add_argument("--project",type=Path,default=Path.cwd()) + parsers = p.add_subparsers(dest="action",required=True) + for action in ("prepare","train","study","freeze","evaluate","report","dashboard","publish","audit-hub","progress","verify"): + sub = parsers.add_parser(action) + if action in {"prepare","study"}: + sub.add_argument("--stage",choices=(*HORIZONS,"both"),default="both") + if action in {"train","freeze"}: + sub.add_argument("--stage",choices=HORIZONS,required=True) + if action in {"train","study","evaluate"}: + sub.add_argument("--device",default="cuda") + if action=="verify": + sub.add_argument("--pretrained",action="store_true",help="Also compare a full joint derivative on the prepared adapter training corpus") + sub.add_argument("--reference",action="store_true",help="Compute the FP64 pretrained reference using the original CUDA signs") + sub.add_argument("--scoring-batches",action="store_true",help="Benchmark Pythia inference grouping on training windows") + sub.add_argument("--device",default="cuda",help="Device for the optional full pretrained cross-check") + if action=="train": + sub.add_argument("--method",choices=(*METHODS,"unigram","initial"),required=True) + sub.add_argument("--phase",choices=("pilot","control","confirm","smoke"),default="pilot") + sub.add_argument("--seed",type=int,default=0) + sub.add_argument("--ratio",type=float,default=0.03) + sub.add_argument("--microbatch",type=int) + if action in {"train","study","evaluate"}: + sub.add_argument("--publish",action="store_true",help="Publish results to the configured project accounts") + if action=="evaluate": + sub.add_argument("run_id") + if action=="dashboard": + sub.add_argument("--port",type=int,default=8765) + if action=="publish": + sub.add_argument("--message",default="Update third-derivative study records") + sub.add_argument("--checkpoints",action="store_true",help="Republish the fitted checkpoints and restart states in the collection") + return p + + +def main(argv=None): + args = parser().parse_args(argv) + project = args.project.resolve() + storage = storage_root(project) + if args.action=="audit-hub": + from .hub_archive import audit_archive + print(json.dumps(audit_archive(project),indent=2)) + return + if args.action=="verify": + from .verification import verify + verify(project) + if args.pretrained: + from .probe_check import verify_pretrained + from .records import setup_device + verify_pretrained(project,setup_device(args.device)) + if args.reference: + from .precision import reference_gradient + from .records import setup_device + reference_gradient(project,setup_device(args.device)) + if args.scoring_batches: + from .probe_check import benchmark_scoring + from .records import setup_device + benchmark_scoring(project,setup_device(args.device)) + return + if args.action=="dashboard": + return dashboard(project,args.port) + if args.action in {"report","progress","publish"}: + from .progress import progress + if args.action == "progress": + print(progress(project)) + return + from .reporting import build_report + build_report(project) + progress(project) + if args.action == "publish": + from .release import publish_snapshot, publish_weights + if args.checkpoints: + from .records import read_json + for path in sorted((project/"results").glob("*/summary.json")): + publish_weights(project,storage,read_json(path)) + print(publish_snapshot(project,args.message)) + return + from .study import evaluate_one,freeze,milestone,prepare_stage,run_study + if args.action=="freeze": + print(freeze(project,storage,args.stage)["freeze_id"]) + return + stages = list(HORIZONS) if getattr(args,"stage",None)=="both" else [getattr(args,"stage",None)] + if args.action=="prepare": + for stage in stages: + prepare_stage(project,storage,stage) + return + from .records import setup_device + device = setup_device(args.device) + if args.action=="study": + run_study(project,storage,stages,device,args.publish) + return + if args.action=="evaluate": + summary = evaluate_one(project,storage,args.run_id,device) + else: + from .train import run_one + summary = run_one(project,storage,args.stage,args.method,args.phase,args.seed,args.ratio,device,args.microbatch) + milestone(project,storage,summary,args.publish) + + +if __name__=="__main__": + main() diff --git a/research/src/thirdloss/data.py b/research/src/thirdloss/data.py index ba316a25b45c3f5a7a8f597b7dc7e16bd6c696a6..9b06438a0bce64f8d491cd65156ebe8aa04e8916 100644 --- a/research/src/thirdloss/data.py +++ b/research/src/thirdloss/data.py @@ -1,301 +1,301 @@ -"""Prepare versioned, leakage-audited token streams for both causal LM experiments.""" - -import gzip -import hashlib -import json -import os -import re -import shutil -import time -import urllib.request -from collections import Counter -from datetime import datetime, timezone -from itertools import batched, islice -from pathlib import Path -from tempfile import TemporaryDirectory - -import httpx -import numpy as np -import pyarrow.parquet as pq -from filelock import FileLock -from huggingface_hub import constants, hf_hub_download, hf_hub_url -from tokenizers import Tokenizer, decoders, models, pre_tokenizers, trainers - -from .overlap import Document, clean_splits - - -STORY_REPO = "roneneldan/TinyStories" -STORY_REVISION = "f54c09fd23315a6f9c86f9dc80f725de7d8f9c64" -ABSTRACT_REPO = "common-pile/arxiv_abstracts_filtered" -ABSTRACT_REVISION = "dc1ceab4755eb037ec61e49cf1350dab7ceee6e7" -PYTHIA_REPO = "EleutherAI/pythia-410m" -PYTHIA_REVISION = "9879c9b5f8bea9051dcb0e68dff21493d67e9d4f" -STORY_LIMIT = 160_000 -STORY_VOCAB = 4096 -EOS = "<|endoftext|>" -FORMAT = "thirdloss-packed-v1" - -# Object IDs and byte lengths come from the pinned HF tree APIs documented in docs/data.md. -# Large files use LFS SHA-256. The tokenizer uses the Git blob identifier at this release. -FILES = { - "story_train": ("data/train-00000-of-00004-2d5a1467fff1081b.parquet", 248731111, - "77cf780cebe52b6e83e3a2ac84bc56d8059363113e41d17a023f1d8b2ed0fc0b"), - "story_test": ("data/validation-00000-of-00001-869c898b519ad725.parquet", 9989127, - "33406a6206554cfc279c29c11f4df51528af487aa1a602b075566fc83c49dcab"), - "abstract_0": ("arxiv-abstracts-dolma-0000.json.gz", 892766221, - "2aa4dba7c362a977853619239655f073205346978931d6ad070026c7dfa1c4d2"), - "abstract_1": ("arxiv-abstracts-dolma-0001.json.gz", 235616002, - "451ff8bbc867360d66ddca2794459377d1cc56f91b2243587857f8ded982af36"), - "pythia_tokenizer": ("tokenizer.json", 2113710, "f74dfbfab8f97770a87769c739fb080c21c8bacc"), -} - - -def _log(message: str) -> None: - """Make long stream/audit phases visible to the command-line run log.""" - stamp = datetime.now(timezone.utc).isoformat(timespec="seconds") - print(f"{stamp} [prepare] {message}", flush=True) - - -def _sha256(path: Path) -> str: - """Hash bytes incrementally to avoid holding upstream archives in memory.""" - with path.open("rb") as stream: - return hashlib.file_digest(stream, "sha256").hexdigest() - - -def _verify_source(path: Path, size: int, expected: str) -> str: - """Authenticate each input against the immutable upstream object identifier.""" - if path.stat().st_size != size: - raise ValueError(f"Unexpected byte count for {path.name}") - sha = _sha256(path) - if len(expected) == 40: - git = hashlib.sha1(f"blob {size}\0".encode("ascii"), usedforsecurity=False) - with path.open("rb") as stream: - for block in iter(lambda: stream.read(1024 * 1024), b""): - git.update(block) - actual = git.hexdigest() - else: - actual = sha - if actual != expected: - raise ValueError(f"Content hash differs from pinned revision for {path.name}") - return sha - - -def _source(root: Path, repo: str, revision: str, key: str, kind: str = "dataset") -> tuple[Path, dict]: - """Download from the pinned Hub revision, with a verified public HTTPS fallback.""" - name, size, oid = FILES[key] - fallback = root / "_sources" / "https" / revision / name - options = dict(repo_id=repo, filename=name, revision=revision, repo_type=kind) - _log(f"resolving {repo}@{revision[:9]}/{name}") - if fallback.is_file(): - try: - digest = _verify_source(fallback, size, oid) - return fallback, dict(repo=repo, revision=revision, file=name, bytes=size, sha256=digest) - except ValueError: - _log(f"refreshing damaged fallback for {name}") - try: - path = Path(hf_hub_download(**options, cache_dir=root / "_sources" / "hub")) - digest = _verify_source(path, size, oid) - except (OSError, RuntimeError, ValueError, httpx.HTTPError) as error: - if constants.HF_HUB_OFFLINE: - raise - _log(f"Hub transport failed ({type(error).__name__}); verifying public HTTPS copy") - # A nonce requests a fresh signed object URL on networks that cache stale redirects. - url = hf_hub_url(**options) + f"?download=true&attempt={int(time.time())}" - fallback.parent.mkdir(parents=True, exist_ok=True) - with TemporaryDirectory(dir=fallback.parent, prefix=".download-") as directory: - partial = Path(directory) / "download" - request = urllib.request.Request(url, headers={"User-Agent": "thirdloss-data/1"}) - with urllib.request.urlopen(request, timeout=120) as response, partial.open("wb") as target: - shutil.copyfileobj(response, target, length=4 * 1024 * 1024) - digest = _verify_source(partial, size, oid) - os.replace(partial, fallback) - path = fallback - return path, dict(repo=repo, revision=revision, file=name, bytes=size, sha256=digest) - - -def _texts(path: Path): - """Stream Arrow record batches in physical row order and keep only the text column.""" - with pq.ParquetFile(path) as table: - for batch in table.iter_batches(batch_size=2048, columns=["text"]): - yield from batch.column(0).to_pylist() - - -def _story_documents(root: Path) -> tuple[dict, list, dict]: - """Assign the first registered source rows before deduplication and tokenizer fitting.""" - train, train_meta = _source(root, STORY_REPO, STORY_REVISION, "story_train") - test, test_meta = _source(root, STORY_REPO, STORY_REVISION, "story_test") - docs = {"train": [], "dev": [], "test": []} - for row, text in enumerate(islice(_texts(train), STORY_LIMIT)): - doc = Document.make(f"train:{row}", text or "") - # A content hash makes equivalent stories receive the same development assignment. - split = "dev" if int(doc.digest[:16], 16) % 50 == 0 else "train" - docs[split].append(doc) - if len(docs["train"]) + len(docs["dev"]) != STORY_LIMIT: - raise ValueError("Pinned first training shard does not cover the registered prefix") - for row, text in enumerate(_texts(test)): - docs["test"].append(Document.make(f"validation:{row}", text or "")) - return docs, [train_meta, test_meta], dict(training_prefix=STORY_LIMIT, dev_hash_modulus=50) - - -def _abstract_id(value: str, submitted: str) -> tuple[str, str] | None: - """Split by the source's creation timestamp, grouping all versions of a paper.""" - month = str(submitted)[:7] - if not re.fullmatch(r"2024-0[1-6]", month): - return None - match = re.fullmatch(r"(?:arXiv:)?(\d{4}\.\d{5})(?:v[1-9]\d*)?", str(value).strip()) - if not match: - raise ValueError(f"Unrecognized modern arXiv identifier {value!r} with submission date {submitted!r}") - split = "train" if month <= "2024-04" else ("dev" if month == "2024-05" else "test") - return match[1], split - - -def _abstract_documents(root: Path) -> tuple[dict, list, dict]: - """Read both Common Pile shards, grouping versions of each base paper identifier.""" - docs = {"train": [], "dev": [], "test": []} - seen_ids, sources = set(), [] - counts = Counter() - for key in ("abstract_0", "abstract_1"): - path, meta = _source(root, ABSTRACT_REPO, ABSTRACT_REVISION, key) - sources.append(meta) - with gzip.open(path, "rb") as stream: - for line in stream: - record = json.loads(line) - counts["total_source_rows"] += 1 - parsed = _abstract_id(record["id"], record["created"]) - if parsed is None: - continue - identifier, split = parsed - if identifier in seen_ids: - counts["repeated_base_id"] += 1 - continue - seen_ids.add(identifier) - submitted = str(record["created"]) - # arXiv assigns IDs at announcement; retain date-boundary disagreements for audit. - if identifier[:4] != submitted[2:4] + submitted[5:7]: - counts["identifier_month_differs_from_created"] += 1 - docs[split].append(Document.make(identifier, record["text"] or "", submitted)) - _log(f"scanned {meta['file']}, {len(seen_ids):,} eligible paper IDs so far") - return docs, sources, dict(counts) - - -def _tokenizer(stage: str, train: list[Document], root: Path, output: Path, sources: list) -> Tokenizer: - """Only accepted training documents may fit the scratch BPE. Preserve the adapter tokenizer.""" - if stage == "abstracts": - path, metadata = _source(root, PYTHIA_REPO, PYTHIA_REVISION, "pythia_tokenizer", "model") - sources.append(metadata) - shutil.copyfile(path, output) - return Tokenizer.from_file(str(output)) - tokenizer = Tokenizer(models.BPE()) - tokenizer.pre_tokenizer = pre_tokenizers.ByteLevel(add_prefix_space=False) - tokenizer.decoder = decoders.ByteLevel() - trainer = trainers.BpeTrainer(vocab_size=STORY_VOCAB, initial_alphabet=sorted(pre_tokenizers.ByteLevel.alphabet()), - special_tokens=[EOS], show_progress=False) - _log(f"fitting {STORY_VOCAB:,}-token byte BPE on {len(train):,} retained training documents") - tokenizer.train_from_iterator((doc.text for doc in train), trainer=trainer, length=len(train)) - if tokenizer.get_vocab_size() != STORY_VOCAB: - raise ValueError("Training text did not support the registered BPE vocabulary size") - tokenizer.save(str(output)) - return tokenizer - - -def _write_line(stream, record: dict) -> None: - """Use a stable machine-readable row for each document decision.""" - stream.write(json.dumps(record, ensure_ascii=False, separators=(",", ":")) + "\n") - - -def _pack(directory: Path, splits: dict, tokenizer: Tokenizer, eos: int) -> dict: - """Save little-endian IDs and byte-addressable membership records for reproducible slicing.""" - metadata = {} - with (directory / "documents.jsonl").open("w", encoding="utf-8", newline="\n") as members: - for split, documents in splits.items(): - path = directory / f"{split}.bin" - offset = 0 - with path.open("wb") as stream: - for block in batched(documents, 256): - encodings = tokenizer.encode_batch([doc.text for doc in block], add_special_tokens=False) - flat = [] - for doc, encoding in zip(block, encodings, strict=True): - ids = encoding.ids - size = len(ids) + 1 - member = dict(split=split, id=doc.source_id, sha256=doc.digest, - start_token=offset, tokens=size) - if doc.submitted: - member["submitted"] = doc.submitted - _write_line(members, member) - flat.extend(ids) - flat.append(eos) - offset += size - np.asarray(flat, dtype=" dict | None: - """Only return a completed preparation if its byte-level evidence is still intact.""" - marker = directory / "manifest.json" - if not marker.is_file(): - return None - try: - manifest = json.loads(marker.read_text(encoding="utf-8")) - if manifest["format"] != FORMAT or manifest["stage"] != directory.name: - return None - for name in ("tokenizer.json", "train.bin", "dev.bin", "test.bin", "documents.jsonl", "rejections.jsonl"): - path = directory / name - if not path.is_file() or _sha256(path) != manifest["artifacts"][name]["sha256"]: - return None - return manifest - except (KeyError, ValueError, TypeError): - return None - - -def prepare(stage: str, root: Path) -> dict: - """Create or verify an entire stage, publishing the manifest after all content checks pass.""" - if stage not in ("stories", "abstracts"): - raise ValueError("stage must be 'stories' or 'abstracts'") - root = Path(root) - root.mkdir(parents=True, exist_ok=True) - output = root / stage - with FileLock(str(root / f".{stage}.prepare.lock")): - existing = _existing(output) - if existing is not None: - return existing - with TemporaryDirectory(dir=root, prefix=f".prepare-{stage}-") as directory: - staged = Path(directory) - load = _story_documents if stage == "stories" else _abstract_documents - raw, sources, selection = load(root) - splits, audit, rejected = clean_splits(raw, _log) - if not all(splits.values()): - raise ValueError(f"Empty split after {stage} corpus filtering: {audit}") - with (staged / "rejections.jsonl").open("w", encoding="utf-8", newline="\n") as records: - for item in rejected: - _write_line(records, item) - tokenizer = _tokenizer(stage, splits["train"], root, staged / "tokenizer.json", sources) - vocab = tokenizer.get_vocab(with_added_tokens=True) - vocab_size = max(vocab.values()) + 1 - eos = tokenizer.token_to_id(EOS) - if eos is None or vocab_size > 65536: - raise ValueError("The tokenizer must have an EOS ID and fit in uint16") - packed = _pack(staged, splits, tokenizer, eos) - files = {f"{split}.bin": dict(bytes=values["bytes"], sha256=values["sha256"]) - for split, values in packed.items()} - for name in ("tokenizer.json", "documents.jsonl", "rejections.jsonl"): - path = staged / name - files[name] = dict(bytes=path.stat().st_size, sha256=_sha256(path)) - manifest = dict(format=FORMAT, stage=stage, sources=sources, selection=selection, audit=audit, - overlap=dict(words=5, jaccard_at_least="4/5", priority=["test", "dev", "train"], - coverage="All retained cross-split document pairs at this threshold"), - dtype=" None: + """Make long stream/audit phases visible to the command-line run log.""" + stamp = datetime.now(timezone.utc).isoformat(timespec="seconds") + print(f"{stamp} [prepare] {message}", flush=True) + + +def _sha256(path: Path) -> str: + """Hash bytes incrementally to avoid holding upstream archives in memory.""" + with path.open("rb") as stream: + return hashlib.file_digest(stream, "sha256").hexdigest() + + +def _verify_source(path: Path, size: int, expected: str) -> str: + """Authenticate each input against the immutable upstream object identifier.""" + if path.stat().st_size != size: + raise ValueError(f"Unexpected byte count for {path.name}") + sha = _sha256(path) + if len(expected) == 40: + git = hashlib.sha1(f"blob {size}\0".encode("ascii"), usedforsecurity=False) + with path.open("rb") as stream: + for block in iter(lambda: stream.read(1024 * 1024), b""): + git.update(block) + actual = git.hexdigest() + else: + actual = sha + if actual != expected: + raise ValueError(f"Content hash differs from pinned revision for {path.name}") + return sha + + +def _source(root: Path, repo: str, revision: str, key: str, kind: str = "dataset") -> tuple[Path, dict]: + """Download from the pinned Hub revision, with a verified public HTTPS fallback.""" + name, size, oid = FILES[key] + fallback = root / "_sources" / "https" / revision / name + options = dict(repo_id=repo, filename=name, revision=revision, repo_type=kind) + _log(f"resolving {repo}@{revision[:9]}/{name}") + if fallback.is_file(): + try: + digest = _verify_source(fallback, size, oid) + return fallback, dict(repo=repo, revision=revision, file=name, bytes=size, sha256=digest) + except ValueError: + _log(f"refreshing damaged fallback for {name}") + try: + path = Path(hf_hub_download(**options, cache_dir=root / "_sources" / "hub")) + digest = _verify_source(path, size, oid) + except (OSError, RuntimeError, ValueError, httpx.HTTPError) as error: + if constants.HF_HUB_OFFLINE: + raise + _log(f"Hub transport failed ({type(error).__name__}); verifying public HTTPS copy") + # A nonce requests a fresh signed object URL on networks that cache stale redirects. + url = hf_hub_url(**options) + f"?download=true&attempt={int(time.time())}" + fallback.parent.mkdir(parents=True, exist_ok=True) + with TemporaryDirectory(dir=fallback.parent, prefix=".download-") as directory: + partial = Path(directory) / "download" + request = urllib.request.Request(url, headers={"User-Agent": "thirdloss-data/1"}) + with urllib.request.urlopen(request, timeout=120) as response, partial.open("wb") as target: + shutil.copyfileobj(response, target, length=4 * 1024 * 1024) + digest = _verify_source(partial, size, oid) + os.replace(partial, fallback) + path = fallback + return path, dict(repo=repo, revision=revision, file=name, bytes=size, sha256=digest) + + +def _texts(path: Path): + """Stream Arrow record batches in physical row order and keep only the text column.""" + with pq.ParquetFile(path) as table: + for batch in table.iter_batches(batch_size=2048, columns=["text"]): + yield from batch.column(0).to_pylist() + + +def _story_documents(root: Path) -> tuple[dict, list, dict]: + """Assign the first registered source rows before deduplication and tokenizer fitting.""" + train, train_meta = _source(root, STORY_REPO, STORY_REVISION, "story_train") + test, test_meta = _source(root, STORY_REPO, STORY_REVISION, "story_test") + docs = {"train": [], "dev": [], "test": []} + for row, text in enumerate(islice(_texts(train), STORY_LIMIT)): + doc = Document.make(f"train:{row}", text or "") + # A content hash makes equivalent stories receive the same development assignment. + split = "dev" if int(doc.digest[:16], 16) % 50 == 0 else "train" + docs[split].append(doc) + if len(docs["train"]) + len(docs["dev"]) != STORY_LIMIT: + raise ValueError("Pinned first training shard does not cover the registered prefix") + for row, text in enumerate(_texts(test)): + docs["test"].append(Document.make(f"validation:{row}", text or "")) + return docs, [train_meta, test_meta], dict(training_prefix=STORY_LIMIT, dev_hash_modulus=50) + + +def _abstract_id(value: str, submitted: str) -> tuple[str, str] | None: + """Split by the source's creation timestamp, grouping all versions of a paper.""" + month = str(submitted)[:7] + if not re.fullmatch(r"2024-0[1-6]", month): + return None + match = re.fullmatch(r"(?:arXiv:)?(\d{4}\.\d{5})(?:v[1-9]\d*)?", str(value).strip()) + if not match: + raise ValueError(f"Unrecognized modern arXiv identifier {value!r} with submission date {submitted!r}") + split = "train" if month <= "2024-04" else ("dev" if month == "2024-05" else "test") + return match[1], split + + +def _abstract_documents(root: Path) -> tuple[dict, list, dict]: + """Read both Common Pile shards, grouping versions of each base paper identifier.""" + docs = {"train": [], "dev": [], "test": []} + seen_ids, sources = set(), [] + counts = Counter() + for key in ("abstract_0", "abstract_1"): + path, meta = _source(root, ABSTRACT_REPO, ABSTRACT_REVISION, key) + sources.append(meta) + with gzip.open(path, "rb") as stream: + for line in stream: + record = json.loads(line) + counts["total_source_rows"] += 1 + parsed = _abstract_id(record["id"], record["created"]) + if parsed is None: + continue + identifier, split = parsed + if identifier in seen_ids: + counts["repeated_base_id"] += 1 + continue + seen_ids.add(identifier) + submitted = str(record["created"]) + # arXiv assigns IDs at announcement; retain date-boundary disagreements for audit. + if identifier[:4] != submitted[2:4] + submitted[5:7]: + counts["identifier_month_differs_from_created"] += 1 + docs[split].append(Document.make(identifier, record["text"] or "", submitted)) + _log(f"scanned {meta['file']}, {len(seen_ids):,} eligible paper IDs so far") + return docs, sources, dict(counts) + + +def _tokenizer(stage: str, train: list[Document], root: Path, output: Path, sources: list) -> Tokenizer: + """Only accepted training documents may fit the scratch BPE. Preserve the adapter tokenizer.""" + if stage == "abstracts": + path, metadata = _source(root, PYTHIA_REPO, PYTHIA_REVISION, "pythia_tokenizer", "model") + sources.append(metadata) + shutil.copyfile(path, output) + return Tokenizer.from_file(str(output)) + tokenizer = Tokenizer(models.BPE()) + tokenizer.pre_tokenizer = pre_tokenizers.ByteLevel(add_prefix_space=False) + tokenizer.decoder = decoders.ByteLevel() + trainer = trainers.BpeTrainer(vocab_size=STORY_VOCAB, initial_alphabet=sorted(pre_tokenizers.ByteLevel.alphabet()), + special_tokens=[EOS], show_progress=False) + _log(f"fitting {STORY_VOCAB:,}-token byte BPE on {len(train):,} retained training documents") + tokenizer.train_from_iterator((doc.text for doc in train), trainer=trainer, length=len(train)) + if tokenizer.get_vocab_size() != STORY_VOCAB: + raise ValueError("Training text did not support the registered BPE vocabulary size") + tokenizer.save(str(output)) + return tokenizer + + +def _write_line(stream, record: dict) -> None: + """Use a stable machine-readable row for each document decision.""" + stream.write(json.dumps(record, ensure_ascii=False, separators=(",", ":")) + "\n") + + +def _pack(directory: Path, splits: dict, tokenizer: Tokenizer, eos: int) -> dict: + """Save little-endian IDs and byte-addressable membership records for reproducible slicing.""" + metadata = {} + with (directory / "documents.jsonl").open("w", encoding="utf-8", newline="\n") as members: + for split, documents in splits.items(): + path = directory / f"{split}.bin" + offset = 0 + with path.open("wb") as stream: + for block in batched(documents, 256): + encodings = tokenizer.encode_batch([doc.text for doc in block], add_special_tokens=False) + flat = [] + for doc, encoding in zip(block, encodings, strict=True): + ids = encoding.ids + size = len(ids) + 1 + member = dict(split=split, id=doc.source_id, sha256=doc.digest, + start_token=offset, tokens=size) + if doc.submitted: + member["submitted"] = doc.submitted + _write_line(members, member) + flat.extend(ids) + flat.append(eos) + offset += size + np.asarray(flat, dtype=" dict | None: + """Only return a completed preparation if its byte-level evidence is still intact.""" + marker = directory / "manifest.json" + if not marker.is_file(): + return None + try: + manifest = json.loads(marker.read_text(encoding="utf-8")) + if manifest["format"] != FORMAT or manifest["stage"] != directory.name: + return None + for name in ("tokenizer.json", "train.bin", "dev.bin", "test.bin", "documents.jsonl", "rejections.jsonl"): + path = directory / name + if not path.is_file() or _sha256(path) != manifest["artifacts"][name]["sha256"]: + return None + return manifest + except (KeyError, ValueError, TypeError): + return None + + +def prepare(stage: str, root: Path) -> dict: + """Create or verify an entire stage, publishing the manifest after all content checks pass.""" + if stage not in ("stories", "abstracts"): + raise ValueError("stage must be 'stories' or 'abstracts'") + root = Path(root) + root.mkdir(parents=True, exist_ok=True) + output = root / stage + with FileLock(str(root / f".{stage}.prepare.lock")): + existing = _existing(output) + if existing is not None: + return existing + with TemporaryDirectory(dir=root, prefix=f".prepare-{stage}-") as directory: + staged = Path(directory) + load = _story_documents if stage == "stories" else _abstract_documents + raw, sources, selection = load(root) + splits, audit, rejected = clean_splits(raw, _log) + if not all(splits.values()): + raise ValueError(f"Empty split after {stage} corpus filtering: {audit}") + with (staged / "rejections.jsonl").open("w", encoding="utf-8", newline="\n") as records: + for item in rejected: + _write_line(records, item) + tokenizer = _tokenizer(stage, splits["train"], root, staged / "tokenizer.json", sources) + vocab = tokenizer.get_vocab(with_added_tokens=True) + vocab_size = max(vocab.values()) + 1 + eos = tokenizer.token_to_id(EOS) + if eos is None or vocab_size > 65536: + raise ValueError("The tokenizer must have an EOS ID and fit in uint16") + packed = _pack(staged, splits, tokenizer, eos) + files = {f"{split}.bin": dict(bytes=values["bytes"], sha256=values["sha256"]) + for split, values in packed.items()} + for name in ("tokenizer.json", "documents.jsonl", "rejections.jsonl"): + path = staged / name + files[name] = dict(bytes=path.stat().st_size, sha256=_sha256(path)) + manifest = dict(format=FORMAT, stage=stage, sources=sources, selection=selection, audit=audit, + overlap=dict(words=5, jaccard_at_least="4/5", priority=["test", "dev", "train"], + coverage="All retained cross-split document pairs at this threshold"), + dtype=" limit_windows: - indices = np.linspace(0, full-1, limit_windows, dtype=np.int64) - tail = 0 - total_loss, correct, count = 0.0, 0, 0 - started = last_log = time.perf_counter() - def report(): - progress({"targets_scored":count,"targets_to_score":len(indices)*CONTEXT+tail, - "nll_so_far":total_loss/count,"accuracy_so_far":correct/count, - "score_seconds":time.perf_counter()-started}) - if model is not None: - model.eval() - - def batch_score(ids): - target = ids[:, 1:] - if unigram is not None: - return (-np.log(unigram[target])).sum(dtype=np.float64).item(), int((target == unigram.argmax()).sum()) - seq = torch.from_numpy(ids.astype(np.int64)).to(device) - logits = logits_of(model, seq[:, :-1]) - losses = token_nll(logits, seq[:, 1:]) - return losses.sum(dtype=torch.float64).item(), (logits.argmax(-1) == seq[:, 1:]).sum().item() - - for start in range(0, len(indices), batch_size): - offsets = indices[start:start+batch_size, None] * CONTEXT + np.arange(CONTEXT+1) - loss, hits = batch_score(tokens[offsets]) - total_loss, correct, count = total_loss+loss, correct+hits, count+offsets.shape[0]*CONTEXT - if progress and time.perf_counter()-last_log>=60: - report() - last_log = time.perf_counter() - if tail: - loss, hits = batch_score(np.asarray(tokens[full*CONTEXT:])[None, :]) - total_loss, correct, count = total_loss+loss, correct+hits, count+tail - nll = total_loss/count - if progress: - report() - return {"nll": nll, "accuracy": correct/count, "tokens": count, "perplexity": math.exp(nll)} - - -def unigram_distribution(train, size): - """Laplace smoothing puts mass on the same output vocabulary as the neural decoder.""" - tokens = np.memmap(train, mode="r", dtype=" limit_windows: + indices = np.linspace(0, full-1, limit_windows, dtype=np.int64) + tail = 0 + total_loss, correct, count = 0.0, 0, 0 + started = last_log = time.perf_counter() + def report(): + progress({"targets_scored":count,"targets_to_score":len(indices)*CONTEXT+tail, + "nll_so_far":total_loss/count,"accuracy_so_far":correct/count, + "score_seconds":time.perf_counter()-started}) + if model is not None: + model.eval() + + def batch_score(ids): + target = ids[:, 1:] + if unigram is not None: + return (-np.log(unigram[target])).sum(dtype=np.float64).item(), int((target == unigram.argmax()).sum()) + seq = torch.from_numpy(ids.astype(np.int64)).to(device) + logits = logits_of(model, seq[:, :-1]) + losses = token_nll(logits, seq[:, 1:]) + return losses.sum(dtype=torch.float64).item(), (logits.argmax(-1) == seq[:, 1:]).sum().item() + + for start in range(0, len(indices), batch_size): + offsets = indices[start:start+batch_size, None] * CONTEXT + np.arange(CONTEXT+1) + loss, hits = batch_score(tokens[offsets]) + total_loss, correct, count = total_loss+loss, correct+hits, count+offsets.shape[0]*CONTEXT + if progress and time.perf_counter()-last_log>=60: + report() + last_log = time.perf_counter() + if tail: + loss, hits = batch_score(np.asarray(tokens[full*CONTEXT:])[None, :]) + total_loss, correct, count = total_loss+loss, correct+hits, count+tail + nll = total_loss/count + if progress: + report() + return {"nll": nll, "accuracy": correct/count, "tokens": count, "perplexity": math.exp(nll)} + + +def unigram_distribution(train, size): + """Laplace smoothing puts mass on the same output vocabulary as the neural decoder.""" + tokens = np.memmap(train, mode="r", dtype="16: - raise ValueError(f"Discontinuous calibration record for {stage} {kind}") - for step in range(len(rows),16): - inputs, targets = windows.get(step, device) - model.zero_grad(set_to_none=True) - ce_backward(model, inputs, targets, microbatch) - ce_norm = vector_norm(p.grad for p in parameters if p.grad is not None).item() - model.zero_grad(set_to_none=True) - if device.type == "cuda": - torch.cuda.reset_peak_memory_stats(device) - started = time.perf_counter() - value, grads = probe_gradient(model, parameters, inputs, targets, kind, 6247, step,replica) - norm = vector_norm(grads).item() - probe_seconds = time.perf_counter()-started - if not (0 < norm < float("inf") and 0 < ce_norm < float("inf")): - raise FloatingPointError(f"Nonfinite or zero {kind} calibration norm at draw {step}: {norm}") - rows.append({"draw":step, "ce_grad_norm":ce_norm, "penalty_grad_norm":norm, - "value":value.item(), "norm_ratio":ce_norm/norm,"probe_seconds":probe_seconds, - "peak_allocated_mib":torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None}) - write_json(work,partial) - print(f"{time_now()} [calibration] {stage} {kind} draw {step+1}/16 estimate {value.item():.6g}, " - f"CE gradient norm {ce_norm:.6g}, penalty gradient norm {norm:.6g}, {probe_seconds:.2f} s",flush=True) - del grads - result = statistics.median(row["norm_ratio"] for row in rows) - write_json(path, {"stage":stage, "kind":kind, "data_manifest_sha256":fingerprint, - "unit_lambda":result, "draws":rows,"derivative_device":identity["derivative_device"], - "derivative_dtype":"float64" if replica is not None else "float32", - "initial_trainable_sha256":trainable_digest(model)}) - work.unlink(missing_ok=True) - return result - - -def add_penalty(model, parameters, inputs, targets, coefficients, method, seed, step, replica=None): - """Add the gated derivative contribution to already-accumulated CE gradients.""" - telemetry = {} - for kind, weight in coefficients.items(): - if not weight: - continue - started = time.perf_counter() - value, grads = probe_gradient(model, parameters, inputs, targets, kind, seed, step,replica) - raw_norm = vector_norm(grads).item() - if method == "sham": - signs = random_signs(parameters, generator(inputs.device, seed, step, 839)) - grads = tuple(g * sign.to(g.device) for g, sign in zip(grads, signs, strict=True)) - with torch.no_grad(): - for param, grad in zip(parameters, grads, strict=True): - if param.grad is None: - param.grad = torch.zeros_like(param) - if replica is None: - param.grad.add_(grad, alpha=8*weight) - else: - # Scale in FP64 before returning the registered contribution to the FP32 optimizer. - param.grad.add_((grad*(8*weight)).to(param)) - telemetry[kind] = {"estimate":value.item(), "raw_grad_norm":raw_norm, "lambda":weight, - "probe_seconds":time.perf_counter()-started} - return telemetry +"""Ordinary CE, probe gradients and fair train-only calibration on identical initial weights.""" + +import statistics +import time +import os +import torch + +from .models import build_model, logits_of, token_loss, token_nll, trainable_digest, widen_pythia +from .penalties import estimate, inner, partials, random_signs, third_contraction +from .records import BATCHES, read_json, sha256, time_now, write_json +from .windows import TrainingWindows, generator, probe_rows + + +def ce_backward(model, inputs, targets, microbatch): + """Accumulate the global token-mean CE despite physical microbatching.""" + total_loss = torch.zeros((), device=inputs.device) + hits = torch.zeros((), device=inputs.device, dtype=torch.long) + for start in range(0, len(inputs), microbatch): + x, y = inputs[start:start+microbatch], targets[start:start+microbatch] + logits = logits_of(model, x) + contribution = token_nll(logits, y).sum() / targets.numel() + contribution.backward() + total_loss += contribution.detach() + hits += (logits.detach().argmax(-1) == y).sum() + return total_loss, hits / targets.numel() + + +def vector_norm(values): + """Preserve the ordinary reduction and widen it when finite FP32 coordinates overflow.""" + blocks = tuple(x.detach() for x in values) + def norm(dtype=None): + return torch.linalg.vector_norm(torch.stack([torch.linalg.vector_norm(x, dtype=dtype) for x in blocks])) + ordinary = norm() + return ordinary if torch.isfinite(ordinary) and ordinary != 0 else norm(torch.float64) + + +def two_window_third_gradient(model, parameters, inputs, targets, u, v): + """Keep one large fourth-order graph at a time, retaining the exact joint penalty gradient. + + Write R=(r0+r1)/2 for the two equal-length windows, using the same two probes for both. + The derivative of ||R||² with respect to *each* r_i is R. Backpropagate that cotangent + through both live third-derivative graphs, recomputing the first window only. This is + the gradient-caching chain rule of https://arxiv.org/abs/2101.06983 applied to D³L. + """ + if len(inputs)!=2 or targets.shape!=inputs.shape: + raise ValueError("Two equal-length input/target windows are required for an adapter probe") + def contraction(index, through_fourth): + loss = token_loss(logits_of(model, inputs[index:index+1]), targets[index:index+1]) + return third_contraction(loss, parameters, u, v, create_graph=through_fourth) + first = contraction(0,False) + second = contraction(1,True) + mean = tuple((a+b.detach())*0.5 for a,b in zip(first,second,strict=True)) + del first + grad_second = partials(inner(second,mean),parameters,create_graph=False) + del second + grad_first = partials(inner(contraction(0,True),mean),parameters,create_graph=False) + return inner(mean,mean), tuple(a+b for a,b in zip(grad_first,grad_second,strict=True)) + + +def adapter_derivative_device(): + """The registered laptop uses host FP64 for adapter probes and CUDA for ordinary training.""" + return torch.device(os.environ.get("THIRDLOSS_ADAPTER_DERIVATIVE_DEVICE","cpu")) + + +def derivative_replica(stage,seed,storage): + """Keep a high-precision frozen backbone for adapter derivatives. Preserve caller RNGs.""" + if stage!="abstracts": + return None + devices = [torch.cuda.current_device()] if torch.cuda.is_available() else [] + with torch.random.fork_rng(devices=devices): + return widen_pythia(build_model(stage,seed,adapter_derivative_device(),storage)) + + +def probe_gradient(model, parameters, inputs, targets, kind, seed, step, replica=None): + """Differentiate the sampled penalty, including the fourth-order contraction.""" + rng = generator(inputs.device, seed, step, 827) + rows = probe_rows(seed, step, len(inputs)) + if replica is not None: + # All arms draw the original CUDA signs. Only the arithmetic and storage of + # the small derivative batch change. Sync every factor at the current optimizer step. + precise = tuple(p for p in replica.parameters() if p.requires_grad) + with torch.no_grad(): + for dest,source in zip(precise,parameters,strict=True): + dest.copy_(source) + device = precise[0].device + x,y = inputs[rows].to(device),targets[rows].to(device) + def signs(): + return tuple(s.to(device=device,dtype=torch.float64) for s in random_signs(parameters,rng)) + u = signs() + if kind=="third": + return two_window_third_gradient(replica,precise,x,y,u,signs()) + loss = token_loss(logits_of(replica,x),y) + value = estimate(loss,precise,kind,u=u) + return value.detach(),partials(value,precise,create_graph=False) + if kind == "third" and hasattr(model, "peft_config"): + u, v = random_signs(parameters,rng), random_signs(parameters,rng) + return two_window_third_gradient(model,parameters,inputs[rows],targets[rows],u,v) + base = token_loss(logits_of(model, inputs[rows]), targets[rows]) + value = estimate(base, parameters, kind, generator=rng) + return value.detach(), partials(value, parameters, create_graph=False) + + +def calibrate(project, storage, stage, kind, device, microbatch): + """Fix unit-strength scales for all seeds using only training data at pilot initialization.""" + suffix = "-fp64" if stage=="abstracts" else "" + path = project / "results" / "calibration" / f"{stage}-{kind}{suffix}.json" + data = storage / "data" / stage + fingerprint = sha256(data/"manifest.json") + if path.exists(): + existing = read_json(path) + if existing["data_manifest_sha256"] != fingerprint: + raise ValueError(f"Calibration data changed for {stage}") + if suffix and existing.get("derivative_device") != str(adapter_derivative_device()): + raise ValueError("Adapter calibration uses a different derivative device") + return existing["unit_lambda"] + model = build_model(stage, 0, device, storage) + replica = derivative_replica(stage,0,storage) + parameters = tuple(p for p in model.parameters() if p.requires_grad) + windows = TrainingWindows(data/"train.bin", 6247, BATCHES[stage]) + # Each draw has its own data/probe address. A reboot can resume a long calibration + # without mixing corpora, physical batching or old estimator implementations. + work = storage/"calibration"/f"{stage}-{kind}{suffix}-draws.json" + identity = {"data_manifest_sha256":fingerprint,"microbatch":microbatch,"version":3, + "derivative_device":str(adapter_derivative_device() if replica is not None else device)} + partial = read_json(work) if work.exists() else {**identity,"draws":[]} + if any(partial.get(k)!=v for k,v in identity.items()): + raise ValueError(f"Different settings in partial calibration for {stage} {kind}") + rows = partial["draws"] + if [row["draw"] for row in rows] != list(range(len(rows))) or len(rows)>16: + raise ValueError(f"Discontinuous calibration record for {stage} {kind}") + for step in range(len(rows),16): + inputs, targets = windows.get(step, device) + model.zero_grad(set_to_none=True) + ce_backward(model, inputs, targets, microbatch) + ce_norm = vector_norm(p.grad for p in parameters if p.grad is not None).item() + model.zero_grad(set_to_none=True) + if device.type == "cuda": + torch.cuda.reset_peak_memory_stats(device) + started = time.perf_counter() + value, grads = probe_gradient(model, parameters, inputs, targets, kind, 6247, step,replica) + norm = vector_norm(grads).item() + probe_seconds = time.perf_counter()-started + if not (0 < norm < float("inf") and 0 < ce_norm < float("inf")): + raise FloatingPointError(f"Nonfinite or zero {kind} calibration norm at draw {step}: {norm}") + rows.append({"draw":step, "ce_grad_norm":ce_norm, "penalty_grad_norm":norm, + "value":value.item(), "norm_ratio":ce_norm/norm,"probe_seconds":probe_seconds, + "peak_allocated_mib":torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None}) + write_json(work,partial) + print(f"{time_now()} [calibration] {stage} {kind} draw {step+1}/16 estimate {value.item():.6g}, " + f"CE gradient norm {ce_norm:.6g}, penalty gradient norm {norm:.6g}, {probe_seconds:.2f} s",flush=True) + del grads + result = statistics.median(row["norm_ratio"] for row in rows) + write_json(path, {"stage":stage, "kind":kind, "data_manifest_sha256":fingerprint, + "unit_lambda":result, "draws":rows,"derivative_device":identity["derivative_device"], + "derivative_dtype":"float64" if replica is not None else "float32", + "initial_trainable_sha256":trainable_digest(model)}) + work.unlink(missing_ok=True) + return result + + +def add_penalty(model, parameters, inputs, targets, coefficients, method, seed, step, replica=None): + """Add the gated derivative contribution to already-accumulated CE gradients.""" + telemetry = {} + for kind, weight in coefficients.items(): + if not weight: + continue + started = time.perf_counter() + value, grads = probe_gradient(model, parameters, inputs, targets, kind, seed, step,replica) + raw_norm = vector_norm(grads).item() + if method == "sham": + signs = random_signs(parameters, generator(inputs.device, seed, step, 839)) + grads = tuple(g * sign.to(g.device) for g, sign in zip(grads, signs, strict=True)) + with torch.no_grad(): + for param, grad in zip(parameters, grads, strict=True): + if param.grad is None: + param.grad = torch.zeros_like(param) + if replica is None: + param.grad.add_(grad, alpha=8*weight) + else: + # Scale in FP64 before returning the registered contribution to the FP32 optimizer. + param.grad.add_((grad*(8*weight)).to(param)) + telemetry[kind] = {"estimate":value.item(), "raw_grad_norm":raw_norm, "lambda":weight, + "probe_seconds":time.perf_counter()-started} + return telemetry diff --git a/research/src/thirdloss/overlap.py b/research/src/thirdloss/overlap.py index 484a4941e9ee1fc60c9abb7970a36efe1f2ee2a7..869bfc3223ac8688e908d7e7f649db27397ded99 100644 --- a/research/src/thirdloss/overlap.py +++ b/research/src/thirdloss/overlap.py @@ -1,134 +1,134 @@ -"""Split documents before tokenization, using exact hashes and verified shingle overlap.""" - -import hashlib -import re -import unicodedata -from collections import Counter, defaultdict -from dataclasses import dataclass -from typing import Callable - - -def canonical(text: str) -> str: - """Make whitespace, case and Unicode compatibility variants equal for leakage checks.""" - return " ".join(unicodedata.normalize("NFKC", text).casefold().split()) - - -def content_hash(text: str) -> str: - """Use a stable identity across processes, files and operating systems.""" - return hashlib.sha256(canonical(text).encode("utf-8")).hexdigest() - - -@dataclass(frozen=True, slots=True) -class Document: - """Preserve the source text for tokenization and its normalized identity for audits.""" - - source_id: str - text: str - digest: str - submitted: str = "" - - @classmethod - def make(cls, source_id: str, text: str, submitted: str = "") -> "Document": - return cls(source_id, text.strip(), content_hash(text), submitted) - - -def shingles(text: str) -> set[str]: - """Use distinct five-word runs and one whole-text key for very short documents.""" - words = re.findall(r"\w+", canonical(text)) - if len(words) < 5: - return {" ".join(words) if words else canonical(text)} - return {" ".join(words[i:i + 5]) for i in range(len(words) - 4)} - - -def prefix_size(size: int) -> int: - """At 4/5 Jaccard, at most floor(size/5) items may be outside the intersection.""" - return size // 5 + 1 - - -class ShingleIndex: - """Index a higher-priority split using the lossless prefix filtering lemma. - - For Jaccard >= 4/5 the overlap must cover at least 4/5 of each set. Under - a common term order, its first shared term falls in both indexed prefixes. - Full set comparison verifies all candidates. See Xiao et al., section 2.2: - https://archives.iw3c2.org/www2008/papers/pdf/p131-xiaoA.pdf - """ - - def __init__(self, documents: list[Document]) -> None: - self.documents = documents - self.frequency = Counter() - self.postings = defaultdict(list) - self.lengths = [] - # A rare-first order reduces overlap from generic story openings. - for doc in documents: - self.frequency.update(shingles(doc.text)) - for index, doc in enumerate(documents): - terms = shingles(doc.text) - self.lengths.append(len(terms)) - for term in self._prefix(terms): - self.postings[term].append(index) - - def _prefix(self, terms: set[str]) -> list[str]: - """Unknown terms sort first and cannot appear in any reference posting.""" - known = [term for term in terms if term in self.frequency] - count = prefix_size(len(terms)) - (len(terms) - len(known)) - if count <= 0: - return [] - known.sort(key=lambda term: (self.frequency[term], term)) - return known[:count] - - def match(self, terms: set[str]) -> Document | None: - """Return the earliest source match; exact integer arithmetic decides the cutoff.""" - candidates = set() - for term in self._prefix(terms): - candidates.update(self.postings.get(term, ())) - for index in sorted(candidates): - n, m = len(terms), self.lengths[index] - if 5 * min(n, m) < 4 * max(n, m): - continue - doc = self.documents[index] - common = len(terms.intersection(shingles(doc.text))) - if 5 * common >= 4 * (n + m - common): - return doc - return None - - -def clean_splits(raw: dict[str, list[Document]], log: Callable[[str], None]) -> tuple[dict, dict, list]: - """Protect test, then dev, then train; retain an audit trail without publishing text.""" - retained: dict[str, list[Document]] = {} - seen: dict[str, tuple[str, str]] = {} - protected: list[tuple[str, ShingleIndex]] = [] - rejections = [] - summary = {} - for split in ("test", "dev", "train"): - retained[split] = [] - reasons = Counter() - for row, doc in enumerate(raw[split]): - if row and row % 25000 == 0: - log(f"audited {row:,}/{len(raw[split]):,} {split} documents") - reason, other_split, other_id = "", "", "" - if not canonical(doc.text): - reason = "empty" - elif doc.digest in seen: - reason = "exact" - other_split, other_id = seen[doc.digest] - elif protected: - terms = shingles(doc.text) - for name, reference in protected: - match = reference.match(terms) - if match is not None: - reason, other_split, other_id = "near", name, match.source_id - break - if reason: - reasons[reason] += 1 - rejections.append(dict(split=split, source_id=doc.source_id, sha256=doc.digest, - reason=reason, reference_split=other_split, reference_id=other_id)) - else: - seen[doc.digest] = (split, doc.source_id) - retained[split].append(doc) - summary[split] = dict(input=len(raw[split]), kept=len(retained[split]), - exact=reasons["exact"], cross_split_near=reasons["near"], empty=reasons["empty"]) - log(f"{split} overlap audit {summary[split]}") - if split != "train": - protected.append((split, ShingleIndex(retained[split]))) - return retained, summary, rejections +"""Split documents before tokenization, using exact hashes and verified shingle overlap.""" + +import hashlib +import re +import unicodedata +from collections import Counter, defaultdict +from dataclasses import dataclass +from typing import Callable + + +def canonical(text: str) -> str: + """Make whitespace, case and Unicode compatibility variants equal for leakage checks.""" + return " ".join(unicodedata.normalize("NFKC", text).casefold().split()) + + +def content_hash(text: str) -> str: + """Use a stable identity across processes, files and operating systems.""" + return hashlib.sha256(canonical(text).encode("utf-8")).hexdigest() + + +@dataclass(frozen=True, slots=True) +class Document: + """Preserve the source text for tokenization and its normalized identity for audits.""" + + source_id: str + text: str + digest: str + submitted: str = "" + + @classmethod + def make(cls, source_id: str, text: str, submitted: str = "") -> "Document": + return cls(source_id, text.strip(), content_hash(text), submitted) + + +def shingles(text: str) -> set[str]: + """Use distinct five-word runs and one whole-text key for very short documents.""" + words = re.findall(r"\w+", canonical(text)) + if len(words) < 5: + return {" ".join(words) if words else canonical(text)} + return {" ".join(words[i:i + 5]) for i in range(len(words) - 4)} + + +def prefix_size(size: int) -> int: + """At 4/5 Jaccard, at most floor(size/5) items may be outside the intersection.""" + return size // 5 + 1 + + +class ShingleIndex: + """Index a higher-priority split using the lossless prefix filtering lemma. + + For Jaccard >= 4/5 the overlap must cover at least 4/5 of each set. Under + a common term order, its first shared term falls in both indexed prefixes. + Full set comparison verifies all candidates. See Xiao et al., section 2.2: + https://archives.iw3c2.org/www2008/papers/pdf/p131-xiaoA.pdf + """ + + def __init__(self, documents: list[Document]) -> None: + self.documents = documents + self.frequency = Counter() + self.postings = defaultdict(list) + self.lengths = [] + # A rare-first order reduces overlap from generic story openings. + for doc in documents: + self.frequency.update(shingles(doc.text)) + for index, doc in enumerate(documents): + terms = shingles(doc.text) + self.lengths.append(len(terms)) + for term in self._prefix(terms): + self.postings[term].append(index) + + def _prefix(self, terms: set[str]) -> list[str]: + """Unknown terms sort first and cannot appear in any reference posting.""" + known = [term for term in terms if term in self.frequency] + count = prefix_size(len(terms)) - (len(terms) - len(known)) + if count <= 0: + return [] + known.sort(key=lambda term: (self.frequency[term], term)) + return known[:count] + + def match(self, terms: set[str]) -> Document | None: + """Return the earliest source match; exact integer arithmetic decides the cutoff.""" + candidates = set() + for term in self._prefix(terms): + candidates.update(self.postings.get(term, ())) + for index in sorted(candidates): + n, m = len(terms), self.lengths[index] + if 5 * min(n, m) < 4 * max(n, m): + continue + doc = self.documents[index] + common = len(terms.intersection(shingles(doc.text))) + if 5 * common >= 4 * (n + m - common): + return doc + return None + + +def clean_splits(raw: dict[str, list[Document]], log: Callable[[str], None]) -> tuple[dict, dict, list]: + """Protect test, then dev, then train; retain an audit trail without publishing text.""" + retained: dict[str, list[Document]] = {} + seen: dict[str, tuple[str, str]] = {} + protected: list[tuple[str, ShingleIndex]] = [] + rejections = [] + summary = {} + for split in ("test", "dev", "train"): + retained[split] = [] + reasons = Counter() + for row, doc in enumerate(raw[split]): + if row and row % 25000 == 0: + log(f"audited {row:,}/{len(raw[split]):,} {split} documents") + reason, other_split, other_id = "", "", "" + if not canonical(doc.text): + reason = "empty" + elif doc.digest in seen: + reason = "exact" + other_split, other_id = seen[doc.digest] + elif protected: + terms = shingles(doc.text) + for name, reference in protected: + match = reference.match(terms) + if match is not None: + reason, other_split, other_id = "near", name, match.source_id + break + if reason: + reasons[reason] += 1 + rejections.append(dict(split=split, source_id=doc.source_id, sha256=doc.digest, + reason=reason, reference_split=other_split, reference_id=other_id)) + else: + seen[doc.digest] = (split, doc.source_id) + retained[split].append(doc) + summary[split] = dict(input=len(raw[split]), kept=len(retained[split]), + exact=reasons["exact"], cross_split_near=reasons["near"], empty=reasons["empty"]) + log(f"{split} overlap audit {summary[split]}") + if split != "train": + protected.append((split, ShingleIndex(retained[split]))) + return retained, summary, rejections diff --git a/research/src/thirdloss/penalties.py b/research/src/thirdloss/penalties.py index e01952cd537ec7b8e1b296d51839b41a8b2dd5a2..4c39e88b2b7a27461936eb6f8b5baa49b09383c1 100644 --- a/research/src/thirdloss/penalties.py +++ b/research/src/thirdloss/penalties.py @@ -1,59 +1,59 @@ -"""Parameter-space derivative penalties following the equations in reports/preregistration.md. - -The rank-one trace identity is developed in https://arxiv.org/pdf/2004.06433. -Keep every derivative differentiable until the outer training gradient is taken. -""" - -import torch - - -def random_signs(parameters, generator=None): - """Draw independent signs in each parameter's coordinates, fixed during differentiation.""" - return tuple(torch.empty_like(p).bernoulli_(0.5, generator=generator).mul_(2).sub_(1) - for p in parameters) - - -def partials(value, parameters, *, create_graph=True): - """Differentiate a scalar, including structurally constant or unused coordinates.""" - if not value.requires_grad: - return tuple(torch.zeros_like(p) for p in parameters) - values = torch.autograd.grad(value, parameters, create_graph=create_graph, - allow_unused=True, retain_graph=True) - return tuple(torch.zeros_like(p) if g is None else g for p, g in zip(parameters, values, strict=True)) - - -def inner(left, right): - """Contract parameter-shaped tuples without flattening/copying a whole model.""" - return torch.stack([(a * b).sum() for a, b in zip(left, right, strict=True)]).sum() - - -def hessian_vector(loss, parameters, direction): - """Apply the parameter Hessian through the gradient's directional contraction.""" - return partials(inner(partials(loss, parameters), direction), parameters) - - -def third_contraction(loss, parameters, u, v, *, create_graph=True): - """Return the weight-shaped vector D³L[u,v,:], optionally retaining its fourth derivative.""" - return partials(inner(hessian_vector(loss, parameters, u), v), parameters, create_graph=create_graph) - - -def estimate(loss, parameters, kind, u=None, v=None, generator=None): - """Return one differentiable estimate of trace(H), ||H||² or ||D³loss||². - - The repeated probe in the trace and the independent second probe for D³ implement - two distinct expectations. H is always the Hessian of the unregularized loss. - """ - parameters = tuple(parameters) - if not parameters or kind not in {"trace", "hessian_norm", "third"}: - raise ValueError(f"Expected trainable parameters and a derivative penalty, received {kind!r}") - u = random_signs(parameters, generator) if u is None else tuple(x.detach() for x in u) - if kind == "third": - v = random_signs(parameters, generator) if v is None else tuple(x.detach() for x in v) - third_vector = third_contraction(loss, parameters, u, v) - value = inner(third_vector, third_vector) - else: - hu = hessian_vector(loss, parameters, u) - value = inner(hu, u if kind == "trace" else hu) - # A constant cubic tensor still needs an explicitly verifiable zero training gradient. - anchor = torch.stack([p.reshape(-1)[0] for p in parameters]).sum() * 0 - return value + anchor +"""Parameter-space derivative penalties following the equations in reports/preregistration.md. + +The rank-one trace identity is developed in https://arxiv.org/pdf/2004.06433. +Keep every derivative differentiable until the outer training gradient is taken. +""" + +import torch + + +def random_signs(parameters, generator=None): + """Draw independent signs in each parameter's coordinates, fixed during differentiation.""" + return tuple(torch.empty_like(p).bernoulli_(0.5, generator=generator).mul_(2).sub_(1) + for p in parameters) + + +def partials(value, parameters, *, create_graph=True): + """Differentiate a scalar, including structurally constant or unused coordinates.""" + if not value.requires_grad: + return tuple(torch.zeros_like(p) for p in parameters) + values = torch.autograd.grad(value, parameters, create_graph=create_graph, + allow_unused=True, retain_graph=True) + return tuple(torch.zeros_like(p) if g is None else g for p, g in zip(parameters, values, strict=True)) + + +def inner(left, right): + """Contract parameter-shaped tuples without flattening/copying a whole model.""" + return torch.stack([(a * b).sum() for a, b in zip(left, right, strict=True)]).sum() + + +def hessian_vector(loss, parameters, direction): + """Apply the parameter Hessian through the gradient's directional contraction.""" + return partials(inner(partials(loss, parameters), direction), parameters) + + +def third_contraction(loss, parameters, u, v, *, create_graph=True): + """Return the weight-shaped vector D³L[u,v,:], optionally retaining its fourth derivative.""" + return partials(inner(hessian_vector(loss, parameters, u), v), parameters, create_graph=create_graph) + + +def estimate(loss, parameters, kind, u=None, v=None, generator=None): + """Return one differentiable estimate of trace(H), ||H||² or ||D³loss||². + + The repeated probe in the trace and the independent second probe for D³ implement + two distinct expectations. H is always the Hessian of the unregularized loss. + """ + parameters = tuple(parameters) + if not parameters or kind not in {"trace", "hessian_norm", "third"}: + raise ValueError(f"Expected trainable parameters and a derivative penalty, received {kind!r}") + u = random_signs(parameters, generator) if u is None else tuple(x.detach() for x in u) + if kind == "third": + v = random_signs(parameters, generator) if v is None else tuple(x.detach() for x in v) + third_vector = third_contraction(loss, parameters, u, v) + value = inner(third_vector, third_vector) + else: + hu = hessian_vector(loss, parameters, u) + value = inner(hu, u if kind == "trace" else hu) + # A constant cubic tensor still needs an explicitly verifiable zero training gradient. + anchor = torch.stack([p.reshape(-1)[0] for p in parameters]).sum() * 0 + return value + anchor diff --git a/research/src/thirdloss/precision.py b/research/src/thirdloss/precision.py index 78bad2bb6f018206f74212f42365b5a833501c3b..476cc82ccc66376eeaff5c9461158b34ca39e7e2 100644 --- a/research/src/thirdloss/precision.py +++ b/research/src/thirdloss/precision.py @@ -1,53 +1,53 @@ -"""Independent, high-precision reference for the first real adapter calibration probe.""" - -import hashlib -import time - -import torch - -from .models import build_model, logits_of, token_loss, trainable_digest, widen_pythia -from .objectives import two_window_third_gradient -from .penalties import random_signs -from .records import storage_root, time_now, write_json -from .windows import TrainingWindows, generator, probe_rows - - -def reference_gradient(project,device): - """Generate the production CUDA signs and promote the same pretrained weights to FP64.""" - from safetensors.torch import save_file - storage=storage_root(project) - model=build_model("abstracts",0,device,storage).eval() - initial=trainable_digest(model) - parameters=tuple(p for p in model.parameters() if p.requires_grad) - # Generate signs with the *same* device generator as the observed pilot, also for CPU AD. - rng=generator(torch.device("cuda"),6247,0,827) - shapes=tuple(torch.empty_like(p,device="cuda") for p in parameters) - signs=[tuple(g.to(device=device,dtype=torch.float64) for g in random_signs(shapes,rng)) for _ in range(2)] - del shapes,parameters - widen_pythia(model) - parameters=tuple(p for p in model.parameters() if p.requires_grad) - x,y=TrainingWindows(storage/"data"/"abstracts"/"train.bin",6247,8).get(0,device) - rows=probe_rows(6247,0,8) - x,y=x[rows],y[rows] - # RoPE values are frozen position constants and follow the checkpoint's upstream formula. - with torch.no_grad(): - logits=logits_of(model,x) - nll=token_loss(logits,y).item() - logit_gap=(logits-torch.cat([logits_of(model,t[None,:]) for t in x])).abs().max().item() - del logits - started=time.perf_counter() - value,gradient=two_window_third_gradient(model,parameters,x,y,*signs) - flat=torch.cat([p.detach().flatten().cpu() for p in gradient]) - elapsed=time.perf_counter()-started - directory=storage/"diagnostics" - directory.mkdir(parents=True,exist_ok=True) - save_file({"gradient":flat},str(directory/f"pythia-reference-{device.type}.safetensors")) - h=hashlib.sha256() - for sign in (*signs[0],*signs[1]): h.update(sign.float().cpu().contiguous().numpy().tobytes()) - result={"timestamp":time_now(),"device":str(device),"dtype":"float64", "initial_trainable_sha256":initial, - "probes_sha256":h.hexdigest(),"two_window_cross_entropy":nll, - "max_logit_abs_difference":logit_gap,"penalty":value.item(),"gradient_norm":flat.norm().item(), - "finite":bool(flat.isfinite().all()),"probe_seconds":elapsed} - write_json(project/"results"/"verification"/f"pythia-fp64-{device.type}.json",result) - print(result,flush=True) - return result +"""Independent, high-precision reference for the first real adapter calibration probe.""" + +import hashlib +import time + +import torch + +from .models import build_model, logits_of, token_loss, trainable_digest, widen_pythia +from .objectives import two_window_third_gradient +from .penalties import random_signs +from .records import storage_root, time_now, write_json +from .windows import TrainingWindows, generator, probe_rows + + +def reference_gradient(project,device): + """Generate the production CUDA signs and promote the same pretrained weights to FP64.""" + from safetensors.torch import save_file + storage=storage_root(project) + model=build_model("abstracts",0,device,storage).eval() + initial=trainable_digest(model) + parameters=tuple(p for p in model.parameters() if p.requires_grad) + # Generate signs with the *same* device generator as the observed pilot, also for CPU AD. + rng=generator(torch.device("cuda"),6247,0,827) + shapes=tuple(torch.empty_like(p,device="cuda") for p in parameters) + signs=[tuple(g.to(device=device,dtype=torch.float64) for g in random_signs(shapes,rng)) for _ in range(2)] + del shapes,parameters + widen_pythia(model) + parameters=tuple(p for p in model.parameters() if p.requires_grad) + x,y=TrainingWindows(storage/"data"/"abstracts"/"train.bin",6247,8).get(0,device) + rows=probe_rows(6247,0,8) + x,y=x[rows],y[rows] + # RoPE values are frozen position constants and follow the checkpoint's upstream formula. + with torch.no_grad(): + logits=logits_of(model,x) + nll=token_loss(logits,y).item() + logit_gap=(logits-torch.cat([logits_of(model,t[None,:]) for t in x])).abs().max().item() + del logits + started=time.perf_counter() + value,gradient=two_window_third_gradient(model,parameters,x,y,*signs) + flat=torch.cat([p.detach().flatten().cpu() for p in gradient]) + elapsed=time.perf_counter()-started + directory=storage/"diagnostics" + directory.mkdir(parents=True,exist_ok=True) + save_file({"gradient":flat},str(directory/f"pythia-reference-{device.type}.safetensors")) + h=hashlib.sha256() + for sign in (*signs[0],*signs[1]): h.update(sign.float().cpu().contiguous().numpy().tobytes()) + result={"timestamp":time_now(),"device":str(device),"dtype":"float64", "initial_trainable_sha256":initial, + "probes_sha256":h.hexdigest(),"two_window_cross_entropy":nll, + "max_logit_abs_difference":logit_gap,"penalty":value.item(),"gradient_norm":flat.norm().item(), + "finite":bool(flat.isfinite().all()),"probe_seconds":elapsed} + write_json(project/"results"/"verification"/f"pythia-fp64-{device.type}.json",result) + print(result,flush=True) + return result diff --git a/research/src/thirdloss/probe_check.py b/research/src/thirdloss/probe_check.py index 0be6ac11c410a8576777e96f8194097c9ad5761e..1c3a00a2c18cf451339f94373c44b34e2391f0e7 100644 --- a/research/src/thirdloss/probe_check.py +++ b/research/src/thirdloss/probe_check.py @@ -1,109 +1,109 @@ -"""Compare both fourth-order implementations on identical pretrained weights and probes.""" - -import hashlib -import time - -import torch - -from .models import build_model, logits_of, token_loss, trainable_digest -from .objectives import ce_backward, probe_gradient, two_window_third_gradient -from .penalties import estimate, partials, random_signs -from .records import BATCHES, storage_root, time_now, write_json -from .windows import TrainingWindows, generator, probe_rows - - -def verify_pretrained(project,device): - """Use training calibration draw zero. The full joint GPU graph can exceed 10 GiB.""" - storage = storage_root(project) - model = build_model("abstracts",0,device,storage).eval() - parameters = tuple(p for p in model.parameters() if p.requires_grad) - seed,step = 6247,0 - batch_x,batch_y = TrainingWindows(storage/"data"/"abstracts"/"train.bin",seed,BATCHES["abstracts"]).get(step,device) - rows = probe_rows(seed,step,len(batch_x)) - x,y = batch_x[rows],batch_y[rows] - rng = generator(device,seed,step,827) - u,v = random_signs(parameters,rng),random_signs(parameters,rng) - def digest(tensors): - h = hashlib.sha256() - for tensor in tensors: - h.update(tensor.detach().contiguous().cpu().numpy().tobytes()) - return h.hexdigest() - result = {"timestamp":time_now(),"device":str(device),"seed":0,"calibration_seed":seed,"draw":step, - "initial_trainable_sha256":trainable_digest(model),"input_sha256":digest((x,y)), - "probes_sha256":digest((*u,*v))} - with torch.no_grad(): - single = torch.cat([logits_of(model,t[None,:]) for t in x]) - together = logits_of(model,x) - result["max_logit_abs_difference"] = (together-single).abs().max().item() - result["two_window_cross_entropy"] = token_loss(together,y).item() - del single,together - def calculate(implementation): - if device.type=="cuda": - torch.cuda.empty_cache() - torch.cuda.reset_peak_memory_stats(device) - start = time.perf_counter() - if implementation=="joint": - loss = token_loss(logits_of(model,x),y) - value = estimate(loss,parameters,"third",u=u,v=v) - gradient = partials(value,parameters,create_graph=False) - else: - value,gradient = two_window_third_gradient(model,parameters,x,y,u,v) - flat = torch.cat([g.detach().reshape(-1).cpu().double() for g in gradient]) - result[implementation] = {"penalty":value.item(),"gradient_norm":flat.norm().item(), - "seconds":time.perf_counter()-start,"finite":bool(flat.isfinite().all()), - "peak_allocated_mib":torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None} - return flat - joint = calculate("joint") - split = calculate("sequential") - result["relative_gradient_difference"] = ((joint-split).norm()/joint.norm()).item() - result["gradient_cosine"] = torch.nn.functional.cosine_similarity(joint,split,dim=0).item() - result["relative_penalty_difference"] = abs(result["joint"]["penalty"]-result["sequential"]["penalty"])/result["joint"]["penalty"] - # Repeat the actual production calibration path from a fresh model, including its - # preceding ordinary-gradient pass and independent regeneration of both probes. - del parameters,model - if device.type=="cuda": - torch.cuda.empty_cache() - fresh = build_model("abstracts",0,device,storage) - fresh_parameters = tuple(p for p in fresh.parameters() if p.requires_grad) - fresh_rng = generator(device,seed,step,827) - result["repeat_initial_trainable_sha256"] = trainable_digest(fresh) - result["repeat_probes_sha256"] = digest((*random_signs(fresh_parameters,fresh_rng),*random_signs(fresh_parameters,fresh_rng))) - ce_backward(fresh,batch_x,batch_y,2) - fresh.zero_grad(set_to_none=True) - value,gradient = probe_gradient(fresh,fresh_parameters,batch_x,batch_y,"third",seed,step) - flat = torch.cat([g.detach().reshape(-1).cpu().double() for g in gradient]) - result["repeat_production_penalty"] = value.item() - result["repeat_production_gradient_norm"] = flat.norm().item() - result["repeat_relative_gradient_difference"] = ((flat-split).norm()/split.norm()).item() - write_json(project/"results"/"verification"/f"pythia-joint-{device.type}.json",result) - print(result,flush=True) - return result - - -def benchmark_scoring(project,device): - """Measure physical inference batch sizes on the same spaced *training* windows.""" - from .evaluation import score - storage=storage_root(project) - model=build_model("abstracts",0,device,storage).eval() - path=storage/"data"/"abstracts"/"train.bin" - records=[] - for batch in (2,8,16,32): - score(model,path,device,batch,limit_windows=16) - if device.type=="cuda": - torch.cuda.reset_peak_memory_stats(device) - start=time.perf_counter() - metrics=score(model,path,device,batch,limit_windows=256) - seconds=time.perf_counter()-start - records.append(dict(batch=batch,seconds=seconds,targets_per_second=metrics["tokens"]/seconds, - peak_allocated_mib=torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None,**metrics)) - reference=records[0] - qualified=[r for r in records[1:] if abs(r["nll"]-reference["nll"])<=2e-6 - and abs(r["accuracy"]-reference["accuracy"])*r["tokens"]<=1 - and r["targets_per_second"]>=1.1*reference["targets_per_second"] - and (r["peak_allocated_mib"] is None or r["peak_allocated_mib"]<=7*1024)] - chosen=max(qualified,key=lambda r:r["targets_per_second"]) if qualified else reference - result={"timestamp":time_now(),"split":"train","device":str(device),"initial_trainable_sha256":trainable_digest(model), - "records":records,"selected_batch":chosen["batch"]} - write_json(project/"results"/"verification"/"pythia-scoring-batches.json",result) - print(result,flush=True) - return result +"""Compare both fourth-order implementations on identical pretrained weights and probes.""" + +import hashlib +import time + +import torch + +from .models import build_model, logits_of, token_loss, trainable_digest +from .objectives import ce_backward, probe_gradient, two_window_third_gradient +from .penalties import estimate, partials, random_signs +from .records import BATCHES, storage_root, time_now, write_json +from .windows import TrainingWindows, generator, probe_rows + + +def verify_pretrained(project,device): + """Use training calibration draw zero. The full joint GPU graph can exceed 10 GiB.""" + storage = storage_root(project) + model = build_model("abstracts",0,device,storage).eval() + parameters = tuple(p for p in model.parameters() if p.requires_grad) + seed,step = 6247,0 + batch_x,batch_y = TrainingWindows(storage/"data"/"abstracts"/"train.bin",seed,BATCHES["abstracts"]).get(step,device) + rows = probe_rows(seed,step,len(batch_x)) + x,y = batch_x[rows],batch_y[rows] + rng = generator(device,seed,step,827) + u,v = random_signs(parameters,rng),random_signs(parameters,rng) + def digest(tensors): + h = hashlib.sha256() + for tensor in tensors: + h.update(tensor.detach().contiguous().cpu().numpy().tobytes()) + return h.hexdigest() + result = {"timestamp":time_now(),"device":str(device),"seed":0,"calibration_seed":seed,"draw":step, + "initial_trainable_sha256":trainable_digest(model),"input_sha256":digest((x,y)), + "probes_sha256":digest((*u,*v))} + with torch.no_grad(): + single = torch.cat([logits_of(model,t[None,:]) for t in x]) + together = logits_of(model,x) + result["max_logit_abs_difference"] = (together-single).abs().max().item() + result["two_window_cross_entropy"] = token_loss(together,y).item() + del single,together + def calculate(implementation): + if device.type=="cuda": + torch.cuda.empty_cache() + torch.cuda.reset_peak_memory_stats(device) + start = time.perf_counter() + if implementation=="joint": + loss = token_loss(logits_of(model,x),y) + value = estimate(loss,parameters,"third",u=u,v=v) + gradient = partials(value,parameters,create_graph=False) + else: + value,gradient = two_window_third_gradient(model,parameters,x,y,u,v) + flat = torch.cat([g.detach().reshape(-1).cpu().double() for g in gradient]) + result[implementation] = {"penalty":value.item(),"gradient_norm":flat.norm().item(), + "seconds":time.perf_counter()-start,"finite":bool(flat.isfinite().all()), + "peak_allocated_mib":torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None} + return flat + joint = calculate("joint") + split = calculate("sequential") + result["relative_gradient_difference"] = ((joint-split).norm()/joint.norm()).item() + result["gradient_cosine"] = torch.nn.functional.cosine_similarity(joint,split,dim=0).item() + result["relative_penalty_difference"] = abs(result["joint"]["penalty"]-result["sequential"]["penalty"])/result["joint"]["penalty"] + # Repeat the actual production calibration path from a fresh model, including its + # preceding ordinary-gradient pass and independent regeneration of both probes. + del parameters,model + if device.type=="cuda": + torch.cuda.empty_cache() + fresh = build_model("abstracts",0,device,storage) + fresh_parameters = tuple(p for p in fresh.parameters() if p.requires_grad) + fresh_rng = generator(device,seed,step,827) + result["repeat_initial_trainable_sha256"] = trainable_digest(fresh) + result["repeat_probes_sha256"] = digest((*random_signs(fresh_parameters,fresh_rng),*random_signs(fresh_parameters,fresh_rng))) + ce_backward(fresh,batch_x,batch_y,2) + fresh.zero_grad(set_to_none=True) + value,gradient = probe_gradient(fresh,fresh_parameters,batch_x,batch_y,"third",seed,step) + flat = torch.cat([g.detach().reshape(-1).cpu().double() for g in gradient]) + result["repeat_production_penalty"] = value.item() + result["repeat_production_gradient_norm"] = flat.norm().item() + result["repeat_relative_gradient_difference"] = ((flat-split).norm()/split.norm()).item() + write_json(project/"results"/"verification"/f"pythia-joint-{device.type}.json",result) + print(result,flush=True) + return result + + +def benchmark_scoring(project,device): + """Measure physical inference batch sizes on the same spaced *training* windows.""" + from .evaluation import score + storage=storage_root(project) + model=build_model("abstracts",0,device,storage).eval() + path=storage/"data"/"abstracts"/"train.bin" + records=[] + for batch in (2,8,16,32): + score(model,path,device,batch,limit_windows=16) + if device.type=="cuda": + torch.cuda.reset_peak_memory_stats(device) + start=time.perf_counter() + metrics=score(model,path,device,batch,limit_windows=256) + seconds=time.perf_counter()-start + records.append(dict(batch=batch,seconds=seconds,targets_per_second=metrics["tokens"]/seconds, + peak_allocated_mib=torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else None,**metrics)) + reference=records[0] + qualified=[r for r in records[1:] if abs(r["nll"]-reference["nll"])<=2e-6 + and abs(r["accuracy"]-reference["accuracy"])*r["tokens"]<=1 + and r["targets_per_second"]>=1.1*reference["targets_per_second"] + and (r["peak_allocated_mib"] is None or r["peak_allocated_mib"]<=7*1024)] + chosen=max(qualified,key=lambda r:r["targets_per_second"]) if qualified else reference + result={"timestamp":time_now(),"split":"train","device":str(device),"initial_trainable_sha256":trainable_digest(model), + "records":records,"selected_batch":chosen["batch"]} + write_json(project/"results"/"verification"/"pythia-scoring-batches.json",result) + print(result,flush=True) + return result diff --git a/research/src/thirdloss/progress.py b/research/src/thirdloss/progress.py index aa8a491c2273c5a51da650828b9fa5fe2da0f3a5..2a325d32b44c32b95b8a536ce995e2711bb46e04 100644 --- a/research/src/thirdloss/progress.py +++ b/research/src/thirdloss/progress.py @@ -1,99 +1,99 @@ -"""Compute study progress and pre-test schedule estimates from timestamped pilot records.""" - -from datetime import datetime - -from .records import HORIZONS, json_lines, read_json, time_now, write_json -from .report_records import atomic_text, study_snapshot - - -def week_schedule(project): - """Freeze a wall-time projection from both stages without reading either test token stream. - - Each timed pilot includes its training-loop diagnostics. The interval from the final - step to the first saved sample also includes a checkpoint write and one generated text, - so scaling that interval by the test/dev token ratio is a conservative scoring proxy. - """ - root = project/"results" - target = root/"feasibility"/"one-week.json" - if target.exists(): - return read_json(target) - if any(not (target.parent/f"{s}.json").exists() for s in HORIZONS): - return None - arms = [] - def stamp(value): - return datetime.fromisoformat(value).timestamp() - for stage, horizon in HORIZONS.items(): - splits = read_json(root/"datasets"/f"{stage}.json")["splits"] - for arm in read_json(target.parent/f"{stage}.json")["arms"]: - path = root/arm["pilot_run"] - summary = read_json(path/"summary.json") - events = json_lines(path/"events.jsonl") - first, final = events[0], events[-1] - sample = json_lines(path/"samples.jsonl")[0] - full_dev = max(1, stamp(sample["timestamp"]) - stamp(final["timestamp"]) + 1) - # Scale *all* in-loop wall time with targets. At confirmation the frequency - # of diagnostic checkpoints per target is lower than or equal to that in pilots. - loop = max(summary["train_seconds"], stamp(final["timestamp"])-stamp(first["timestamp"]) - + first["train_seconds"] + 1) - finalizing = max(full_dev, stamp(summary["finished_at"])-stamp(final["timestamp"]) + 1) - test = full_dev * (splits["test"]["tokens"]-1)/(splits["dev"]["tokens"]-1) - hours = 8*(horizon/summary["tokens"]*loop + finalizing + test)/3600 - arms.append({"stage":stage, "method":arm["method"], "pilot_run":arm["pilot_run"], - "pilot_tokens_per_second":arm["tokens_per_sec"], "peak_allocated_mib":arm["peak_vram_mb"], - "pilot_loop_seconds":loop, "pilot_finalizing_seconds":finalizing, - "projected_test_seconds_per_run":test, "projected_hours_all_seeds":hours}) - # Anchor the seven-day allowance at the first optimized training update, not at forecast time. - first = json_lines(root/"stories-pilot-s00-third-r03"/"events.jsonl")[0] - checked = time_now() - hours_left = 7*24 - (stamp(checked)-stamp(first["timestamp"]))/3600 - projected = sum(a["projected_hours_all_seeds"] for a in arms) - result = {"computed_at":checked,"first_training_update_at":first["timestamp"],"arms":arms, - "hours_left_in_week":hours_left,"projected_confirmation_and_scoring_hours":projected, - "hours_available_for_other_work":hours_left-projected,"fits_measured_budget":projected<=hours_left, - "scope":"All 48 confirmations and test evaluations. Remaining secondary pilots, process startup, " - "publishing, downtime and retries use the reported headroom. Times are observational projections."} - write_json(target,result) - return result - - -def progress(project): - study = study_snapshot(project) - runs = [r for r in study["runs"] if r.get("phase") not in {"smoke","diagnostic"}] - done = [r for r in runs if r["status"] in {"complete","evaluated"}] - tests = [r for r in done if "test_nll" in r] - # Each stage has seven development candidates, two free controls, three ablations, - # three arms times eight confirmed seeds and the same number of test evaluations. - total = len(HORIZONS) * (7+2+3+2*3*8) - lines = ["# Study progress",f"Updated {time_now()}.",f"{len(done)} training/control records and " - f"{len(tests)} final evaluations are complete. This is {(len(done)+len(tests))/total:.1%} " - f"of {total} planned model milestones.", "## Current record"] - for stage,horizon in HORIZONS.items(): - rows = [r for r in done if r.get("stage")==stage] - live = [r for r in runs if r.get("stage")==stage and r not in done] - status = ", ".join(f"{r['id']} ({r['status']}, {r.get('tokens',0):,} targets)" for r in live) - lines.append(f"**{stage}** has {len(rows)} completed runs. " - + (f"Current records: {status}." if live else "The next milestone is determined by the run matrix.")) - path = project/"results"/"feasibility"/f"{stage}.json" - if path.exists(): - spec = read_json(path) - remaining = 0.0 - for arm in spec["arms"]: - completed = sum(r.get("tokens",0) for r in rows if r.get("phase")=="confirm" and r["method"]==arm["method"]) - remaining += max(0,8*horizon-completed)/arm["tokens_per_sec"]/3600 - lines.append(f"Pilot rates project {remaining:.2f} remaining confirmation GPU-hours, " - "excluding validation, exports and uploads.") - outcome = study["stages"][stage] - lines.append(f"Statistical status: {outcome['status']}. {outcome['reason']}") - schedule = week_schedule(project) - if schedule: - lines += ["## One-week feasibility", f"At the pre-test check on {schedule['computed_at']}, pilot timings projected " - f"{schedule['projected_confirmation_and_scoring_hours']:.2f} hours for all confirmatory training and " - f"scoring, with {schedule['hours_available_for_other_work']:.2f} hours of the week available for " - "secondary pilots, setup, publication and interruptions. [Timing and GPU memory by method]" - "(../results/feasibility/one-week.json)"] - lines += ["## Monitoring","Inspect runs lasting over 10, 30 and 60 minutes at 5, 15 and 30 minute intervals " - "respectively. The live dashboard refreshes between those checks. " - "[Study design](plan.md) · [Run matrix](planned-runs.md) · [Experiment ledger](experiments/experiments.md)"] - body = "\n\n".join(lines)+"\n" - atomic_text(project/"reports"/"progress.md",body) - return body +"""Compute study progress and pre-test schedule estimates from timestamped pilot records.""" + +from datetime import datetime + +from .records import HORIZONS, json_lines, read_json, time_now, write_json +from .report_records import atomic_text, study_snapshot + + +def week_schedule(project): + """Freeze a wall-time projection from both stages without reading either test token stream. + + Each timed pilot includes its training-loop diagnostics. The interval from the final + step to the first saved sample also includes a checkpoint write and one generated text, + so scaling that interval by the test/dev token ratio is a conservative scoring proxy. + """ + root = project/"results" + target = root/"feasibility"/"one-week.json" + if target.exists(): + return read_json(target) + if any(not (target.parent/f"{s}.json").exists() for s in HORIZONS): + return None + arms = [] + def stamp(value): + return datetime.fromisoformat(value).timestamp() + for stage, horizon in HORIZONS.items(): + splits = read_json(root/"datasets"/f"{stage}.json")["splits"] + for arm in read_json(target.parent/f"{stage}.json")["arms"]: + path = root/arm["pilot_run"] + summary = read_json(path/"summary.json") + events = json_lines(path/"events.jsonl") + first, final = events[0], events[-1] + sample = json_lines(path/"samples.jsonl")[0] + full_dev = max(1, stamp(sample["timestamp"]) - stamp(final["timestamp"]) + 1) + # Scale *all* in-loop wall time with targets. At confirmation the frequency + # of diagnostic checkpoints per target is lower than or equal to that in pilots. + loop = max(summary["train_seconds"], stamp(final["timestamp"])-stamp(first["timestamp"]) + + first["train_seconds"] + 1) + finalizing = max(full_dev, stamp(summary["finished_at"])-stamp(final["timestamp"]) + 1) + test = full_dev * (splits["test"]["tokens"]-1)/(splits["dev"]["tokens"]-1) + hours = 8*(horizon/summary["tokens"]*loop + finalizing + test)/3600 + arms.append({"stage":stage, "method":arm["method"], "pilot_run":arm["pilot_run"], + "pilot_tokens_per_second":arm["tokens_per_sec"], "peak_allocated_mib":arm["peak_vram_mb"], + "pilot_loop_seconds":loop, "pilot_finalizing_seconds":finalizing, + "projected_test_seconds_per_run":test, "projected_hours_all_seeds":hours}) + # Anchor the seven-day allowance at the first optimized training update, not at forecast time. + first = json_lines(root/"stories-pilot-s00-third-r03"/"events.jsonl")[0] + checked = time_now() + hours_left = 7*24 - (stamp(checked)-stamp(first["timestamp"]))/3600 + projected = sum(a["projected_hours_all_seeds"] for a in arms) + result = {"computed_at":checked,"first_training_update_at":first["timestamp"],"arms":arms, + "hours_left_in_week":hours_left,"projected_confirmation_and_scoring_hours":projected, + "hours_available_for_other_work":hours_left-projected,"fits_measured_budget":projected<=hours_left, + "scope":"All 48 confirmations and test evaluations. Remaining secondary pilots, process startup, " + "publishing, downtime and retries use the reported headroom. Times are observational projections."} + write_json(target,result) + return result + + +def progress(project): + study = study_snapshot(project) + runs = [r for r in study["runs"] if r.get("phase") not in {"smoke","diagnostic"}] + done = [r for r in runs if r["status"] in {"complete","evaluated"}] + tests = [r for r in done if "test_nll" in r] + # Each stage has seven development candidates, two free controls, three ablations, + # three arms times eight confirmed seeds and the same number of test evaluations. + total = len(HORIZONS) * (7+2+3+2*3*8) + lines = ["# Study progress",f"Updated {time_now()}.",f"{len(done)} training/control records and " + f"{len(tests)} final evaluations are complete. This is {(len(done)+len(tests))/total:.1%} " + f"of {total} planned model milestones.", "## Current record"] + for stage,horizon in HORIZONS.items(): + rows = [r for r in done if r.get("stage")==stage] + live = [r for r in runs if r.get("stage")==stage and r not in done] + status = ", ".join(f"{r['id']} ({r['status']}, {r.get('tokens',0):,} targets)" for r in live) + lines.append(f"**{stage}** has {len(rows)} completed runs. " + + (f"Current records: {status}." if live else "The next milestone is determined by the run matrix.")) + path = project/"results"/"feasibility"/f"{stage}.json" + if path.exists(): + spec = read_json(path) + remaining = 0.0 + for arm in spec["arms"]: + completed = sum(r.get("tokens",0) for r in rows if r.get("phase")=="confirm" and r["method"]==arm["method"]) + remaining += max(0,8*horizon-completed)/arm["tokens_per_sec"]/3600 + lines.append(f"Pilot rates project {remaining:.2f} remaining confirmation GPU-hours, " + "excluding validation, exports and uploads.") + outcome = study["stages"][stage] + lines.append(f"Statistical status: {outcome['status']}. {outcome['reason']}") + schedule = week_schedule(project) + if schedule: + lines += ["## One-week feasibility", f"At the pre-test check on {schedule['computed_at']}, pilot timings projected " + f"{schedule['projected_confirmation_and_scoring_hours']:.2f} hours for all confirmatory training and " + f"scoring, with {schedule['hours_available_for_other_work']:.2f} hours of the week available for " + "secondary pilots, setup, publication and interruptions. [Timing and GPU memory by method]" + "(../results/feasibility/one-week.json)"] + lines += ["## Monitoring","Inspect runs lasting over 10, 30 and 60 minutes at 5, 15 and 30 minute intervals " + "respectively. The live dashboard refreshes between those checks. " + "[Study design](plan.md) · [Run matrix](planned-runs.md) · [Experiment ledger](experiments/experiments.md)"] + body = "\n\n".join(lines)+"\n" + atomic_text(project/"reports"/"progress.md",body) + return body diff --git a/research/src/thirdloss/records.py b/research/src/thirdloss/records.py index 85f4c3fa1ba7e6175e34a694b8ffb4affba1673f..a800de00d42944f13a89d8d2f91ce9b2103bbd45 100644 --- a/research/src/thirdloss/records.py +++ b/research/src/thirdloss/records.py @@ -1,101 +1,101 @@ -"""Durable run identities, atomic JSON/checkpoint writes, and timestamped experiment records.""" - -import hashlib -import json -import os -from datetime import datetime, timezone -from pathlib import Path - -from dotenv import load_dotenv - -GITHUB = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian" -PAGES = "https://burnycoder.github.io/"+GITHUB.rsplit("/",1)[1]+"/" - -HORIZONS = {"stories": 2**24, "abstracts": 2**19} -BATCHES = {"stories": 32, "abstracts": 8} -METHODS = ("ce", "trace", "third", "hessian_norm", "sham", "combined") -RATIOS = (0.01, 0.03, 0.10) -CONTEXT = 128 - - -def time_now(): - return datetime.now(timezone.utc).isoformat(timespec="seconds") - - -def peak_process_mib(): - """OS process working-set high-water mark, including earlier activity in this interpreter.""" - if os.name=="nt": - import psutil - return psutil.Process().memory_info().peak_wset/2**20 - import resource - import sys - usage = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss - return usage/(2**20 if sys.platform=="darwin" else 1024) - - -def storage_root(project): - load_dotenv(project / ".env") - root = Path(os.environ.get("THIRDLOSS_STORAGE", "storage")).expanduser() - return (project / root).resolve() - - -def sha256(path): - with Path(path).open("rb") as stream: - return hashlib.file_digest(stream, "sha256").hexdigest() - - -def read_json(path): - return json.loads(Path(path).read_text(encoding="utf-8-sig")) - - -def write_json(path, value): - """Atomic replacement leaves the preceding durable version intact after interruption.""" - path = Path(path) - path.parent.mkdir(parents=True, exist_ok=True) - tmp = path.with_suffix(path.suffix + ".partial") - tmp.write_text(json.dumps(value, indent=2, ensure_ascii=False, allow_nan=False) + "\n", encoding="utf-8") - tmp.replace(path) - - -def json_lines(path): - if not path.exists(): - return [] - with path.open(encoding="utf-8") as stream: - return [json.loads(line) for line in stream if line.strip()] - - -class Recorder: - """Mirror every metric and complete generation to the terminal and a timestamped log.""" - - def __init__(self, project, run_id): - self.directory = project / "results" / run_id - self.directory.mkdir(parents=True, exist_ok=True) - logs = project / "logs" - logs.mkdir(exist_ok=True) - self.log = logs / f"{run_id}-{datetime.now(timezone.utc):%Y%m%dT%H%M%S%fZ}.jsonl" - - def emit(self, record, filename="events.jsonl"): - row = {"timestamp": time_now(), **record} - line = json.dumps(row, ensure_ascii=True, allow_nan=False) - for path in (self.directory / filename, self.log): - with path.open("a", encoding="utf-8") as stream: - stream.write(line + "\n") - print(line, flush=True) - - -def run_name(stage, method, phase, seed, ratio): - # Preserve the original FP32 adapter pilot under its published ID. Amended derivative - # runs have distinct records, weights, RNG checkpoints and calibrated coefficients. - suffix = "-fp64" if stage=="abstracts" and method in METHODS and method!="ce" else "" - return f"{stage}-{phase}-s{seed:02d}-{method}-r{round(ratio * 100):02d}{suffix}" - - -def setup_device(requested): - """Enable CUDA when available and keep the parameter differentiation path in FP32.""" - import torch - device = torch.device(requested) - if device.type == "cuda" and not torch.cuda.is_available(): - raise RuntimeError("The requested CUDA device is unavailable in this PyTorch installation") - if device.type == "cuda": - torch.set_float32_matmul_precision("highest") - return device +"""Durable run identities, atomic JSON/checkpoint writes, and timestamped experiment records.""" + +import hashlib +import json +import os +from datetime import datetime, timezone +from pathlib import Path + +from dotenv import load_dotenv + +GITHUB = "https://github.com/BurnyCoder/llm-training-with-penalizing-rapid-changes-of-curvature-of-its-loss-with-derivative-of-hessian" +PAGES = "https://burnycoder.github.io/"+GITHUB.rsplit("/",1)[1]+"/" + +HORIZONS = {"stories": 2**24, "abstracts": 2**19} +BATCHES = {"stories": 32, "abstracts": 8} +METHODS = ("ce", "trace", "third", "hessian_norm", "sham", "combined") +RATIOS = (0.01, 0.03, 0.10) +CONTEXT = 128 + + +def time_now(): + return datetime.now(timezone.utc).isoformat(timespec="seconds") + + +def peak_process_mib(): + """OS process working-set high-water mark, including earlier activity in this interpreter.""" + if os.name=="nt": + import psutil + return psutil.Process().memory_info().peak_wset/2**20 + import resource + import sys + usage = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss + return usage/(2**20 if sys.platform=="darwin" else 1024) + + +def storage_root(project): + load_dotenv(project / ".env") + root = Path(os.environ.get("THIRDLOSS_STORAGE", "storage")).expanduser() + return (project / root).resolve() + + +def sha256(path): + with Path(path).open("rb") as stream: + return hashlib.file_digest(stream, "sha256").hexdigest() + + +def read_json(path): + return json.loads(Path(path).read_text(encoding="utf-8-sig")) + + +def write_json(path, value): + """Atomic replacement leaves the preceding durable version intact after interruption.""" + path = Path(path) + path.parent.mkdir(parents=True, exist_ok=True) + tmp = path.with_suffix(path.suffix + ".partial") + tmp.write_text(json.dumps(value, indent=2, ensure_ascii=False, allow_nan=False) + "\n", encoding="utf-8") + tmp.replace(path) + + +def json_lines(path): + if not path.exists(): + return [] + with path.open(encoding="utf-8") as stream: + return [json.loads(line) for line in stream if line.strip()] + + +class Recorder: + """Mirror every metric and complete generation to the terminal and a timestamped log.""" + + def __init__(self, project, run_id): + self.directory = project / "results" / run_id + self.directory.mkdir(parents=True, exist_ok=True) + logs = project / "logs" + logs.mkdir(exist_ok=True) + self.log = logs / f"{run_id}-{datetime.now(timezone.utc):%Y%m%dT%H%M%S%fZ}.jsonl" + + def emit(self, record, filename="events.jsonl"): + row = {"timestamp": time_now(), **record} + line = json.dumps(row, ensure_ascii=True, allow_nan=False) + for path in (self.directory / filename, self.log): + with path.open("a", encoding="utf-8") as stream: + stream.write(line + "\n") + print(line, flush=True) + + +def run_name(stage, method, phase, seed, ratio): + # Preserve the original FP32 adapter pilot under its published ID. Amended derivative + # runs have distinct records, weights, RNG checkpoints and calibrated coefficients. + suffix = "-fp64" if stage=="abstracts" and method in METHODS and method!="ce" else "" + return f"{stage}-{phase}-s{seed:02d}-{method}-r{round(ratio * 100):02d}{suffix}" + + +def setup_device(requested): + """Enable CUDA when available and keep the parameter differentiation path in FP32.""" + import torch + device = torch.device(requested) + if device.type == "cuda" and not torch.cuda.is_available(): + raise RuntimeError("The requested CUDA device is unavailable in this PyTorch installation") + if device.type == "cuda": + torch.set_float32_matmul_precision("highest") + return device diff --git a/research/src/thirdloss/release.py b/research/src/thirdloss/release.py index 1ceba520751c1ab8ff02671c80a968cca3f4e411..f3b31a710426ae103eaf1c473bbc652629f69a81 100644 --- a/research/src/thirdloss/release.py +++ b/research/src/thirdloss/release.py @@ -1,108 +1,79 @@ -"""Publish the explicitly requested study artifacts using existing Git and Hugging Face logins.""" - -import subprocess -from pathlib import Path - -from huggingface_hub import HfApi - -from .records import GITHUB, read_json, sha256, write_json - -OWNER = "BurnyCoder" -STUDY_HUB = f"{OWNER}/thirdloss-study" -COLLECTION = f"{OWNER}/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378" -STAGE_HUB = {"stories":f"{OWNER}/thirdloss-stories", "abstracts":f"{OWNER}/thirdloss-pythia-410m-adapters"} - - -def publish_snapshot(project, message): - """Commit only curated public study outputs, then mirror tracked research files to the Hub.""" - def git(*args): - return subprocess.run(["git",*args],cwd=project,check=True,capture_output=True,text=True).stdout.strip() - if git("branch","--show-current") != "main": - raise ValueError("Publish study snapshots from the merged main branch") - public = [name for name in ("README.md","reports","docs","results") if (project/name).exists()] - git("add","--",*public) - if git("diff","--cached","--name-only"): - git("commit","-m",message,"--",*public) - git("push","origin","main") - # Allowlist tracked files, excluding the dataset bytes, .env, logs and local environments. - from huggingface_hub import CommitOperationAdd, CommitOperationDelete - tracked = git("ls-files").splitlines() - api = HfApi() - operations = [CommitOperationAdd(path_in_repo="research/"+name, path_or_fileobj=project/name) - for name in tracked if (project/name).is_file() - and (name in {"README.md","uv.lock","pyproject.toml",".env.example",".python-version","AGENTS.md"} - or name.startswith(("src/","tests/","reports/","docs/","results/")))] - # A full mirror is appropriate for the first publication. Subsequent commits transfer changes only. - cursor = project / ".cache" / "hub-mirror.json" - previous = read_json(cursor) if cursor.exists() else {} - hashes = {op.path_in_repo:sha256(op.path_or_fileobj) for op in operations} - changed = [op for op in operations if hashes[op.path_in_repo]!=previous.get(op.path_in_repo)] - # Mirror deletions too, e.g. a transient failure marker archived under attempts.json after recovery. - changed.extend(CommitOperationDelete(path_in_repo=name) for name in previous.keys()-hashes.keys() - if name.startswith("research/")) - if changed: - api.create_commit(repo_id=STUDY_HUB,operations=changed,commit_message=message) - write_json(cursor,hashes) - card = ("---\nlanguage: [en]\ntags: [scientific-research, causal-language-modeling]\n---\n" - "# Third derivatives in language-model training\n\n" - "This repository preserves the preregistration, exact source, raw observations and generated reports. " - "The primary comparison is final test NLL over paired training seeds at equal token counts. " - "Read the [current study summary](research/reports/summary.md), [paper](research/reports/paper.pdf), " - f"[GitHub project]({GITHUB}), or [collection of checkpoints](https://huggingface.co/collections/{COLLECTION}).\n") - api.upload_file(repo_id=STUDY_HUB,path_or_fileobj=card.encode(),path_in_repo="README.md", - commit_message="Describe the research archive and evidence") - return git("rev-parse","HEAD") - - -def publish_weights(project, storage, summary): - """Store each fitted checkpoint in a distinct reproducible run directory in the collection.""" - if "weights_sha256" not in summary: - return - stage, run_id = summary["stage"], summary["id"] - repo = STAGE_HUB[stage] - api = HfApi() - api.create_repo(repo,exist_ok=True) - api.add_collection_item(COLLECTION,repo,"model",exists_ok=True) - folder = storage/"checkpoints"/run_id/"export" - if sha256(folder/summary["weights_name"]) != summary["weights_sha256"]: - raise ValueError(f"Checkpoint integrity failure for {run_id}") - # Keep exports directly loadable for inference and publish the restart payload alongside - # them. The original state includes AdamW moments, RNGs and the next deterministic data step. - import torch - restart = folder.parent/"latest.pt" - state = torch.load(restart,map_location="cpu",weights_only=True) - if (state["next_step"]!=summary["steps"] or state["config"]["id"]!=run_id - or state["config"]["data_manifest_sha256"]!=summary["data_manifest_sha256"]): - raise ValueError(f"Restart state differs from the completed run {run_id}") - write_json(folder/"restart.json",{"filename":"training_state.pt","sha256":sha256(restart), - "next_step":state["next_step"],"data_manifest_sha256":summary["data_manifest_sha256"]}) - del state - api.upload_file(repo_id=repo,path_or_fileobj=restart,path_in_repo=f"runs/{run_id}/training_state.pt", - commit_message=f"Archive optimizer, data cursor and random state for {run_id}") - prior = "EleutherAI/pythia-410m" if stage=="abstracts" else "Random initialization" - exclusions = project/"results"/"verification"/"numerical-exclusions.json" - diagnostic = read_json(exclusions).get(run_id) if exclusions.exists() else None - card = (f"# {run_id}\n\n" - f"Research checkpoint for {stage} using the {summary['method']} objective. Base: {prior}. " - f"The run processed {summary['tokens']:,} training targets. Full development NLL was " - f"{summary['dev_nll']:.6f} nats per target. " - + (f"Sealed test NLL was {summary['test_nll']:.6f}. " if "test_nll" in summary else "") - + f"See the [protocol]({GITHUB}/blob/main/reports/preregistration.md) and " - f"[machine-readable results]({GITHUB}/tree/main/results/{run_id}). " - f"The [restart manifest](restart.json) identifies the saved optimizer, data cursor and RNG state. " - f"Use the pinned base and loading instructions in [the guide]({GITHUB}/blob/main/docs/runbook.md).\n") - if diagnostic: - card += f"\n{diagnostic['reason']} [Numerical audit]({GITHUB}/blob/main/reports/amendments/adapter-precision.md)\n" - card = "---\nlanguage: [en]\npipeline_tag: text-generation\n---\n" + card - (folder/"README.md").write_text(card,encoding="utf-8") - write_json(folder/"training_summary.json",summary) - api.upload_folder(repo_id=repo,folder_path=folder,path_in_repo="runs/"+run_id, - commit_message=f"Publish {run_id} training and evaluation artifacts") - description = ("Full-weight research checkpoints" if stage=="stories" else "LoRA adapters for EleutherAI/pythia-410m") - index = (f"---\nlanguage: [en]\npipeline_tag: text-generation\n" - + ("base_model: EleutherAI/pythia-410m\nlibrary_name: peft\n" if stage=="abstracts" else "library_name: pytorch\n") - + f"---\n# Third-derivative study · {stage}\n\n{description} are stored under " - f"[runs](https://huggingface.co/{repo}/tree/main/runs). Each directory includes its model card, " - f"weights, restart state, tokenizer and machine-readable scores. [Study and reproduction guide]({GITHUB})\n") - api.upload_file(repo_id=repo,path_or_fileobj=index.encode(),path_in_repo="README.md", - commit_message=f"Index {stage} checkpoint collection") +"""Publish the explicitly requested study artifacts using existing Git and Hugging Face logins.""" + +import subprocess +from pathlib import Path + +from huggingface_hub import HfApi + +from .hub_archive import COLLECTION, STAGE_HUB, publish_archive +from .records import GITHUB, read_json, sha256, storage_root, write_json + + +def publish_snapshot(project, message): + """Commit only curated public study outputs, then mirror tracked research files to the Hub.""" + def git(*args): + return subprocess.run(["git",*args],cwd=project,check=True,capture_output=True,text=True).stdout.strip() + if git("branch","--show-current") != "main": + raise ValueError("Publish study snapshots from the merged main branch") + public = [name for name in ("README.md","reports","docs","results") if (project/name).exists()] + git("add","--",*public) + if git("diff","--cached","--name-only"): + git("commit","-m",message,"--",*public) + git("push","origin","main") + revision = git("rev-parse","HEAD") + publish_archive(project,storage_root(project),revision,message) + return revision + + +def publish_weights(project, storage, summary): + """Store each fitted checkpoint in a distinct reproducible run directory in the collection.""" + if "weights_sha256" not in summary: + return + stage, run_id = summary["stage"], summary["id"] + repo = STAGE_HUB[stage] + api = HfApi() + api.create_repo(repo,exist_ok=True) + api.add_collection_item(COLLECTION,repo,"model",exists_ok=True) + folder = storage/"checkpoints"/run_id/"export" + if sha256(folder/summary["weights_name"]) != summary["weights_sha256"]: + raise ValueError(f"Checkpoint integrity failure for {run_id}") + # Keep exports directly loadable for inference and publish the restart payload alongside + # them. The original state includes AdamW moments, RNGs and the next deterministic data step. + import torch + restart = folder.parent/"latest.pt" + state = torch.load(restart,map_location="cpu",weights_only=True) + if (state["next_step"]!=summary["steps"] or state["config"]["id"]!=run_id + or state["config"]["data_manifest_sha256"]!=summary["data_manifest_sha256"]): + raise ValueError(f"Restart state differs from the completed run {run_id}") + write_json(folder/"restart.json",{"filename":"training_state.pt","sha256":sha256(restart), + "next_step":state["next_step"],"data_manifest_sha256":summary["data_manifest_sha256"]}) + del state + api.upload_file(repo_id=repo,path_or_fileobj=restart,path_in_repo=f"runs/{run_id}/training_state.pt", + commit_message=f"Archive optimizer, data cursor and random state for {run_id}") + prior = "EleutherAI/pythia-410m" if stage=="abstracts" else "Random initialization" + exclusions = project/"results"/"verification"/"numerical-exclusions.json" + diagnostic = read_json(exclusions).get(run_id) if exclusions.exists() else None + card = (f"# {run_id}\n\n" + f"Research checkpoint for {stage} using the {summary['method']} objective. Base: {prior}. " + f"The run processed {summary['tokens']:,} training targets. Full development NLL was " + f"{summary['dev_nll']:.6f} nats per target. " + + (f"Sealed test NLL was {summary['test_nll']:.6f}. " if "test_nll" in summary else "") + + f"See the [protocol]({GITHUB}/blob/main/reports/preregistration.md) and " + f"[machine-readable results]({GITHUB}/tree/main/results/{run_id}). " + f"The [restart manifest](restart.json) identifies the saved optimizer, data cursor and RNG state. " + f"Use the pinned base and loading instructions in [the guide]({GITHUB}/blob/main/docs/runbook.md).\n") + if diagnostic: + card += f"\n{diagnostic['reason']} [Numerical audit]({GITHUB}/blob/main/reports/amendments/adapter-precision.md)\n" + card = "---\nlanguage: [en]\npipeline_tag: text-generation\n---\n" + card + (folder/"README.md").write_text(card,encoding="utf-8") + write_json(folder/"training_summary.json",summary) + api.upload_folder(repo_id=repo,folder_path=folder,path_in_repo="runs/"+run_id, + commit_message=f"Publish {run_id} training and evaluation artifacts") + description = ("Full-weight research checkpoints" if stage=="stories" else "LoRA adapters for EleutherAI/pythia-410m") + index = (f"---\nlanguage: [en]\npipeline_tag: text-generation\n" + + ("base_model: EleutherAI/pythia-410m\nlibrary_name: peft\n" if stage=="abstracts" else "library_name: pytorch\n") + + f"---\n# Third-derivative study · {stage}\n\n{description} are stored under " + f"[runs](https://huggingface.co/{repo}/tree/main/runs). Each directory includes its model card, " + f"weights, restart state, tokenizer and machine-readable scores. [Study and reproduction guide]({GITHUB})\n") + api.upload_file(repo_id=repo,path_or_fileobj=index.encode(),path_in_repo="README.md", + commit_message=f"Index {stage} checkpoint collection") diff --git a/research/src/thirdloss/report_figures.py b/research/src/thirdloss/report_figures.py index a99116bbc73c49c35d8ff85fe9f94e6aa8f3fd46..eee1bf3f6b1e5a4720384b56391233e7cb983233 100644 --- a/research/src/thirdloss/report_figures.py +++ b/research/src/thirdloss/report_figures.py @@ -1,186 +1,186 @@ -"""Analytic method diagrams and publication figures from the explorer's raw-run snapshot.""" - -import os -from pathlib import Path -from tempfile import NamedTemporaryFile - -import numpy as np -from matplotlib.backends.backend_agg import FigureCanvasAgg -from matplotlib.figure import Figure -from matplotlib.patches import FancyBboxPatch - -from .report_records import COLORS, METHODS, STAGES, finite - -INK = "#263735" -GRID = "#dbe2df" - - -def _save(figure: Figure, path: Path) -> None: - """Write a stable PNG atomically for Pages and the ReportLab paper.""" - FigureCanvasAgg(figure) - with NamedTemporaryFile(dir=path.parent, suffix=".png", delete=False) as handle: - temp = Path(handle.name) - try: - figure.savefig(temp, format="png", dpi=170, bbox_inches="tight", facecolor="white") - os.replace(temp, path) - finally: - temp.unlink(missing_ok=True) - figure.clear() - - -def architecture(path: Path) -> None: - """Draw the mathematical computation graph and the trainable coordinate choice.""" - fig = Figure(figsize=(10.2, 3.2)) - ax = fig.subplots() - ax.set(xlim=(0, 10), ylim=(0, 3.25)) - ax.axis("off") - - def box(x, y, w, h, line1, line2, fill): - ax.add_patch(FancyBboxPatch((x, y), w, h, boxstyle="round,pad=0.02,rounding_size=0.1", - facecolor=fill, edgecolor="#afc7c0", linewidth=1.1)) - ax.text(x + w / 2, y + h * 0.63, line1, ha="center", va="center", - color=INK, fontsize=9.6, fontweight="semibold") - ax.text(x + w / 2, y + h * 0.29, line2, ha="center", va="center", color=INK, fontsize=8.5) - - def arrow(start, end): - ax.annotate("", xy=end, xytext=start, arrowprops={"arrowstyle": "-|>", "color": "#506c65", - "lw": 1.25, "shrinkA": 1, "shrinkB": 2}) - - box(0.06, 2.12, 2.01, 0.77, "TinyStories", "all decoder weights", "#e7f2ef") - box(0.06, 0.42, 2.01, 0.77, "Research abstracts", "Pythia QKV adapters", "#e7f2ef") - box(2.65, 1.27, 1.85, 0.77, "Next-token loss", "cross-entropy L", "#f0f3f1") - box(5.15, 2.12, 2.0, 0.77, "Hessian contraction", "independent signs u, v", "#f6ede6") - box(7.84, 2.12, 2.0, 0.77, "Third derivative", "r = grad(uᵀ H v)", "#e7f2ef") - box(7.84, 0.42, 2.0, 0.77, "Training objective", "L + weighted ‖r‖²", "#d9eee8") - arrow((2.08, 2.48), (2.65, 1.83)) - arrow((2.08, 0.80), (2.65, 1.47)) - arrow((4.51, 1.84), (5.14, 2.47)) - arrow((7.17, 2.5), (7.82, 2.5)) - arrow((8.84, 2.08), (8.84, 1.2)) - arrow((4.51, 1.43), (7.80, 0.73)) - ax.text(5.8, 0.5, "AdamW differentiates the complete objective", - fontsize=8, color="#526863", ha="center") - _save(fig, path) - - -def _axes_style(ax, xlabel, ylabel): - """Give each scale its units and never imply a zero baseline for a difference plot.""" - ax.set_xlabel(xlabel, fontsize=9) - ax.set_ylabel(ylabel, fontsize=9) - ax.grid(axis="y", color=GRID, linewidth=0.6) - ax.set_axisbelow(True) - ax.spines[["top", "right"]].set_visible(False) - ax.spines[["left", "bottom"]].set_color("#91a09c") - ax.tick_params(labelsize=8, color="#91a09c") - - -def penalty_directions(path: Path) -> None: - """Illustrate local penalty gradients on known losses, independently of training data.""" - w = np.linspace(-0.75, 0.75, 301) - # Integrate L'' = 2 sqrt(1+w) twice, fixing the loss and its slope at zero at the origin. - asymmetric = (8 / 15) * ((1 + w)**2.5 - 1) - (4 / 3) * w - examples = ( - ("Asymmetric minimum\n" + r"$L''=2\sqrt{1+w}$", (asymmetric, 2 * np.sqrt(1 + w), 1 / (1 + w))), - ("Flat quartic\n" + r"$L=w^4$", (w**4, 12 * w**2, (24 * w)**2)), - ("Steep quadratic\n" + r"$L=100w^2$", (100 * w**2, np.full_like(w, 200), np.zeros_like(w))), - ) - labels = ("Ordinary loss $L$", "Hessian trace $L''$", "Third-derivative penalty $[L''']^2$") - colors = (COLORS["ce"], COLORS["trace"], COLORS["third"]) - fig = Figure(figsize=(10.2, 5.9), layout="constrained") - axes = fig.subplots(3, 3, sharex=True) - for column, (title, curves) in enumerate(examples): - axes[0, column].set_title(title, fontsize=13, color=INK) - for row, values in enumerate(curves): - ax = axes[row, column] - _axes_style(ax, "Weight $w$" if row == 2 else "", labels[row] if column == 0 else "") - ax.locator_params(axis="y", nbins=4) - ax.set_xticks([-.5, 0, .5]) - ax.axvline(0, color="#9eaaa5", lw=.85, linestyle=":") - ax.plot(w, values, lw=2.2, color=colors[row]) - ax.plot(0, np.interp(0, w, values), "o", ms=5, mfc="white", mec=colors[row], mew=1.5) - - # Arrows indicate the algebraic descent direction. Their length is for legibility. - if row and column == 0: - steps = [(0, -.23 if row == 1 else .23)] - elif row and column == 1: - steps = [(-.55, -.32), (.55, .32)] - else: - steps = [] - for start, end in steps: - y_start, y_end = np.interp([start, end], w, values) - ax.annotate("", (end, y_end), (start, y_start), - arrowprops={"arrowstyle": "-|>", "mutation_scale": 17, - "lw": 2.2, "color": colors[row], "shrinkA": 3, "shrinkB": 0}) - # Common zero references make constant positive curvature and a zero penalty easy to read. - axes[1, 2].set(ylim=(-12, 232), yticks=[0, 100, 200]) - axes[2, 2].set(ylim=(-.12, 1.05), yticks=[0, .5, 1]) - _save(fig, path) - - -def _curves(study, path) -> bool: - """Draw actual development measurements in stage/phase panels, preserving run identity.""" - groups = {} - for run in study["runs"]: - points = [(e["tokens"], e["dev_nll"]) for e in run["events"] - if finite(e.get("tokens")) and finite(e.get("dev_nll"))] - if points: - groups.setdefault((run.get("stage"), run.get("phase")), []).append((run, points)) - if not groups: - return False - fig = Figure(figsize=(8, 2.8 * len(groups)), layout="constrained") - axes = fig.subplots(len(groups), 1, squeeze=False).ravel() - for ax, ((stage, phase), series) in zip(axes, groups.items()): - labels = set() - for run, points in series: - method = run.get("method") - label = METHODS.get(method, method) if method not in labels else "_nolegend_" - labels.add(method) - tokens, losses = zip(*points) - ax.plot(tokens, losses, color=COLORS.get(method, "#777"), marker=".", - markersize=3, linewidth=1, alpha=0.78, label=label) - _axes_style(ax, "Training target tokens", "Development NLL (nats/token)") - ax.set_title(f"{STAGES.get(stage, stage)} / {phase}", loc="left", fontsize=11, color=INK) - ax.legend(loc="best", fontsize=7, frameon=False, ncol=2) - _save(fig, path) - return True - - -def _paired(study, path) -> bool: - """Show every seed and the median interval for each registered comparison.""" - rows = [(stage, baseline, stats) for stage, outcome in study["stages"].items() - for baseline, stats in outcome.get("comparisons", {}).items() if stats.get("pairs")] - if not rows: - return False - fig = Figure(figsize=(8.5, 1.5 + 0.72 * len(rows)), layout="constrained") - ax = fig.subplots() - axis_labels = [] - for index, (stage, baseline, stats) in enumerate(rows): - axis_labels.append(f"{STAGES[stage]} / {METHODS[baseline]}") - pairs = stats["pairs"] - y = [index + (k - (len(pairs) - 1) / 2) * 0.036 for k in range(len(pairs))] - ax.scatter([pair["delta"] for pair in pairs], y, color=COLORS["third"], s=21, zorder=2) - lo, hi = stats["median_ci"] - if finite(lo) and finite(hi): - ax.hlines(index + 0.22, lo, hi, color=INK, linewidth=1.5) - ax.scatter([stats["median_delta"]], [index + 0.22], color=INK, marker="D", s=25, zorder=3) - ax.axvline(0, color="#677572", linewidth=0.8, linestyle="--") - ax.set_yticks(range(len(rows)), axis_labels) - _axes_style(ax, "Test NLL difference, third-order minus baseline (nats/token)", "") - ax.set_title("Paired seeds and median intervals", loc="left", fontsize=11, color=INK) - _save(fig, path) - return True - - -def build_figures(study: dict, directory: Path) -> dict: - """Always emit the method illustrations and add measured plots when observations exist.""" - directory.mkdir(parents=True, exist_ok=True) - architecture(directory / "architecture.png") - penalty_directions(directory / "penalty-directions.png") - products = {"architecture": "architecture.png", "penalty_directions": "penalty-directions.png"} - for key, draw in (("curves", _curves), ("paired", _paired)): - file = directory / f"{key}.png" - if draw(study, file): - products[key] = file.name - else: - file.unlink(missing_ok=True) - return products +"""Analytic method diagrams and publication figures from the explorer's raw-run snapshot.""" + +import os +from pathlib import Path +from tempfile import NamedTemporaryFile + +import numpy as np +from matplotlib.backends.backend_agg import FigureCanvasAgg +from matplotlib.figure import Figure +from matplotlib.patches import FancyBboxPatch + +from .report_records import COLORS, METHODS, STAGES, finite + +INK = "#263735" +GRID = "#dbe2df" + + +def _save(figure: Figure, path: Path) -> None: + """Write a stable PNG atomically for Pages and the ReportLab paper.""" + FigureCanvasAgg(figure) + with NamedTemporaryFile(dir=path.parent, suffix=".png", delete=False) as handle: + temp = Path(handle.name) + try: + figure.savefig(temp, format="png", dpi=170, bbox_inches="tight", facecolor="white") + os.replace(temp, path) + finally: + temp.unlink(missing_ok=True) + figure.clear() + + +def architecture(path: Path) -> None: + """Draw the mathematical computation graph and the trainable coordinate choice.""" + fig = Figure(figsize=(10.2, 3.2)) + ax = fig.subplots() + ax.set(xlim=(0, 10), ylim=(0, 3.25)) + ax.axis("off") + + def box(x, y, w, h, line1, line2, fill): + ax.add_patch(FancyBboxPatch((x, y), w, h, boxstyle="round,pad=0.02,rounding_size=0.1", + facecolor=fill, edgecolor="#afc7c0", linewidth=1.1)) + ax.text(x + w / 2, y + h * 0.63, line1, ha="center", va="center", + color=INK, fontsize=9.6, fontweight="semibold") + ax.text(x + w / 2, y + h * 0.29, line2, ha="center", va="center", color=INK, fontsize=8.5) + + def arrow(start, end): + ax.annotate("", xy=end, xytext=start, arrowprops={"arrowstyle": "-|>", "color": "#506c65", + "lw": 1.25, "shrinkA": 1, "shrinkB": 2}) + + box(0.06, 2.12, 2.01, 0.77, "TinyStories", "all decoder weights", "#e7f2ef") + box(0.06, 0.42, 2.01, 0.77, "Research abstracts", "Pythia QKV adapters", "#e7f2ef") + box(2.65, 1.27, 1.85, 0.77, "Next-token loss", "cross-entropy L", "#f0f3f1") + box(5.15, 2.12, 2.0, 0.77, "Hessian contraction", "independent signs u, v", "#f6ede6") + box(7.84, 2.12, 2.0, 0.77, "Third derivative", "r = grad(uᵀ H v)", "#e7f2ef") + box(7.84, 0.42, 2.0, 0.77, "Training objective", "L + weighted ‖r‖²", "#d9eee8") + arrow((2.08, 2.48), (2.65, 1.83)) + arrow((2.08, 0.80), (2.65, 1.47)) + arrow((4.51, 1.84), (5.14, 2.47)) + arrow((7.17, 2.5), (7.82, 2.5)) + arrow((8.84, 2.08), (8.84, 1.2)) + arrow((4.51, 1.43), (7.80, 0.73)) + ax.text(5.8, 0.5, "AdamW differentiates the complete objective", + fontsize=8, color="#526863", ha="center") + _save(fig, path) + + +def _axes_style(ax, xlabel, ylabel): + """Give each scale its units and never imply a zero baseline for a difference plot.""" + ax.set_xlabel(xlabel, fontsize=9) + ax.set_ylabel(ylabel, fontsize=9) + ax.grid(axis="y", color=GRID, linewidth=0.6) + ax.set_axisbelow(True) + ax.spines[["top", "right"]].set_visible(False) + ax.spines[["left", "bottom"]].set_color("#91a09c") + ax.tick_params(labelsize=8, color="#91a09c") + + +def penalty_directions(path: Path) -> None: + """Illustrate local penalty gradients on known losses, independently of training data.""" + w = np.linspace(-0.75, 0.75, 301) + # Integrate L'' = 2 sqrt(1+w) twice, fixing the loss and its slope at zero at the origin. + asymmetric = (8 / 15) * ((1 + w)**2.5 - 1) - (4 / 3) * w + examples = ( + ("Asymmetric minimum\n" + r"$L''=2\sqrt{1+w}$", (asymmetric, 2 * np.sqrt(1 + w), 1 / (1 + w))), + ("Flat quartic\n" + r"$L=w^4$", (w**4, 12 * w**2, (24 * w)**2)), + ("Steep quadratic\n" + r"$L=100w^2$", (100 * w**2, np.full_like(w, 200), np.zeros_like(w))), + ) + labels = ("Ordinary loss $L$", "Hessian trace $L''$", "Third-derivative penalty $[L''']^2$") + colors = (COLORS["ce"], COLORS["trace"], COLORS["third"]) + fig = Figure(figsize=(10.2, 5.9), layout="constrained") + axes = fig.subplots(3, 3, sharex=True) + for column, (title, curves) in enumerate(examples): + axes[0, column].set_title(title, fontsize=13, color=INK) + for row, values in enumerate(curves): + ax = axes[row, column] + _axes_style(ax, "Weight $w$" if row == 2 else "", labels[row] if column == 0 else "") + ax.locator_params(axis="y", nbins=4) + ax.set_xticks([-.5, 0, .5]) + ax.axvline(0, color="#9eaaa5", lw=.85, linestyle=":") + ax.plot(w, values, lw=2.2, color=colors[row]) + ax.plot(0, np.interp(0, w, values), "o", ms=5, mfc="white", mec=colors[row], mew=1.5) + + # Arrows indicate the algebraic descent direction. Their length is for legibility. + if row and column == 0: + steps = [(0, -.23 if row == 1 else .23)] + elif row and column == 1: + steps = [(-.55, -.32), (.55, .32)] + else: + steps = [] + for start, end in steps: + y_start, y_end = np.interp([start, end], w, values) + ax.annotate("", (end, y_end), (start, y_start), + arrowprops={"arrowstyle": "-|>", "mutation_scale": 17, + "lw": 2.2, "color": colors[row], "shrinkA": 3, "shrinkB": 0}) + # Common zero references make constant positive curvature and a zero penalty easy to read. + axes[1, 2].set(ylim=(-12, 232), yticks=[0, 100, 200]) + axes[2, 2].set(ylim=(-.12, 1.05), yticks=[0, .5, 1]) + _save(fig, path) + + +def _curves(study, path) -> bool: + """Draw actual development measurements in stage/phase panels, preserving run identity.""" + groups = {} + for run in study["runs"]: + points = [(e["tokens"], e["dev_nll"]) for e in run["events"] + if finite(e.get("tokens")) and finite(e.get("dev_nll"))] + if points: + groups.setdefault((run.get("stage"), run.get("phase")), []).append((run, points)) + if not groups: + return False + fig = Figure(figsize=(8, 2.8 * len(groups)), layout="constrained") + axes = fig.subplots(len(groups), 1, squeeze=False).ravel() + for ax, ((stage, phase), series) in zip(axes, groups.items()): + labels = set() + for run, points in series: + method = run.get("method") + label = METHODS.get(method, method) if method not in labels else "_nolegend_" + labels.add(method) + tokens, losses = zip(*points) + ax.plot(tokens, losses, color=COLORS.get(method, "#777"), marker=".", + markersize=3, linewidth=1, alpha=0.78, label=label) + _axes_style(ax, "Training target tokens", "Development NLL (nats/token)") + ax.set_title(f"{STAGES.get(stage, stage)} / {phase}", loc="left", fontsize=11, color=INK) + ax.legend(loc="best", fontsize=7, frameon=False, ncol=2) + _save(fig, path) + return True + + +def _paired(study, path) -> bool: + """Show every seed and the median interval for each registered comparison.""" + rows = [(stage, baseline, stats) for stage, outcome in study["stages"].items() + for baseline, stats in outcome.get("comparisons", {}).items() if stats.get("pairs")] + if not rows: + return False + fig = Figure(figsize=(8.5, 1.5 + 0.72 * len(rows)), layout="constrained") + ax = fig.subplots() + axis_labels = [] + for index, (stage, baseline, stats) in enumerate(rows): + axis_labels.append(f"{STAGES[stage]} / {METHODS[baseline]}") + pairs = stats["pairs"] + y = [index + (k - (len(pairs) - 1) / 2) * 0.036 for k in range(len(pairs))] + ax.scatter([pair["delta"] for pair in pairs], y, color=COLORS["third"], s=21, zorder=2) + lo, hi = stats["median_ci"] + if finite(lo) and finite(hi): + ax.hlines(index + 0.22, lo, hi, color=INK, linewidth=1.5) + ax.scatter([stats["median_delta"]], [index + 0.22], color=INK, marker="D", s=25, zorder=3) + ax.axvline(0, color="#677572", linewidth=0.8, linestyle="--") + ax.set_yticks(range(len(rows)), axis_labels) + _axes_style(ax, "Test NLL difference, third-order minus baseline (nats/token)", "") + ax.set_title("Paired seeds and median intervals", loc="left", fontsize=11, color=INK) + _save(fig, path) + return True + + +def build_figures(study: dict, directory: Path) -> dict: + """Always emit the method illustrations and add measured plots when observations exist.""" + directory.mkdir(parents=True, exist_ok=True) + architecture(directory / "architecture.png") + penalty_directions(directory / "penalty-directions.png") + products = {"architecture": "architecture.png", "penalty_directions": "penalty-directions.png"} + for key, draw in (("curves", _curves), ("paired", _paired)): + file = directory / f"{key}.png" + if draw(study, file): + products[key] = file.name + else: + file.unlink(missing_ok=True) + return products diff --git a/research/src/thirdloss/report_paper.py b/research/src/thirdloss/report_paper.py index 7c90ecfc91ecd939047cb0180e3755b727595c42..d6b8e8640887ede7c97650f65813c5db566805a3 100644 --- a/research/src/thirdloss/report_paper.py +++ b/research/src/thirdloss/report_paper.py @@ -1,432 +1,432 @@ -"""Typeset the preregistered study and current evidence using ReportLab Platypus. - -Flowables permit a protocol-only manuscript to expand as complete seed pairs appear. -Renderer reference: https://docs.reportlab.com/reportlab/userguide/ch5_platypus/ -""" - -import os -from datetime import datetime -from pathlib import Path -from statistics import median -from tempfile import NamedTemporaryFile -from xml.sax.saxutils import escape, quoteattr -from zoneinfo import ZoneInfo, ZoneInfoNotFoundError - -from matplotlib import get_data_path -from reportlab.lib import colors -from reportlab.lib.enums import TA_LEFT -from reportlab.lib.pagesizes import A4 -from reportlab.lib.styles import ParagraphStyle -from reportlab.pdfbase import pdfmetrics -from reportlab.pdfbase.ttfonts import TTFont -from reportlab.platypus import ( - Image, KeepTogether, LongTable, PageBreak, Paragraph, SimpleDocTemplate, Spacer, TableStyle, -) - -from .report_records import METHODS, REPOSITORY, STAGES, completed, describe_difference, example_runs, finite, fmt, verdict_text - -REFERENCES = { - "flat": ("Hochreiter and Schmidhuber (1994), Simplifying neural nets by discovering flat minima", - "https://proceedings.neurips.cc/paper/1994/hash/01882513d5fa7c329e940dda99b12147-Abstract.html"), - "flat_mdl": ("Hochreiter and Schmidhuber (1997), Flat Minima", - "https://people.idsia.ch/~juergen/fm/node1.html"), - "gpt_trace": ("Zhang, Li and Ju, Noise Stability Optimization for Finding Flat Minima: A Hessian-based Regularization Approach", - "https://arxiv.org/pdf/2306.08553#page=12"), - "roughness": ("Duchon, Splines minimizing rotation-invariant semi-norms in Sobolev spaces", - "https://doi.org/10.1007/BFb0086566"), - "trace": ("Liu, Yu and Lin, Regularizing deep neural networks with stochastic estimators of Hessian trace", - "https://arxiv.org/pdf/2208.05924"), - "sketch": ("Bujanović and Kressner, Norm and trace estimation with random rank-one vectors", - "https://arxiv.org/pdf/2004.06433"), - "fut": ("Yang et al., Estimating the effects of sample training orders for large language models without retraining", - "https://arxiv.org/pdf/2505.22042#page=16"), - "stories": ("Eldan and Li, TinyStories", "https://arxiv.org/pdf/2305.07759"), - "pythia": ("Biderman et al., Pythia", "https://arxiv.org/pdf/2304.01373"), - "lora": ("Hu et al., Low-rank adaptation of large language models", "https://arxiv.org/pdf/2106.09685"), - "abstracts": ("Common Pile, Filtered arXiv abstracts", "https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered"), - "seeds": ("Bouthillier et al., Accounting for variance in machine learning benchmarks", - "https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html"), - "coordinates": ("Dinh et al., Sharp minima can generalize for deep nets", - "https://proceedings.mlr.press/v70/dinh17b.html"), -} -TEAL = "#006c60" -INK = "#263735" -MUTED = "#4b5e59" - - -def _link(url, label): - return f"{escape(str(label))}" - - -def _cite(key): - label, url = REFERENCES[key] - return _link(url, label.rsplit(", ",1)[0]) - - -def _styles(): - """Use embedded Unicode fonts shipped with Matplotlib on every supported machine.""" - fonts = Path(get_data_path()) / "fonts" / "ttf" - for name, file in (("PaperSans", "DejaVuSans.ttf"), ("PaperBold", "DejaVuSans-Bold.ttf"), - ("PaperSerif", "DejaVuSerif.ttf")): - if name not in pdfmetrics.getRegisteredFontNames(): - pdfmetrics.registerFont(TTFont(name, str(fonts / file))) - pdfmetrics.registerFontFamily("PaperSans", normal="PaperSans", bold="PaperBold", - italic="PaperSans", boldItalic="PaperBold") - base = dict(fontName="PaperSans", fontSize=9.0, leading=14, textColor=colors.HexColor(INK), - alignment=TA_LEFT, spaceAfter=7, splitLongWords=True) - styles = {"body": ParagraphStyle("body", **base)} - for name, changes in { - "title": dict(fontName="PaperSerif", fontSize=25, leading=30, spaceAfter=9, keepWithNext=True), - "heading": dict(fontName="PaperSerif", fontSize=15, leading=20, spaceBefore=8, spaceAfter=6, keepWithNext=True), - "subheading": dict(fontName="PaperBold", fontSize=10.4, leading=14, spaceBefore=6, keepWithNext=True), - "byline": dict(fontSize=9.5, leading=15, textColor=colors.HexColor(TEAL), spaceAfter=13), - "caption": dict(fontSize=7.8, leading=11.2, textColor=colors.HexColor(MUTED), spaceAfter=7), - "cell": dict(fontSize=7.45, leading=10.4, spaceAfter=0), - "headcell": dict(fontName="PaperBold", fontSize=7.3, leading=10.4, textColor=colors.white, spaceAfter=0), - "equation": dict(fontName="PaperSerif", fontSize=12.4, leading=19, leftIndent=9, - spaceBefore=3, spaceAfter=9), - }.items(): - styles[name] = ParagraphStyle(name, parent=styles["body"], **changes) - return styles - - -def _grid(styles, headers, rows, widths): - """Repeat the column labels if the growing experiment table spans multiple pages.""" - def line(cells, style): - return [Paragraph(escape(str(cell)), styles[style]) for cell in cells] - table = LongTable([line(headers, "headcell"), *[line(r, "cell") for r in rows]], - colWidths=widths, repeatRows=1, hAlign="LEFT", splitByRow=True) - table.setStyle(TableStyle([ - ("BACKGROUND", (0, 0), (-1, 0), colors.HexColor("#34504a")), - ("ROWBACKGROUNDS", (0, 1), (-1, -1), [colors.white, colors.HexColor("#f0f5f2")]), - ("VALIGN", (0, 0), (-1, -1), "TOP"), - ("LEFTPADDING", (0, 0), (-1, -1), 5), ("RIGHTPADDING", (0, 0), (-1, -1), 5), - ("TOPPADDING", (0, 0), (-1, -1), 4.5), ("BOTTOMPADDING", (0, 0), (-1, -1), 4.5), - ])) - return table - - -def _figure(path, max_width=477, max_height=240): - image = Image(str(path)) - scale = min(max_width / image.imageWidth, max_height / image.imageHeight) - image.drawWidth = image.imageWidth * scale - image.drawHeight = image.imageHeight * scale - image.hAlign = "LEFT" - return image - - -def _result_tables(study): - """Group scores at equal token horizons and compare resource use on like hardware.""" - groups = {} - for run in study["runs"]: - if completed(run): - key = (run.get("stage"), run.get("phase"), run.get("method"), - run.get("ratio"), run.get("tokens")) - groups.setdefault(key, []).append(run) - scores, resources = [], {} - - def middle(runs, key, digits): - values = [r[key] for r in runs if finite(r.get(key))] - return fmt(median(values), digits) if values else "—" - - for (stage, phase, method, ratio, tokens), runs in groups.items(): - arm = [STAGES.get(stage, stage), phase, METHODS.get(method, method), fmt(ratio)] - scores.append([*arm, len(runs), fmt(tokens, 0), middle(runs, "dev_nll", 4), middle(runs, "test_nll", 4)]) - devices = {} - for run in runs: - hardware = run.get("gpu") or run.get("device") or "Hardware unrecorded" - devices.setdefault(hardware, []).append(run) - for device, subset in devices.items(): - timed = [r for r in subset if finite(r.get("train_seconds")) and r["train_seconds"] > 0] - gpu = [r for r in subset if r.get("gpu") or str(r.get("device", "")).startswith("cuda")] - resources.setdefault(device, []).append([ - *arm, len(subset), fmt(tokens, 0), middle(timed, "train_seconds", 1), - middle(timed, "tokens_per_sec", 0), middle(gpu, "peak_vram_mb", 1), - ]) - return scores, resources - - -def _matched_rows(study,key="matched_time"): - """Print every matched seed, including each arm's distance from the shared cutoff.""" - rows = [] - for stage, outcome in study["stages"].items(): - for entry in outcome.get(key, []): - cutoff = entry["cutoff_seconds"] - losses = [] - for method in ("ce", "trace", "third"): - point = entry["by_method"][method] - lag = point["staleness_seconds"] - losses.append(f"{fmt(point['dev_nll'], 4)} ({fmt(lag, 1)})") - rows.append([STAGES[stage], entry["seed"], fmt(cutoff, 1), *losses]) - return rows - - -def write_paper(study: dict, output: Path, figure_dir: Path, figures: dict) -> None: - """Create the dated paper, with pretraining and adaptation interpreted separately.""" - styles = _styles() - flow = [] - - def p(markup, style="body"): - flow.append(Paragraph(markup, styles[style])) - - try: - local_time = datetime.fromisoformat(study["generated_at"]).astimezone(ZoneInfo("Europe/Berlin")) - except ZoneInfoNotFoundError: - local_time = datetime.fromisoformat(study["generated_at"]).astimezone() - rendered = local_time.strftime("%d %B %Y") - p("Third-derivative regularization for causal language models", "title") - p(f"Libor “Burny” Burian  ·  {rendered}", "byline") - p("Abstract", "heading") - p("We study whether a language model improves its predictions when training penalizes " - "variation in the curvature of its next-token loss. Independent random signs produce " - "a differentiable estimate of the squared norm of all third partial derivatives in " - "the trainable coordinates. Two matched interventions compare this objective with " - "ordinary AdamW and a signed Hessian-trace penalty. " + - " ".join(f"{STAGES[s]}: {escape(verdict_text(outcome))}" for s, outcome in study["stages"].items())) - p("Motivation and related work", "heading") - p("Hochreiter and Schmidhuber proposed that flatter minima may generalize better at comparable " - "training error. Coarser weights can preserve the fit, so fewer bits can describe it. Their " - "minimum-description-length argument predicts less expected overfitting. Rescaling can alter " - "sharpness while preserving predictions, so we measure held-out token loss. " - f"{_cite('flat')} · {_cite('flat_mdl')} · {_cite('coordinates')}") - p("The Hessian can change at constant trace. Squared third partials penalize this variation, " - "adapting an order-three spline roughness measure. Earlier work studied trace regularization " - "in recurrent language models and a symmetric perturbation approximation in GPT-2 fine-tuning. " - f"{_cite('roughness')} · {_cite('trace')} · {_cite('gpt_trace')}, Table 5") - p("FUT++ uses differences between Hessian estimates at consecutive checkpoints to approximate " - "third weight derivatives and predict the effect of reordering training batches. Here the " - "squared norm enters the loss and changes the optimizer update. " - f"{_cite('fut')}, Appendix A.1, equations 14–15.") - p("The estimator and its update", "heading") - p("J(θ) = L(θ) + λ · ‖D³L(θ)‖²F", "equation") - p("For independent Rademacher vectors u and v, form r = ∇(uᵀHv). Squaring and summing " - "its coordinates, then averaging over probes, cancels every cross term with unmatched " - "indices. The expectation is the squared Frobenius norm of the minibatch third derivative. " - "The gradient through r supplies a fourth-derivative contraction to AdamW. The " - "derivative minibatch contains two windows. A Bernoulli gate samples one eighth of " - "updates and multiplies the active contribution by eight. " - f"{_cite('sketch')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Preregistration')}") - flow.append(KeepTogether([_figure(figure_dir / figures["architecture"], max_height=140), - Paragraph("Figure 1. Trainable coordinate sets and the stochastic " - "regularization path.", styles["caption"])])) - flow.append(PageBreak()) - p("Experimental design", "heading") - p("Full-weight pretraining uses a four-block causal Transformer with width 192, four heads, " - "a gated 512-wide MLP, tied embeddings and 128 targets per window. Stories use a " - "train-only vocabulary of 4,096 tokens. The adapter stage freezes Pythia-410M and trains " - "rank-eight attention QKV adapters with scale alpha 16. The first-submission timestamp " - "sets the split within 2024, grouping versions by base arXiv identifier. January through April supply training text, May supplies " - "development text, and June supplies the held-out test. " - f"{_cite('stories')} · {_cite('pythia')} · {_cite('lora')} · {_cite('abstracts')}") - p("The confirmatory horizons are 16,777,216 target tokens for stories and 524,288 for " - "abstracts. Within a stage, each seed pairs starting weights, text order and optimizer " - "schedule. The pilot calibrates penalty gradients on training data and selects strength " - "at equal development horizons. The squared-Hessian, sign-randomized and combined arms " - "test derivative order, gradient direction and incremental benefit. Initial checkpoints " - "and token unigrams supply untrained references. " - f"{_link(REPOSITORY + '/blob/main/reports/planned-runs.md', 'Run matrix')}") - p("Each update averages 32 windows for stories or eight for adapters. AdamW uses β₁ = 0.9, " - "β₂ = 0.95, matrix weight decay 0.1 and gradient norm clipping at one. Peak learning " - "rates are 0.0003 and 0.0001, respectively, with 5% warmup and cosine decay to 10% of peak. " - "Across 16 batches at the shared pilot initialization, the median ordinary-to-penalty " - "gradient-norm ratio sets the scale. Both regularizers try 1%, 3% and 10% of this scale. " - f"{_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Training and selection protocol')}") - p("Normalize and deduplicate whole documents before fitting the stories tokenizer. Prioritize " - "evaluation records when removing overlaps, and audit word-shingle similarity between " - "splits. Pack documents with an end-of-sequence token. Full evaluation counts each valid " - "target once. During training, the development curve uses a fixed subset of windows. " - f"{_link(REPOSITORY + '/blob/main/docs/data.md', 'Data preparation and overlap audit')}") - data_rows = [[STAGES[stage], name, fmt(split.get("documents"), 0), fmt(split.get("tokens"), 0)] - for stage, context in study["context"].items() - for name, split in context["datasets"].get("splits", {}).items()] - if data_rows: - flow.append(_grid(styles, ["Corpus", "Split", "Retained documents", "Packed tokens"], - data_rows, [112, 90, 132, 141])) - p("Packed-token counts include document separators. The number of valid next-token " - "targets is recorded separately during evaluation.", "caption") - p("Statistical analysis", "heading") - p("Corpus negative log-likelihood sums token losses and divides by the valid target count. " - "For each baseline, paired differences subtract baseline NLL from third-order NLL at the " - "same token budget. The registered stage decision requires both one-sided exact paired " - "sign tests to pass Holm correction at 0.05 across eight seed pairs. Ties are removed " - "from sign-test denominators. A distribution-free order-statistic interval quantifies " - "uncertainty in the median paired difference. Equal-time analyses use the latest logged " - "development checkpoint within the shortest final training time of that seed triple. " - f"{_cite('seeds')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Decision rule')}") - p("Results", "heading") - numerical = study.get("numerics",{}) - single = numerical.get("pythia-joint-cuda",{}) - double = numerical.get("pythia-fp64-agreement",{}) - if single and double: - p("Numerical accuracy on the pretrained checkpoint", "subheading") - p(f"For identical Pythia weights and probe signs, changing the FP32 CUDA batching gave a " - f"{100*single['relative_gradient_difference']:.1f}% relative discrepancy in the training gradient. " - f"In FP64 the CPU and GPU gradients agreed to relative error {double['relative_gradient_difference']:.2g}. " - "The initial FP32 pilot is retained as a diagnostic. The amended adapter arms compute their " - "penalties in FP64 on the CPU and use CUDA for the ordinary loss and optimizer updates. " - f"{_link(REPOSITORY + '/blob/main/reports/amendments/adapter-precision.md','Pre-test amendment and raw checks')}") - run_count = len(study["runs"]) - done_count = sum(completed(run) for run in study["runs"]) - p(f"The ledger contains {run_count} runs and {done_count} completed summaries. " - f"{_link(REPOSITORY + '/tree/main/results', 'Raw records')} · " - f"{_link(REPOSITORY + '/blob/main/reports/experiments/experiments.md', 'Per-run ledger')}") - for stage, outcome in study["stages"].items(): - p(f"{STAGES[stage]}. {escape(verdict_text(outcome))}") - context = study["context"][stage] - selected = context["selection"].get("ratios", {}) - if selected: - p(f"Development selected trace ratio {fmt(selected.get('trace'))} and third-order " - f"ratio {fmt(selected.get('third'))}. " - f"{_link(REPOSITORY + '/blob/main/results/selection/' + stage + '.json', 'All candidate scores')}") - hours = context["feasibility"].get("projected_confirm_training_hours") - if finite(hours): - p(f"The selected-arm pilot speeds project {hours:.2f} training hours for this full " - "confirmatory stage. This estimate covers optimization time. " - f"{_link(REPOSITORY + '/blob/main/results/feasibility/' + stage + '.json', 'Measured timing basis')}") - pilots = study["pilot_comparisons"][stage] - if pilots: - changes = ", ".join(f"{describe_difference(row['delta'])} against " - f"{METHODS[row['method']]}" for row in pilots) - p(f"In the development pilot at {pilots[0]['tokens']:,} training targets, third-order " - f"training recorded {changes}. The comparison uses one seed and " - f"{pilots[0]['strength_basis']}.") - evaluated, resources = _result_tables(study) - if evaluated: - p("Scores across methods", "subheading") - flow.append(_grid(styles, ["Corpus", "Phase", "Method", "Ratio", "Runs", "Tokens/run", "Dev NLL", "Test NLL"], - evaluated, [60, 53, 105, 36, 34, 69, 58, 60])) - p("Table 1. Medians over available completed runs sharing corpus, method, development " - "strength and token horizon. NLL is in nats per target token. Dashes mark missing " - "observations. The paired seed analyses use individual final test scores.", "caption") - for key, caption in (("curves", "Development NLL by logged token count. Each line is a run; " - "panels separate training stages and phases."), - ("paired", "Individual differences in test NLL. Diamonds mark median " - "differences and horizontal segments show their registered intervals.")): - if key in figures: - flow.append(KeepTogether([_figure(figure_dir / figures[key]), - Paragraph(caption, styles["caption"])])) - p("Discussion and limitations", "heading") - p("A wide minimum permits large weight displacements at a fixed loss increase. If curvature " - "starts small and changes slowly over the displacement, the loss stays low. For the loss " - "w4, the squared third derivative grows quadratically with distance from the bottom, so " - "a small descent step can pull displaced weights back. A steep quadratic has constant curvature " - "and receives zero third-derivative penalty everywhere. Finding wider basins remains a " - "geometric hypothesis. " - f"{_cite('coordinates')} · {_link(REPOSITORY + '/blob/main/docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum', 'Derivation and examples')}") - p("Predictive utility requires lower held-out loss against both baselines. A reduction in " - "the derivative estimate alone describes local geometry. Parameterization changes its " - "magnitude, including the low-rank factorization used for abstracts. The estimate targets " - "expected two-window minibatch roughness. The small datasets, limited seed count and " - "two tokenization schemes bound the interpretation. More tokens per GPU hour can change " - "the practical ranking. " - f"{_cite('coordinates')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Scope of inference')}") - p("Conclusion", "heading") - if all(outcome.get("complete") for outcome in study["stages"].values()): - confirmed = [STAGES[s] for s, outcome in study["stages"].items() if outcome.get("success")] - if confirmed: - p("The registered dual-baseline criterion was met in " + " and ".join(confirmed) + - ". The observed gain applies to the reported data, trainable coordinates and token horizons.") - else: - p("Neither stage established the registered dual-baseline improvement. The paired " - "effects and uncertainty intervals quantify the range compatible with these data.") - else: - p("The outstanding paired evaluations determine which claims can be made about prediction quality " - "at the registered horizons. The run ledger preserves every available observation and implementation failure.") - p("Appendix · Computational cost", "heading") - if resources: - for device, rows in resources.items(): - p(escape(str(device)), "subheading") - flow.append(_grid(styles, ["Corpus", "Phase", "Method", "Ratio", "Runs", "Targets/run", - "Train (s)", "Targets/s", "Peak GPU (MiB)"], - rows, [56, 49, 78, 35, 34, 64, 48, 57, 54])) - p("Times and rates are per-run medians within each hardware, method, phase, strength and " - "target budget. The clock sums synchronized training steps, including batch transfer and " - "the optimizer update and any host FP64 probe while the GPU is reserved. Evaluation, checkpointing and uploads take additional time. Peak " - "memory is PyTorch’s recorded maximum allocated GPU tensor memory during the run, including " - "evaluation. Untrained controls have no training speed.", "caption") - else: - p("Hardware, training speed and peak allocated memory will appear with the first completed run.") - p("Development NLL at matched GPU training time", "subheading") - p("For each seed the cutoff is the shortest completed training time across AdamW, trace and " - "third-order training. Fixed-window development evaluations occur at discrete checkpoints. " - "We take the latest checkpoint at or before the cutoff. Each cell gives NLL in nats per target " - "token, followed by its lag behind the cutoff in seconds. Larger lags make the time comparison " - "coarser. The archived per-seed table also records the token count at each checkpoint. " - f"{_link(REPOSITORY + '/blob/main/reports/summary.md', 'Per-seed timing records')}", "caption") - matched = _matched_rows(study) - if matched: - flow.append(_grid(styles, ["Corpus", "Seed", "Cutoff (s)", "AdamW NLL (lag s)", - "Trace NLL (lag s)", "Third NLL (lag s)"], - matched, [82, 34, 65, 98, 98, 98])) - else: - p("Awaiting a complete, timed three-method confirmatory seed with eligible development checkpoints.", "caption") - nonhost = _matched_rows(study,"matched_nonhost_time") - if nonhost: - p("Adapter timing after subtracting host derivative calls", "subheading") - p("This supplementary clock removes the observed duration of host derivative calls including their " - "transfers. The table uses the same fixed development windows and reports checkpoint lags in seconds. " - "Individual CUDA kernel durations were not profiled.", "caption") - flow.append(_grid(styles,["Corpus","Seed","Cutoff (s)","AdamW NLL (lag s)", - "Trace NLL (lag s)","Third NLL (lag s)"],nonhost,[82,34,65,98,98,98])) - pair_rows = [[STAGES[stage], METHODS.get(base, base), pair["seed"], - fmt(pair["third_nll"], 5), fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)] - for stage, outcome in study["stages"].items() - for base, stats in outcome.get("comparisons", {}).items() for pair in stats["pairs"]] - if pair_rows: - p("Appendix · Paired effects", "heading") - flow.append(_grid(styles, ["Corpus", "Baseline", "Seed", "Third NLL", "Baseline NLL", "ΔNLL"], - pair_rows, [85, 110, 40, 78, 82, 80])) - for stage, outcome in study["stages"].items(): - for base, stats in outcome.get("comparisons", {}).items(): - lo, hi = stats["median_ci"] - p(f"{STAGES[stage]} / {METHODS[base]}: median ΔNLL {fmt(stats['median_delta'], 5)}, " - f"interval [{fmt(lo,5)}, {fmt(hi,5)}] at achieved coverage {fmt(stats['ci_coverage'],4)}. " - f"Holm-adjusted p = {fmt(stats['p_holm'], 5)}.", "caption") - examples = example_runs(study["runs"]) - if examples: - p("Appendix · Output examples", "heading") - p("For each stage and method, the first registered checkpoint and sample in run-ID order is shown in excerpt. " - "The experiment ledger contains every full saved continuation and its corresponding " - f"reference when recorded. {_link(REPOSITORY + '/tree/main/reports/experiments', 'All outputs')}") - for run in examples: - sample = run["samples"][0] - label = f"{STAGES[run['stage']]} · {METHODS[run['method']]} · {run['phase']}, seed {run['seed']}" - url = REPOSITORY + "/blob/main/results/" + run["id"] + "/samples.jsonl" - example = [Paragraph(_link(url,label), styles["subheading"])] - for field, name in (("prompt", "Prompt"), ("reference", "Reference"), ("continuation", "Prediction")): - if sample.get(field) is not None: - value = str(sample[field]) - excerpt = value[:420] + (" […]" if len(value) > 420 else "") - example.append(Paragraph(f"{name}. {escape(excerpt)}", styles["caption"])) - flow.append(KeepTogether(example)) - p("References and reproducibility", "heading") - for title, url in REFERENCES.values(): - p(_link(url, title), "caption") - p(f"Rebuild tables, figures, the explorer and this paper with uv run thirdloss report. " - f"{_link(REPOSITORY, 'Code and versioned protocol')}", "caption") - p("AI statement", "subheading") - p("Codex wrote the codebase and paper from the exact specification provided by a human. " - "Human cleanup and rewriting are in progress.", "caption") - - def footer(canvas, doc): - canvas.saveState() - canvas.setStrokeColor(colors.HexColor("#ccd8d3")) - canvas.line(doc.leftMargin, 40, A4[0] - doc.rightMargin, 40) - canvas.setFillColor(colors.HexColor(MUTED)) - canvas.setFont("PaperSans", 7.4) - canvas.drawString(doc.leftMargin, 27, "THIRD-DERIVATIVE REGULARIZATION") - canvas.drawRightString(A4[0] - doc.rightMargin, 27, str(doc.page)) - canvas.restoreState() - - output.parent.mkdir(parents=True, exist_ok=True) - with NamedTemporaryFile(dir=output.parent, suffix=".pdf", delete=False) as handle: - tmp = Path(handle.name) - try: - document = SimpleDocTemplate(str(tmp), pagesize=A4, leftMargin=49, rightMargin=49, - topMargin=43, bottomMargin=54, - title="Third-derivative regularization for causal language models", - author="Libor “Burny” Burian") - document.build(flow, onFirstPage=footer, onLaterPages=footer) - os.replace(tmp, output) - finally: - tmp.unlink(missing_ok=True) +"""Typeset the preregistered study and current evidence using ReportLab Platypus. + +Flowables permit a protocol-only manuscript to expand as complete seed pairs appear. +Renderer reference: https://docs.reportlab.com/reportlab/userguide/ch5_platypus/ +""" + +import os +from datetime import datetime +from pathlib import Path +from statistics import median +from tempfile import NamedTemporaryFile +from xml.sax.saxutils import escape, quoteattr +from zoneinfo import ZoneInfo, ZoneInfoNotFoundError + +from matplotlib import get_data_path +from reportlab.lib import colors +from reportlab.lib.enums import TA_LEFT +from reportlab.lib.pagesizes import A4 +from reportlab.lib.styles import ParagraphStyle +from reportlab.pdfbase import pdfmetrics +from reportlab.pdfbase.ttfonts import TTFont +from reportlab.platypus import ( + Image, KeepTogether, LongTable, PageBreak, Paragraph, SimpleDocTemplate, Spacer, TableStyle, +) + +from .report_records import METHODS, REPOSITORY, STAGES, completed, describe_difference, example_runs, finite, fmt, verdict_text + +REFERENCES = { + "flat": ("Hochreiter and Schmidhuber (1994), Simplifying neural nets by discovering flat minima", + "https://proceedings.neurips.cc/paper/1994/hash/01882513d5fa7c329e940dda99b12147-Abstract.html"), + "flat_mdl": ("Hochreiter and Schmidhuber (1997), Flat Minima", + "https://people.idsia.ch/~juergen/fm/node1.html"), + "gpt_trace": ("Zhang, Li and Ju, Noise Stability Optimization for Finding Flat Minima: A Hessian-based Regularization Approach", + "https://arxiv.org/pdf/2306.08553#page=12"), + "roughness": ("Duchon, Splines minimizing rotation-invariant semi-norms in Sobolev spaces", + "https://doi.org/10.1007/BFb0086566"), + "trace": ("Liu, Yu and Lin, Regularizing deep neural networks with stochastic estimators of Hessian trace", + "https://arxiv.org/pdf/2208.05924"), + "sketch": ("Bujanović and Kressner, Norm and trace estimation with random rank-one vectors", + "https://arxiv.org/pdf/2004.06433"), + "fut": ("Yang et al., Estimating the effects of sample training orders for large language models without retraining", + "https://arxiv.org/pdf/2505.22042#page=16"), + "stories": ("Eldan and Li, TinyStories", "https://arxiv.org/pdf/2305.07759"), + "pythia": ("Biderman et al., Pythia", "https://arxiv.org/pdf/2304.01373"), + "lora": ("Hu et al., Low-rank adaptation of large language models", "https://arxiv.org/pdf/2106.09685"), + "abstracts": ("Common Pile, Filtered arXiv abstracts", "https://huggingface.co/datasets/common-pile/arxiv_abstracts_filtered"), + "seeds": ("Bouthillier et al., Accounting for variance in machine learning benchmarks", + "https://proceedings.mlsys.org/paper_files/paper/2021/hash/0184b0cd3cfb185989f858a1d9f5c1eb-Abstract.html"), + "coordinates": ("Dinh et al., Sharp minima can generalize for deep nets", + "https://proceedings.mlr.press/v70/dinh17b.html"), +} +TEAL = "#006c60" +INK = "#263735" +MUTED = "#4b5e59" + + +def _link(url, label): + return f"{escape(str(label))}" + + +def _cite(key): + label, url = REFERENCES[key] + return _link(url, label.rsplit(", ",1)[0]) + + +def _styles(): + """Use embedded Unicode fonts shipped with Matplotlib on every supported machine.""" + fonts = Path(get_data_path()) / "fonts" / "ttf" + for name, file in (("PaperSans", "DejaVuSans.ttf"), ("PaperBold", "DejaVuSans-Bold.ttf"), + ("PaperSerif", "DejaVuSerif.ttf")): + if name not in pdfmetrics.getRegisteredFontNames(): + pdfmetrics.registerFont(TTFont(name, str(fonts / file))) + pdfmetrics.registerFontFamily("PaperSans", normal="PaperSans", bold="PaperBold", + italic="PaperSans", boldItalic="PaperBold") + base = dict(fontName="PaperSans", fontSize=9.0, leading=14, textColor=colors.HexColor(INK), + alignment=TA_LEFT, spaceAfter=7, splitLongWords=True) + styles = {"body": ParagraphStyle("body", **base)} + for name, changes in { + "title": dict(fontName="PaperSerif", fontSize=25, leading=30, spaceAfter=9, keepWithNext=True), + "heading": dict(fontName="PaperSerif", fontSize=15, leading=20, spaceBefore=8, spaceAfter=6, keepWithNext=True), + "subheading": dict(fontName="PaperBold", fontSize=10.4, leading=14, spaceBefore=6, keepWithNext=True), + "byline": dict(fontSize=9.5, leading=15, textColor=colors.HexColor(TEAL), spaceAfter=13), + "caption": dict(fontSize=7.8, leading=11.2, textColor=colors.HexColor(MUTED), spaceAfter=7), + "cell": dict(fontSize=7.45, leading=10.4, spaceAfter=0), + "headcell": dict(fontName="PaperBold", fontSize=7.3, leading=10.4, textColor=colors.white, spaceAfter=0), + "equation": dict(fontName="PaperSerif", fontSize=12.4, leading=19, leftIndent=9, + spaceBefore=3, spaceAfter=9), + }.items(): + styles[name] = ParagraphStyle(name, parent=styles["body"], **changes) + return styles + + +def _grid(styles, headers, rows, widths): + """Repeat the column labels if the growing experiment table spans multiple pages.""" + def line(cells, style): + return [Paragraph(escape(str(cell)), styles[style]) for cell in cells] + table = LongTable([line(headers, "headcell"), *[line(r, "cell") for r in rows]], + colWidths=widths, repeatRows=1, hAlign="LEFT", splitByRow=True) + table.setStyle(TableStyle([ + ("BACKGROUND", (0, 0), (-1, 0), colors.HexColor("#34504a")), + ("ROWBACKGROUNDS", (0, 1), (-1, -1), [colors.white, colors.HexColor("#f0f5f2")]), + ("VALIGN", (0, 0), (-1, -1), "TOP"), + ("LEFTPADDING", (0, 0), (-1, -1), 5), ("RIGHTPADDING", (0, 0), (-1, -1), 5), + ("TOPPADDING", (0, 0), (-1, -1), 4.5), ("BOTTOMPADDING", (0, 0), (-1, -1), 4.5), + ])) + return table + + +def _figure(path, max_width=477, max_height=240): + image = Image(str(path)) + scale = min(max_width / image.imageWidth, max_height / image.imageHeight) + image.drawWidth = image.imageWidth * scale + image.drawHeight = image.imageHeight * scale + image.hAlign = "LEFT" + return image + + +def _result_tables(study): + """Group scores at equal token horizons and compare resource use on like hardware.""" + groups = {} + for run in study["runs"]: + if completed(run): + key = (run.get("stage"), run.get("phase"), run.get("method"), + run.get("ratio"), run.get("tokens")) + groups.setdefault(key, []).append(run) + scores, resources = [], {} + + def middle(runs, key, digits): + values = [r[key] for r in runs if finite(r.get(key))] + return fmt(median(values), digits) if values else "—" + + for (stage, phase, method, ratio, tokens), runs in groups.items(): + arm = [STAGES.get(stage, stage), phase, METHODS.get(method, method), fmt(ratio)] + scores.append([*arm, len(runs), fmt(tokens, 0), middle(runs, "dev_nll", 4), middle(runs, "test_nll", 4)]) + devices = {} + for run in runs: + hardware = run.get("gpu") or run.get("device") or "Hardware unrecorded" + devices.setdefault(hardware, []).append(run) + for device, subset in devices.items(): + timed = [r for r in subset if finite(r.get("train_seconds")) and r["train_seconds"] > 0] + gpu = [r for r in subset if r.get("gpu") or str(r.get("device", "")).startswith("cuda")] + resources.setdefault(device, []).append([ + *arm, len(subset), fmt(tokens, 0), middle(timed, "train_seconds", 1), + middle(timed, "tokens_per_sec", 0), middle(gpu, "peak_vram_mb", 1), + ]) + return scores, resources + + +def _matched_rows(study,key="matched_time"): + """Print every matched seed, including each arm's distance from the shared cutoff.""" + rows = [] + for stage, outcome in study["stages"].items(): + for entry in outcome.get(key, []): + cutoff = entry["cutoff_seconds"] + losses = [] + for method in ("ce", "trace", "third"): + point = entry["by_method"][method] + lag = point["staleness_seconds"] + losses.append(f"{fmt(point['dev_nll'], 4)} ({fmt(lag, 1)})") + rows.append([STAGES[stage], entry["seed"], fmt(cutoff, 1), *losses]) + return rows + + +def write_paper(study: dict, output: Path, figure_dir: Path, figures: dict) -> None: + """Create the dated paper, with pretraining and adaptation interpreted separately.""" + styles = _styles() + flow = [] + + def p(markup, style="body"): + flow.append(Paragraph(markup, styles[style])) + + try: + local_time = datetime.fromisoformat(study["generated_at"]).astimezone(ZoneInfo("Europe/Berlin")) + except ZoneInfoNotFoundError: + local_time = datetime.fromisoformat(study["generated_at"]).astimezone() + rendered = local_time.strftime("%d %B %Y") + p("Third-derivative regularization for causal language models", "title") + p(f"Libor “Burny” Burian  ·  {rendered}", "byline") + p("Abstract", "heading") + p("We study whether a language model improves its predictions when training penalizes " + "variation in the curvature of its next-token loss. Independent random signs produce " + "a differentiable estimate of the squared norm of all third partial derivatives in " + "the trainable coordinates. Two matched interventions compare this objective with " + "ordinary AdamW and a signed Hessian-trace penalty. " + + " ".join(f"{STAGES[s]}: {escape(verdict_text(outcome))}" for s, outcome in study["stages"].items())) + p("Motivation and related work", "heading") + p("Hochreiter and Schmidhuber proposed that flatter minima may generalize better at comparable " + "training error. Coarser weights can preserve the fit, so fewer bits can describe it. Their " + "minimum-description-length argument predicts less expected overfitting. Rescaling can alter " + "sharpness while preserving predictions, so we measure held-out token loss. " + f"{_cite('flat')} · {_cite('flat_mdl')} · {_cite('coordinates')}") + p("The Hessian can change at constant trace. Squared third partials penalize this variation, " + "adapting an order-three spline roughness measure. Earlier work studied trace regularization " + "in recurrent language models and a symmetric perturbation approximation in GPT-2 fine-tuning. " + f"{_cite('roughness')} · {_cite('trace')} · {_cite('gpt_trace')}, Table 5") + p("FUT++ uses differences between Hessian estimates at consecutive checkpoints to approximate " + "third weight derivatives and predict the effect of reordering training batches. Here the " + "squared norm enters the loss and changes the optimizer update. " + f"{_cite('fut')}, Appendix A.1, equations 14–15.") + p("The estimator and its update", "heading") + p("J(θ) = L(θ) + λ · ‖D³L(θ)‖²F", "equation") + p("For independent Rademacher vectors u and v, form r = ∇(uᵀHv). Squaring and summing " + "its coordinates, then averaging over probes, cancels every cross term with unmatched " + "indices. The expectation is the squared Frobenius norm of the minibatch third derivative. " + "The gradient through r supplies a fourth-derivative contraction to AdamW. The " + "derivative minibatch contains two windows. A Bernoulli gate samples one eighth of " + "updates and multiplies the active contribution by eight. " + f"{_cite('sketch')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Preregistration')}") + flow.append(KeepTogether([_figure(figure_dir / figures["architecture"], max_height=140), + Paragraph("Figure 1. Trainable coordinate sets and the stochastic " + "regularization path.", styles["caption"])])) + flow.append(PageBreak()) + p("Experimental design", "heading") + p("Full-weight pretraining uses a four-block causal Transformer with width 192, four heads, " + "a gated 512-wide MLP, tied embeddings and 128 targets per window. Stories use a " + "train-only vocabulary of 4,096 tokens. The adapter stage freezes Pythia-410M and trains " + "rank-eight attention QKV adapters with scale alpha 16. The first-submission timestamp " + "sets the split within 2024, grouping versions by base arXiv identifier. January through April supply training text, May supplies " + "development text, and June supplies the held-out test. " + f"{_cite('stories')} · {_cite('pythia')} · {_cite('lora')} · {_cite('abstracts')}") + p("The confirmatory horizons are 16,777,216 target tokens for stories and 524,288 for " + "abstracts. Within a stage, each seed pairs starting weights, text order and optimizer " + "schedule. The pilot calibrates penalty gradients on training data and selects strength " + "at equal development horizons. The squared-Hessian, sign-randomized and combined arms " + "test derivative order, gradient direction and incremental benefit. Initial checkpoints " + "and token unigrams supply untrained references. " + f"{_link(REPOSITORY + '/blob/main/reports/planned-runs.md', 'Run matrix')}") + p("Each update averages 32 windows for stories or eight for adapters. AdamW uses β₁ = 0.9, " + "β₂ = 0.95, matrix weight decay 0.1 and gradient norm clipping at one. Peak learning " + "rates are 0.0003 and 0.0001, respectively, with 5% warmup and cosine decay to 10% of peak. " + "Across 16 batches at the shared pilot initialization, the median ordinary-to-penalty " + "gradient-norm ratio sets the scale. Both regularizers try 1%, 3% and 10% of this scale. " + f"{_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Training and selection protocol')}") + p("Normalize and deduplicate whole documents before fitting the stories tokenizer. Prioritize " + "evaluation records when removing overlaps, and audit word-shingle similarity between " + "splits. Pack documents with an end-of-sequence token. Full evaluation counts each valid " + "target once. During training, the development curve uses a fixed subset of windows. " + f"{_link(REPOSITORY + '/blob/main/docs/data.md', 'Data preparation and overlap audit')}") + data_rows = [[STAGES[stage], name, fmt(split.get("documents"), 0), fmt(split.get("tokens"), 0)] + for stage, context in study["context"].items() + for name, split in context["datasets"].get("splits", {}).items()] + if data_rows: + flow.append(_grid(styles, ["Corpus", "Split", "Retained documents", "Packed tokens"], + data_rows, [112, 90, 132, 141])) + p("Packed-token counts include document separators. The number of valid next-token " + "targets is recorded separately during evaluation.", "caption") + p("Statistical analysis", "heading") + p("Corpus negative log-likelihood sums token losses and divides by the valid target count. " + "For each baseline, paired differences subtract baseline NLL from third-order NLL at the " + "same token budget. The registered stage decision requires both one-sided exact paired " + "sign tests to pass Holm correction at 0.05 across eight seed pairs. Ties are removed " + "from sign-test denominators. A distribution-free order-statistic interval quantifies " + "uncertainty in the median paired difference. Equal-time analyses use the latest logged " + "development checkpoint within the shortest final training time of that seed triple. " + f"{_cite('seeds')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Decision rule')}") + p("Results", "heading") + numerical = study.get("numerics",{}) + single = numerical.get("pythia-joint-cuda",{}) + double = numerical.get("pythia-fp64-agreement",{}) + if single and double: + p("Numerical accuracy on the pretrained checkpoint", "subheading") + p(f"For identical Pythia weights and probe signs, changing the FP32 CUDA batching gave a " + f"{100*single['relative_gradient_difference']:.1f}% relative discrepancy in the training gradient. " + f"In FP64 the CPU and GPU gradients agreed to relative error {double['relative_gradient_difference']:.2g}. " + "The initial FP32 pilot is retained as a diagnostic. The amended adapter arms compute their " + "penalties in FP64 on the CPU and use CUDA for the ordinary loss and optimizer updates. " + f"{_link(REPOSITORY + '/blob/main/reports/amendments/adapter-precision.md','Pre-test amendment and raw checks')}") + run_count = len(study["runs"]) + done_count = sum(completed(run) for run in study["runs"]) + p(f"The ledger contains {run_count} runs and {done_count} completed summaries. " + f"{_link(REPOSITORY + '/tree/main/results', 'Raw records')} · " + f"{_link(REPOSITORY + '/blob/main/reports/experiments/experiments.md', 'Per-run ledger')}") + for stage, outcome in study["stages"].items(): + p(f"{STAGES[stage]}. {escape(verdict_text(outcome))}") + context = study["context"][stage] + selected = context["selection"].get("ratios", {}) + if selected: + p(f"Development selected trace ratio {fmt(selected.get('trace'))} and third-order " + f"ratio {fmt(selected.get('third'))}. " + f"{_link(REPOSITORY + '/blob/main/results/selection/' + stage + '.json', 'All candidate scores')}") + hours = context["feasibility"].get("projected_confirm_training_hours") + if finite(hours): + p(f"The selected-arm pilot speeds project {hours:.2f} training hours for this full " + "confirmatory stage. This estimate covers optimization time. " + f"{_link(REPOSITORY + '/blob/main/results/feasibility/' + stage + '.json', 'Measured timing basis')}") + pilots = study["pilot_comparisons"][stage] + if pilots: + changes = ", ".join(f"{describe_difference(row['delta'])} against " + f"{METHODS[row['method']]}" for row in pilots) + p(f"In the development pilot at {pilots[0]['tokens']:,} training targets, third-order " + f"training recorded {changes}. The comparison uses one seed and " + f"{pilots[0]['strength_basis']}.") + evaluated, resources = _result_tables(study) + if evaluated: + p("Scores across methods", "subheading") + flow.append(_grid(styles, ["Corpus", "Phase", "Method", "Ratio", "Runs", "Tokens/run", "Dev NLL", "Test NLL"], + evaluated, [60, 53, 105, 36, 34, 69, 58, 60])) + p("Table 1. Medians over available completed runs sharing corpus, method, development " + "strength and token horizon. NLL is in nats per target token. Dashes mark missing " + "observations. The paired seed analyses use individual final test scores.", "caption") + for key, caption in (("curves", "Development NLL by logged token count. Each line is a run; " + "panels separate training stages and phases."), + ("paired", "Individual differences in test NLL. Diamonds mark median " + "differences and horizontal segments show their registered intervals.")): + if key in figures: + flow.append(KeepTogether([_figure(figure_dir / figures[key]), + Paragraph(caption, styles["caption"])])) + p("Discussion and limitations", "heading") + p("A wide minimum permits large weight displacements at a fixed loss increase. If curvature " + "starts small and changes slowly over the displacement, the loss stays low. For the loss " + "w4, the squared third derivative grows quadratically with distance from the bottom, so " + "a small descent step can pull displaced weights back. A steep quadratic has constant curvature " + "and receives zero third-derivative penalty everywhere. Finding wider basins remains a " + "geometric hypothesis. " + f"{_cite('coordinates')} · {_link(REPOSITORY + '/blob/main/docs/third-derivative-penalty.md#when-can-the-penalty-favor-a-wider-minimum', 'Derivation and examples')}") + p("Predictive utility requires lower held-out loss against both baselines. A reduction in " + "the derivative estimate alone describes local geometry. Parameterization changes its " + "magnitude, including the low-rank factorization used for abstracts. The estimate targets " + "expected two-window minibatch roughness. The small datasets, limited seed count and " + "two tokenization schemes bound the interpretation. More tokens per GPU hour can change " + "the practical ranking. " + f"{_cite('coordinates')} · {_link(REPOSITORY + '/blob/main/reports/preregistration.md', 'Scope of inference')}") + p("Conclusion", "heading") + if all(outcome.get("complete") for outcome in study["stages"].values()): + confirmed = [STAGES[s] for s, outcome in study["stages"].items() if outcome.get("success")] + if confirmed: + p("The registered dual-baseline criterion was met in " + " and ".join(confirmed) + + ". The observed gain applies to the reported data, trainable coordinates and token horizons.") + else: + p("Neither stage established the registered dual-baseline improvement. The paired " + "effects and uncertainty intervals quantify the range compatible with these data.") + else: + p("The outstanding paired evaluations determine which claims can be made about prediction quality " + "at the registered horizons. The run ledger preserves every available observation and implementation failure.") + p("Appendix · Computational cost", "heading") + if resources: + for device, rows in resources.items(): + p(escape(str(device)), "subheading") + flow.append(_grid(styles, ["Corpus", "Phase", "Method", "Ratio", "Runs", "Targets/run", + "Train (s)", "Targets/s", "Peak GPU (MiB)"], + rows, [56, 49, 78, 35, 34, 64, 48, 57, 54])) + p("Times and rates are per-run medians within each hardware, method, phase, strength and " + "target budget. The clock sums synchronized training steps, including batch transfer and " + "the optimizer update and any host FP64 probe while the GPU is reserved. Evaluation, checkpointing and uploads take additional time. Peak " + "memory is PyTorch’s recorded maximum allocated GPU tensor memory during the run, including " + "evaluation. Untrained controls have no training speed.", "caption") + else: + p("Hardware, training speed and peak allocated memory will appear with the first completed run.") + p("Development NLL at matched GPU training time", "subheading") + p("For each seed the cutoff is the shortest completed training time across AdamW, trace and " + "third-order training. Fixed-window development evaluations occur at discrete checkpoints. " + "We take the latest checkpoint at or before the cutoff. Each cell gives NLL in nats per target " + "token, followed by its lag behind the cutoff in seconds. Larger lags make the time comparison " + "coarser. The archived per-seed table also records the token count at each checkpoint. " + f"{_link(REPOSITORY + '/blob/main/reports/summary.md', 'Per-seed timing records')}", "caption") + matched = _matched_rows(study) + if matched: + flow.append(_grid(styles, ["Corpus", "Seed", "Cutoff (s)", "AdamW NLL (lag s)", + "Trace NLL (lag s)", "Third NLL (lag s)"], + matched, [82, 34, 65, 98, 98, 98])) + else: + p("Awaiting a complete, timed three-method confirmatory seed with eligible development checkpoints.", "caption") + nonhost = _matched_rows(study,"matched_nonhost_time") + if nonhost: + p("Adapter timing after subtracting host derivative calls", "subheading") + p("This supplementary clock removes the observed duration of host derivative calls including their " + "transfers. The table uses the same fixed development windows and reports checkpoint lags in seconds. " + "Individual CUDA kernel durations were not profiled.", "caption") + flow.append(_grid(styles,["Corpus","Seed","Cutoff (s)","AdamW NLL (lag s)", + "Trace NLL (lag s)","Third NLL (lag s)"],nonhost,[82,34,65,98,98,98])) + pair_rows = [[STAGES[stage], METHODS.get(base, base), pair["seed"], + fmt(pair["third_nll"], 5), fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)] + for stage, outcome in study["stages"].items() + for base, stats in outcome.get("comparisons", {}).items() for pair in stats["pairs"]] + if pair_rows: + p("Appendix · Paired effects", "heading") + flow.append(_grid(styles, ["Corpus", "Baseline", "Seed", "Third NLL", "Baseline NLL", "ΔNLL"], + pair_rows, [85, 110, 40, 78, 82, 80])) + for stage, outcome in study["stages"].items(): + for base, stats in outcome.get("comparisons", {}).items(): + lo, hi = stats["median_ci"] + p(f"{STAGES[stage]} / {METHODS[base]}: median ΔNLL {fmt(stats['median_delta'], 5)}, " + f"interval [{fmt(lo,5)}, {fmt(hi,5)}] at achieved coverage {fmt(stats['ci_coverage'],4)}. " + f"Holm-adjusted p = {fmt(stats['p_holm'], 5)}.", "caption") + examples = example_runs(study["runs"]) + if examples: + p("Appendix · Output examples", "heading") + p("For each stage and method, the first registered checkpoint and sample in run-ID order is shown in excerpt. " + "The experiment ledger contains every full saved continuation and its corresponding " + f"reference when recorded. {_link(REPOSITORY + '/tree/main/reports/experiments', 'All outputs')}") + for run in examples: + sample = run["samples"][0] + label = f"{STAGES[run['stage']]} · {METHODS[run['method']]} · {run['phase']}, seed {run['seed']}" + url = REPOSITORY + "/blob/main/results/" + run["id"] + "/samples.jsonl" + example = [Paragraph(_link(url,label), styles["subheading"])] + for field, name in (("prompt", "Prompt"), ("reference", "Reference"), ("continuation", "Prediction")): + if sample.get(field) is not None: + value = str(sample[field]) + excerpt = value[:420] + (" […]" if len(value) > 420 else "") + example.append(Paragraph(f"{name}. {escape(excerpt)}", styles["caption"])) + flow.append(KeepTogether(example)) + p("References and reproducibility", "heading") + for title, url in REFERENCES.values(): + p(_link(url, title), "caption") + p(f"Rebuild tables, figures, the explorer and this paper with uv run thirdloss report. " + f"{_link(REPOSITORY, 'Code and versioned protocol')}", "caption") + p("AI statement", "subheading") + p("Codex wrote the codebase and paper from the exact specification provided by a human. " + "Human cleanup and rewriting are in progress.", "caption") + + def footer(canvas, doc): + canvas.saveState() + canvas.setStrokeColor(colors.HexColor("#ccd8d3")) + canvas.line(doc.leftMargin, 40, A4[0] - doc.rightMargin, 40) + canvas.setFillColor(colors.HexColor(MUTED)) + canvas.setFont("PaperSans", 7.4) + canvas.drawString(doc.leftMargin, 27, "THIRD-DERIVATIVE REGULARIZATION") + canvas.drawRightString(A4[0] - doc.rightMargin, 27, str(doc.page)) + canvas.restoreState() + + output.parent.mkdir(parents=True, exist_ok=True) + with NamedTemporaryFile(dir=output.parent, suffix=".pdf", delete=False) as handle: + tmp = Path(handle.name) + try: + document = SimpleDocTemplate(str(tmp), pagesize=A4, leftMargin=49, rightMargin=49, + topMargin=43, bottomMargin=54, + title="Third-derivative regularization for causal language models", + author="Libor “Burny” Burian") + document.build(flow, onFirstPage=footer, onLaterPages=footer) + os.replace(tmp, output) + finally: + tmp.unlink(missing_ok=True) diff --git a/research/src/thirdloss/report_records.py b/research/src/thirdloss/report_records.py index 16becf1625094361f214ce445a6acfd1377eaa0f..fd290cc837ec69b400901638c43922ee12959290 100644 --- a/research/src/thirdloss/report_records.py +++ b/research/src/thirdloss/report_records.py @@ -1,246 +1,246 @@ -"""Read the run ledger shared by the paper, live dashboard and static explorer.""" - -import json -import math -import os -import re -from datetime import datetime, timezone -from pathlib import Path -from tempfile import NamedTemporaryFile - -from .analysis import analyze_stage -from .records import GITHUB as REPOSITORY, PAGES - - -STAGES = {"stories": "TinyStories", "abstracts": "Research abstracts"} -METHODS = { - "ce": "Ordinary AdamW", - "trace": "Hessian trace", - "third": "Third derivative", - "hessian_norm": "Squared Hessian norm", - "sham": "Randomized gradient signs", - "combined": "Trace + third derivative", - "initial": "Initial checkpoint", - "unigram": "Unigram", -} -COLORS = { - "ce": "#374d67", "trace": "#ac582a", "third": "#007166", - "hessian_norm": "#64569c", "sham": "#ac3c66", "combined": "#3974a2", - "initial": "#674e35", "unigram": "#73736c", -} -FIELDS = ( - "id", "stage", "method", "phase", "seed", "ratio", "tokens", "steps", - "train_seconds", "tokens_per_sec", "peak_vram_mb", "dev_nll", "dev_accuracy", - "test_nll", "test_accuracy", "status", "target_tokens", "budget", "parameters", - "trainable_parameters", "lambda", "coefficients", "device", "learning_rate", - "batch_size", "architecture", "commit", "dataset_revision", "data_hash", - "freeze_id", "test_manifest_sha256", "test_tokens", "data_manifest_sha256", - "token_budget", "batch_windows", "microbatch", "context", "weights_sha256", "dev_tokens", - "git_revision", "gpu", "torch", "matched_dev_nll", "finished_at", "initial_trainable_sha256", - "derivative_dtype", "derivative_device", "host_probe_seconds", "training_seconds_excluding_host_probes", "cpu_threads", - "process_peak_rss_mib", "evaluation_batch_windows", "test_seconds", "evaluated_at", -) -EVENT_FIELDS = ( - "step", "tokens", "train_seconds", "loss", "accuracy", "penalty", "dev_nll", - "dev_accuracy", "timestamp", "status", "peak_vram_mb", - "training_seconds_excluding_host_probes", "host_probe_seconds", -) - - -def atomic_text(path: Path, text: str) -> None: - """Replace a complete UTF-8 artifact so a local dashboard never reads half a report.""" - path.parent.mkdir(parents=True, exist_ok=True) - if path.exists() and path.read_text(encoding="utf-8") == text: - return - with NamedTemporaryFile(mode="w", encoding="utf-8", newline="\n", dir=path.parent, - delete=False, suffix=".tmp") as handle: - handle.write(text) - name = handle.name - try: - os.replace(name, path) - finally: - Path(name).unlink(missing_ok=True) - - -def read_json(path: Path) -> dict: - """Small summaries and configurations are atomically produced by the trainer.""" - if not path.exists(): - return {} - with path.open(encoding="utf-8-sig") as stream: - value = json.load(stream) - if not isinstance(value, dict): - raise ValueError(f"Expected a JSON object in {path}") - return value - - -def read_lines(path: Path) -> list[dict]: - """Ignore a concurrent partial trailing write, but surface damaged complete records.""" - if not path.exists(): - return [] - records = [] - with path.open("rb") as stream: - for number, line in enumerate(stream, 1): - if not line.strip(): - continue - try: - record = json.loads(line) - except (ValueError, UnicodeDecodeError) as exc: - if not line.endswith(b"\n"): - break - raise ValueError(f"Unreadable JSON record {path}:{number}") from exc - if not isinstance(record, dict): - raise ValueError(f"Expected a JSON object at {path}:{number}") - records.append(record) - return records - - -def finite(value) -> bool: - """Exclude missing values, booleans and nonfinite numbers from graphs and summaries.""" - return isinstance(value, (float, int)) and not isinstance(value, bool) and math.isfinite(value) - - -def fmt(value, digits: int = 3) -> str: - """Use a visible missing-value marker instead of completing an unobserved measurement.""" - return f"{value:,.{digits}f}" if finite(value) else "—" - - -def run_record(folder: Path) -> dict: - """Join configuration, events and final summary with explicit completion state.""" - state = read_json(folder / "state.json") - config = {**state,**read_json(folder / "config.json")} - summary = read_json(folder / "summary.json") - last_error = read_json(folder / "failure.json") - events = read_lines(folder / "events.jsonl") - record = {key: config[key] for key in FIELDS if key in config} - # Calibration can fail before the trainer writes the final configuration. - identity = re.fullmatch(r"(stories|abstracts)-(\w+)-s(\d+)-(\w+)-r(\d+)(?:-fp64)?", folder.name) - if identity and not config: - stage, phase, seed, method, ratio = identity.groups() - record.update(stage=stage, phase=phase, seed=int(seed), method=method, ratio=int(ratio) / 100) - for event in events: - for key in ("tokens", "train_seconds", "peak_vram_mb", "dev_nll", "dev_accuracy", "status"): - if event.get(key) is not None: - record[key] = event[key] - if event.get("step") is not None: - record["steps"] = event["step"] - record.update({key: summary[key] for key in FIELDS if key in summary}) - if "token_budget" in record: - record["target_tokens"] = record["token_budget"] - record["id"] = folder.name - if "targets_scored" in state and not summary: - record["evaluation_progress"] = state - test_state = read_json(folder / "test_state.json") - if test_state and "test_nll" not in summary: - record["evaluation_progress"] = test_state - failures = read_json(folder / "attempts.json").get("failures", []) - if last_error and last_error not in failures: - failures.append(last_error) - if failures: - record["failures"] = failures - resumed = bool(last_error and events and events[-1].get("timestamp", "")>last_error.get("timestamp", "")) - if last_error and not summary and not resumed: - record["status"] = "failed" - record["error"] = str(last_error.get("error", "Recorded failure")) - elif resumed and not summary: - record["status"] = "scoring development" if record.get("tokens")==record.get("token_budget") else "training" - else: - record.setdefault("status", "complete" if summary else "in progress" if events else "configured") - record["events"] = [] - for event in events: - row = {k: event[k] for k in EVENT_FIELDS if event.get(k) is not None} - for kind, details in (event.get("derivatives") or {}).items(): - if isinstance(details, dict) and finite(details.get("estimate")): - row["raw_" + kind] = details["estimate"] - record["events"].append(row) - record["samples"] = read_lines(folder / "samples.jsonl") - return record - - -def display_events(events: list[dict], maximum: int = 240) -> list[dict]: - """Thin evenly by log index for display, keeping both endpoints and every validation event.""" - if len(events) <= maximum: - return events - keep = {round(i * (len(events) - 1) / (maximum - 1)) for i in range(maximum)} - keep.update(i for i, event in enumerate(events) if finite(event.get("dev_nll"))) - return [events[i] for i in sorted(keep)] - - -def pilot_differences(runs: list[dict], stage: str, selection: dict) -> list[dict]: - """Compare one reserved seed at an identical observed horizon; keep the tuning status explicit.""" - ratios = selection.get("ratios", {}) - desired = {"ce": 0.0, "trace": ratios.get("trace", 0.03), "third": ratios.get("third", 0.03), - "hessian_norm": 0.03, "sham": ratios.get("third", 0.03), "combined": ratios.get("third", 0.03)} - by_method = {r["method"]: r for r in runs if r.get("stage") == stage and r.get("phase") == "pilot" - and r.get("seed") == 0 and completed(r) and finite(r.get("dev_nll")) - and r.get("method") in desired and r.get("ratio") == desired[r["method"]]} - third = by_method.get("third") - if not third: - return [] - return [{"method": method, "third_id": third["id"], "comparison_id": other["id"], - "tokens": third["tokens"], "delta": third["dev_nll"] - other["dev_nll"], - "third_nll": third["dev_nll"], "baseline_nll": other["dev_nll"], - "strength_basis": "strengths selected on development" if ratios else "initial pilot strengths"} - for method, other in by_method.items() if method != "third" and other.get("tokens") == third.get("tokens")] - - -def study_snapshot(root: Path = Path(".")) -> dict: - """Return a JSON-ready live view. Inference uses full logs before display thinning.""" - directory = Path(root) / "results" - runs = [] - for folder in sorted(directory.glob("*")): - if folder.is_dir() and any((folder / f).is_file() for f in ("config.json", "summary.json", "failure.json", "state.json")): - runs.append(run_record(folder)) - exclusions = read_json(directory/"verification"/"numerical-exclusions.json") - for run in runs: - if run["id"] in exclusions: - run.update(registered_phase=run["phase"], phase="diagnostic", precision_audit=exclusions[run["id"]]) - stages = {stage: analyze_stage(runs, stage) for stage in STAGES} - for run in runs: - run["events_total"] = len(run["events"]) - run["events"] = display_events(run["events"]) - context = {stage: {key: read_json(directory / key / f"{stage}.json") - for key in ("datasets", "selection", "feasibility")} for stage in STAGES} - pilots = {s: pilot_differences(runs, s, context[s]["selection"]) for s in STAGES} - numerics = {key:read_json(directory/"verification"/(key+".json")) for key in - ("pythia-joint-cuda","pythia-fp64-agreement","pythia-fp64-cpu","pythia-fp64-cuda","stories-full-gradient")} - return { - "generated_at": datetime.now(timezone.utc).isoformat(timespec="seconds"), - "runs": runs, "stages": stages, "method_names": METHODS, "stage_names": STAGES, - "colors": COLORS, "context": context, "pilot_comparisons": pilots,"numerics":numerics, - } - - -def completed(run: dict) -> bool: - return run.get("status", "").lower() in {"complete", "completed", "finished", "evaluated", "success"} - - -def example_runs(runs): - """Choose one completed registered checkpoint per method independently of sample text or scores.""" - examples = {} - for run in sorted(runs,key=lambda r:r["id"]): - if completed(run) and run["phase"] in {"confirm","pilot","control"} and run["samples"]: - examples.setdefault((run["stage"],run["method"]),run) - return list(examples.values()) - - -def describe_difference(delta) -> str: - if delta == 0: - return "identical development NLL" - direction = "lower" if delta < 0 else "higher" - return f"{abs(delta):.5f} nats per target token {direction}" - - -def verdict_text(result: dict) -> str: - """Use the analysis contract to distinguish an incomplete matrix from an inconclusive trial.""" - status = result.get("status") - count = result.get("n_complete_seeds", 0) - goal = result.get("n_expected_seeds", 8) - if status == "confirmed": - return "Third-order training improved test NLL over both baselines under the registered decision rule." - if status == "inconclusive": - return "The completed stage did not establish an improvement over both baselines under the registered decision rule." - if status == "adverse": - return "The median test-loss difference favored at least one baseline across its full uncertainty interval." - if status == "invalid": - return f"The stage records require review. {result.get('reason') or 'See the analysis ledger.'}" - return f"Awaiting paired test results ({count} of {goal} full-horizon training triplets)." +"""Read the run ledger shared by the paper, live dashboard and static explorer.""" + +import json +import math +import os +import re +from datetime import datetime, timezone +from pathlib import Path +from tempfile import NamedTemporaryFile + +from .analysis import analyze_stage +from .records import GITHUB as REPOSITORY, PAGES + + +STAGES = {"stories": "TinyStories", "abstracts": "Research abstracts"} +METHODS = { + "ce": "Ordinary AdamW", + "trace": "Hessian trace", + "third": "Third derivative", + "hessian_norm": "Squared Hessian norm", + "sham": "Randomized gradient signs", + "combined": "Trace + third derivative", + "initial": "Initial checkpoint", + "unigram": "Unigram", +} +COLORS = { + "ce": "#374d67", "trace": "#ac582a", "third": "#007166", + "hessian_norm": "#64569c", "sham": "#ac3c66", "combined": "#3974a2", + "initial": "#674e35", "unigram": "#73736c", +} +FIELDS = ( + "id", "stage", "method", "phase", "seed", "ratio", "tokens", "steps", + "train_seconds", "tokens_per_sec", "peak_vram_mb", "dev_nll", "dev_accuracy", + "test_nll", "test_accuracy", "status", "target_tokens", "budget", "parameters", + "trainable_parameters", "lambda", "coefficients", "device", "learning_rate", + "batch_size", "architecture", "commit", "dataset_revision", "data_hash", + "freeze_id", "test_manifest_sha256", "test_tokens", "data_manifest_sha256", + "token_budget", "batch_windows", "microbatch", "context", "weights_sha256", "dev_tokens", + "git_revision", "gpu", "torch", "matched_dev_nll", "finished_at", "initial_trainable_sha256", + "derivative_dtype", "derivative_device", "host_probe_seconds", "training_seconds_excluding_host_probes", "cpu_threads", + "process_peak_rss_mib", "evaluation_batch_windows", "test_seconds", "evaluated_at", +) +EVENT_FIELDS = ( + "step", "tokens", "train_seconds", "loss", "accuracy", "penalty", "dev_nll", + "dev_accuracy", "timestamp", "status", "peak_vram_mb", + "training_seconds_excluding_host_probes", "host_probe_seconds", +) + + +def atomic_text(path: Path, text: str) -> None: + """Replace a complete UTF-8 artifact so a local dashboard never reads half a report.""" + path.parent.mkdir(parents=True, exist_ok=True) + if path.exists() and path.read_text(encoding="utf-8") == text: + return + with NamedTemporaryFile(mode="w", encoding="utf-8", newline="\n", dir=path.parent, + delete=False, suffix=".tmp") as handle: + handle.write(text) + name = handle.name + try: + os.replace(name, path) + finally: + Path(name).unlink(missing_ok=True) + + +def read_json(path: Path) -> dict: + """Small summaries and configurations are atomically produced by the trainer.""" + if not path.exists(): + return {} + with path.open(encoding="utf-8-sig") as stream: + value = json.load(stream) + if not isinstance(value, dict): + raise ValueError(f"Expected a JSON object in {path}") + return value + + +def read_lines(path: Path) -> list[dict]: + """Ignore a concurrent partial trailing write, but surface damaged complete records.""" + if not path.exists(): + return [] + records = [] + with path.open("rb") as stream: + for number, line in enumerate(stream, 1): + if not line.strip(): + continue + try: + record = json.loads(line) + except (ValueError, UnicodeDecodeError) as exc: + if not line.endswith(b"\n"): + break + raise ValueError(f"Unreadable JSON record {path}:{number}") from exc + if not isinstance(record, dict): + raise ValueError(f"Expected a JSON object at {path}:{number}") + records.append(record) + return records + + +def finite(value) -> bool: + """Exclude missing values, booleans and nonfinite numbers from graphs and summaries.""" + return isinstance(value, (float, int)) and not isinstance(value, bool) and math.isfinite(value) + + +def fmt(value, digits: int = 3) -> str: + """Use a visible missing-value marker instead of completing an unobserved measurement.""" + return f"{value:,.{digits}f}" if finite(value) else "—" + + +def run_record(folder: Path) -> dict: + """Join configuration, events and final summary with explicit completion state.""" + state = read_json(folder / "state.json") + config = {**state,**read_json(folder / "config.json")} + summary = read_json(folder / "summary.json") + last_error = read_json(folder / "failure.json") + events = read_lines(folder / "events.jsonl") + record = {key: config[key] for key in FIELDS if key in config} + # Calibration can fail before the trainer writes the final configuration. + identity = re.fullmatch(r"(stories|abstracts)-(\w+)-s(\d+)-(\w+)-r(\d+)(?:-fp64)?", folder.name) + if identity and not config: + stage, phase, seed, method, ratio = identity.groups() + record.update(stage=stage, phase=phase, seed=int(seed), method=method, ratio=int(ratio) / 100) + for event in events: + for key in ("tokens", "train_seconds", "peak_vram_mb", "dev_nll", "dev_accuracy", "status"): + if event.get(key) is not None: + record[key] = event[key] + if event.get("step") is not None: + record["steps"] = event["step"] + record.update({key: summary[key] for key in FIELDS if key in summary}) + if "token_budget" in record: + record["target_tokens"] = record["token_budget"] + record["id"] = folder.name + if "targets_scored" in state and not summary: + record["evaluation_progress"] = state + test_state = read_json(folder / "test_state.json") + if test_state and "test_nll" not in summary: + record["evaluation_progress"] = test_state + failures = read_json(folder / "attempts.json").get("failures", []) + if last_error and last_error not in failures: + failures.append(last_error) + if failures: + record["failures"] = failures + resumed = bool(last_error and events and events[-1].get("timestamp", "")>last_error.get("timestamp", "")) + if last_error and not summary and not resumed: + record["status"] = "failed" + record["error"] = str(last_error.get("error", "Recorded failure")) + elif resumed and not summary: + record["status"] = "scoring development" if record.get("tokens")==record.get("token_budget") else "training" + else: + record.setdefault("status", "complete" if summary else "in progress" if events else "configured") + record["events"] = [] + for event in events: + row = {k: event[k] for k in EVENT_FIELDS if event.get(k) is not None} + for kind, details in (event.get("derivatives") or {}).items(): + if isinstance(details, dict) and finite(details.get("estimate")): + row["raw_" + kind] = details["estimate"] + record["events"].append(row) + record["samples"] = read_lines(folder / "samples.jsonl") + return record + + +def display_events(events: list[dict], maximum: int = 240) -> list[dict]: + """Thin evenly by log index for display, keeping both endpoints and every validation event.""" + if len(events) <= maximum: + return events + keep = {round(i * (len(events) - 1) / (maximum - 1)) for i in range(maximum)} + keep.update(i for i, event in enumerate(events) if finite(event.get("dev_nll"))) + return [events[i] for i in sorted(keep)] + + +def pilot_differences(runs: list[dict], stage: str, selection: dict) -> list[dict]: + """Compare one reserved seed at an identical observed horizon; keep the tuning status explicit.""" + ratios = selection.get("ratios", {}) + desired = {"ce": 0.0, "trace": ratios.get("trace", 0.03), "third": ratios.get("third", 0.03), + "hessian_norm": 0.03, "sham": ratios.get("third", 0.03), "combined": ratios.get("third", 0.03)} + by_method = {r["method"]: r for r in runs if r.get("stage") == stage and r.get("phase") == "pilot" + and r.get("seed") == 0 and completed(r) and finite(r.get("dev_nll")) + and r.get("method") in desired and r.get("ratio") == desired[r["method"]]} + third = by_method.get("third") + if not third: + return [] + return [{"method": method, "third_id": third["id"], "comparison_id": other["id"], + "tokens": third["tokens"], "delta": third["dev_nll"] - other["dev_nll"], + "third_nll": third["dev_nll"], "baseline_nll": other["dev_nll"], + "strength_basis": "strengths selected on development" if ratios else "initial pilot strengths"} + for method, other in by_method.items() if method != "third" and other.get("tokens") == third.get("tokens")] + + +def study_snapshot(root: Path = Path(".")) -> dict: + """Return a JSON-ready live view. Inference uses full logs before display thinning.""" + directory = Path(root) / "results" + runs = [] + for folder in sorted(directory.glob("*")): + if folder.is_dir() and any((folder / f).is_file() for f in ("config.json", "summary.json", "failure.json", "state.json")): + runs.append(run_record(folder)) + exclusions = read_json(directory/"verification"/"numerical-exclusions.json") + for run in runs: + if run["id"] in exclusions: + run.update(registered_phase=run["phase"], phase="diagnostic", precision_audit=exclusions[run["id"]]) + stages = {stage: analyze_stage(runs, stage) for stage in STAGES} + for run in runs: + run["events_total"] = len(run["events"]) + run["events"] = display_events(run["events"]) + context = {stage: {key: read_json(directory / key / f"{stage}.json") + for key in ("datasets", "selection", "feasibility")} for stage in STAGES} + pilots = {s: pilot_differences(runs, s, context[s]["selection"]) for s in STAGES} + numerics = {key:read_json(directory/"verification"/(key+".json")) for key in + ("pythia-joint-cuda","pythia-fp64-agreement","pythia-fp64-cpu","pythia-fp64-cuda","stories-full-gradient")} + return { + "generated_at": datetime.now(timezone.utc).isoformat(timespec="seconds"), + "runs": runs, "stages": stages, "method_names": METHODS, "stage_names": STAGES, + "colors": COLORS, "context": context, "pilot_comparisons": pilots,"numerics":numerics, + } + + +def completed(run: dict) -> bool: + return run.get("status", "").lower() in {"complete", "completed", "finished", "evaluated", "success"} + + +def example_runs(runs): + """Choose one completed registered checkpoint per method independently of sample text or scores.""" + examples = {} + for run in sorted(runs,key=lambda r:r["id"]): + if completed(run) and run["phase"] in {"confirm","pilot","control"} and run["samples"]: + examples.setdefault((run["stage"],run["method"]),run) + return list(examples.values()) + + +def describe_difference(delta) -> str: + if delta == 0: + return "identical development NLL" + direction = "lower" if delta < 0 else "higher" + return f"{abs(delta):.5f} nats per target token {direction}" + + +def verdict_text(result: dict) -> str: + """Use the analysis contract to distinguish an incomplete matrix from an inconclusive trial.""" + status = result.get("status") + count = result.get("n_complete_seeds", 0) + goal = result.get("n_expected_seeds", 8) + if status == "confirmed": + return "Third-order training improved test NLL over both baselines under the registered decision rule." + if status == "inconclusive": + return "The completed stage did not establish an improvement over both baselines under the registered decision rule." + if status == "adverse": + return "The median test-loss difference favored at least one baseline across its full uncertainty interval." + if status == "invalid": + return f"The stage records require review. {result.get('reason') or 'See the analysis ledger.'}" + return f"Awaiting paired test results ({count} of {goal} full-horizon training triplets)." diff --git a/research/src/thirdloss/reporting.py b/research/src/thirdloss/reporting.py index e5e7e1402df81f2d0ddd3094838c718fb55fcd3e..6be68aed44353bf502b7191475852548a7efdc30 100644 --- a/research/src/thirdloss/reporting.py +++ b/research/src/thirdloss/reporting.py @@ -1,271 +1,273 @@ -"""Rebuild the public study artifacts from raw results with one command.""" - -import json -import re -from pathlib import Path -from statistics import median -from urllib.parse import quote - -from .report_figures import build_figures -from .report_paper import write_paper -from .report_records import ( - METHODS, PAGES, STAGES, atomic_text, completed, describe_difference, example_runs, finite, fmt, study_snapshot, - verdict_text, -) - - -def _cell(value) -> str: - """Keep arbitrary run annotations and identifiers inside one Markdown table cell.""" - return str(value).replace("|", "\\|").replace("\n", " ") - - -def _table(rows: list[list], headings: list[str]) -> str: - def row(values): - return "| " + " | ".join(_cell(v) for v in values) + " |" - return "\n".join([row(headings), row(["---"] * len(headings)), *(row(v) for v in rows)]) - - -def _method(run: dict) -> str: - return METHODS.get(run.get("method"), run.get("method", "Unknown")) - - -def _stage(run: dict) -> str: - return STAGES.get(run.get("stage"), run.get("stage", "Unknown")) - - -def _ledger_row(run: dict) -> list: - return [ - _stage(run), _method(run), run.get("phase", "—"), run.get("seed", "—"), - fmt(run.get("ratio")), fmt(run.get("tokens"), 0), fmt(run.get("dev_nll"), 4), - fmt(run.get("test_nll"), 4), fmt(run.get("tokens_per_sec"), 0), run["status"], - ] - - -LEDGER_HEADERS = ["Stage", "Method", "Phase", "Seed", "Ratio", "Train tokens", "Dev NLL", - "Test NLL", "Tokens/s", "Status"] - - -def _stage_summary(study: dict) -> str: - return "\n\n".join( - f"**{STAGES[stage]}.** {verdict_text(outcome)}" for stage, outcome in study["stages"].items() - ) - - -def _pilot_summary(study): - observed = [] - for stage, contrasts in study["pilot_comparisons"].items(): - if contrasts: - numbers = ", ".join(f"{describe_difference(row['delta'])} against {METHODS[row['method']]}" - for row in contrasts) - first = contrasts[0] - observed.append(f"**{STAGES[stage]} development pilot.** At {first['tokens']:,} " - f"training targets, the third-order run recorded {numbers}. " - f"These are single-seed descriptions using {first['strength_basis']}.") - return "\n\n".join(observed) - - -def _comparisons(study: dict) -> str: - parts = [] - for stage, analysis in study["stages"].items(): - pairs = [] - summary = [] - for baseline, stats in analysis.get("comparisons", {}).items(): - name = METHODS.get(baseline, baseline) - lo, hi = stats["median_ci"] - summary.append([name, stats["wins"], stats["ties"], stats["losses"], - fmt(stats["median_delta"], 5), f"[{fmt(lo,5)}, {fmt(hi,5)}]", - fmt(stats["ci_coverage"], 4), fmt(stats["p_raw"], 5), - fmt(stats["p_holm"], 5)]) - for pair in stats["pairs"]: - pairs.append([name, pair["seed"], fmt(pair["third_nll"], 5), - fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)]) - if summary: - parts.append(f"### {STAGES[stage]}\n\n" + _table(summary, [ - "Comparator", "Wins", "Ties", "Losses", "Median ΔNLL", "Median interval", - "Coverage", "Sign-test p", "Holm p"]) + "\n\n" + _table(pairs, [ - "Comparator", "Seed", "Third-order NLL", "Comparator NLL", "ΔNLL"])) - times = [[t["seed"], fmt(t["cutoff_seconds"], 1), _method({"method": m}), - fmt(o.get("train_seconds"), 1), fmt(o.get("tokens"), 0), fmt(o.get("dev_nll"), 5)] - for t in analysis.get("matched_time", []) for m, o in t.get("by_method", {}).items() - if isinstance(o, dict)] - if times: - parts.append(f"### {STAGES[stage]} at equal training time\n\n" + _table(times, [ - "Seed", "Common cutoff (s)", "Method", "Recorded checkpoint (s)", - "Training tokens", "Dev NLL"])) - supplement = [[item["seed"],fmt(item["cutoff_seconds"],1),METHODS[m],fmt(point["clock_seconds"],1), - fmt(point["tokens"],0),fmt(point["dev_nll"],5)] - for item in analysis.get("matched_nonhost_time",[]) for m,point in item["by_method"].items()] - if supplement: - parts.append(f"### {STAGES[stage]} after subtracting host derivative calls\n\n" - "This supplementary clock excludes the measured host probe calls and their transfers. " - "The registered comparison above counts elapsed time with one GPU reserved.\n\n" + - _table(supplement,["Seed","Cutoff (s)","Method","Checkpoint (s)","Training tokens","Dev NLL"])) - return "\n\n".join(parts) - - -def _run_learning(run: dict) -> str: - """Use a trajectory only for a within-run observation; avoid causal attribution to a single run.""" - if run.get("error"): - return f"The run recorded a failure. The run ledger contains the error and last metrics." - series = [e for e in run["events"] if finite(e.get("dev_nll")) and finite(e.get("tokens"))] - if len(series) >= 2 and series[0]["tokens"] < series[-1]["tokens"]: - delta = series[-1]["dev_nll"] - series[0]["dev_nll"] - return (f"Development NLL changed by {delta:+.4f} nats per target token from " - f"{series[0]['tokens']:,} to {series[-1]['tokens']:,} training targets. " - "Attribution to the regularizer uses matched comparisons across seeds.") - if finite(run.get("dev_nll")): - return f"The observed development NLL is {fmt(run['dev_nll'], 4)} nats per target token." - return "A development observation is pending." - - -def _sample(sample: dict) -> str: - """Indent whole text blocks verbatim so model-generated Markdown is never executed.""" - def block(value): - lines = str(value).splitlines() or [""] - return "\n".join(" " + line for line in lines) - segments = [("Prompt", sample.get("prompt", ""))] - if sample.get("reference") is not None: - segments.append(("Reference continuation", sample["reference"])) - segments.append(("Model continuation", sample.get("continuation", ""))) - return "\n\n".join(f"**{title}**\n\n{block(body)}" for title, body in segments) - - -def _experiments(root, study): - """Write all runs and samples, with one navigable index and brief evidence-linked learnings.""" - base = root / "reports" / "experiments" - index = ["# Experiment ledger", "NLL is negative log-likelihood in nats per target token. " - "A smaller value assigns more probability to the observed next tokens. " - "The ratio sets the pilot regularizer-gradient magnitude relative to cross-entropy.", - "[Architecture, training algorithms, objectives and planned budgets](../planned-runs.md)"] - learnings = ["# Experimental learnings", _stage_summary(study), - "Independent random signs include mixed weight derivatives in the expected " - "penalty. The trace implementation motivating the gradient check converted its " - "estimate to a Python number. [Derivation and references](../literature-review.md)"] - if study["runs"]: - rows = [] - for run in study["runs"]: - key = run["id"] - link = "./" + quote(key, safe="") + "/experiment.md" - rows.append([f"[{_cell(key)}]({link})", *_ledger_row(run)]) - raw_link = "../../../results/" + quote(key, safe="") + "/" - material = [ - f"# {_stage(run)} · {_method(run)}", - f"Run `{key}` · [raw records]({raw_link}) · [registered design](../../preregistration.md)", - _table([_ledger_row(run)], LEDGER_HEADERS), - f"Training time is {fmt(run.get('train_seconds'), 1)} seconds. " - f"Peak allocated GPU memory is {fmt(run.get('peak_vram_mb'), 1)} MiB. " - f"Development token accuracy is {fmt(run.get('dev_accuracy'), 4)}. " - f"Test token accuracy is {fmt(run.get('test_accuracy'), 4)}.", - "[Design and hyperparameter rationale](../../planned-runs.md) · " - f"[Saved configuration]({raw_link}config.json)", - ] - if run.get("failures"): - material += ["## Recorded interruptions", _table( - [[failure["timestamp"],failure["error"]] for failure in run["failures"]], - ["Time (UTC)","Recorded exception"])] - if run.get("precision_audit"): - material += ["## Numerical diagnostic",run["precision_audit"]["reason"], - "[Precision amendment](../../amendments/adapter-precision.md)"] - if finite(run.get("process_peak_rss_mib")): - material.append(f"The process working-set high-water mark was {fmt(run['process_peak_rss_mib'],1)} MiB. " - "This OS measure includes earlier work in the same interpreter.") - if run["samples"]: - material += ["## Fixed-prompt generations", - *[_sample(sample) for sample in run["samples"]]] - atomic_text(base / key / "experiment.md", "\n\n".join(material) + "\n") - observation = _run_learning(run) - if run.get("precision_audit"): - observation = run["precision_audit"]["reason"] - if run.get("failures"): - observation += f" The run ledger records {len(run['failures'])} interrupted attempt(s)." - atomic_text(base / key / "learnings.md", f"# Run learnings\n\n{observation}\n\n" - "[Experiment and source records](experiment.md)\n") - learnings.append(f"- [{key}]({link}) — {observation}") - index.append(_table(rows, ["Run", *LEDGER_HEADERS])) - else: - index.append("The first run record will populate this ledger.") - atomic_text(base / "experiments.md", "\n\n".join(index) + "\n") - atomic_text(base / "learnings.md", "\n\n".join(learnings) + "\n") - - -def _compact_table(study: dict) -> str: - """Summarize like-for-like measured runs without selecting the strongest seed.""" - groups = {} - for run in study["runs"]: - if completed(run): - key = (_stage(run), run.get("phase"), _method(run), run.get("ratio"), run.get("tokens")) - groups.setdefault(key, []).append(run) - rows = [] - for (stage, phase, method, ratio, tokens), runs in groups.items(): - def middle(metric): - observed = [r[metric] for r in runs if finite(r.get(metric))] - return fmt(median(observed), 4) if observed else "—" - rows.append([stage, phase, method, fmt(ratio), fmt(tokens, 0), len(runs), - middle("dev_nll"), middle("test_nll")]) - return _table(rows, ["Stage", "Phase", "Method", "Ratio", "Tokens/run", "Runs", - "Median dev NLL", "Median test NLL"]) if rows else "" - - -def _update_readme(root: Path, body: str) -> None: - """Preserve all hand-authored material, including edits made between report builds.""" - path = root / "README.md" - if not path.exists(): - return - before = path.read_text(encoding="utf-8-sig") - pattern = r".*?" - if len(re.findall(pattern, before, re.DOTALL)) != 1: - raise ValueError(f"{path} requires exactly one pair of results markers") - replacement = "\n" + body.strip() + "\n" - atomic_text(path, re.sub(pattern, lambda _: replacement, before, flags=re.DOTALL)) - - -def build_report(root: Path = Path(".")) -> dict: - """Regenerate README results, PDF, experiment ledger, figures and the static dashboard.""" - root = Path(root).resolve() - study = study_snapshot(root) - figures = build_figures(study, root / "docs" / "figures") - study["figures"] = figures - static = json.dumps(study, ensure_ascii=False, allow_nan=False, separators=(",", ":")) - atomic_text(root / "docs" / "study.json", static + "\n") - _experiments(root, study) - compact = _compact_table(study) - comparisons = _comparisons(study) - counts = len(study["runs"]) - done = sum(completed(run) for run in study["runs"]) - overview = f"Recorded {counts} runs, including {done} with a completed summary." - documents = [f"[Interactive explorer]({PAGES})", "[Per-run ledger](experiments/experiments.md)", - "[Preregistration](preregistration.md)", "[Paper](paper.pdf)"] - summary = ["# Study summary", overview, _stage_summary(study), " · ".join(documents)] - pilots = _pilot_summary(study) - if pilots: - summary.extend(["## Development observations", pilots]) - if compact: - summary.extend(["## Measured scores", compact]) - if comparisons: - summary.extend(["## Paired evidence", comparisons]) - for key, label in (("architecture", "Computation graph"), ("curves", "Development trajectories"), - ("paired", "Paired test differences")): - if key in figures: - summary.append(f"![{label}](../docs/figures/{figures[key]})") - atomic_text(root / "reports" / "summary.md", "\n\n".join(summary) + "\n") - badge = f"[Explore the results]({PAGES}) · [Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)" - readme = [badge, overview, _stage_summary(study)] - if pilots: - readme.append(pilots) - if compact: - readme.extend(["### Measured scores", compact]) - readme.append("![Parameter-space computation graph](docs/figures/architecture.png)") - for key in ("paired", "curves"): - if key in figures: - readme.append(f"![{'Paired test differences' if key == 'paired' else 'Development NLL'}](docs/figures/{figures[key]})") - panels = [] - for run in example_runs(study["runs"]): - panels.append(f"
{_stage(run)} · {_method(run)} · {run['phase']}, seed {run['seed']}\n\n" - + f"[Recorded sample](results/{run['id']}/samples.jsonl)\n\n" - + _sample(run["samples"][0]) + "\n\n
") - if panels: - readme += ["### Recorded predictions", "First registered checkpoint and sample in run-ID order per " - "stage and method. [All continuations](reports/experiments/experiments.md)", *panels] - _update_readme(root, "\n\n".join(readme)) - write_paper(study, root / "reports" / "paper.pdf", root / "docs" / "figures", figures) - return study +"""Rebuild the public study artifacts from raw results with one command.""" + +import json +import re +from pathlib import Path +from statistics import median +from urllib.parse import quote + +from .report_figures import build_figures +from .report_paper import write_paper +from .report_records import ( + METHODS, PAGES, STAGES, atomic_text, completed, describe_difference, example_runs, finite, fmt, study_snapshot, + verdict_text, +) + + +def _cell(value) -> str: + """Keep arbitrary run annotations and identifiers inside one Markdown table cell.""" + return str(value).replace("|", "\\|").replace("\n", " ") + + +def _table(rows: list[list], headings: list[str]) -> str: + def row(values): + return "| " + " | ".join(_cell(v) for v in values) + " |" + return "\n".join([row(headings), row(["---"] * len(headings)), *(row(v) for v in rows)]) + + +def _method(run: dict) -> str: + return METHODS.get(run.get("method"), run.get("method", "Unknown")) + + +def _stage(run: dict) -> str: + return STAGES.get(run.get("stage"), run.get("stage", "Unknown")) + + +def _ledger_row(run: dict) -> list: + return [ + _stage(run), _method(run), run.get("phase", "—"), run.get("seed", "—"), + fmt(run.get("ratio")), fmt(run.get("tokens"), 0), fmt(run.get("dev_nll"), 4), + fmt(run.get("test_nll"), 4), fmt(run.get("tokens_per_sec"), 0), run["status"], + ] + + +LEDGER_HEADERS = ["Stage", "Method", "Phase", "Seed", "Ratio", "Train tokens", "Dev NLL", + "Test NLL", "Tokens/s", "Status"] + + +def _stage_summary(study: dict) -> str: + return "\n\n".join( + f"**{STAGES[stage]}.** {verdict_text(outcome)}" for stage, outcome in study["stages"].items() + ) + + +def _pilot_summary(study): + observed = [] + for stage, contrasts in study["pilot_comparisons"].items(): + if contrasts: + numbers = ", ".join(f"{describe_difference(row['delta'])} against {METHODS[row['method']]}" + for row in contrasts) + first = contrasts[0] + observed.append(f"**{STAGES[stage]} development pilot.** At {first['tokens']:,} " + f"training targets, the third-order run recorded {numbers}. " + f"These are single-seed descriptions using {first['strength_basis']}.") + return "\n\n".join(observed) + + +def _comparisons(study: dict) -> str: + parts = [] + for stage, analysis in study["stages"].items(): + pairs = [] + summary = [] + for baseline, stats in analysis.get("comparisons", {}).items(): + name = METHODS.get(baseline, baseline) + lo, hi = stats["median_ci"] + summary.append([name, stats["wins"], stats["ties"], stats["losses"], + fmt(stats["median_delta"], 5), f"[{fmt(lo,5)}, {fmt(hi,5)}]", + fmt(stats["ci_coverage"], 4), fmt(stats["p_raw"], 5), + fmt(stats["p_holm"], 5)]) + for pair in stats["pairs"]: + pairs.append([name, pair["seed"], fmt(pair["third_nll"], 5), + fmt(pair["baseline_nll"], 5), fmt(pair["delta"], 5)]) + if summary: + parts.append(f"### {STAGES[stage]}\n\n" + _table(summary, [ + "Comparator", "Wins", "Ties", "Losses", "Median ΔNLL", "Median interval", + "Coverage", "Sign-test p", "Holm p"]) + "\n\n" + _table(pairs, [ + "Comparator", "Seed", "Third-order NLL", "Comparator NLL", "ΔNLL"])) + times = [[t["seed"], fmt(t["cutoff_seconds"], 1), _method({"method": m}), + fmt(o.get("train_seconds"), 1), fmt(o.get("tokens"), 0), fmt(o.get("dev_nll"), 5)] + for t in analysis.get("matched_time", []) for m, o in t.get("by_method", {}).items() + if isinstance(o, dict)] + if times: + parts.append(f"### {STAGES[stage]} at equal training time\n\n" + _table(times, [ + "Seed", "Common cutoff (s)", "Method", "Recorded checkpoint (s)", + "Training tokens", "Dev NLL"])) + supplement = [[item["seed"],fmt(item["cutoff_seconds"],1),METHODS[m],fmt(point["clock_seconds"],1), + fmt(point["tokens"],0),fmt(point["dev_nll"],5)] + for item in analysis.get("matched_nonhost_time",[]) for m,point in item["by_method"].items()] + if supplement: + parts.append(f"### {STAGES[stage]} after subtracting host derivative calls\n\n" + "This supplementary clock excludes the measured host probe calls and their transfers. " + "The registered comparison above counts elapsed time with one GPU reserved.\n\n" + + _table(supplement,["Seed","Cutoff (s)","Method","Checkpoint (s)","Training tokens","Dev NLL"])) + return "\n\n".join(parts) + + +def _run_learning(run: dict) -> str: + """Use a trajectory only for a within-run observation; avoid causal attribution to a single run.""" + if run.get("error"): + return f"The run recorded a failure. The run ledger contains the error and last metrics." + series = [e for e in run["events"] if finite(e.get("dev_nll")) and finite(e.get("tokens"))] + if len(series) >= 2 and series[0]["tokens"] < series[-1]["tokens"]: + delta = series[-1]["dev_nll"] - series[0]["dev_nll"] + return (f"Development NLL changed by {delta:+.4f} nats per target token from " + f"{series[0]['tokens']:,} to {series[-1]['tokens']:,} training targets. " + "Attribution to the regularizer uses matched comparisons across seeds.") + if finite(run.get("dev_nll")): + return f"The observed development NLL is {fmt(run['dev_nll'], 4)} nats per target token." + return "A development observation is pending." + + +def _sample(sample: dict) -> str: + """Indent whole text blocks verbatim so model-generated Markdown is never executed.""" + def block(value): + lines = str(value).splitlines() or [""] + return "\n".join(" " + line for line in lines) + segments = [("Prompt", sample.get("prompt", ""))] + if sample.get("reference") is not None: + segments.append(("Reference continuation", sample["reference"])) + segments.append(("Model continuation", sample.get("continuation", ""))) + return "\n\n".join(f"**{title}**\n\n{block(body)}" for title, body in segments) + + +def _experiments(root, study): + """Write all runs and samples, with one navigable index and brief evidence-linked learnings.""" + base = root / "reports" / "experiments" + index = ["# Experiment ledger", "NLL is negative log-likelihood in nats per target token. " + "A smaller value assigns more probability to the observed next tokens. " + "The ratio sets the pilot regularizer-gradient magnitude relative to cross-entropy.", + "[Architecture, training algorithms, objectives and planned budgets](../planned-runs.md)"] + learnings = ["# Experimental learnings", _stage_summary(study), + "Independent random signs include mixed weight derivatives in the expected " + "penalty. The trace implementation motivating the gradient check converted its " + "estimate to a Python number. [Derivation and references](../literature-review.md)"] + if study["runs"]: + rows = [] + for run in study["runs"]: + key = run["id"] + link = "./" + quote(key, safe="") + "/experiment.md" + rows.append([f"[{_cell(key)}]({link})", *_ledger_row(run)]) + raw_link = "../../../results/" + quote(key, safe="") + "/" + material = [ + f"# {_stage(run)} · {_method(run)}", + f"Run `{key}` · [raw records]({raw_link}) · [registered design](../../preregistration.md)", + _table([_ledger_row(run)], LEDGER_HEADERS), + f"Training time is {fmt(run.get('train_seconds'), 1)} seconds. " + f"Peak allocated GPU memory is {fmt(run.get('peak_vram_mb'), 1)} MiB. " + f"Development token accuracy is {fmt(run.get('dev_accuracy'), 4)}. " + f"Test token accuracy is {fmt(run.get('test_accuracy'), 4)}.", + "[Design and hyperparameter rationale](../../planned-runs.md) · " + f"[Saved configuration]({raw_link}config.json)", + ] + if run.get("failures"): + material += ["## Recorded interruptions", _table( + [[failure["timestamp"],failure["error"]] for failure in run["failures"]], + ["Time (UTC)","Recorded exception"])] + if run.get("precision_audit"): + material += ["## Numerical diagnostic",run["precision_audit"]["reason"], + "[Precision amendment](../../amendments/adapter-precision.md)"] + if finite(run.get("process_peak_rss_mib")): + material.append(f"The process working-set high-water mark was {fmt(run['process_peak_rss_mib'],1)} MiB. " + "This OS measure includes earlier work in the same interpreter.") + if run["samples"]: + material += ["## Fixed-prompt generations", + *[_sample(sample) for sample in run["samples"]]] + atomic_text(base / key / "experiment.md", "\n\n".join(material) + "\n") + observation = _run_learning(run) + if run.get("precision_audit"): + observation = run["precision_audit"]["reason"] + if run.get("failures"): + observation += f" The run ledger records {len(run['failures'])} interrupted attempt(s)." + atomic_text(base / key / "learnings.md", f"# Run learnings\n\n{observation}\n\n" + "[Experiment and source records](experiment.md)\n") + learnings.append(f"- [{key}]({link}) — {observation}") + index.append(_table(rows, ["Run", *LEDGER_HEADERS])) + else: + index.append("The first run record will populate this ledger.") + atomic_text(base / "experiments.md", "\n\n".join(index) + "\n") + atomic_text(base / "learnings.md", "\n\n".join(learnings) + "\n") + + +def _compact_table(study: dict) -> str: + """Summarize like-for-like measured runs without selecting the strongest seed.""" + groups = {} + for run in study["runs"]: + if completed(run): + key = (_stage(run), run.get("phase"), _method(run), run.get("ratio"), run.get("tokens")) + groups.setdefault(key, []).append(run) + rows = [] + for (stage, phase, method, ratio, tokens), runs in groups.items(): + def middle(metric): + observed = [r[metric] for r in runs if finite(r.get(metric))] + return fmt(median(observed), 4) if observed else "—" + rows.append([stage, phase, method, fmt(ratio), fmt(tokens, 0), len(runs), + middle("dev_nll"), middle("test_nll")]) + return _table(rows, ["Stage", "Phase", "Method", "Ratio", "Tokens/run", "Runs", + "Median dev NLL", "Median test NLL"]) if rows else "" + + +def _update_readme(root: Path, body: str) -> None: + """Preserve all hand-authored material, including edits made between report builds.""" + path = root / "README.md" + if not path.exists(): + return + before = path.read_text(encoding="utf-8-sig") + pattern = r".*?" + if len(re.findall(pattern, before, re.DOTALL)) != 1: + raise ValueError(f"{path} requires exactly one pair of results markers") + replacement = "\n" + body.strip() + "\n" + atomic_text(path, re.sub(pattern, lambda _: replacement, before, flags=re.DOTALL)) + + +def build_report(root: Path = Path(".")) -> dict: + """Regenerate README results, PDF, experiment ledger, figures and the static dashboard.""" + root = Path(root).resolve() + study = study_snapshot(root) + figures = build_figures(study, root / "docs" / "figures") + study["figures"] = figures + static = json.dumps(study, ensure_ascii=False, allow_nan=False, separators=(",", ":")) + atomic_text(root / "docs" / "study.json", static + "\n") + _experiments(root, study) + compact = _compact_table(study) + comparisons = _comparisons(study) + counts = len(study["runs"]) + done = sum(completed(run) for run in study["runs"]) + overview = f"Recorded {counts} runs, including {done} with a completed summary." + documents = [f"[Interactive explorer]({PAGES})", "[Per-run ledger](experiments/experiments.md)", + "[Preregistration](preregistration.md)", "[Paper](paper.pdf)"] + summary = ["# Study summary", overview, _stage_summary(study), " · ".join(documents)] + pilots = _pilot_summary(study) + if pilots: + summary.extend(["## Development observations", pilots]) + if compact: + summary.extend(["## Measured scores", compact]) + if comparisons: + summary.extend(["## Paired evidence", comparisons]) + for key, label in (("architecture", "Computation graph"), ("curves", "Development trajectories"), + ("paired", "Paired test differences")): + if key in figures: + summary.append(f"![{label}](../docs/figures/{figures[key]})") + atomic_text(root / "reports" / "summary.md", "\n\n".join(summary) + "\n") + badge = (f"[Explore the results]({PAGES}) · [Hugging Face explorer](https://huggingface.co/spaces/BurnyCoder/thirdloss-explorer) · " + "[Hugging Face collection](https://huggingface.co/collections/BurnyCoder/third-derivatives-in-language-model-training-6b067fb7d5ae3eca49ebb378) · " + "[Paper](reports/paper.pdf) · [Run ledger](reports/experiments/experiments.md)") + readme = [badge, overview, _stage_summary(study)] + if pilots: + readme.append(pilots) + if compact: + readme.extend(["### Measured scores", compact]) + readme.append("![Parameter-space computation graph](docs/figures/architecture.png)") + for key in ("paired", "curves"): + if key in figures: + readme.append(f"![{'Paired test differences' if key == 'paired' else 'Development NLL'}](docs/figures/{figures[key]})") + panels = [] + for run in example_runs(study["runs"]): + panels.append(f"
{_stage(run)} · {_method(run)} · {run['phase']}, seed {run['seed']}\n\n" + + f"[Recorded sample](results/{run['id']}/samples.jsonl)\n\n" + + _sample(run["samples"][0]) + "\n\n
") + if panels: + readme += ["### Recorded predictions", "First registered checkpoint and sample in run-ID order per " + "stage and method. [All continuations](reports/experiments/experiments.md)", *panels] + _update_readme(root, "\n\n".join(readme)) + write_paper(study, root / "reports" / "paper.pdf", root / "docs" / "figures", figures) + return study diff --git a/research/src/thirdloss/study.py b/research/src/thirdloss/study.py index 1338e64ab597b6abf359ac1f66fc2d6caa1b9d13..3b0954e5b52408a1262fcbc5b64d05b7051a6575 100644 --- a/research/src/thirdloss/study.py +++ b/research/src/thirdloss/study.py @@ -1,200 +1,200 @@ -"""Sequence prospective pilots, blinded model selection, sealed evaluation and releases.""" - -import hashlib -import json -import subprocess -import sys -from pathlib import Path - -from huggingface_hub import hf_hub_download -from safetensors.torch import load_file - -from .data import prepare -from .evaluation import score -from .models import build_model -from .records import HORIZONS, RATIOS, Recorder, read_json, run_name, sha256, time_now, write_json -from .release import STAGE_HUB, publish_snapshot, publish_weights -from .train import run_one - - -def prepare_stage(project, storage, stage): - manifest = prepare(stage,storage/"data") - write_json(project/"results"/"datasets"/f"{stage}.json",manifest) - return manifest - - -def select(project, stage): - """Lock selection using the six equal-horizon full-development scores.""" - candidates = {} - for kind in ("trace","third"): - candidates[kind] = [] - for ratio in RATIOS: - path = project/"results"/run_name(stage,kind,"pilot",0,ratio)/"summary.json" - row = read_json(path) - if row["tokens"] != HORIZONS[stage]//8: - raise ValueError("All pilot candidates must finish the same development horizon") - candidates[kind].append({"ratio":ratio,"nll":row["dev_nll"],"run":row["id"]}) - result = {"stage":stage,"candidates":candidates,"ratios":{ - kind:min(rows,key=lambda x:(x["nll"],x["ratio"]))["ratio"] for kind,rows in candidates.items()}} - path = project/"results"/"selection"/f"{stage}.json" - if path.exists() and read_json(path)!=result: - raise ValueError("Development scores changed after the stage selection was locked") - write_json(path,result) - return result["ratios"] - - -def weights_file(storage, summary): - """Verify local snapshot or retrieve the same digest from the published collection.""" - run_id = summary["id"] - filename = summary["weights_name"] - path = storage/"checkpoints"/run_id/"export"/filename - if not path.is_file(): - path = Path(hf_hub_download(STAGE_HUB[summary["stage"]],f"runs/{run_id}/{filename}", - cache_dir=str(storage/"hub"))) - if sha256(path)!=summary["weights_sha256"]: - raise ValueError(f"Weights for {run_id} differ from their registered checksum") - return path - - -def freeze(project, storage, stage): - """Bind all 24 finished checkpoints, split, and selected coefficients before opening test bytes.""" - selection = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] - split = read_json(storage/"data"/stage/"manifest.json")["splits"]["test"] - frozen = {"stage":stage,"ratios":selection,"test_sha256":split["sha256"],"runs":{}} - for seed in range(1,9): - initial = set() - for method in ("ce","trace","third"): - name = run_name(stage,method,"confirm",seed,selection.get(method,0)) - summary = read_json(project/"results"/name/"summary.json") - if summary["tokens"]!=HORIZONS[stage] or summary["status"]!="complete": - raise ValueError(f"Incomplete registered checkpoint {name}") - if summary["data_manifest_sha256"]!=sha256(storage/"data"/stage/"manifest.json"): - raise ValueError(f"Different corpus for {name}") - weights_file(storage,summary) - frozen["runs"][name] = summary["weights_sha256"] - digest = summary.get("initial_trainable_sha256") - if not digest: - raise ValueError(f"Missing initial trainable-weight digest for {name}") - initial.add(digest) - if len(initial)!=1: - raise ValueError(f"Initial trainable weights differ across {stage} seed {seed} arms") - frozen.setdefault("initializations",{})[str(seed)] = initial.pop() - frozen["freeze_id"] = hashlib.sha256(json.dumps(frozen,sort_keys=True).encode()).hexdigest() - path = project/"results"/"freeze"/f"{stage}.json" - if path.exists() and read_json(path)!=frozen: - raise ValueError("A sealed checkpoint or dataset changed") - write_json(path,frozen) - return frozen - - -def evaluate_one(project, storage, run_id, device): - from .progress import week_schedule - path = project/"results"/run_id/"summary.json" - summary = read_json(path) - stage = summary["stage"] - sealed = read_json(project/"results"/"freeze"/f"{stage}.json") - data = storage/"data"/stage - if sealed["runs"].get(run_id)!=summary.get("weights_sha256") or run_id not in sealed["runs"]: - raise ValueError("Evaluation requires a checkpoint present in the stage freeze") - if week_schedule(project) is None: - raise ValueError("The one-week timing and memory projection requires selected pilots from both stages before test scoring") - if "test_nll" in summary: - if summary["freeze_id"]!=sealed["freeze_id"]: - raise ValueError("Existing evaluation uses a different freeze") - return summary - weights = weights_file(storage,summary) - if sha256(data/"test.bin") != sealed["test_sha256"]: - raise ValueError("Test stream differs from the frozen manifest") - model = build_model(stage,summary["seed"],device,storage) - state = load_file(str(weights),device="cpu") - if stage=="stories": - model.load_state_dict(state,strict=True) - else: - from peft import get_peft_model_state_dict,set_peft_model_state_dict - if set(state)!=set(get_peft_model_state_dict(model)): - raise ValueError("Adapter payload does not match the pinned backbone and target modules") - set_peft_model_state_dict(model,state) - recorder = Recorder(project,run_id) - state = path.parent/"test_state.json" - def report_progress(row): - # Publish elapsed time and coverage during a sealed evaluation. The full-corpus - # NLL and accuracy enter the summary only after every target has been scored. - coverage = {key:row[key] for key in ("targets_scored","targets_to_score","score_seconds")} - write_json(state,{"split":"test","timestamp":time_now(),**coverage}) - recorder.emit({"split":"test",**coverage},"test_progress.jsonl") - report_progress({"targets_scored":0,"targets_to_score":(data/"test.bin").stat().st_size//2-1,"score_seconds":0.0}) - stats = score(model,data/"test.bin",device,summary.get("evaluation_batch_windows",summary["microbatch"]), - progress=report_progress) - summary.update(test_nll=stats["nll"],test_accuracy=stats["accuracy"],test_tokens=stats["tokens"], - test_manifest_sha256=sealed["test_sha256"],freeze_id=sealed["freeze_id"], - test_seconds=read_json(state)["score_seconds"],evaluated_at=time_now()) - write_json(path,summary) - state.unlink(missing_ok=True) - return summary - - -def milestone(project,storage,summary,publish): - path = project/"results"/summary["id"]/"summary.json" - marker = storage/"releases"/(summary["id"]+".json") - fingerprint = sha256(path) - if publish and marker.exists() and read_json(marker)["summary_sha256"]==fingerprint: - return - # A study can run for days. Render from the current checked-in reporting code so a - # later milestone cannot replace an updated paper or explorer with an older template. - subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True) - if publish: - publish_weights(project,storage,summary) - label = "evaluation" if "test_nll" in summary else "development" - revision = publish_snapshot(project,f"Record {label} results for {summary['id']}") - write_json(marker,{"summary_sha256":fingerprint,"git_revision":revision}) - - -def feasibility(project, stage): - """Project training-only cost from actual per-arm pilot timing before using test data.""" - selected = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] - rows = [] - for method in ("third","ce","trace"): - row = read_json(project/"results"/run_name(stage,method,"pilot",0,selected.get(method,0))/"summary.json") - rows.append({"method":method,"pilot_run":row["id"],"tokens_per_sec":row["tokens_per_sec"], - "peak_vram_mb":row["peak_vram_mb"],"projected_confirm_hours": - 8*HORIZONS[stage]/row["tokens_per_sec"]/3600}) - hours = sum(r["projected_confirm_hours"] for r in rows) - result = {"stage":stage,"arms":rows,"projected_confirm_training_hours":hours, - "basis":"Pilot training time. Data, calibration, evaluation, checkpoint and upload overhead are additional."} - write_json(project/"results"/"feasibility"/f"{stage}.json",result) - return result - - -def run_study(project,storage,stages,device,publish): - """Retry-safe complete study. Cached milestones allow continuation after reboot or network loss.""" - def run(stage,method,phase,seed,ratio): - row = run_one(project,storage,stage,method,phase,seed,ratio,device) - milestone(project,storage,row,publish) - return row - for stage in stages: - prepare_stage(project,storage,stage) - if stage=="abstracts" and not (project/"results"/"verification"/"pythia-scoring-batches.json").exists(): - from .probe_check import benchmark_scoring - benchmark_scoring(project,device) - run(stage,"third","pilot",0,0.03) - for method in ("initial","unigram"): - run(stage,method,"control",0,0) - run(stage,"ce","pilot",0,0) - for method in ("trace","third"): - for ratio in RATIOS: - run(stage,method,"pilot",0,ratio) - selected = select(project,stage) - feasibility(project,stage) - for method,ratio in (("hessian_norm",0.03),("sham",selected["third"]),("combined",selected["third"])): - run(stage,method,"pilot",0,ratio) - for stage in stages: - selected = select(project,stage) - for seed in range(1,9): - for method in ("third","ce","trace"): - run(stage,method,"confirm",seed,selected.get(method,0)) - sealed = freeze(project,storage,stage) - if publish: - publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation") - for run_id in sealed["runs"]: - row = evaluate_one(project,storage,run_id,device) - milestone(project,storage,row,publish) +"""Sequence prospective pilots, blinded model selection, sealed evaluation and releases.""" + +import hashlib +import json +import subprocess +import sys +from pathlib import Path + +from huggingface_hub import hf_hub_download +from safetensors.torch import load_file + +from .data import prepare +from .evaluation import score +from .models import build_model +from .records import HORIZONS, RATIOS, Recorder, read_json, run_name, sha256, time_now, write_json +from .release import STAGE_HUB, publish_snapshot, publish_weights +from .train import run_one + + +def prepare_stage(project, storage, stage): + manifest = prepare(stage,storage/"data") + write_json(project/"results"/"datasets"/f"{stage}.json",manifest) + return manifest + + +def select(project, stage): + """Lock selection using the six equal-horizon full-development scores.""" + candidates = {} + for kind in ("trace","third"): + candidates[kind] = [] + for ratio in RATIOS: + path = project/"results"/run_name(stage,kind,"pilot",0,ratio)/"summary.json" + row = read_json(path) + if row["tokens"] != HORIZONS[stage]//8: + raise ValueError("All pilot candidates must finish the same development horizon") + candidates[kind].append({"ratio":ratio,"nll":row["dev_nll"],"run":row["id"]}) + result = {"stage":stage,"candidates":candidates,"ratios":{ + kind:min(rows,key=lambda x:(x["nll"],x["ratio"]))["ratio"] for kind,rows in candidates.items()}} + path = project/"results"/"selection"/f"{stage}.json" + if path.exists() and read_json(path)!=result: + raise ValueError("Development scores changed after the stage selection was locked") + write_json(path,result) + return result["ratios"] + + +def weights_file(storage, summary): + """Verify local snapshot or retrieve the same digest from the published collection.""" + run_id = summary["id"] + filename = summary["weights_name"] + path = storage/"checkpoints"/run_id/"export"/filename + if not path.is_file(): + path = Path(hf_hub_download(STAGE_HUB[summary["stage"]],f"runs/{run_id}/{filename}", + cache_dir=str(storage/"hub"))) + if sha256(path)!=summary["weights_sha256"]: + raise ValueError(f"Weights for {run_id} differ from their registered checksum") + return path + + +def freeze(project, storage, stage): + """Bind all 24 finished checkpoints, split, and selected coefficients before opening test bytes.""" + selection = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] + split = read_json(storage/"data"/stage/"manifest.json")["splits"]["test"] + frozen = {"stage":stage,"ratios":selection,"test_sha256":split["sha256"],"runs":{}} + for seed in range(1,9): + initial = set() + for method in ("ce","trace","third"): + name = run_name(stage,method,"confirm",seed,selection.get(method,0)) + summary = read_json(project/"results"/name/"summary.json") + if summary["tokens"]!=HORIZONS[stage] or summary["status"]!="complete": + raise ValueError(f"Incomplete registered checkpoint {name}") + if summary["data_manifest_sha256"]!=sha256(storage/"data"/stage/"manifest.json"): + raise ValueError(f"Different corpus for {name}") + weights_file(storage,summary) + frozen["runs"][name] = summary["weights_sha256"] + digest = summary.get("initial_trainable_sha256") + if not digest: + raise ValueError(f"Missing initial trainable-weight digest for {name}") + initial.add(digest) + if len(initial)!=1: + raise ValueError(f"Initial trainable weights differ across {stage} seed {seed} arms") + frozen.setdefault("initializations",{})[str(seed)] = initial.pop() + frozen["freeze_id"] = hashlib.sha256(json.dumps(frozen,sort_keys=True).encode()).hexdigest() + path = project/"results"/"freeze"/f"{stage}.json" + if path.exists() and read_json(path)!=frozen: + raise ValueError("A sealed checkpoint or dataset changed") + write_json(path,frozen) + return frozen + + +def evaluate_one(project, storage, run_id, device): + from .progress import week_schedule + path = project/"results"/run_id/"summary.json" + summary = read_json(path) + stage = summary["stage"] + sealed = read_json(project/"results"/"freeze"/f"{stage}.json") + data = storage/"data"/stage + if sealed["runs"].get(run_id)!=summary.get("weights_sha256") or run_id not in sealed["runs"]: + raise ValueError("Evaluation requires a checkpoint present in the stage freeze") + if week_schedule(project) is None: + raise ValueError("The one-week timing and memory projection requires selected pilots from both stages before test scoring") + if "test_nll" in summary: + if summary["freeze_id"]!=sealed["freeze_id"]: + raise ValueError("Existing evaluation uses a different freeze") + return summary + weights = weights_file(storage,summary) + if sha256(data/"test.bin") != sealed["test_sha256"]: + raise ValueError("Test stream differs from the frozen manifest") + model = build_model(stage,summary["seed"],device,storage) + state = load_file(str(weights),device="cpu") + if stage=="stories": + model.load_state_dict(state,strict=True) + else: + from peft import get_peft_model_state_dict,set_peft_model_state_dict + if set(state)!=set(get_peft_model_state_dict(model)): + raise ValueError("Adapter payload does not match the pinned backbone and target modules") + set_peft_model_state_dict(model,state) + recorder = Recorder(project,run_id) + state = path.parent/"test_state.json" + def report_progress(row): + # Publish elapsed time and coverage during a sealed evaluation. The full-corpus + # NLL and accuracy enter the summary only after every target has been scored. + coverage = {key:row[key] for key in ("targets_scored","targets_to_score","score_seconds")} + write_json(state,{"split":"test","timestamp":time_now(),**coverage}) + recorder.emit({"split":"test",**coverage},"test_progress.jsonl") + report_progress({"targets_scored":0,"targets_to_score":(data/"test.bin").stat().st_size//2-1,"score_seconds":0.0}) + stats = score(model,data/"test.bin",device,summary.get("evaluation_batch_windows",summary["microbatch"]), + progress=report_progress) + summary.update(test_nll=stats["nll"],test_accuracy=stats["accuracy"],test_tokens=stats["tokens"], + test_manifest_sha256=sealed["test_sha256"],freeze_id=sealed["freeze_id"], + test_seconds=read_json(state)["score_seconds"],evaluated_at=time_now()) + write_json(path,summary) + state.unlink(missing_ok=True) + return summary + + +def milestone(project,storage,summary,publish): + path = project/"results"/summary["id"]/"summary.json" + marker = storage/"releases"/(summary["id"]+".json") + fingerprint = sha256(path) + if publish and marker.exists() and read_json(marker)["summary_sha256"]==fingerprint: + return + # A study can run for days. Render from the current checked-in reporting code so a + # later milestone cannot replace an updated paper or explorer with an older template. + subprocess.run([sys.executable,"-m","thirdloss.cli","--project",str(project),"report"],cwd=project,check=True) + if publish: + publish_weights(project,storage,summary) + label = "evaluation" if "test_nll" in summary else "development" + revision = publish_snapshot(project,f"Record {label} results for {summary['id']}") + write_json(marker,{"summary_sha256":fingerprint,"git_revision":revision}) + + +def feasibility(project, stage): + """Project training-only cost from actual per-arm pilot timing before using test data.""" + selected = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] + rows = [] + for method in ("third","ce","trace"): + row = read_json(project/"results"/run_name(stage,method,"pilot",0,selected.get(method,0))/"summary.json") + rows.append({"method":method,"pilot_run":row["id"],"tokens_per_sec":row["tokens_per_sec"], + "peak_vram_mb":row["peak_vram_mb"],"projected_confirm_hours": + 8*HORIZONS[stage]/row["tokens_per_sec"]/3600}) + hours = sum(r["projected_confirm_hours"] for r in rows) + result = {"stage":stage,"arms":rows,"projected_confirm_training_hours":hours, + "basis":"Pilot training time. Data, calibration, evaluation, checkpoint and upload overhead are additional."} + write_json(project/"results"/"feasibility"/f"{stage}.json",result) + return result + + +def run_study(project,storage,stages,device,publish): + """Retry-safe complete study. Cached milestones allow continuation after reboot or network loss.""" + def run(stage,method,phase,seed,ratio): + row = run_one(project,storage,stage,method,phase,seed,ratio,device) + milestone(project,storage,row,publish) + return row + for stage in stages: + prepare_stage(project,storage,stage) + if stage=="abstracts" and not (project/"results"/"verification"/"pythia-scoring-batches.json").exists(): + from .probe_check import benchmark_scoring + benchmark_scoring(project,device) + run(stage,"third","pilot",0,0.03) + for method in ("initial","unigram"): + run(stage,method,"control",0,0) + run(stage,"ce","pilot",0,0) + for method in ("trace","third"): + for ratio in RATIOS: + run(stage,method,"pilot",0,ratio) + selected = select(project,stage) + feasibility(project,stage) + for method,ratio in (("hessian_norm",0.03),("sham",selected["third"]),("combined",selected["third"])): + run(stage,method,"pilot",0,ratio) + for stage in stages: + selected = select(project,stage) + for seed in range(1,9): + for method in ("third","ce","trace"): + run(stage,method,"confirm",seed,selected.get(method,0)) + sealed = freeze(project,storage,stage) + if publish: + publish_snapshot(project,f"Freeze all {stage} confirmatory checkpoints before test evaluation") + for run_id in sealed["runs"]: + row = evaluate_one(project,storage,run_id,device) + milestone(project,storage,row,publish) diff --git a/research/src/thirdloss/train.py b/research/src/thirdloss/train.py index a9573cbee40e2a2955cc24e1cd72cb41e236e330..2d36b6dd27bea2f7a4f2156a114cdc7833c8c82f 100644 --- a/research/src/thirdloss/train.py +++ b/research/src/thirdloss/train.py @@ -1,254 +1,254 @@ -"""Time, train, checkpoint and export one fully specified arm of the registered experiment.""" - -import math -import os -import platform -import shutil -import subprocess -import time -from pathlib import Path - -import torch -from filelock import FileLock - -from .evaluation import sample_outputs, score, unigram_distribution -from .models import build_model, export_weights, trainable_digest -from .objectives import add_penalty, adapter_derivative_device, calibrate, ce_backward, derivative_replica -from .records import (BATCHES, CONTEXT, HORIZONS, RATIOS, Recorder, json_lines, read_json, - peak_process_mib, run_name, sha256, time_now, write_json) -from .windows import TrainingWindows, gate - - -def scientific_config(stage, method, phase, seed, ratio): - """Validate identities so pilots, confirmations and smoke tests cannot be mixed in analysis.""" - if stage not in HORIZONS or phase not in {"pilot", "confirm", "control", "smoke"}: - raise ValueError("Unknown study stage or phase") - if phase == "confirm" and (seed not in range(1,9) or method not in {"ce","trace","third"}): - raise ValueError("Confirmation uses seeds 1–8 and the three primary arms") - if phase in {"control", "pilot"} and seed != 0: - raise ValueError("Development and control runs use the reserved pilot seed") - if method in {"ce","initial","unigram"}: - ratio = 0.0 - elif ratio not in RATIOS: - raise ValueError(f"Unregistered penalty strength {ratio}") - budget = HORIZONS[stage] if phase == "confirm" else HORIZONS[stage]//8 - if phase == "smoke": - budget = CONTEXT * BATCHES[stage] * 8 - if method in {"unigram","initial"}: - budget = 0 - return {"id":run_name(stage, method, phase, seed, ratio), "stage":stage, "method":method, - "phase":phase, "seed":seed, "ratio":ratio, "token_budget":budget, - "batch_windows":BATCHES[stage], "context":CONTEXT} - - -def learning_rate(stage, step, steps): - peak = 3e-4 if stage == "stories" else 1e-4 - warm = max(1, round(0.05*steps)) - if step < warm: - return peak * (step+1)/warm - progress = (step-warm+1) / max(1, steps-warm) - return peak * (0.1+0.9*0.5*(1+math.cos(math.pi*progress))) - - -def validation_due(stage, phase, step, interval): - """Observe the early portion of every adapter confirmatory arm at common data positions.""" - initial_adapter = stage=="abstracts" and phase=="confirm" and step0 and step%interval==0) or (initial_adapter and step%4==0) - - -def chosen_coefficients(project, storage, config, device, microbatch): - method, ratio, stage = (config[k] for k in ("method","ratio","stage")) - if method in {"ce","initial","unigram"}: - return {} - if method == "combined": - selected = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] - kinds = {"trace":selected["trace"], "third":selected["third"]} - else: - kinds = {"third" if method == "sham" else method: ratio} - return {kind: scale*calibrate(project,storage,stage,kind,device,microbatch) for kind,scale in kinds.items()} - - -def save_state(path, model, optimizer, step, elapsed, config): - """Atomically persist optimizer, trainable weights, all stochastic state and next data step.""" - state = {"weights":{n:p.detach() for n,p in model.named_parameters() if p.requires_grad}, - "optimizer":optimizer.state_dict(), "next_step":step, "train_seconds":elapsed, - "config":config, "cpu_rng":torch.get_rng_state(), - "cuda_rng":torch.cuda.get_rng_state() if next(model.parameters()).is_cuda else None} - temp = path.with_suffix(".partial") - torch.save(state, temp) - os.replace(temp,path) - - -def restore_state(path, model, optimizer, config, recorder, device): - """Recover the last committed checkpoint and ignore telemetry from interrupted later steps.""" - if not path.exists(): - return 0, 0.0 - state = torch.load(path, map_location="cpu", weights_only=True) - if state["config"] != config: - raise ValueError("Resume configuration differs from saved scientific settings") - model.load_state_dict(state["weights"], strict=False) - optimizer.load_state_dict(state["optimizer"]) - torch.set_rng_state(state["cpu_rng"]) - if state["cuda_rng"] is not None: - torch.cuda.set_rng_state(state["cuda_rng"], device) - step = state["next_step"] - path = recorder.directory/"events.jsonl" - if path.exists(): - import json - rows = [r for r in json_lines(path) if r.get("step", 0) <= step] - temp = path.with_suffix(".partial") - temp.write_text("".join(json.dumps(r)+"\n" for r in rows), encoding="utf-8") - temp.replace(path) - return step, state["train_seconds"] - - -def run_one(project, storage, stage, method, phase, seed, ratio, device, microbatch=None): - config = scientific_config(stage,method,phase,seed,ratio) - microbatch = microbatch or (32 if stage == "stories" else 2) - if microbatch < 1: - raise ValueError("A physical batch must contain at least one window") - recorder = Recorder(project, config["id"]) - locks = storage / "locks" - locks.mkdir(parents=True, exist_ok=True) - with FileLock(str(locks/(config["id"]+".lock"))): - log = recorder.directory/"attempts.json" - marker = recorder.directory/"failure.json" - def remember(failure): - """Keep the original timestamp and exception across successful or repeated retries.""" - history = read_json(log) if log.exists() else {"failures":[]} - if failure not in history["failures"]: - history["failures"].append(failure) - write_json(log,history) - if marker.exists(): - remember(read_json(marker)) - marker.unlink() - try: - return _run(project, storage, config, recorder, device, microbatch) - except Exception as exc: - failure = {"timestamp":time_now(), "error":repr(exc)} - write_json(marker,failure) - remember(failure) - raise - - -def _run(project, storage, config, recorder, device, microbatch): - stage, method, seed, budget = (config[k] for k in ("stage","method","seed","token_budget")) - data = storage/"data"/stage - manifest = read_json(data/"manifest.json") - config["data_manifest_sha256"] = sha256(data/"manifest.json") - config["microbatch"] = microbatch - precise = stage=="abstracts" and method not in {"ce","initial","unigram"} - if precise: - config.update(derivative_dtype="float64",derivative_device=str(adapter_derivative_device())) - output = recorder.directory - state_path = output/"state.json" - if not (output/"summary.json").exists(): - write_json(state_path,{**config,"status":"initializing","timestamp":time_now()}) - config["coefficients"] = chosen_coefficients(project,storage,config,device,microbatch) - if (output/"config.json").exists() and read_json(output/"config.json") != config: - raise ValueError(f"Existing run configuration conflicts with {config['id']}") - write_json(output/"config.json",config) - summary_path = output/"summary.json" - if summary_path.exists(): - return read_json(summary_path) - ckpt = storage/"checkpoints"/config["id"] - ckpt.mkdir(parents=True,exist_ok=True) - if device.type == "cuda": - torch.cuda.empty_cache() - torch.cuda.reset_peak_memory_stats(device) - model = None if method == "unigram" else build_model(stage,seed,device,storage) - replica = derivative_replica(stage,seed,storage) if precise else None - bench=project/"results"/"verification"/"pythia-scoring-batches.json" - score_batch=read_json(bench)["selected_batch"] if stage=="abstracts" and bench.exists() else microbatch - parameters = tuple(p for p in model.parameters() if p.requires_grad) if model is not None else () - summary = {**config, "device":str(device), "torch":str(torch.__version__), "platform":platform.platform(), - "gpu":torch.cuda.get_device_name(device) if device.type=="cuda" else None, - "initial_trainable_sha256":trainable_digest(model) if model is not None else None, - "cpu_threads":torch.get_num_threads(),"evaluation_batch_windows":score_batch, - "git_revision":subprocess.check_output(["git","rev-parse","HEAD"],cwd=project,text=True).strip(), - "trainable_parameters":sum(p.numel() for p in parameters)} - batch = BATCHES[stage] - steps = budget//(batch*CONTEXT) - elapsed = 0.0 - if budget: - write_json(state_path,{"status":"training","timestamp":time_now()}) - windows = TrainingWindows(data/"train.bin",seed,batch) - groups = [{"params":[p for p in parameters if p.ndim>1],"weight_decay":0.1}, - {"params":[p for p in parameters if p.ndim<=1],"weight_decay":0.0}] - optimizer = torch.optim.AdamW(groups,lr=1e-4,betas=(0.9,0.95),fused=(device.type=="cuda")) - # A restart during the first checkpoint interval must discard measurements from - # updates whose weights and optimizer moments were never committed. - if not (ckpt/"latest.pt").exists(): - save_state(ckpt/"latest.pt",model,optimizer,0,0.0,config) - start,elapsed = restore_state(ckpt/"latest.pt",model,optimizer,config,recorder,device) - history = json_lines(output/"events.jsonl") - host_probes = sum(e.get("host_probe_seconds",0.0) for e in history) - # Match elapsed-time comparisons with periodic fixed development windows in every arm. - interval = min(128,max(1,steps//16)) - if start==0 and validation_due(stage,config["phase"],0,interval) and not history: - metrics = score(model,data/"dev.bin",device,score_batch,limit_windows=64) - recorder.emit({"step":0,"tokens":0,"train_seconds":0.0,"training_seconds_excluding_host_probes":0.0, - "dev_nll":metrics["nll"],"dev_accuracy":metrics["accuracy"]}) - for step in range(start,steps): - model.train() - tic = time.perf_counter() - inputs,targets = windows.get(step,device) - optimizer.zero_grad(set_to_none=True) - base,accuracy = ce_backward(model,inputs,targets,microbatch) - active = bool(config["coefficients"]) and gate(seed,step) - terms = add_penalty(model,parameters,inputs,targets,config["coefficients"],method,seed,step,replica) if active else {} - host_seconds = (sum(t["probe_seconds"] for t in terms.values()) - if precise and config["derivative_device"]=="cpu" and device.type=="cuda" else 0.0) - host_probes += host_seconds - norm = torch.nn.utils.clip_grad_norm_(parameters,1.0,error_if_nonfinite=True) - lr = learning_rate(stage,step,steps) - for group in optimizer.param_groups: - group["lr"] = lr - optimizer.step() - if device.type == "cuda": - torch.cuda.synchronize(device) - elapsed += time.perf_counter()-tic - done = step+1 - validate = validation_due(stage,config["phase"],done,interval) or done==steps - if done % 8 == 0 or active or done == 1 or validate: - row = {"step":done, "tokens":done*batch*CONTEXT, "train_seconds":elapsed, "loss":base.item(), - "accuracy":accuracy.item(), "lr":lr, "gradient_norm":norm.item(),"derivatives":terms, - "host_probe_seconds":host_seconds,"training_seconds_excluding_host_probes":max(0.0,elapsed-host_probes)} - if terms: - row["penalty"] = sum(8*t["lambda"]*t["estimate"] for t in terms.values()) - if validate: - metrics = score(model,data/"dev.bin",device,score_batch,limit_windows=64) - row.update(dev_nll=metrics["nll"],dev_accuracy=metrics["accuracy"]) - recorder.emit(row) - if done%interval == 0 or done==steps: - save_state(ckpt/"latest.pt",model,optimizer,done,elapsed,config) - del optimizer - summary.update(host_probe_seconds=host_probes,training_seconds_excluding_host_probes=max(0.0,elapsed-host_probes)) - del replica - dist = unigram_distribution(data/"train.bin",4096 if stage=="stories" else 50304) if method=="unigram" else None - write_json(state_path,{"status":"scoring development","timestamp":time_now()}) - def evaluation_progress(row): - write_json(state_path,{"status":"scoring development",**row}) - recorder.emit({"split":"dev",**row},"evaluation.jsonl") - validation = score(model,data/"dev.bin",device,score_batch,unigram=dist,progress=evaluation_progress) - # A rerun after final-checkpoint interruption writes each documented sample exactly once. - sample_path = output/"samples.jsonl" - if sample_path.exists(): - sample_path.unlink() - sample_outputs(model,data,manifest,device,recorder,unigram=dist) - if budget: - weights = export_weights(model,ckpt/"export") - shutil.copy2(data/"tokenizer.json", ckpt/"export"/"tokenizer.json") - summary.update(weights_sha256=sha256(weights),weights_name=weights.name) - summary["matched_dev_nll"] = next(e["dev_nll"] for e in reversed(json_lines(output/"events.jsonl")) - if "dev_nll" in e) - summary.update(tokens=budget,steps=steps,train_seconds=elapsed,tokens_per_sec=budget/elapsed if elapsed else 0, - process_peak_rss_mib=peak_process_mib(), - peak_vram_mb=torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else 0, - dev_nll=validation["nll"],dev_accuracy=validation["accuracy"],dev_tokens=validation["tokens"], - finished_at=time_now(),status="complete") - write_json(summary_path,summary) - state_path.unlink(missing_ok=True) - (output/"failure.json").unlink(missing_ok=True) - print(f"Completed {config['id']} development NLL {summary['dev_nll']:.6f}",flush=True) - return summary +"""Time, train, checkpoint and export one fully specified arm of the registered experiment.""" + +import math +import os +import platform +import shutil +import subprocess +import time +from pathlib import Path + +import torch +from filelock import FileLock + +from .evaluation import sample_outputs, score, unigram_distribution +from .models import build_model, export_weights, trainable_digest +from .objectives import add_penalty, adapter_derivative_device, calibrate, ce_backward, derivative_replica +from .records import (BATCHES, CONTEXT, HORIZONS, RATIOS, Recorder, json_lines, read_json, + peak_process_mib, run_name, sha256, time_now, write_json) +from .windows import TrainingWindows, gate + + +def scientific_config(stage, method, phase, seed, ratio): + """Validate identities so pilots, confirmations and smoke tests cannot be mixed in analysis.""" + if stage not in HORIZONS or phase not in {"pilot", "confirm", "control", "smoke"}: + raise ValueError("Unknown study stage or phase") + if phase == "confirm" and (seed not in range(1,9) or method not in {"ce","trace","third"}): + raise ValueError("Confirmation uses seeds 1–8 and the three primary arms") + if phase in {"control", "pilot"} and seed != 0: + raise ValueError("Development and control runs use the reserved pilot seed") + if method in {"ce","initial","unigram"}: + ratio = 0.0 + elif ratio not in RATIOS: + raise ValueError(f"Unregistered penalty strength {ratio}") + budget = HORIZONS[stage] if phase == "confirm" else HORIZONS[stage]//8 + if phase == "smoke": + budget = CONTEXT * BATCHES[stage] * 8 + if method in {"unigram","initial"}: + budget = 0 + return {"id":run_name(stage, method, phase, seed, ratio), "stage":stage, "method":method, + "phase":phase, "seed":seed, "ratio":ratio, "token_budget":budget, + "batch_windows":BATCHES[stage], "context":CONTEXT} + + +def learning_rate(stage, step, steps): + peak = 3e-4 if stage == "stories" else 1e-4 + warm = max(1, round(0.05*steps)) + if step < warm: + return peak * (step+1)/warm + progress = (step-warm+1) / max(1, steps-warm) + return peak * (0.1+0.9*0.5*(1+math.cos(math.pi*progress))) + + +def validation_due(stage, phase, step, interval): + """Observe the early portion of every adapter confirmatory arm at common data positions.""" + initial_adapter = stage=="abstracts" and phase=="confirm" and step0 and step%interval==0) or (initial_adapter and step%4==0) + + +def chosen_coefficients(project, storage, config, device, microbatch): + method, ratio, stage = (config[k] for k in ("method","ratio","stage")) + if method in {"ce","initial","unigram"}: + return {} + if method == "combined": + selected = read_json(project/"results"/"selection"/f"{stage}.json")["ratios"] + kinds = {"trace":selected["trace"], "third":selected["third"]} + else: + kinds = {"third" if method == "sham" else method: ratio} + return {kind: scale*calibrate(project,storage,stage,kind,device,microbatch) for kind,scale in kinds.items()} + + +def save_state(path, model, optimizer, step, elapsed, config): + """Atomically persist optimizer, trainable weights, all stochastic state and next data step.""" + state = {"weights":{n:p.detach() for n,p in model.named_parameters() if p.requires_grad}, + "optimizer":optimizer.state_dict(), "next_step":step, "train_seconds":elapsed, + "config":config, "cpu_rng":torch.get_rng_state(), + "cuda_rng":torch.cuda.get_rng_state() if next(model.parameters()).is_cuda else None} + temp = path.with_suffix(".partial") + torch.save(state, temp) + os.replace(temp,path) + + +def restore_state(path, model, optimizer, config, recorder, device): + """Recover the last committed checkpoint and ignore telemetry from interrupted later steps.""" + if not path.exists(): + return 0, 0.0 + state = torch.load(path, map_location="cpu", weights_only=True) + if state["config"] != config: + raise ValueError("Resume configuration differs from saved scientific settings") + model.load_state_dict(state["weights"], strict=False) + optimizer.load_state_dict(state["optimizer"]) + torch.set_rng_state(state["cpu_rng"]) + if state["cuda_rng"] is not None: + torch.cuda.set_rng_state(state["cuda_rng"], device) + step = state["next_step"] + path = recorder.directory/"events.jsonl" + if path.exists(): + import json + rows = [r for r in json_lines(path) if r.get("step", 0) <= step] + temp = path.with_suffix(".partial") + temp.write_text("".join(json.dumps(r)+"\n" for r in rows), encoding="utf-8") + temp.replace(path) + return step, state["train_seconds"] + + +def run_one(project, storage, stage, method, phase, seed, ratio, device, microbatch=None): + config = scientific_config(stage,method,phase,seed,ratio) + microbatch = microbatch or (32 if stage == "stories" else 2) + if microbatch < 1: + raise ValueError("A physical batch must contain at least one window") + recorder = Recorder(project, config["id"]) + locks = storage / "locks" + locks.mkdir(parents=True, exist_ok=True) + with FileLock(str(locks/(config["id"]+".lock"))): + log = recorder.directory/"attempts.json" + marker = recorder.directory/"failure.json" + def remember(failure): + """Keep the original timestamp and exception across successful or repeated retries.""" + history = read_json(log) if log.exists() else {"failures":[]} + if failure not in history["failures"]: + history["failures"].append(failure) + write_json(log,history) + if marker.exists(): + remember(read_json(marker)) + marker.unlink() + try: + return _run(project, storage, config, recorder, device, microbatch) + except Exception as exc: + failure = {"timestamp":time_now(), "error":repr(exc)} + write_json(marker,failure) + remember(failure) + raise + + +def _run(project, storage, config, recorder, device, microbatch): + stage, method, seed, budget = (config[k] for k in ("stage","method","seed","token_budget")) + data = storage/"data"/stage + manifest = read_json(data/"manifest.json") + config["data_manifest_sha256"] = sha256(data/"manifest.json") + config["microbatch"] = microbatch + precise = stage=="abstracts" and method not in {"ce","initial","unigram"} + if precise: + config.update(derivative_dtype="float64",derivative_device=str(adapter_derivative_device())) + output = recorder.directory + state_path = output/"state.json" + if not (output/"summary.json").exists(): + write_json(state_path,{**config,"status":"initializing","timestamp":time_now()}) + config["coefficients"] = chosen_coefficients(project,storage,config,device,microbatch) + if (output/"config.json").exists() and read_json(output/"config.json") != config: + raise ValueError(f"Existing run configuration conflicts with {config['id']}") + write_json(output/"config.json",config) + summary_path = output/"summary.json" + if summary_path.exists(): + return read_json(summary_path) + ckpt = storage/"checkpoints"/config["id"] + ckpt.mkdir(parents=True,exist_ok=True) + if device.type == "cuda": + torch.cuda.empty_cache() + torch.cuda.reset_peak_memory_stats(device) + model = None if method == "unigram" else build_model(stage,seed,device,storage) + replica = derivative_replica(stage,seed,storage) if precise else None + bench=project/"results"/"verification"/"pythia-scoring-batches.json" + score_batch=read_json(bench)["selected_batch"] if stage=="abstracts" and bench.exists() else microbatch + parameters = tuple(p for p in model.parameters() if p.requires_grad) if model is not None else () + summary = {**config, "device":str(device), "torch":str(torch.__version__), "platform":platform.platform(), + "gpu":torch.cuda.get_device_name(device) if device.type=="cuda" else None, + "initial_trainable_sha256":trainable_digest(model) if model is not None else None, + "cpu_threads":torch.get_num_threads(),"evaluation_batch_windows":score_batch, + "git_revision":subprocess.check_output(["git","rev-parse","HEAD"],cwd=project,text=True).strip(), + "trainable_parameters":sum(p.numel() for p in parameters)} + batch = BATCHES[stage] + steps = budget//(batch*CONTEXT) + elapsed = 0.0 + if budget: + write_json(state_path,{"status":"training","timestamp":time_now()}) + windows = TrainingWindows(data/"train.bin",seed,batch) + groups = [{"params":[p for p in parameters if p.ndim>1],"weight_decay":0.1}, + {"params":[p for p in parameters if p.ndim<=1],"weight_decay":0.0}] + optimizer = torch.optim.AdamW(groups,lr=1e-4,betas=(0.9,0.95),fused=(device.type=="cuda")) + # A restart during the first checkpoint interval must discard measurements from + # updates whose weights and optimizer moments were never committed. + if not (ckpt/"latest.pt").exists(): + save_state(ckpt/"latest.pt",model,optimizer,0,0.0,config) + start,elapsed = restore_state(ckpt/"latest.pt",model,optimizer,config,recorder,device) + history = json_lines(output/"events.jsonl") + host_probes = sum(e.get("host_probe_seconds",0.0) for e in history) + # Match elapsed-time comparisons with periodic fixed development windows in every arm. + interval = min(128,max(1,steps//16)) + if start==0 and validation_due(stage,config["phase"],0,interval) and not history: + metrics = score(model,data/"dev.bin",device,score_batch,limit_windows=64) + recorder.emit({"step":0,"tokens":0,"train_seconds":0.0,"training_seconds_excluding_host_probes":0.0, + "dev_nll":metrics["nll"],"dev_accuracy":metrics["accuracy"]}) + for step in range(start,steps): + model.train() + tic = time.perf_counter() + inputs,targets = windows.get(step,device) + optimizer.zero_grad(set_to_none=True) + base,accuracy = ce_backward(model,inputs,targets,microbatch) + active = bool(config["coefficients"]) and gate(seed,step) + terms = add_penalty(model,parameters,inputs,targets,config["coefficients"],method,seed,step,replica) if active else {} + host_seconds = (sum(t["probe_seconds"] for t in terms.values()) + if precise and config["derivative_device"]=="cpu" and device.type=="cuda" else 0.0) + host_probes += host_seconds + norm = torch.nn.utils.clip_grad_norm_(parameters,1.0,error_if_nonfinite=True) + lr = learning_rate(stage,step,steps) + for group in optimizer.param_groups: + group["lr"] = lr + optimizer.step() + if device.type == "cuda": + torch.cuda.synchronize(device) + elapsed += time.perf_counter()-tic + done = step+1 + validate = validation_due(stage,config["phase"],done,interval) or done==steps + if done % 8 == 0 or active or done == 1 or validate: + row = {"step":done, "tokens":done*batch*CONTEXT, "train_seconds":elapsed, "loss":base.item(), + "accuracy":accuracy.item(), "lr":lr, "gradient_norm":norm.item(),"derivatives":terms, + "host_probe_seconds":host_seconds,"training_seconds_excluding_host_probes":max(0.0,elapsed-host_probes)} + if terms: + row["penalty"] = sum(8*t["lambda"]*t["estimate"] for t in terms.values()) + if validate: + metrics = score(model,data/"dev.bin",device,score_batch,limit_windows=64) + row.update(dev_nll=metrics["nll"],dev_accuracy=metrics["accuracy"]) + recorder.emit(row) + if done%interval == 0 or done==steps: + save_state(ckpt/"latest.pt",model,optimizer,done,elapsed,config) + del optimizer + summary.update(host_probe_seconds=host_probes,training_seconds_excluding_host_probes=max(0.0,elapsed-host_probes)) + del replica + dist = unigram_distribution(data/"train.bin",4096 if stage=="stories" else 50304) if method=="unigram" else None + write_json(state_path,{"status":"scoring development","timestamp":time_now()}) + def evaluation_progress(row): + write_json(state_path,{"status":"scoring development",**row}) + recorder.emit({"split":"dev",**row},"evaluation.jsonl") + validation = score(model,data/"dev.bin",device,score_batch,unigram=dist,progress=evaluation_progress) + # A rerun after final-checkpoint interruption writes each documented sample exactly once. + sample_path = output/"samples.jsonl" + if sample_path.exists(): + sample_path.unlink() + sample_outputs(model,data,manifest,device,recorder,unigram=dist) + if budget: + weights = export_weights(model,ckpt/"export") + shutil.copy2(data/"tokenizer.json", ckpt/"export"/"tokenizer.json") + summary.update(weights_sha256=sha256(weights),weights_name=weights.name) + summary["matched_dev_nll"] = next(e["dev_nll"] for e in reversed(json_lines(output/"events.jsonl")) + if "dev_nll" in e) + summary.update(tokens=budget,steps=steps,train_seconds=elapsed,tokens_per_sec=budget/elapsed if elapsed else 0, + process_peak_rss_mib=peak_process_mib(), + peak_vram_mb=torch.cuda.max_memory_allocated(device)/2**20 if device.type=="cuda" else 0, + dev_nll=validation["nll"],dev_accuracy=validation["accuracy"],dev_tokens=validation["tokens"], + finished_at=time_now(),status="complete") + write_json(summary_path,summary) + state_path.unlink(missing_ok=True) + (output/"failure.json").unlink(missing_ok=True) + print(f"Completed {config['id']} development NLL {summary['dev_nll']:.6f}",flush=True) + return summary diff --git a/research/src/thirdloss/windows.py b/research/src/thirdloss/windows.py index 93f2b2aade270321227c01fe923334e5f4483c04..2000a312e8326b97f88acead4b5c53e6d26eeab2 100644 --- a/research/src/thirdloss/windows.py +++ b/research/src/thirdloss/windows.py @@ -1,49 +1,49 @@ -"""Deterministic packed-token windows with epoch permutations and independent probe streams.""" - -import numpy as np -import torch - -from .records import CONTEXT - - -class TrainingWindows: - """Random-access batches let a checkpoint store the next step as its data cursor.""" - - def __init__(self, filename, seed, batch_size): - self.tokens = np.memmap(filename, mode="r", dtype="= 4 * len(terms | query)), None) - assert index.match(query) == brute - - -def test_abstract_submission_month_and_base_id_grouping(monkeypatch, tmp_path): - rows = [ - [("2312.12345", "2023-12-31", "old"), ("2405.00001v1", "2024-04-30", "April"), - ("2405.00002", "2024-05-01", "May")], - [("2405.00001v2", "2024-04-30", "same ID revised"), ("2407.00001", "2024-06-30", "June"), - ("2407.00002", "2024-07-01", "July")], - ] - for i, batch in enumerate(rows): - with gzip.open(tmp_path / str(i), "wt", encoding="utf-8") as writer: - for identifier, submitted, text in batch: - writer.write(json.dumps(dict(id=identifier, created=submitted, added="2025-01-01", text=text)) + "\n") - def source(root, repo, revision, key): - return tmp_path / key[-1], {"file": key} - monkeypatch.setattr(data, "_source", source) - docs, sources, audit = data._abstract_documents(tmp_path) - assert {split: [doc.text for doc in entries] for split, entries in docs.items()} == { - "train": ["April"], "dev": ["May"], "test": ["June"], - } - assert [doc.source_id for doc in docs["train"]] == ["2405.00001"] - assert audit["repeated_base_id"] == 1 - assert audit["identifier_month_differs_from_created"] == 2 - assert len(sources) == 2 - - -def test_prepare_from_parquet_proves_train_only_fit_packing_and_repair(monkeypatch, tmp_path): - # Each document uses its own words. Both retained splits therefore survive the overlap audit. - texts = [] - train_count = dev_count = 0 - while train_count < 30 or dev_count < 2: - i = len(texts) - text = " ".join(f"document{i}word{j}" for j in range(12)) - texts.append(text) - if int(content_hash(text)[:16], 16) % 50: - train_count += 1 - else: - dev_count += 1 - heldout = " ".join(f"heldout{j}" for j in range(30)) - pq.write_table(pa.table({"text": texts}), tmp_path / "source-train.parquet") - pq.write_table(pa.table({"text": [heldout]}), tmp_path / "source-test.parquet") - def source(root, repo, revision, key): - path = tmp_path / f"source-{key.split('_')[1]}.parquet" - return path, {"file": path.name} - monkeypatch.setattr(data, "_source", source) - monkeypatch.setattr(data, "STORY_LIMIT", len(texts)) - monkeypatch.setattr(data, "STORY_VOCAB", 280) - original = data._tokenizer - observed = [] - def find_training_docs(stage, train, root, output, sources): - observed.extend(doc.text for doc in train) - return original(stage, train, root, output, sources) - monkeypatch.setattr(data, "_tokenizer", find_training_docs) - manifest = data.prepare("stories", tmp_path) - assert set(observed) == {text for text in texts if int(content_hash(text)[:16], 16) % 50} - assert manifest["vocab_size"] == 280 - folder = tmp_path / "stories" - tokenizer = Tokenizer.from_file(str(folder / "tokenizer.json")) - assert tokenizer.decode(tokenizer.encode("Hello, café 🦉").ids) == "Hello, café 🦉" - streams = {s: np.fromfile(folder / f"{s}.bin", dtype="= 4 * len(terms | query)), None) + assert index.match(query) == brute + + +def test_abstract_submission_month_and_base_id_grouping(monkeypatch, tmp_path): + rows = [ + [("2312.12345", "2023-12-31", "old"), ("2405.00001v1", "2024-04-30", "April"), + ("2405.00002", "2024-05-01", "May")], + [("2405.00001v2", "2024-04-30", "same ID revised"), ("2407.00001", "2024-06-30", "June"), + ("2407.00002", "2024-07-01", "July")], + ] + for i, batch in enumerate(rows): + with gzip.open(tmp_path / str(i), "wt", encoding="utf-8") as writer: + for identifier, submitted, text in batch: + writer.write(json.dumps(dict(id=identifier, created=submitted, added="2025-01-01", text=text)) + "\n") + def source(root, repo, revision, key): + return tmp_path / key[-1], {"file": key} + monkeypatch.setattr(data, "_source", source) + docs, sources, audit = data._abstract_documents(tmp_path) + assert {split: [doc.text for doc in entries] for split, entries in docs.items()} == { + "train": ["April"], "dev": ["May"], "test": ["June"], + } + assert [doc.source_id for doc in docs["train"]] == ["2405.00001"] + assert audit["repeated_base_id"] == 1 + assert audit["identifier_month_differs_from_created"] == 2 + assert len(sources) == 2 + + +def test_prepare_from_parquet_proves_train_only_fit_packing_and_repair(monkeypatch, tmp_path): + # Each document uses its own words. Both retained splits therefore survive the overlap audit. + texts = [] + train_count = dev_count = 0 + while train_count < 30 or dev_count < 2: + i = len(texts) + text = " ".join(f"document{i}word{j}" for j in range(12)) + texts.append(text) + if int(content_hash(text)[:16], 16) % 50: + train_count += 1 + else: + dev_count += 1 + heldout = " ".join(f"heldout{j}" for j in range(30)) + pq.write_table(pa.table({"text": texts}), tmp_path / "source-train.parquet") + pq.write_table(pa.table({"text": [heldout]}), tmp_path / "source-test.parquet") + def source(root, repo, revision, key): + path = tmp_path / f"source-{key.split('_')[1]}.parquet" + return path, {"file": path.name} + monkeypatch.setattr(data, "_source", source) + monkeypatch.setattr(data, "STORY_LIMIT", len(texts)) + monkeypatch.setattr(data, "STORY_VOCAB", 280) + original = data._tokenizer + observed = [] + def find_training_docs(stage, train, root, output, sources): + observed.extend(doc.text for doc in train) + return original(stage, train, root, output, sources) + monkeypatch.setattr(data, "_tokenizer", find_training_docs) + manifest = data.prepare("stories", tmp_path) + assert set(observed) == {text for text in texts if int(content_hash(text)[:16], 16) % 50} + assert manifest["vocab_size"] == 280 + folder = tmp_path / "stories" + tokenizer = Tokenizer.from_file(str(folder / "tokenizer.json")) + assert tokenizer.decode(tokenizer.encode("Hello, café 🦉").ids) == "Hello, café 🦉" + streams = {s: np.fromfile(folder / f"{s}.bin", dtype="