open model release · 2026-09-23 · $0 compute

KALIA

अथ शब्दानुशासनम् — “Now begins the discipline of words.”

This page documents KALIA, a 58M-parameter language model trained from random initialization to coherent story generation on free-tier Kaggle GPUs at zero compute cost, with training continuing in public. Section 1 fixes the model specification; Section 2 compares the two checkpoints on one yardstick; Section 3 documents the corpus; Section 4 reports the release evaluation; Sections 5 and 6 present unedited samples and an interactive replay of the training log. The appendices record the chapter-by-chapter log, every numbered decision, and every incident. Every experiment was pre-registered before it ran, and no claim on this page is a screenshot — each links to the primary log.

In 60 seconds

  • A 57.9M-parameter decoder-only transformer trained from random initialization on two free Kaggle T4s.
  • v0.1.2 was released at step 3,478 of 4,770; every numbered decision, incident, and pre-registered experiment is public.
  • Held-out loss 3.0533 / 0.9992 bits-per-byte for v0.1.2 on the rebuilt yardstick. v0.2.0 is 2.8248 / 0.9244, a 0.2285-nat improvement.
  • The project’s largest architecture result inverted under replication. The 58M seed spread is 0.2892 nats, and it is now the measurement floor.
  • At 2,000 samples, no benchmark movement between the checkpoints reaches 2σ: PIQA +1.74, ARC-Easy +0.45, HellaSwag 0.00, WinoGrande +0.47, LAMBADA −1.25. Only LAMBADA is outside the pre-registered 1.0-point rule.
  • The Abhimanyu gap — reversed-text loss minus forward loss — is 6.06 nats. The reversal-training experiment failed and was rejected by the pre-registered rule.
  • Read it as training infrastructure and experiment discipline, not a competitive model: v0.2.0 fails the registered rule on LAMBADA only; the 500-sample ARC-Easy regression did not replicate, and it is published as an experiment.
parameters57.9M
tokens seen1.82B
val loss3.0533
bits/byte0.9992
PIQA (2k)59.6%
Abhimanyu gap6.06 nats
GPU-hours~20
cost$0

Val loss, bits/byte and PIQA in this row are KALIA 0.1.2 on the rebuilt yardstick; PIQA is the 2,000-sample measurement. The earlier 2.4366 / 0.8184 was measured on the original held-out set; the two are never compared. Section 2 compares both checkpoints on the rebuilt set.

1. Model specification

Table 1 · frozen by pre-registration

A decoder-only transformer trained from random initialization — no pretrained weights, no distillation, no fine-tuning. Everything below was fixed before the final run started, and the next version may only change what passes a hashed promotion rule.

Parameters57,856,256
Shape10 layers x 512 dim x 8 heads
Context1,024 tokens
Vocabulary50,257 (GPT-2 BPE)
OptimizerMuon 0.02 + AdamW 6e-4
Schedulecosine, 500-step warmup, 4,770 planned steps
Batch524,288 tokens per step (8 x 32 x 1024 x 2 GPUs)
Precisionfp16 with gradient scaling, DDP across 2x T4
CorpusTinyStories + FineWeb-Edu, 2.46B tokens
Tokens seen1.82B (stopped at step 3,478 of 4,770)
Computeabout 20 free-tier GPU-hours
Cost$0

2. Two checkpoints, one yardstick

Table 2 · loss at 819,200 tokens; zero-shot at 2,000 samples

The corpus was rebuilt for licence compliance, which replaced a held-out set and made it 0.62 nats harder for identical weights. So v0.1.2 was re-measured on the rebuilt set before anything could be compared, and the older figure of 2.4366 is never tabulated next to a rebuilt one. Both versions below are scored the same way, by the same code path, on the same data.

KALIA 0.1.2 releasedval 3.0533 · 0.9992 bpB · 1.82B tokens · stopped at 73% of its schedule; the first public release
KALIA 0.2.0 experimentval 2.8248 · 0.9244 bpB · 2.50B tokens · same recipe, compliance-rebuilt corpus; full 4,770-step schedule

That is 0.2285 nats better — 4.6× the pre-registered 0.05 bar — from changing nothing but the data.

Grouped bars for five zero-shot tasks at 2,000 samples, both versions side by side, each with error bars. No movement reaches two standard errors; only LAMBADA is outside the one-point rule, and the 500-sample ARC-Easy regression did not replicate.
Both versions, same harness, same 2,000 samples, same code path. Error bars are ±1 standard error; no movement reaches 2σ. The original 500-sample figure is kept in the chapter log below.

The same five tasks as exact numbers

PIQA61.4%was 59.6 · +1.74 (1.08σ) · physical commonsense
HellaSwag35.6%was 35.6 · +0.00 (0.00σ) · sentence completion (normalized)
WinoGrande50.8%was 50.3 · +0.47 (0.24σ) · coreference
LAMBADA23.9%was 25.1 · -1.25 (0.92σ) · long-range cloze; fails the 1.0-point rule
ARC-Easy46.4%was 46.0 · +0.45 (0.28σ) · science questions

Read that table with the error bars attached. At 2,000 samples the standard errors are about 1.0–1.4 points, and no movement reaches 2σ. The 500-sample run this page originally reported had a roughly 2-point error bar: its ARC-Easy −3.80 became +0.45 at 2,000, and its HellaSwag +3.00 became 0.00. The original numbers remain in the chapter log; they did not survive the larger sample.

The pre-registered rule was that no task may regress by more than 1.0 point. At 2,000 samples, v0.2.0 fails it on LAMBADA only — by 0.25 points, at z = −0.92. The thresholds were not moved afterwards, and the noise floor was published beside the verdict rather than used to rescue it. That is why v0.2.0 remains an experiment rather than a promotion.

3. Where the tokens came from

Table 3 · 2.4B tokens

FineWeb-Edu (dedup) · 60%ODC-By-1.0 · educational web text
TinyStories · 20%CDLA-Sharing-1.0 · children's stories; almost none long enough to matter
Cosmopedia v2 · 15%Apache-2.0 · synthetic textbooks
Python (per-file filtered) · 5%7 permissive licences · the earlier unfiltered slice was 41.7% copyleft
The training mixture as a stacked bar, beside the share of each source whose documents are at least as long as the 1,024-token context: 26.2% for FineWeb-Edu, 0.03% for TinyStories, 13.2% for Cosmopedia, and 17.7% for the mixture overall.
The mixture on the left looks balanced. The panel on the right is why it isn’t: only0.03% of TinyStories’ documents are long enough to fill the context, so a fifth of the tokens contributes almost none of the long-document mass, and only 17.7% of the corpus clears the bar at all. That number is invisible in a table of proportions.

Only 17.7% of training tokens sit inside a document at least as long as the 1024-token context. TinyStories — a fifth of the mixture — has only 0.03% of its documents long enough, so it contributes almost none of the long-document mass. LAMBADA asks a model to hold a discourse and recall its final word, so its regression is the predicted direction for this corpus rather than a mystery. The same probe found a candidate source at 99.3%, which makes the remedy measured rather than guessed.

One thing was found here that nobody was looking for. The Python slice of the previous corpus was built without a licence check, and sampling 20,000 source files measured 41.7% of characters under copyleft licences — about 2% of that training set. The filter that prevents this existed, was tested, and was simply written 40 minutes after the corpus that needed it. It is disclosed on the released model card rather than quietly fixed.

4. Evaluation — KALIA 0.1.2, first release

Table 4 · 0-shot, 500 samples, lm-evaluation-harness

PIQA61.4%physical commonsense
ARC-Easy45.8%science questions
HellaSwag36.8%sentence completion (normalized)
WinoGrande50.2%coreference
LAMBADA23.0%long-range cloze; perplexity 194

These are the first-release numbers at 500 samples. The 2,000-sample re-measurement in Section 2 gives v0.1.2 PIQA 59.6, ARC-Easy 46.0, HellaSwag 35.6, WinoGrande 50.3 and LAMBADA 25.2; no movement between the checkpoints reaches 2σ.

Held-out loss on the deterministic 100-batch evaluation is 3.0533 (819,200 tokens, fixed seed) — 0.9992 bits-per-byte — on the rebuilt yardstick. The earlier 2.4366 / 0.8184 was measured on the original held-out set; that set is 0.62 nats easier for the same weights, and the two are never tabulated together. v0.2.0 scores 2.8248 / 0.9244 on the rebuilt set. At release, a 58M storyteller at 61.4% PIQA and 45.8% ARC-Easy (500 samples) is competitive with 125M-class models trained on roughly 100x more tokens, and weakest on the one task that requires long-range narrative memory (LAMBADA, 23%). The custom metric is the one that matters next: the Abhimanyu gap — reversed-text loss (9.29) minus forward loss (3.23) — is 6.06 nats. The model can enter fluent text but cannot exit it.

The pre-registered experiment that tested whether training on chunk-preserving reversal closes that gap has now run, and it failed — reported here with the same prominence a win would have had. At 30M parameters, control models showed a 5.11-nat gap (confirming the effect is architectural, not an artifact of scale), and the treatment trained on 50% reversed chunks made it worse: gap 5.25 (+0.14) and forward loss +0.08, missing both pre-registered bars on both seeds. Reversing chunk order while preserving intra-chunk order does not teach token-level reversal. The transform was rejected by the hashed promotion rule and never shipped, and a stronger form is now a separate hypothesis rather than a quiet retry.

5. Unedited samples

temperature 0.8, top-k 200, checkpoint step 3,478

prompt: The little fox

The little fox was so restless. He wanted to explore the pond, but he was too small. Suddenly, he heard a voice. It said, "Do not go near the water". The fox looked up and saw a little girl smiling at him. The girl said, "Let's go have some fun the next time we get closer!".

Coherent scene, dialogue, and a promise of more — at 58M parameters.

prompt: The brave rabbit

The brave rabbit saw two and three friends flying together in the sky. They were laughing and exploring together. The friends sang, laughed and sang. They were so happy to have a friend like the brave seeker.

Repetition at "two and three friends" — the model's small vocabulary of ideas shows here.

prompt: A curious cat named

A curious cat named Max. One day, Tim went to the pond to catch some fish to eat. The fish was not happy and swam away. Tim saw a man fishing in a nearby river.

The honest failure mode: Max becomes Tim within two sentences. Entity drift is the reason the next experiment exists.

6. The run, replayed

Figure 1 · replayed from the primary log

The console replays the surviving training log — session three, steps 1,740 to 3,470, at every tenth step. Earlier sessions' rows were lost to a resume incident (I8, Appendix C). Blue markers are validation evaluations; the square is the deterministic evaluation that established the model had not regressed.

kalia-train-v012 · session 3 replay, steps 1,740–3,4701,740 / 4,770

Training loss replay, steps 1,740 to 3,470. Loss descends then plateaus; blue dots are validation evals; square marker is the deterministic eval at 2.4366. Use the scrub slider for exact step values.

2.42.62.83.03.23.401,0002,0003,0004,000quota stop · 3,478log begins · 1,740
train loss val evals deterministic eval
loss3.1018
lr4.95e-4
tokens912,261,120
tok/s0

Appendix A. Chapter-by-chapter log

times in UTC, from the kernel run logs

The plan changed several times as measurements arrived. The entries below are the real order of events — each algorithm measured before the next was attempted — with the three decisive comparisons shown as figures.

Chapter 1 — The first brain 2026-09-22

  1. A repository and a rule

    The first commit lands at 06:30 UTC: a design document, an implementation plan, and a scaffold. The rule is fixed from the start — no pretrained weights, ever. The architecture is a small decoder-only transformer (10 layers, 512 dimensions, RoPE, RMSNorm, SwiGLU) chosen to fit two T4s without gradient checkpointing. The suite grows test-first from the first minute.

  2. Tokenizing on free CPU

    Data preparation runs on a Kaggle CPU notebook, which costs no GPU quota. TinyStories and FineWeb-Edu become 2.46B tokens of uint16 shards in about 37 minutes: 473,992,236 tokens of stories and 2,000,001,223 tokens of educational web text.

  3. First GPU run: out-of-memory at step one

    The first training run fails at step one with an OutOfMemoryError. Batch 32 at context 1024 does not fit a T4. The fix is the standard one — micro-batch 8 with 32 gradient-accumulation steps, the same effective batch — plus expandable memory segments. Three further incidents land in the same hour: API runs cannot read secrets, the dataset uploader drops subdirectories, and a failed subprocess is silently marked complete. All four are fixed and recorded.

  4. Micro-ablations before full runs

    Micro-ablations run at 30M parameters on 50M tokens, about 30 minutes per arm. AdamW scores 3.8041 step-700 validation loss; Muon scores 3.5937; Muon with QK-Norm and logit soft-capping scores 3.5103. The ordering holds at every checkpoint, so it is not noise. Only the winner receives full-scale quota.

    Bar chart of step-700 validation loss for AdamW (3.8041), Muon (3.5937), and Muon with QK-Norm and logit soft-capping (3.5103); lower is better.
    Figure A1 — the optimizer screen: each change measured at 30M parameters before any full run.
  5. Two full runs launch

    The AdamW baseline and the new Muon recipe train in parallel sessions. The baseline finishes its first session at step 2,250 with validation loss 3.2702. The Muon recipe ends at step 1,738 at 3.2214 — already past the baseline final loss with roughly 23% fewer tokens.

Chapter 2 — The plateau and the release 2026-09-23

  1. Resume, after fixing the race

    Overnight, session two crashed on resume: both distributed workers wrote the same checkpoint file and one read it mid-write. The fix is a single downloader, an atomic file swap, and a barrier. Session three resumes cleanly and runs for eight and a half hours.

  2. Muon+ validated, not promoted

    Muon+ — one post-polar normalization step — beats plain Muon on 7 of 7 checkpoints, by 0.015 nats. The promotion threshold, fixed before the run, was 0.02. It is not promoted. The full-scale model keeps plain Muon, and the result is recorded as validated but below the bar.

  3. The learning-rate sweep closes

    Four arms: 0.015 scores 3.4943, 0.02 scores 3.4941, 0.03 scores 3.5027, 0.06 scores 3.5380. The recipe needed no change. Hyperparameter tuning is now closed — there is no headroom left to buy.

  4. The v2 corpus, then the compliance rebuild

    A new mixture is built for v0.2.0: FineWeb-Edu, TinyStories, Cosmopedia, and permissively licensed Python. Git history shows why the first code shard was never filtered — the corpus that built v0.1.2 was created 40 minutes before the per-file license filter existed, so the shard streamed with no licence check at all. It is rebuilt with that filter — MIT, Apache, BSD, ISC, Unlicense, CC0 only. Nothing unclear-licensed will ever train a public model.

  5. Architecture ablation

    Four arms, same data, same seed: control, looped depth (the same weights applied twice), thin-and-deep, and grouped-query attention. Control wins at 3.4924. Looped and GQA are quality-neutral; thin-and-deep loses 0.2 nats. One finding survives: the looped model runs 1.35x slower per step, not 2x, because reused weights stay hot in cache.

    Bar chart of step-700 validation loss for the control architecture (3.4924), looped depth (3.5012), thin-and-deep (3.6969), and grouped-query attention (3.5031).
    Figure A2 — the architecture screen: no variant beats control by the pre-set 0.02 margin.
  6. A validation plateau

    Validation loss has not moved for a thousand steps — flat between 2.53 and 2.63 — while training loss keeps falling. A noisy evaluation and a real plateau are indistinguishable from a single point, so both possibilities are recorded and the run continues.

    Line chart of validation loss from step 250 to 3250: a steep descent from 4.0881 to 2.5270 by step 1500, then a plateau band between 2.40 and 2.63 for the remaining 1,750 steps, and a separate deterministic evaluation point at step 3478 with loss 2.4366.
    Figure A3 — the full curve: the descent finishes by step 1,500, and everything after it oscillates inside 0.23 nats. The first half was recovered from the model repository commit history (incident I14).
  7. Quota exhausted

    Two events land in the same minute. The architecture verdict: nothing beats control by the pre-set margin, so the recipe is unchanged. Then the quota push fails — the week’s 30 GPU-hours are exhausted. Experiments stop and the plan is revised.

  8. Session three ends at 73%

    The training session reaches step 3,478 of 4,770 — 73% of the cosine schedule — and stops at the session limit. The last logged validation eval was noisy (2.5138), so the question stands: did the model regress, or is the eval noisy?

  9. The deterministic eval

    A CPU evaluation — free, no GPU quota — runs 100 fixed-seed batches over 819,200 tokens: 2.4366 loss, 0.8184 bits-per-byte, on the held-out set of the corpus as it then stood. The later licence rebuild replaced that set and re-baselined the same weights at 3.0533; the two are never compared. The model never regressed; the swings were sampling noise. Under the pre-registered stopping rule, the plateau plus the quota wall make the stop final at step 3,478.

  10. Evaluation on CPU

    Zero-shot benchmarks via lm-evaluation-harness: PIQA 61.4%, ARC-Easy 45.8%, HellaSwag 36.8%, WinoGrande 50.2%, LAMBADA 23.0% accuracy at 194 perplexity. And the custom metric: the Abhimanyu gap — reversed-text loss minus forward loss — is 6.06 nats. The model can enter fluent text but cannot exit it.

  11. Release

    Decision D41: stop, document the plateau, save the remaining quota for v0.2.0. Within the hour the repository and the model weights are public: the numbered decisions, the published incidents, the hash-anchored pre-registrations, and every evaluation log. Total compute: about 20 GPU-hours on the free tier. Cost: zero dollars.

Chapter 3 — The experiment that was supposed to work 2026-09-27

  1. The experiment that was supposed to work

    X16 tests the one hypothesis that could explain the 6.06-nat gap: that a model can only learn to exit a sequence, never to enter one reversed. Four arms, two seeds, 500 steps each — control against 50% chunk-preserving reversal training. The prediction was registered with a hash before the run: close the gap by at least 0.10 nats, at no more than 0.02 nats of forward-loss cost.

  2. It failed

    Control gap 5.11 nats, treatment 5.25 — the gap got 0.14 nats worse, and forward loss rose 0.08. Both bars missed, on both seeds, in the same direction. The prediction that did hold is the more useful one: the gap is already 5.1 nats at 30M parameters, so it is a property of the architecture, not a symptom of undertraining.

  3. The rule does the deciding

    The promotion rule was hashed before the results existed, so there is nothing to renegotiate: the transform is rejected and never enters v0.2.0 (decision D42). A 50% reversed training mixture is not the same problem as reversing tokens, and the honest reading is that the chunk-order transform teaches nothing about entry into a reversed sequence. Token-level reversal stays on the list as a separate hypothesis, not a quiet retry.

  4. The published loss curve was missing its first half

    The training log on Hugging Face began at step 1,740, because a fix that restores logs on resume landed one session after that session had already started with the old code. The first 173 logged steps — the whole descent from 10.7 down to the plateau — were gone from the public record; the rebuilt log now has 347 rows from step 10 to 3,470. Rebuilt from the repository’s own commit history, checked for gaps, and republished. The recovered curve supports the stop decision: the descent finishes by step 1,500 and the remaining 1,750 oscillate inside noise.

  5. The rebuilt corpus quietly replaced the measuring stick

    The new run’s first validation point reads 0.74 nats worse than the previous version’s while its training loss is better, which looks exactly like a catastrophic regression. It is not. The corpus rebuild replaced the held-out set, and the old weights score 2.3915 on the old set and 3.1070 on the new one — the set alone explains the entire gap. Both versions were re-measured on the rebuilt set so that anything crossing the rebuild boundary is believed only after being checked on both sides. A yardstick that moves silently is indistinguishable from a model that does.

    Validation loss for v0.2.0 falling from 4.83 to 2.88 over 4,770 steps, flat from step 3,250, with deterministic reference points of 3.0533 for v0.1.2 and 2.8248 for v0.2.0 on the same rebuilt yardstick.
    Figure A4 — the same question, answered once both versions were re-measured on the same set. The shaded band is the 1,500 steps at the end that bought nothing measurable.

Chapter 4 — The best result that was not 2026-09-28

  1. v0.2.0 starts

    The next run begins on a compliance-clean corpus rebuilt shard by shard (2.4B tokens; the code slice is now filtered to permissive licences only) with the frozen recipe, since the rejected experiment changed nothing about the recipe. Checkpoints sync to Hugging Face every 30 minutes so sessions can be interrupted safely.

  2. The benchmarks disagree with the loss curve

    An evaluation at the step-3,470 checkpoint splits the two signals we had trusted to agree. Deterministic loss improves by 0.169 nats on identical weights and an identical protocol, but ARC-Easy falls 4.6 points and LAMBADA 4.6. Read alone this looks like a catastrophic corpus regression. It is a mid-run reading, recorded here precisely because it turned out to be the wrong one.

  3. A frontier architecture arm

    Two 2026 changes screened against control at 30M parameters: rotary embeddings dropped on some layers, and a gated residual stream borrowed from a 125B model. Both pre-registered with hashed thresholds before the run, including an honest prior that the more interesting one was the likelier to be noise. Three arms, 500 steps, one seed.

  4. The best result in the project was one seed

    That gated residual looked like a win, so it was pushed further — a static learned per-channel modulation that never reads its input. It scored 4.6304 against control 4.7662, beating the data-dependent gate it was supposed to be a cheaper cousin of, and clearing its pre-registered bar by 0.1240. It was the largest effect any architecture arm had produced here, and it was real for exactly as long as it took to check. Replicated at two fresh seeds it inverted to +0.0516 — worse than control — so the sign flipped, not just the size.

    Paired bar chart. The static gate scores 4.6304 at seed 1337 but 4.9623 and 4.9087 at seeds 1338 and 1339, while control stays near 4.77 to 4.89. The effect reverses sign.
    Figure A5 — X20 and its replication. The bar that looked like the project’s best result.
  5. We had never measured the baseline

    The replication also returned a number the project did not have: how much the control moves when nothing about it changes. Two independent sessions at seed 1337 agree to 0.0018, so the machine is not the variable — but fresh seeds come in about 0.11 nats higher. That spread is larger than the entire −0.0436 the gated residual was credited with, and larger than the branch-norm null by an order of magnitude. Every single-seed delta in this project was read against a baseline nobody had measured. They were all noise, and the ordering between them was an artefact of ranking noise against noise.

  6. 41.7% of the code corpus is copyleft

    Twenty thousand files, 197 million characters, eleven minutes of CPU. 58.1% permissive, 41.7% not, and GPL-family licences alone cover 39.5% of all files. The published card had been listing three of the four training sources and omitting the code slice entirely — the one dataset that needed disclosing. The interpretation had been fixed before the number was known: a material share means the rebuild is the remediation, and the rebuild was already under way.

  7. Windows were crossing documents

    Auditing the data path finds the corpus is EOS-delimited and training never used that fact. Documents run about 200 tokens against a 1,024-token context, so nearly every window crossed a boundary with unmasked attention, and 0.3% spliced two corpora outright because the mixer writes in million-token round-robin blocks. Invisible to every metric being optimised — visible only by reading the mixer. Fixed with a block-diagonal document mask behind a config flag, pre-registered as an experiment at the same 0.010-nat bar that once rejected a loss-saving change.

  8. A long-form probe, and a source that cannot be loaded

    The LAMBADA hypothesis gets measured properly: what share of each source’s documents is at least as long as the context. The first source tried, a famous book corpus, turns out to ship a loading script that modern tooling refuses to execute, and the two obvious parquet mirrors of it declare no licence at all. Only one candidate passes both tests, at 99.3% long documents — but its median document is 104,719 tokens, one hundred times the context, so the passing number is also a warning.

    The training mixture as a stacked bar, beside the share of each source whose documents reach the 1,024-token context: 26.2% for FineWeb-Edu, 0.03% for TinyStories, 13.2% for Cosmopedia, and 17.7% for the mixture overall.
    What that probe found, and it is the reason LAMBADA moved: a fifth of the corpus is TinyStories, but only 0.03% of its own documents are long enough to fill the context.
  9. Session three, and the run finishes

    The final session runs 6.35 hours to complete all 4,770 steps — 2.50 billion tokens, 477 contiguous log rows, no gaps. Validation loss reaches 2.8248 against 3.0533 for the previous version on the identical 100-batch protocol: 0.2285 nats better, 4.6 times the pre-registered bar. But the curve has been flat since step 3,250, so the last 31% of training bought nothing, exactly as the first version’s curve did.

Chapter 5 — Reading the fine print 2026-09-29

  1. The gate never opened

    The architecture arm finished 0.0436 nats ahead of control — 4.4 times its bar, the largest effect any architecture arm has produced here — and nobody could say why. Measured on a hundred real validation batches, the learned gate sits at 0.0192 against a 0.018 floor and a 0.05 threshold. It never opened. That conclusion came from a single average, which is not a safe inference, so it was pre-registered as a test aimed at my own reading before any GPU time was spent; variation in response to input turned out to be 5e-06. The mechanism is not inert on average, it is inert everywhere.

  2. Our accuracy bars were below our own noise

    The same arm passed its accuracy prediction — 1.2 points on WinoGrande against a half-point bar — and the pass was worthless. The standard errors on these benchmarks at 500 samples are about two points, so the bar sat four and a half times under the noise and the result was 0.54 sigma: the expected size of nothing. The same flaw was in the promotion rule for the version that had just finished, which allowed one point of regression. The thresholds stay exactly as registered and the noise floor is published beside the verdict rather than used to rescue it. The interim split was recorded at 500 samples. At the later 2,000-sample re-measurement, ARC-Easy did not replicate, and only LAMBADA remains outside the 1.0-point rule.

  3. Reading the licence changed the answer

    I had assumed the sharing licence on the children’s stories blocked redistribution, and said publish the recipe rather than the data. Reading it, that was wrong. It explicitly places results — the outputs of training, our weights — beyond any obligation, and grants the right to train outright. So all three text sources permit both training and weight release, and this version’s corpus is shippable under three cheap attribution conditions. The asymmetry is unflattering: the licence-clean checkpoint is the one that scores worse, and the earlier version, with copyleft in its training data, is the one whose bytes will never be published.

  4. The missing fifth task

    The registered evaluation came back with four of five benchmarks. LAMBADA had silently failed to load: the dataset still ships a loading script and modern tooling refuses to run those. The data was never missing — six parquet files, the standard 5,153 examples — only the loader path the harness requested was dead. Fixing it took five attempts and four different wrong turns, each an assumption I had not checked, and the fix now lives in the repository with tests rather than inside a notebook. Final answer at 500 samples: 20.8, a 2.2 point drop. The later 2,000-sample re-measurement puts LAMBADA at 23.90 against 25.15 — a 1.25-point drop, not 2 sigma.

    The historical 500-sample grouped bars for five zero-shot tasks, both versions, with plus or minus one standard error of about two points.
    Figure A6 — the 500-sample evaluation as it was recorded. The 2,000-sample re-measurement is in Section 2; its ARC-Easy regression did not replicate.
  5. Four kernels died behind green uploads

    The dataset publisher defaults to skipping directories, so the code dataset had been shipping with no config folder, no eval folder, and no JSON at all — which is why a measurement had never been reachable even though the code supported it. Every upload reported success. Then four kernels in a row failed on unchecked assumptions: a missing file, an import used before it was defined, a directory that was never there, and a parser handed markdown where it expected JSON. The publisher now stages one layout, always zips it, refuses an incomplete payload, and then downloads the result back to check seventeen files really are there. Assert the interface, then trust it.

Chapter 6 — The last null, and the gates 2026-10-05

  1. The memory trick returns null, twice

    X25 tests test-time training: the model takes a small self-supervised step while it reads, trying to remember the characters of a story. Stage one runs 20 stories and two arms — the updates execute, four per arm, and change not a single sampled token; the measured delta is 0.0000. Stage two sweeps a 40x strength range: four times the steps, ten times the learning rate, twice the cadence. Every arm lands negative, zero of twenty stories improved. The mechanism is closed as a null result, not a tuning invitation.

  2. Six launch gates, each named for a failure

    The v0.3.0 sequence cannot start casually, so six binary gates with named checkers stand in front of it: artifacts published, suite and ledger verified, the measuring stick hashed, licences recorded, document masking left off so the control stays a control, and the forgetting probe executed against the real checkpoint before anything else. A gate that cannot pass is amended in writing first — never waived on launch day.

  3. Five silent-null defects caught before any GPU hour

    An audit of the execution notebooks finds five ways an arm could have reported a plausible null after spending quota: a resumed run whose step budget made the training loop exit on entry; a replay sweep that hard-coded the schedule instead of reading Step 2’s verdict; arms that never resumed from the checkpoint at all. Each defect is the same shape — a mechanism never switched on — and each now has a test that reads the notebook itself.

  4. The corpus rebuild moves off Kaggle

    The preparation kernel runs ten hours and produces nothing, while a local two-million-token benchmark of the same code finishes in twenty-seven seconds. The worker pipe is roughly fifty times slower than the machine. The rebuild moves local, four shards in parallel, and the Kaggle kernel is left running as a spare.

  5. Two citations come out

    Every arXiv identifier in the research notes is checked against the papers themselves. One load-bearing citation claimed findings that are not in the paper it named — the paper is real, the attributed result is not — and the replay default’s justification could not be located at all. Both are removed in place and recorded as retractions. The replay sweep survives on a weaker, honest ground: nothing verified covers 58M, so the ratio must be measured, not adopted.

Chapter 7 — The ruler at 58M 2026-10-08

  1. The corpus reaches the public shelf

    The publishing kernel finally completes: the frozen probe slice and four per-source shards — 124,500,691 tokens each, cut equal so the runtime mixture can sample them — plus a manifest, all to the public model repository. Each source’s validation head is skipped so the held-out set cannot leak into training, and every artifact’s fingerprint is recorded before any measurement reads it. The unlock was routing the upload key through a private input dataset, because API-started runs cannot read notebook secrets.

  2. Kaggle changes the homework rule overnight

    A platform update makes missing cell IDs a hard validation error. Six runs in a row die with a blank error and zero log lines — the notebook never executes, so there is nothing to read. The bisection: script kernels run, notebook kernels fail, and a one-cell notebook with proper id fields runs. All thirty notebooks are normalized, and the static checker now refuses to pass an id-less one, so the next regeneration cannot break silently.

  3. Step 0: the instrument wakes up

    The forgetting probe has never seen a real checkpoint. CL-0 runs it against v0.2.0: probe loss 2.7989, 0.9330 bits per byte, on 204,800 frozen tokens taken from the training stream — deliberately not a held-out set, because the probe measures forgetting of what was learned. The probe’s fingerprint is verified against the recorded yardstick before scoring. The ledger now has its first real point.

  4. Step 1: the ruler at 58M

    Three control twins, same recipe, same data, 500 steps each, seeds 1401/1402/1403: 3.8045, 3.7388, 4.0280. The spread is 0.2892 nats — 2.5 times the 0.1139 measured at 30M, and nearly twice the 0.15 line the pre-registration treats as the measurement floor. The notebook’s verdict text was fixed before the run, so there is nothing to renegotiate: stop the programme.

  5. The second measurement confirms, and the project obeys

    The whole thing runs again in a fresh session. Every twin re-lands within 0.004 nats of itself — the machine is not the variable — and the spread returns at 0.2912. The registered rule: a spread above 0.15 confirmed by a second measurement means 58M is below this budget’s measurement floor, and micro-scale architecture and data claims stop. Steps 2–4 are cancelled, both sessions archived. The pivot: things that show up without a microscope — a lookup helper and best-of-N at inference, and full-scale data levers where effects are large enough to clear the noise.

    Horizontal dot plot of the 58M control re-run in two sessions: seed 1401 scores 3.8045 and 3.8086, seed 1402 scores 3.7388 and 3.7367, seed 1403 scores 4.0280 and 4.0279. Each pair overlaps almost exactly while the seeds sit 0.29 nats apart.
    Figure A7 — the wobble, measured twice. Sessions agree to 0.004 nats; the seeds do not.
  6. The corpus is scanned against its own exams

    Before the new corpus ships, a 13-gram gate scans all 2.41B training tokens against the five scored benchmarks and finds 2,903 verified windows — about 1.2 per million: wikiHow-style instructions, book prose, and science phrasing that the benchmarks also use. WinoGrande: zero. The count goes into the model card as a bounded optimism note on four scores, well under 0.001% of tokens, instead of claiming a perfectly clean corpus.

Chapter 8 — The experiment week 2026-10-12

  1. The adaptive mixture runs, and eats dessert

    Six weeks after the idea was logged, the Kautilya policy runs for real: two paired arms, 1,000 update steps from the same checkpoint, identical except whether the mixture policy re-weights its data sources from per-source loss. The policy arm’s training loss dives from 2.63 to 1.79 while held-out loss ends 0.018 nats worse — and the diary shows why: FineWeb-Edu, the hardest source, falls from a 60% share to 22.7%; TinyStories, the easiest, climbs from 20% to 56.3%. The policy did not learn faster; it changed the test it was measured on. Two rank-asymmetric DDP bugs die first, both visible only on two GPUs.

  2. An experiment is killed before it costs a GPU-hour

    X27 is registered, reviewed, and withdrawn the same day: the design would have let the model read future tokens during training — a leak into its own objective. The withdrawal and its amendment stay public, and the flag is now a tripwire that raises if anyone ever switches it on.

  3. The dessert replicates, and the machine turns out to be exact

    The whole pilot re-runs in new sessions. The control arm lands 0.0001 nats from its first run at the final checkpoint; the policy arm lands 0.0007 from its first, with a diary identical to four decimals. Run-to-run noise is now measured rather than assumed: 0.0001–0.003 nats per checkpoint. Then a third arm tests the fix — judge each source by whether it is improving, not by whether its loss is low. It halves the drift and halves the damage (+0.0076) but does not stop it, falsifying the pre-registered prediction that its weights would stay level. Three arms, three drift sizes, three costs, ordered: that dose-response is the finding.

  4. The model keeps its characters

    Entity drift — Max becoming Tim within two sentences — is measured, then attacked at decoding time. Eight samples per prompt, ranked three ways: greedy, the model’s own log-probability, and a rule that prefers the continuation that keeps its entities. On 20 frozen stories the rule triples character retention over greedy (0.030 to 0.091; +0.061, 95% CI +0.039 to +0.086) and lands within noise of the real book text (0.098). The model’s own confidence adds nothing — again. The honest cost: the rule prefers less-likely text, and whether the stories feel better is the unmeasured next question.

  5. The recitation orders, all four arms

    The pāṭha experiment — the first test I know of a 3,000-year-old oral-memory technology as a training schedule — completes: four arms, same windows, same 10% replay budget, only the order changes. And the answer is a clean staircase. Held-out loss: plain shuffle 2.8076 < adjacent pairs 2.8314 < the two-word braid 2.8510 < nested triples 2.8752. The frozen forgetting probe ranks them identically, and even the rung sizes match across the two instruments (about 0.02 nats each): shuffle ends 0.0237 nats better than the pretrain itself; the braid and the nested triples end 0.0181 and 0.0446 worse. The recitation engineering that preserved a corpus orally for three millennia does not transfer to gradient descent — structure costs, in proportion to its depth. One seed, no claims; the second seed is queued.

  6. The instrument refuses to lie

    The forgetting ledger gets its first arm-level readings only after three guards fire. A GPU-only bug — one dataset piped slow-CPU rows into a device batch, invisible to every local test — is found, fixed, and pinned by a contract test. Then the probe itself: three versions score the wrong frozen file, and the built-in self-check refuses them with a +0.11-nat discrepancy — exactly the fake regression a silent substitution would have published. On the correct, hash-pinned file, the self-check re-scores the original baseline to 0.000001 of its October 7 value. The lesson lands in the record: at this scale the instrument matters as much as the model.

Appendix B. Every decision

every numbered entry, including the rejected ones

  1. D1Kaggle as the platform: 30 GPU-hours per week, 2x T4held
  2. D2From-scratch only; no fine-tuning, no distillationheld
  3. D358M params: 10 layers x 512 dim, context 1024held
  4. D4TinyStories + FineWeb-Edu corpusheld
  5. D5One change per version, incremental ladderheld
  6. D6Micro-ablation before every full runheld
  7. D7Pre-register experiments with hashed predictionsheld
  8. D8Journal every session; three sources per research claimheld
  9. D9Micro-batch 8 x accum 32: OOM fix at equal effective batchheld
  10. D10Browser-started runs only: API runs cannot read secretsheld
  11. D11Freeze v0.1.0 as the equal-token baselineheld
  12. D12Screen changes at 30M params, 50M tokens, ~30 minheld
  13. D13Journal everything; verify every claimheld
  14. D14Implement Muon+ as experiment E1validated, below threshold
  15. D15E1 at -0.015 misses the 0.02 threshold; do not promoteenforced
  16. D16Fix resume race: single downloader, atomic swap, barrierfixed
  17. D17Expert reprioritization: sweeps first, recipe lock, data before architectureheld
  18. D18Finish v0.1.2 instead of abandoning at 71%held
  19. D19v2 mixture: 60/20/15/5 FineWeb-Edu / TinyStories / Cosmopedia / codebuilt
  20. D20Punch above weight: token efficiency and data quality before scaleheld
  21. D21Distillation rejected: KALIA stays a pure from-scratch lineageclosed
  22. D22Adopt test-time training and self-teaching research trackqueued
  23. D23Invention target: entity memory + in-place test-time weightsqueued
  24. D24Looped depth promoted to front of queuetested, rejected
  25. D25RL self-play and MoE/DSA rejected at this scale, on evidenceclosed
  26. D26Continual-learning recipe planned for post-trainingplanned
  27. D27Publish minimum footprint, honest only, never redistribute dataenforced
  28. D28Rebuild v2 code shard with a per-file license filterdone
  29. D29Build an evaluation harness: probes, bpB, comparison tooldone
  30. D30Reasoning policy: public methods, our own weights, no RLVR yetheld
  31. D31Freeze Muon LR at 0.02; sweep completeclosed
  32. D32Three ancient-text-inspired designs queued (Kautilya, Utsarga, Apoha)queued
  33. D33Four more queued; Jata-patha becomes the reversal experiment X16queued
  34. D34Three Veda-derived designs recordedqueued
  35. D35Gita compilation adapted; prior art cited, not claimed as novelqueued
  36. D36Entity-consistency harness built; novelty claim narrowed after prior-art checkactive
  37. D37Chakravyuha dismissal corrected; Abhimanyu-gap metric builtactive
  38. D38Hash-anchored pre-registration and pre-registered stopping adoptedactive
  39. D39Strategic audit: finish, test, publish, then v0.2.0; freeze the queueheld
  40. D40Quota-exhaustion response: defer the experiment, publish assets nowsuperseded
  41. D41Stop v0.1.2 at step 3,478: converged within noise, quota to v0.2.0done
  42. D42X16 rejected: reversal made the gap worse on both seeds; frozen recipe to v0.2.0enforced
  43. D43The rebuilt corpus redefines the yardstick: v2b val is canonical, v0.1.2 re-baselined on itactive
  44. D44Licence finding disclosed; publish the filtered corpus plus the filter, never the raw corpusactive
  45. D45Accuracy thresholds must sit above the benchmark noise floor; X18 and S-A were both under-poweredactive
  46. D46The gated-residual gain is real but not a gate: removing the branch normalisation keeps it, so the mechanism is a static modulationactive
  47. D47X20: a static per-channel modulation beats the published gate by 0.0922 nats with 73,728 fewer parameters; one seed, replication pre-registeredactive
  48. D48No architecture arm from a single seed; the gated-residual line is closed as a null resultactive
  49. D49A load-bearing citation claimed findings not in the paper it named; retracted, decision keptactive
  50. D50The replay default’s justification was unlocatable; removed rather than restatedenforced
  51. D51--resume silently continued the source schedule; update_budget and opt-in re-warmfixed

Appendix C. Every incident

every incident, in full

I1 API runs cannot read secrets

Secrets attach per notebook in the UI only. Real runs now start from the browser, with a fail-fast connection test.

I2 Config missing in the first GPU run

The dataset uploader skips subdirectories. Configs were flattened into the dataset root and the notebook now asserts they exist.

I3 Out of memory at step one

Batch 32 at context 1024 exceeded a T4. Fixed with micro-batch 8 x accum 32 and expandable memory segments.

I4 A failed run marked complete

Shell-style commands do not fail notebook cells. Replaced with subprocess calls that assert their exit codes.

I5 Repository hygiene

Early drafts carried environment-specific wording and inconsistent authorship. Documentation was normalized.

I6 Resume crash (EOFError)

Both distributed workers wrote and read the same checkpoint file. Fixed with a single downloader, an atomic swap, and a barrier.

I7 Latent crash on older checkpoints

The optimizer loader dropped keys added after those checkpoints were saved. Defaults are restored, with a regression test.

I8 Log history lost across sessions

Each session starts with an empty workspace, so pushing logs replaced them. Resume now pulls and appends. The first session rows are recorded as a known loss.

I9 Mix step failed after two hours

Relative paths resolved against the wrong directory after a cd. Absolute paths now; a mix-only kernel reuses the completed shards.

I10 Wrong mount path and stale code

Dataset mounts live under /kaggle/input/datasets/<owner>/<slug>/, and the dataset had not been re-versioned. Both corrected.

I11 A misreported duration

I described a 44-minute ablation as having run five hours, trusting my sense of time over the run-start timestamp. The correction is in the journal.

I12 Weekly GPU quota exhausted

The push failed with 30 of 30 GPU-hours used; the UI earlier read "24 hours remaining". Only the push attempt is authoritative. Experiments deferred to the weekly reset.

I13 A queue, not a bug

Two kernels sat QUEUED for 45 minutes at Sunday peak capacity, and a retry loop pushed the account past its limit — the cap of two batch GPU sessions counts queued ones, so a retry that assumes a failure can consume the retry's own budget. Deleting the duplicate and pushing once started the run immediately.

I14 The published loss curve was missing its first half

The v0.1.2 training log on Hugging Face began at step 1740: a code change adding log-restore-on-resume landed at 06:00 UTC, one session after that session had already started with the old code, so the first 173 logged steps vanished from the public record; the rebuilt log now has 347 rows from step 10 to 3470, verified contiguous and republished. The recovered curve supports the stop decision: the descent finishes by step 1,500 and the remaining 1,750 steps oscillate inside noise.

I15 Training windows ignored document boundaries

The corpus is EOS-delimited — all four sources, median document ~200 tokens — but windows were sampled with no document awareness and attention ran unmasked, so nearly every 1,024-token window crossed a boundary. Worse, the mixer writes the four corpora in million-token round-robin blocks, so 0.3% of windows splice two corpora with no separator at all. Invisible to loss and to every benchmark we tracked: found by reading the mixer. Fixed with a block-diagonal document mask behind a config flag, and pre-registered as an experiment (X17) at the same 0.010-nat bar that once rejected Muon+.

I16 41.7% of the code corpus is copyleft, and it shipped

A 20,000-file sample of the code corpus measures 41.7% of characters under non-permissive licences, with GPL-family terms covering 39.5% of all files. The licence filter was written, tested, and correct — it just landed 40 minutes after the corpus that needed it, and nothing tied a new filter to a rebuild of the datasets already built. v0.1.2 therefore trained on roughly 50M copyleft tokens, about 2% of its training set, and its published card had listed three of the four sources while omitting the code slice entirely. Eleven minutes of CPU and one random sample found what no loss curve could. The v0.1.2 card now discloses it, and publishing training data is redefined as publishing the filtered corpus plus the filter — never the raw corpus, because redistributing copyleft text is the step that actually triggers the obligation.

I17 The dataset was silently dropping two directories

kaggle datasets version defaults to --dir-mode skip, which ignores subdirectories entirely. The code dataset had been published flat, so configs/ and eval/ were both absent and it contained zero JSON files — meaning no kernel could resolve eval/probe_sentences.json, which is the real reason the Abhimanyu gap was never measurable even though the code supported it. The upload reported success every time. Four kernels failed in a row behind a green upload, each from one unchecked assumption: a missing file, an import used before it was defined, a missing directory, and a parser handed markdown where it expected JSON. The dataset publisher now stages one layout, always uses -r zip, refuses to publish an incomplete payload, then downloads the result back and asserts seventeen required files resolve. Assert the interface, then trust it.

I18 A lint gate that had never run

The notebook check ran pyflakes via subprocess and printed its output or the word clean. pyflakes was not installed, so the error went to stderr, stdout was empty, and the fallback printed clean — an absent checker reporting success, recorded in several commit messages as a result. It cost a kernel run to expose. The replacement probes for the checker first and refuses to emit a verdict without it, and both of its own failure paths are tested by deliberately breaking them.

I19 The Kautilya arms would have trained zero steps

A resumed run at step 4,770 with max_steps 1,000 trains nothing: the loop condition is false on entry, the process exits zero, no rows are written, and the quota is spent. The step budget now has two explicit meanings — max_steps stays an absolute ceiling, update_budget means more steps from the resume point — and a test pins each.

I20 Step 3 ignored Step 2

The replay sweep is registered as using the schedule from Step 2’s outcome, but its arms hard-coded re-warming and the notebook never read the verdict. Had Step 2 concluded against re-warming, the sweep would have measured the wrong schedule and said nothing about it. The notebook now reads the verdict file and patches the in-kernel config copy.

I21 The corpus rebuild moves off Kaggle

The preparation kernel runs ten hours with no outputs while a two-million-token local benchmark of the same code finishes in twenty-seven seconds: the worker pipe is roughly fifty times slower than the machine. The rebuild moves local, four shards in parallel; the Kaggle kernel is left running as a spare.

I22 Kaggle made cell IDs a hard error overnight

Six runs die instantly with a blank error, zero log lines, and no outputs — the artifact never executed. Bisection found it: script kernels run, notebook kernels fail, a one-cell notebook with id fields runs. All thirty notebooks now carry ids, and the static checker refuses to pass an id-less one. A blank pre-flight error plus zero logs means the artifact never ran; bisect the artifact type before touching the code.

I23 The code dataset was truncated again, and kernels copied an old bundle

kalia-code-dev had been re-published flat — no train.py, no tools/ — and the setup cell fell back to any train.py under /kaggle/input, silently copying a September 23 repo bundled inside an old kernel output. The staging tool also flattened tools/ to the dataset root while recording it as tools/<name>. Fixed: the tool preserves the directory, the dataset is republished and round-trip verified, and the kernels prefer the dataset and assert every file they invoke.

I24 The contamination gate reported 63,491,977 hits, and every one was whitespace

A 13-gram overlap scan against the five scored benchmarks returned 63 million PIQA hits. All of them were runs of spaces: 120 benchmark rows carry copied web text with long whitespace runs, and a 13-space window matches Python indentation millions of times. Patterns now require at least six distinct tokens. A second artifact — an ARC choices dict stringified into Python-repr patterns — matched quiz-like code 601 times and was caught the same way. A gate that reports 63M hits is broken, and the count says so before a human reads the matches.

KALIA is a personal research project. Not affiliated with any government scheme, company, or other project using a similar name. Training data is never redistributed; every source is attributed in the model card.

Case study · Technical write-up · Back to the portfolio