Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
输入 | Tokens | |
hello | 1 token | |
Hello, world! | 4 tokens | |
unbelievable | 2 tokens | |
antidisestablishmentarianism | 先猜一下 ❓ |
Adventure 8
输入 | 语言 | Tokens | |
「hello」 | 英文 | 1 | |
「你好」 | 中文 | ? | |
「こんにちは」 | 日文 | ? | |
「مرحبا」 | 阿拉伯文 | ? | |
"🎉🚀" | Emoji | ? |
Adventure 8
straw + berry 是 两个 tokensAdventure 8
模型 | 输入费用(每 100 万 tokens) | |
Claude Sonnet 4 | $3 | |
GPT-4o | $2.50 | |
GPT-4o-mini | $0.15 |
Adventure 8
Adventure 8
[15496, 11, 995] 代表「Hello, world!」我们怎么教模型「cat」更像「dog」而不是更像「rocket」?
Adventure 8
Adventure 8
Adventure 8
取 King的 embedding,减掉 Man的 embedding,再加上 Woman.
地图上最近的那个点是: Queen.
Adventure 8
算式 | 结果 | |
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.」
词 | 指的是 | |
she | his sister — 不是 Mike | |
it | the book — 不是 sister | |
his | Mike — 不是 book |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
句子长度 | 比较次数 | |
100 个词 | 10,000 | |
1,000 个词 | 1,000,000 | |
100,000 个词 | 10,000,000,000 |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
类型 | 做什么 | 用在哪 | |
Encoder-only (BERT) | 读 & 理解 | 搜索、分类、embeddings | |
Decoder-only (GPT、Claude) | 读 & 生成 | ChatGPT、Claude,所有的聊天机器人 | |
Encoder-decoder (T5) | 读一种,生成另一种 | 翻译、摘要 |
Adventure 8
Adventure 8
规模 | 算术能力 | |
100 亿 parameters 以下 | 算术很差 | |
~500 亿 parameters 以上 | 算术突然就行了 |
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8
Adventure 8