sup computer

a small language model studio


lucky-nanogpt-power-1

a release of lucky-nanogpt

Serieslucky
Version1
Git taglucky-nanogpt-power-1
Architecturemodern (RoPE, RMSNorm, bias-free)
Tokenizernumber (71)
Parameters796,672
Held-out BPC—
Weightssup-computer/lucky-nanogpt-power-1 (Hugging Face)
ResearcherClaude Fable 5.2
Corpusprocedural · 1,436 Powerball draws under the 69/26 matrix (Oct 2015 to Nov 2026) from the Multi-State Lottery Association's draw machines, fetched from New York's open-data file
Dataset—

A small GPT trained on every Powerball draw under the current rules, which reads the last 8 draws and picks five whites and a red. Its held-out loss is 28.687 bits per draw against a floor of log₂ 292,201,338 = 28.122. It gets within 0.56 bits of the floor and no closer: 1,436 draws run out before it has learned the rule that a white cannot repeat.

It is one half of a null experiment: the full write-up is What does a model learn from fifty years of lottery draws? Its sibling on a smaller ticket is lucky-nanogpt-1.

Model details

Version / git taglucky-nanogpt-power-1 (research run power-history)
Architecturemodern (RoPE, RMSNorm, bias-free) from the shared core engine, trained by the project's own draw-boundary loop
Size4 layers · 4 heads · 128 embedding dim · 72 context · no dropout · 0.80M params
Tokenizerone token per number: 1–69 (shared by whites and red), a separator bar, newline, 71 tokens. A draw is 8 tokens
Context9 draws: the last 8 real draws, then the one being picked
Checkpointprojects/lucky/models/lucky-nanogpt-power-1/ (weights not committed)
Developed withClaude (Claude Code)
LicenseMIT

Intended use

An exhibit of what no signal looks like, on a game with rules to learn. The model's job is to emit numbers. harness.py owns the ticket's form: it asks for exactly five whites, writes the separator, asks for one red, and sorts the whites. It never masks a number. Sampling is temperature 1 from a seed; an attempt with an out-of-range number or a repeated white is a reject, and the ticket is the first valid attempt, with attempt n drawn from seed + n. The rejects are printed before it.

Out of scope. It does not predict Powerball: every valid ticket it prints is a 1 in 292,201,338 shot, the same as any other. It knows the 69/26 matrix only, so a rule change retires it. Power Play and Double Play are not in the corpus.

Training data

1,436 Powerball draws, every one under the 69/26 matrix, from 7 Oct 2015 to 21 Nov 2026. Draw machines made this corpus, and no model or script wrote any of it.

The draws come from New York's open-data file and were cross-checked against the Texas Lottery's file. All 1,436 agree as sets (New York sorts the whites, Texas keeps draw order). The record is projects/lucky/models/lucky-nanogpt-power-1/provenance.json.

Published results are sorted, and a model trained on sorted whites learns that the first is usually small. So the loader writes each draw's five whites in a fresh random order every epoch, and every white slot means what it means in the drum: any unused number from 1 to 69.

The split is by time: 1,150 draws to 22 Jan 2025 train, the next 143 pick the stopping step, and the most recent 143 (to 21 Nov 2026) are held out.

Training procedure

Evaluation

Loss is scored at set level: the model's probability summed over all 120 orderings of a held-out draw's whites, so the number compares to the floor for a set of five, not a sequence of five.

MetricResult
Held-out loss28.687 bits/draw over 143 draws, 95% interval [28.594, 28.778]
Floor28.122 bits/draw
Above the floor+0.564 bits (2.0%)
No-history control28.505 bits/draw
Control minus history−0.182 bits/draw, 95% interval [−0.243, −0.120]
At step 300036.251 bits/draw
Valid tickets, raw802,007 of 1,000,000 samples (80.2%)
Samples matching a past draw1 of 802,007, against 3.9 expected by chance
Bar chart of raw valid-ticket rates. Lucky 99.99%. A reference for five whites drawn with replacement, 86.22%. Lucky Power control at its stopping step 83.02%, the released Lucky Power 80.20%, the control at step 3000 84.82%, and the history version at step 3000 64.22%.

Of the 197,993 rejects, 140,083 repeat a white, 61,829 put the red outside 1–26, and 5,048 put a separator or newline in a white slot (a reject can break more than one rule).

Limitations

How to reproduce

cd projects/lucky/models/lucky-nanogpt-power-1
python prepare.py                    # -> draws.bin + meta.pkl
python train.py                      # -> ckpt.pt (step 300), ckpt_final.pt, log.jsonl
python eval.py                       # 28.6868 bits/draw, +0.5644 from the floor
python harness.py pick               # rejects print first, then the ticket
python harness.py rate --n 1000000   # the valid-ticket rate and the memorization check

Citation / credits