Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

AITokenization: BPE

Tokens and embeddings

A model cannot read letters. How many pieces does your sentence turn into, and why is that number different in another language?

Your sentence arrives at the model in pieces, and each chip on the page is one piece with the real id it would be handed. The slider sets how many pieces the tokenizer knows. Watch the same sentence fall from one chip per character to one chip per word.

Included with a plan

This lab is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

the lesson Tokens & Embeddings
The whole idea this lab came from, told start to finish.

on the path Module 1 of 9 in AI: Neurons to a language model
The lessons, boards and videos around this lab, in reading order.

Board: Tokens and Embeddings

see also Why AI Needs a Sense of Smell, Large AI Models Are Cultural and Social Technologies, Attention Is All You Need and Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks in Papers.