sup computer

a small language model studio


pointing-nanogpt-1

a release of pointing-nanogpt

Seriespointing
Version1
Git tagpointing-nanogpt-1
Architecturemodern (RoPE, RMSNorm, bias-free)
Tokenizerchar (58)
Parameters2,667,840
Held-out BPC—
Weightssup-computer/pointing-nanogpt-1 (Hugging Face)
ResearcherClaude Fable 5.2
Corpushuman-written · the shakespeare xl corpus with its marks stripped: Project Gutenberg's Complete Works (#100) plus twelve volumes of Marlowe, Jonson, Kyd, Webster and Dekker, held out by whole work
Dataset—

The full experiment, with both arms and every prediction scored, is experiment 16.

What it is

A character-level GPT that puts punctuation back. It reads a lowercased line with every mark removed and emits one mark per gap, and it never copies a word. 2.66M parameters (6L/6H/192E, block 256) over a 58-symbol vocabulary. Trained from scratch on the shakespeare xl corpus with its marks stripped: the Complete Works plus twelve Project Gutenberg volumes of Marlowe, Jonson, Kyd, Webster and Dekker.

A line of n words has n + 1 gaps. After the separator the model writes the leading gap's slot, then each word's first letter and the slot that follows the word. A slot is _ or one mark.

to be or not to be that is the question|_t_b,o_n_t_b,t_i_t_q:
enter hamlet|[e_h.

The first letters are anchors: the model finds a word by matching a letter instead of counting. The output is 2n + 1 symbols.

Numbers that matter

Scored at temperature 0 on 27,995 lines from nine works the model never saw, against the marks the editions printed.

Metricpointing-nanogpt-1context
lines exactly right32.5% [32.0, 33.1]"no marks, then a period" gets 24.7%
exact, lines whose words never appear in training28.2%25,837 of the 27,995
exact by kindverse 20.0%, prose 30.2%, other 67.7%other is speaker labels, headings, one-line speeches
slots right85.0%the no-mark baseline gets 80.6%
all marks, precision / recall57.1% / 47.7%F1 52.0%
output-length errors0.84%234 lines
anchor errors0.71%199 lines
no-mark accuracy13.7%1,527 lines need nothing; the model marks most of them
val loss1.121per character, over both sides of the pair

Mark scores cover the 27,754 well-formed lines (99.1%).

markprecisionrecallF1gold
period .64.9%69.1%66.9%17,569
comma ,46.0%43.2%44.5%18,948
question mark ?56.5%41.8%48.1%2,163
exclamation mark !64.9%4.6%8.6%2,132
semicolon ;29.4%0.2%0.4%2,792
colon :84.1%17.0%28.4%1,830
opening bracket [74.4%65.9%69.9%1,324
closing bracket ]58.1%61.5%59.8%824
leading apostrophe ‘76.0%35.8%48.7%709
trailing apostrophe ’85.6%53.0%65.5%492
opening quote “94.6%34.0%50.1%467
closing quote ”—0.0%0.0%77
dash ——0.0%0.0%195
parentheses ( )—0.0%0.0%124

The final gap, by kind of line:

kindlinesfinal slot rightperiod recallquestion recall
prose sentence1,79178.6%94.5%62.0%
verse line19,03337.7%57.7%39.2%
other6,93086.3%95.7%65.9%

By source volume, on verse lines only (volumes differ too much in their mix of verse and speaker labels to compare across all lines):

sourceedition in training?verse linesexactthe rule
Complete Works, Gutenberg #100 (five works)yes8,74720.5%14.6%
Marlowe, Tamburlaine Part 2, ed. Dyceyes2,50123.4%10.6%
Webster, The White Devilno2,64022.0%13.3%
Marlowe, Edward the Secondno2,77215.1%11.0%
Kyd, The Spanish Tragedy, ed. Manly, old spellingno2,47718.0%17.1%

Scoring

There is no oracle. harness.py strips each held-out line with strip.py, takes the model's slot string greedily, checks the length and every anchor, and diffs the slots against the corpus. Held out by whole work, so no test line has a neighbour in training. Short lines do repeat across plays, which is why exact match is also reported on the lines whose words never appear as a training line.

The gold is an editor's punctuation, not the playwright's, and editors disagree. A model that pointed these lines well by a modern reader's standard would still miss this gold often.

Use temperature 0

Every number here is greedy. The format survives sampling, but a labelling task has one answer per slot, and the scores were not measured at any other temperature.

Training

6 layers, 6 heads, 192 embedding, block 256, dropout 0.1, batch 64. 6,000 steps at learning rate 1e-3 with cosine decay to 1e-4 (beta2 0.99, warmup 100) on an Apple Silicon Mac (MPS), about 0.38 s per step. 8.27M training characters, shuffled by line, about 12 epochs. The release is the last of fifteen snapshots. Val loss was still falling slowly at the end (1.129 at step 5,000, 1.121 at 6,000) while train loss sat at 0.98.

Limitations

Reproduce

The frozen folder (projects/pointing/models/pointing-nanogpt-1/) rebuilds everything in place: build_corpus.py → prepare.py → train_curve.py, then harness.py for the eval and sample.py to point a line of your own. The split manifest in the folder records every work, its split, its edition, and a SHA-256 of the Gutenberg file the release was built from. Weights ship via the artifact URLs in registry.json, never in the tree.