Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Input | Tokens | |
hello | 1 token | |
Hello, world! | 4 tokens | |
unbelievable | 2 tokens | |
antidisestablishmentarianism | Predict first ❓ |
Adventure 8
Input | Language | Tokens | |
"hello" | English | 1 | |
"你好" | Chinese | ? | |
"こんにちは" | Japanese | ? | |
"مرحبا" | Arabic | ? | |
"🎉🚀" | Emoji | ? |
Adventure 8
straw + berry as two tokensAdventure 8
Model | Input cost (per 1M tokens) | |
Claude Sonnet 4 | $3 | |
GPT-4o | $2.50 | |
GPT-4o-mini | $0.15 |
Adventure 8
Adventure 8
[15496, 11, 995] for "Hello, world!"How do we teach the model that "cat" is more like "dog" than like "rocket"?
Adventure 8
Adventure 8
Adventure 8
Take the embedding for King. Subtract the embedding for Man. Add the embedding for Woman.
The closest point on the map is: Queen.
Adventure 8
Arithmetic | Result | |
Paris − France + Germany | ≈ Berlin | |
Walking − Walk + Swim | ≈ Swimming | |
Bigger − Big + Small | ≈ Smaller |
Adventure 8
Doctor − Man + Woman ≈ Nurse
Adventure 8
Adventure 8
"Mike gave the book to his sister because she wanted to read it."
Word | Refers to | |
she | his sister — not Mike | |
it | the book — not the sister | |
his | Mike — not the book |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Sentence length | Comparisons | |
100 words | 10,000 | |
1,000 words | 1,000,000 | |
100,000 words | 10,000,000,000 |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Type | What it does | Used for | |
Encoder-only (BERT) | Read & understand | Search, classification, embeddings | |
Decoder-only (GPT, Claude) | Read & generate | ChatGPT, Claude, every chatbot | |
Encoder-decoder (T5) | Read one, generate another | Translation, summarization |
Adventure 8
Adventure 8
Scale | Arithmetic ability | |
Below 10B parameters | Bad at arithmetic | |
Above ~50B parameters | Arithmetic works |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8