Tinker Transformer architecture

by Samy (Kondasamy Jayaraman)

Loading Larkspur mini

Layer 1 · head 1 · no tokens yetLarkspur mini: a tiny model, trained only on Larkspur’s documents.

Chapter 1 of 7

One token at a time

In Tokens, Larkspur’s documents became tokens. Now the team opens Larkspur mini, a tiny model trained only on those documents, running right here in your browser.

This chapter: What does a language model actually do with a prompt?

About this chapter

You will learn

  • That a model gives a probability to every token it knows, for the next position only
  • How a longer answer is built by adding one token and running again
  • Why Larkspur mini is a toy: what it can and can’t know

Words you’ll meet

Model
A program of fixed numbers (its weights), learned from text, that turns a prompt into scores for what comes next. Larkspur mini is one, small enough to run in a web page.
Next-token prediction
The one job a language model does: given the tokens so far, give each token in its vocabulary a probability of coming next.
Vocabulary
Every token the model knows. It can only ever write one of these.

Step 1 of 5

Meet Larkspur mini, a of about 51 thousand numbers learned only from Larkspur’s documents. Bigger models do the same job.

Give it a sentence.

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.