Record development results for abstracts-pilot-s00-third-r03
Browse filesFiles changed (14)
- research/README.md+25-1
- research/docs/runbook.md+2
- research/docs/study.json
- research/reports/experiments/abstracts-pilot-s00-third-r03/experiment.md+60-2
- research/reports/experiments/experiments.md+1-1
- research/reports/paper.pdf
- research/reports/progress.md+3-3
- research/reports/summary.md+2-1
- research/results/abstracts-pilot-s00-third-r03/failure.jsonDeleted-4
- research/results/abstracts-pilot-s00-third-r03/samples.jsonlAdded+3
- research/results/abstracts-pilot-s00-third-r03/summary.jsonAdded+35
- research/src/thirdloss/cli.py+6-1
- research/src/thirdloss/probe_check.py+25-6
- research/src/thirdloss/release.py+15-1
21 unmodified lines222324252627285 unmodified lines34353637383915 unmodified lines55565758596021 unmodified lines<!-- RESULTS:START -->[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)Recorded 13 runs, including 12 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).5 unmodified lines| Stage | Phase | Method | Ratio | Tokens/run | Runs | Median dev NLL | Median test NLL || --- | --- | --- | --- | --- | --- | --- | --- || TinyStories | control | Initial checkpoint | 0.000 | 0 | 1 | 8.3437 | — || TinyStories | control | Unigram | 0.000 | 0 | 1 | 6.0036 | — || TinyStories | pilot | Ordinary AdamW | 0.000 | 2,097,152 | 1 | 3.8770 | — |15 unmodified linesFirst archived sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md)<details><summary>TinyStories · Initial checkpoint</summary>**Prompt**21 unmodified lines222324252627285 unmodified lines3435363738394015 unmodified lines565758596061626364656667686970717273747576777879808182838421 unmodified lines<!-- RESULTS:START -->[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)Recorded 13 runs, including 13 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).5 unmodified lines| Stage | Phase | Method | Ratio | Tokens/run | Runs | Median dev NLL | Median test NLL || --- | --- | --- | --- | --- | --- | --- | --- || Research abstracts | pilot | Third derivative | 0.030 | 65,536 | 1 | 3.1168 | — || TinyStories | control | Initial checkpoint | 0.000 | 0 | 1 | 8.3437 | — || TinyStories | control | Unigram | 0.000 | 0 | 1 | 6.0036 | — || TinyStories | pilot | Ordinary AdamW | 0.000 | 2,097,152 | 1 | 3.8770 | — |15 unmodified linesFirst archived sample in run-ID order per stage and method. [All continuations](reports/experiments/experiments.md)<details><summary>Research abstracts · Third derivative</summary>**Prompt**One of the central objectives of contemporary neuroimaging research is tocreate predictive models**Reference continuation**that can disentangle the connection between patternsof functional connectivity across the entire brain and various behavioraltraits. Previous studies have shown that models trained to predict behavioralfeatures from the individual's functional**Model continuation**that will accurately predict the behavior ofpatient-specific neurological disorders such as epilepsy. In this paper, wepresent a novel dataset of EEG data recorded from children with focalsubcortical epilepsy</details><details><summary>TinyStories · Initial checkpoint</summary>**Prompt**
37 unmodified lines38394037 unmodified lines```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)37 unmodified lines383940414237 unmodified lines```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)
3 unmodified lines4567891011122 unmodified lines1516173 unmodified lines| Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.0909 | — | — | scoring development |Training time is 72.3 seconds. Peak allocated GPU memory is — MiB. Development token accuracy is 0.4143. Test token accuracy is —.[Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-pilot-s00-third-r03/config.json)2 unmodified lines| Time (UTC) | Recorded exception || --- | --- || 2026-11-25T07:00:21+00:00 | FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf') |3 unmodified lines4567891011122 unmodified lines151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374753 unmodified lines| Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.1168 | — | 907 | complete |Training time is 72.3 seconds. Peak allocated GPU memory is 6,369.6 MiB. Development token accuracy is 0.4128. Test token accuracy is —.[Design and hyperparameter rationale](../../planned-runs.md) · [Saved configuration](../../../results/abstracts-pilot-s00-third-r03/config.json)2 unmodified lines| Time (UTC) | Recorded exception || --- | --- || 2026-11-25T07:00:21+00:00 | FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf') |## Fixed-prompt generations**Prompt**One of the central objectives of contemporary neuroimaging research is tocreate predictive models**Reference continuation**that can disentangle the connection between patternsof functional connectivity across the entire brain and various behavioraltraits. Previous studies have shown that models trained to predict behavioralfeatures from the individual's functional**Model continuation**that will accurately predict the behavior ofpatient-specific neurological disorders such as epilepsy. In this paper, wepresent a novel dataset of EEG data recorded from children with focalsubcortical epilepsy**Prompt**In the evolving landscape of computer vision, foundation models have emergedas pivotal tools**Reference continuation**, exhibiting exceptional adaptability to a myriad of tasks.Among these, the Segment Anything Model (SAM) by Meta AI has distinguisheditself in image segmentation. However, SAM, like**Model continuation**to study the behavior of computer vision systems.These widely adopted modeling approaches tend to be associated witha small number of identified object classes. On the one hand, theyare often effective to**Prompt**We investigate the connection between the turnover frequency in the radiospectrum, $\nu**Reference continuation**_{\rm TO}$, and the rate of ionising ultra-violet photons,$Q_{\rm HI}$, in extragalactic sources. From a large, optically selected,sample we**Model continuation**_{\rm{break}}$, and the spectral index of the underlyingspectral index $s_{\rm{break}}$, and reveal that there is a universalrelationship between both quantities,$$\begin
5 unmodified lines67891011125 unmodified lines| Run | Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || [abstracts-pilot-s00-third-r03](./abstracts-pilot-s00-third-r03/experiment.md) | Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.0909 | — | — | 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 |5 unmodified lines67891011125 unmodified lines| Run | Stage | Method | Phase | Seed | Ratio | Train tokens | Dev NLL | Test NLL | Tokens/s | Status || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || [abstracts-pilot-s00-third-r03](./abstracts-pilot-s00-third-r03/experiment.md) | Research abstracts | Third derivative | pilot | 0 | 0.030 | 65,536 | 3.1168 | — | 907 | complete || [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 |
123456783 unmodified lines12131415161718# Study progressUpdated 2026-11-25T07:22:10+00:00.12 training/control records and 0 final evaluations are complete. This is 10.0% of 120 planned model milestones.## Current record3 unmodified linesStatistical status: pending. Awaiting confirmatory runs.**abstracts** has 0 completed runs. Current records: abstracts-pilot-s00-third-r03 (scoring development, 65,536 targets).Statistical status: pending. Awaiting confirmatory runs.123456783 unmodified lines12131415161718# Study progressUpdated 2026-11-25T07:32:41+00:00.13 training/control records and 0 final evaluations are complete. This is 10.8% of 120 planned model milestones.## Current record3 unmodified linesStatistical status: pending. Awaiting confirmatory runs.**abstracts** has 1 completed runs. The next milestone is determined by the run matrix.Statistical status: pending. Awaiting confirmatory runs.
1234569 unmodified lines161718192021# Study summaryRecorded 13 runs, including 12 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).9 unmodified lines| Stage | Phase | Method | Ratio | Tokens/run | Runs | Median dev NLL | Median test NLL || --- | --- | --- | --- | --- | --- | --- | --- || TinyStories | control | Initial checkpoint | 0.000 | 0 | 1 | 8.3437 | — || TinyStories | control | Unigram | 0.000 | 0 | 1 | 6.0036 | — || TinyStories | pilot | Ordinary AdamW | 0.000 | 2,097,152 | 1 | 3.8770 | — |1234569 unmodified lines16171819202122# Study summaryRecorded 13 runs, including 13 with a completed summary.**TinyStories.** Awaiting paired test results (0 of 8 full-horizon training triplets).9 unmodified lines| Stage | Phase | Method | Ratio | Tokens/run | Runs | Median dev NLL | Median test NLL || --- | --- | --- | --- | --- | --- | --- | --- || Research abstracts | pilot | Third derivative | 0.030 | 65,536 | 1 | 3.1168 | — || TinyStories | control | Initial checkpoint | 0.000 | 0 | 1 | 8.3437 | — || TinyStories | control | Unigram | 0.000 | 0 | 1 | 6.0036 | — || TinyStories | pilot | Ordinary AdamW | 0.000 | 2,097,152 | 1 | 3.8770 | — |
1234{
"timestamp": "2026-11-25T07:00:21+00:00",
"error": "FloatingPointError('Nonfinite or zero third calibration norm at draw 0: inf')"
}123{"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}1234567891011121314151617181920212223242526272829303132333435{
"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"
}58 unmodified lines59606162636420 unmodified lines8586878889909158 unmodified linessub.add_argument("--port",type=int,default=8765)if action=="publish":sub.add_argument("--message",default="Update third-derivative study records")return p20 unmodified linesbuild_report(project)progress(project)if args.action == "publish":from .release import publish_snapshotprint(publish_snapshot(project,args.message))returnfrom .study import evaluate_one,freeze,milestone,prepare_stage,run_study58 unmodified lines5960616263646520 unmodified lines868788899091929394959658 unmodified linessub.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 p20 unmodified linesbuild_report(project)progress(project)if args.action == "publish":from .release import publish_snapshot, publish_weightsif args.checkpoints:from .records import read_jsonfor path in sorted((project/"results").glob("*/summary.json")):publish_weights(project,storage,read_json(path))print(publish_snapshot(project,args.message))returnfrom .study import evaluate_one,freeze,milestone,prepare_stage,run_study
5 unmodified lines67891011125 unmodified lines1819202122232425266 unmodified lines333435363738394015 unmodified lines5657585960615 unmodified linesimport torchfrom .models import build_model, logits_of, token_loss, trainable_digestfrom .objectives import two_window_third_gradientfrom .penalties import estimate, partials, random_signsfrom .records import BATCHES, storage_root, time_now, write_jsonfrom .windows import TrainingWindows, generator, probe_rows5 unmodified linesmodel = build_model("abstracts",0,device,storage).eval()parameters = tuple(p for p in model.parameters() if p.requires_grad)seed,step = 6247,0x,y = TrainingWindows(storage/"data"/"abstracts"/"train.bin",seed,BATCHES["abstracts"]).get(step,device)rows = probe_rows(seed,step,len(x))x,y = x[rows],y[rows]rng = generator(device,seed,step,827)u,v = random_signs(parameters,rng),random_signs(parameters,rng)def digest(tensors):6 unmodified lines"probes_sha256":digest((*u,*v))}with torch.no_grad():single = torch.cat([logits_of(model,t[None,:]) for t in x])result["max_logit_abs_difference"] = (logits_of(model,x)-single).abs().max().item()del singledef calculate(implementation):if device.type=="cuda":torch.cuda.empty_cache()15 unmodified linesresult["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"]write_json(project/"results"/"verification"/f"pythia-joint-{device.type}.json",result)print(result,flush=True)return result5 unmodified lines67891011125 unmodified lines1819202122232425266 unmodified lines3334353637383940414215 unmodified lines58596061626364656667686970717273747576777879805 unmodified linesimport torchfrom .models import build_model, logits_of, token_loss, trainable_digestfrom .objectives import ce_backward, probe_gradient, two_window_third_gradientfrom .penalties import estimate, partials, random_signsfrom .records import BATCHES, storage_root, time_now, write_jsonfrom .windows import TrainingWindows, generator, probe_rows5 unmodified linesmodel = build_model("abstracts",0,device,storage).eval()parameters = tuple(p for p in model.parameters() if p.requires_grad)seed,step = 6247,0batch_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):6 unmodified lines"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,togetherdef calculate(implementation):if device.type=="cuda":torch.cuda.empty_cache()15 unmodified linesresult["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,modelif 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
66 unmodified lines6768697071722 unmodified lines7576777879804 unmodified lines85868788899066 unmodified linesfolder = storage/"checkpoints"/run_id/"export"if sha256(folder/summary["weights_name"]) != summary["weights_sha256"]:raise ValueError(f"Checkpoint integrity failure for {run_id}")prior = "EleutherAI/pythia-410m" if stage=="abstracts" else "Random initialization"card = (f"# {run_id}\n\n"f"Research checkpoint for {stage} using the {summary['method']} objective. Base: {prior}. "2 unmodified lines+ (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"Use the pinned base and loading instructions in [the guide]({GITHUB}/blob/main/docs/runbook.md).\n")(folder/"README.md").write_text(card,encoding="utf-8")write_json(folder/"training_summary.json",summary)4 unmodified lines+ ("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, 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")66 unmodified lines676869707172737475767778798081828384852 unmodified lines888990919293944 unmodified lines9910010110210310466 unmodified linesfolder = 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 torchrestart = 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_idor 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 stateapi.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"card = (f"# {run_id}\n\n"f"Research checkpoint for {stage} using the {summary['method']} objective. Base: {prior}. "2 unmodified lines+ (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")(folder/"README.md").write_text(card,encoding="utf-8")write_json(folder/"training_summary.json",summary)4 unmodified lines+ ("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")
research/README.md+25-1
research/docs/runbook.md+2
research/docs/study.json
research/reports/experiments/abstracts-pilot-s00-third-r03/experiment.md+60-2
research/reports/experiments/experiments.md+1-1
research/reports/paper.pdf
research/reports/progress.md+3-3
research/reports/summary.md+2-1
research/results/abstracts-pilot-s00-third-r03/failure.jsonDeleted-4
research/results/abstracts-pilot-s00-third-r03/samples.jsonlAdded+3
research/results/abstracts-pilot-s00-third-r03/summary.jsonAdded+35
research/src/thirdloss/cli.py+6-1
research/src/thirdloss/probe_check.py+25-6
research/src/thirdloss/release.py+15-1