Loading Larkspur mini
Layer 1 · head 1 · token 14 of 28 (␣business)“business” is token 14 and token 28. Numbers from Larkspur mini’s own weights.
Chapter 2 of 7
Tokens become vectors
A model does arithmetic, but a token is only an id. Before Larkspur mini can weigh anything, each token has to become numbers.
This chapter: How does a token id become numbers, and how does the model know where it sits?
About this chapter
You will learn
- What an embedding is: a row of numbers looked up for each token
- Why the same token always starts from the same row
- How adding a position’s row tells the model where each token sits
Words you’ll meet
- Vector
- A list of numbers of fixed length. Larkspur mini’s are 32 numbers long.
- Embedding
- The vector a token is turned into, looked up in a table with one row per token in the vocabulary.
- Position embedding
- A second table with one row per position in the window, added to the token’s row so the model knows where the token sits.
Step 1 of 4
Larkspur mini swaps each id for a of 32 numbers: a row of its table, the token’s .
Look one up.
Loading Larkspur mini…
Meta’s Llama 3 report (2024): its largest model has 405 billion learned numbers, 126 layers of 128 heads, vectors of 16,384 numbers, a vocabulary of 128,000 tokens and a window of up to 128K tokens. arxiv.org · checked 2026-10-30
Larkspur mini is a toy: 51,072 learned numbers, 2 layers of 2 heads, vectors of 32 numbers, 768 tokens to choose from and a 32-token window, trained ahead of time on Larkspur’s documents. Its numbers are its own, not a real model’s.