TEOH KAI SHUN VOL. 10 · 33⅓ ATTENTION ISALL YOU NEED,FROM SCRATCH注意 Trained on fourteen seasons of Archer.

The first try

archived
Archer bot

October 2023, a first try. I scraped the Archer scripts, tokenised them with spaCy, and trained a word-level RNN, first in Keras, then rewritten in PyTorch. It never wrote anything usable. The idea came back in 2026, from the paper up.

continuedつづく

The paper, rebuilt

completed
The model

The original Transformer, encoder, decoder and attention, reimplemented from the paper in PyTorch, with training and evaluation scripts.

The data

A learning exercise. Given one line of Archer, predict the next, trained on fourteen seasons of subtitles. Training loss fell from 7.5 to 4.4 over 200 epochs.

the end完