bobofamilyNIU CHUN
Tags06

#Embedding

2026-10-12·—READS·—LIKES·Learning AI with AI

A Vocabulary Does More Than Split Text: Model Costs, Multimodality and Token Boundaries

If a larger vocabulary shortens a sequence, why can output computation still increase? Follow parameter counts and ID mappings into continuous and discrete visual representations, walk through eight steps of Token Healing, then examine representation differences through Chinese, numbers, whitespace and JSON/YAML examples. Includes bilingual diagrams and an interactive walkthrough.

2026-09-21·—READS·—LIKES·Learning AI with AI

A Starting Loss Twice as Bad as Guessing: From Shakespeare to the 2.49 Baseline

Starting over on a new dataset: Shakespeare, a 65-character vocabulary, and a bigram baseline at val 2.49 — the control group every later addition gets measured against. These sections hold no new mathematics, but they introduce two things that run through the whole episode: a token is something you define yourself (which is also the real reason for picking Qwen later), and the three shapes (B, T, C). Plus one equivalence worth seeing once: a lookup is a fully connected layer with no bias.

2026-09-18·—READS·—LIKES·Learning AI with AI

The Line That Looks Right: 96 Lookups Landing on 27 Rows, and the End of Ex1

Five steps left, no forks, and the first three are a copy of the previous part. What is genuinely new is the last two: why view's backward is simply its own inverse (one test decides it — did the count of numbers change), and why dC[Xb] += demb, a line that looks entirely correct, is wrong. Finish these five and all 4137 parameter gradients have been worked out by hand.