渡船沙龙 · 极简 AI 课 · 第〇号构建

一个接龙,
拆完七十年 AI。

不背术语,只拆配方。六个原语 × 三个旋钮,配出从深蓝到 Sora 的全部产品——其中七份配方,你现在就能在这一页上亲手造出最小版本,还能跟真 LLM 同屏对拧。

6原语
3旋钮
8可动手实验台
70份分级配方
70年编年史
本页本身,即一次最小真实构建。

第〇课 · 方法论

理解 = 能复现

维柯说「真理即造物」,费曼说「造不出来,就没真懂」。这门课把这句话变成三个动作,循环使用:

虚拟构建

在脑内从零重造一个产品,只保留承重决策——「它的命门是哪三个选择」。产出不是结论,是一张可证伪的假设清单。零成本,所以能扫一百个产品;也零反馈,所以必须进入下一步。

最小真实构建

把配方缩到浏览器里能跑的最小版本,让假设被真实反馈打脸。本页藏了四台:一个语言模型、一个深蓝、一个扩散模型、一本缓存账单——原理与真品一字不差,只差算力若干个数量级。

齿感交互

亲手拧温度、关剪枝、拖显影、拉账单。抽象概念获得阻尼与回弹,才会沉淀成直觉。每个实验台都标了「齿感点」:照着做,注意手上的感觉。

假设(虚) → 校准(实) → 直觉(触) → 更好的假设 → ……


第一课 · 零件盒

六个原语,一副全家桶

全部 AI 史 = 原语的发明 × 原语的组合 × 某个原语突然吃到足够的数据与算力。点击任一原语,可在编年史里筛出所有用到它的配方。

外加三个旋钮(接龙专属)

2019 年以后的语言线,原语再没变过——变的只是三个旋钮怎么拧。任何新产品出现,先问它拧的是哪个。

① 训练旋钮用什么反馈改变「偏好接什么」
语料 → RLHF → RLVR
② 上下文旋钮每轮接龙前,桌上摆什么牌
prompt → 检索 → 缓存 → 压缩
③ 循环旋钮接完之后干什么
展示 → 执行 → while 循环

第二课 · 实验台

七份配方 + 一台真品,现在开造

每台实验的原理与真实产品完全同构。造完一台,你就拥有了对应产品族的「假设生成器」。造完 nano 接龙机,还能跟经网关接入的真 LLM 同屏对拧。

实验一

接龙机 · GPT-0.001

✓ 已触摸

你在造:字符级 n-gram 语言模型——GPT 的曾曾祖父。原语与 GPT-4 完全相同:给定上文,按概率吐下一个字。差别只在语料(×10⁸)与上文窗口(2 字 vs 20 万字)。

0.80 正常

下面是模型此刻的「候选下一字」及概率——点任意一个,你就替模型做了一次采样。这张概率条,就是每个 LLM 每 20 毫秒在做的全部事情。

齿感点:把温度拧到 0.05——它只会背书,永远选最粗的那根条(贪心解码);拧到 2——胡话区。这就是你在任何 API 里见到的 temperature 参数的全部秘密。再切到「1 字」窗口感受一下:上文越短,越语无伦次——上下文旋钮②的手感。
通向 → GPT-3(同配方,语料×10⁸)Copilot(换代码语料+挖空训练)ChatGPT(再加 RLHF 旋钮①)
实验二

翻树台 · 深蓝-nano

✓ 已触摸

你在造:minimax 完全搜索 + α-β 剪枝。深蓝配方 = 翻树 + 人写打分,井字棋是它的 10⁴⁷ 分之一缩小版——原理一字不差,机器永远不会输给你。

你执 ,机器执
这一手,机器翻看了
个局面
轮到你落子。
齿感点:开局走中心,记住局面数;重开,关掉剪枝再走同一格——看数字暴涨约十倍。你刚刚亲手体会了 1997 年 IBM 工程师省电费的方式。深蓝每秒翻两亿个局面;你的浏览器刚刚翻了几万个,原理相同。
通向 → 深蓝(翻树+人写打分)AlphaGo(打分改成学的+自弈)o1(树内化成文字草稿)
实验三

显影台 · 扩散-nano

✓ 已触摸

你在造:去噪过程的手动版。扩散模型训练时学「退一步噪声」,生成时从纯噪声一步步接回清晰——清晰度轴上的接龙。这里由你的手代替神经网络,亲自当一次「退一步」。

1.00

真实扩散模型里,不同噪声底片会显影出不同的图——因为「退一步」是神经网络猜出来的,不是抄底片。这台 nano 只演示轨迹,不演示想象力;想象力在未来的「补充构建」里。

齿感点:把滑块拖到中间停住——半成品既像噪声又像图。Stable Diffusion 生成一张图的每一个中间步,都长这样;采样步数(20 步、50 步)就是这根滑块被分成几格。
通向 → DDPMStable Diffusion(在压缩过的小图上做这件事)Sora(把时间也切成方块)
实验四

账单台 · 前缀缓存算盘

✓ 已触摸

你在造:agent 经济学的账本。接龙者读上文前要逐字做笔记(KV);相同前缀 ⇒ 笔记逐字节相同 ⇒ 存档免重算。它不改变接什么,只改变算不算——却决定了 agent 产品存不存在。

无缓存
有缓存
无缓存(累计成本≈平方增长)  有缓存(≈线性)

假设持续对话、全部命中缓存;示例单价 $3/百万 input token,写入 1.25×,读取 0.1×。成本没有消失,换成了四样东西:仓储租金、搬运带宽、调度复杂度、显存机会成本。

齿感点:把轮数从 10 拖到 100,盯着右图两条曲线分道扬镳——这就是「无缓存平方、有缓存线性」的肉身。再把固定前缀拉满:前缀越大,缓存越值钱。全部缓存工程学一句话:不变的放前面
通向 → Claude Code 的账单vLLM · PagedAttention任何 AI 网关的缓存计费
实验五

感知机训练台 · 1958

✓ 已触摸

你在造:第一个能学的打分器。ŷ = step(w₁x₁ + w₂x₂ + b),判错就把权重朝样本拨一格:w += lr·(y−ŷ)·x。六原语里的「学习」本身,在这里第一次可见——连同它 1969 年撞上的那堵墙。

0.10
w₁ 0.00   w₂ 0.00   b 0.00
已喂样本 0   当前错分 / 10
齿感点:把学习率拧到 1 再连喂样本——线开始跳舞,不收敛;拧回 0.1,它慢,但稳。你刚才体会的,就是全部炼丹师的日常。
通向 → AlexNet(同一原语,深一千倍)价值网络(给棋盘打分)奖励模型(给回答打分)
实验六

偏好炼金炉 · RLHF

✓ 已触摸

你在造:RLHF 的全链路缩影。实验一的接龙机生成两段短句,你点更喜欢的那段;点选被炼成一个线性奖励模型 R(s)=Σ w[c]·count(s,c),再以 p(c) ∝ count·e^{β·w[c]} 反过来改变接龙的口味——整个循环就发生在你手里,零网络请求。

已投喂 0 对偏好
0.80
对照:固定基准上文「能」(语料里它后面出现过:真 / 够 / 计 / 造),左边是调教前的原始概率,右边是被你的偏好改写后的概率。
调教前(β=0)
调教后(当前 β)
齿感点:连续 10 次都选带「造」字的那段,再看对照图——「造」的条长出来了。你刚才做的事,标注公司按小时收费,名字叫 RLHF 第一步。
通向 → InstructGPT(同一配方,奖励模型换成神经网络)ChatGPT每一次你给 AI 点的赞
实验七

对抗擂台 · GAN

✓ 已触摸

你在造:一场真实的军备竞赛。真分布 N(2, 0.5);造假者 G(1-8-1 网络)把均匀噪声捏成数,鉴定师 D(1-8-1 网络)判真假——两张网的前向与反向传播全部手写,就在这一页里逐步互卷。没有人教 G「2 在哪」,鉴定师的打分就是全部地图。

真样本(墨,μ=2)  G 的伪造(朱)——重合处自然叠深
步数 0   鉴定师准确率   交付均值(EMA) / 真相 2.00

如实标注:训练用最朴素的 SGD,live 曲线天然振荡;「交付均值」读的是权重滑动平均(EMA)生成器——StyleGAN 们交付推理时的同款惯例。

副玩法 · 你当鉴定师:这个字是真迹还是伪作?
齿感点:盯住直方图 60 秒:朱色山峰爬向墨色山峰——没有人教它 2 在哪,鉴定师的打分就是全部地图。再把「攻守失衡」拉满等一会儿:D 追不上 G,朱峰塌成一根针——那就是「模式崩塌」,它源于失衡,不是速度。
通向 → GAN(这套对局的原版)StyleGAN(卷到假脸不可辨)R1-Zero(自弈的语言版)

第三课 · 配方图鉴

七十年编年史,70 份配方

本表更新至 2026-07 · 暂章条目逐月复审

每条 = 年份 + 配方(原语组合)+ 印章分级。点击条目展开细节,展开里有「读本详解」直达中英双语深读版的对应小节;点击配方里的原语章,按原语筛选。分级本就该被争论——每一次推翻,都是一次新的构建。

航线
级别
原语
图例: 革命 · 关键 · 重大 · 跨越

第四课 · 全图规律

六条律,替你记住整张图

律 一

接龙吃掉一切序列

词、棋步、采样点、图块、时空块、清晰度档位……原语从未变,变的只是「什么算一个字」。所以各模态的决战,其实都是词表(tokenizer)之战。

律 二

搜索的内化史

三代人机对弈,是同一件事被逐步收进模型体内:

深蓝 · 树在引擎里,打分人写 AlphaGo · 打分学出来 o1 · 树变成自己的草稿

外挂 → 混合 → 内功。

律 三

自产数据的轮回

TD-Gammon(1992)→ AlphaGo Zero(2017)→ R1-Zero(2025):奖励可机器判定处,数据无限自产。反之,只能人判的地方(审美、对话)数据永远稀缺——这就是推理模型先攻数学与代码的结构性原因。

律 四

壹级的构成

要么新学习原语(反向传播),要么新引擎(Transformer),要么新 scaling 轴(GPT-3 的训练轴、o1 的推理轴),要么点火时刻(AlexNet、AlphaGo)。纯组合永远到不了技术壹级——但能到产品壹级(ChatGPT)。

律 五

技术分 ≠ 产品分

ChatGPT 技肆/产壹,深蓝 技叁/文壹,Stable Diffusion 技叁/生态贰。创业机会密集分布在「技叁肆 × 产壹贰」的象限——卖铲子的数学基础,就是这个级差。

律 六

基准是隐形贰级

ImageNet → HumanEval → SWE-bench:定义考题者定义进化。造基准比造模型便宜三个数量级,杠杆却不小——这是全表里最适合 DIY 的物种。


补充构建 · 预告

下一批实验台,砖已备好

每台对应一个尚未上手的原语或旋钮。占位即承诺:齿感清单先立在这里。

补充构建中

注意力显微镜

逐字看 Q 如何对暗号、按匹配度抄走谁的 V——翻开接龙者的笔记本(KV)。

摸的是:注意力与缓存的物理 · 原语【接龙】内部
首期实验 · 人工处理

报名极简 AI 课(限 10 席)

留下联系方式和你想了解的问题。我们会尽快联系你,并一并回答问题;后续进度和人工回复可以回到这里查询。

Ferry Salon · Minimal AI Course · Build Zero

One autocomplete loop explains seventy years of AI.

No vocabulary worship. We rebuild the recipes. Six primitives, three knobs, and four touchable labs explain the line from Deep Blue to Sora.

6primitives
3knobs
8hands-on labs
70graded recipes
70years mapped
MAKEThis page is already a minimal real build.

Lesson Zero · Method

Understanding means being able to rebuild.

Vico said we truly know what we make; Feynman left the same rule on the blackboard. This course turns that rule into a loop: imagine the build, make the smallest working version, then feel the gears with your own hands.

V

Virtual Build

Reconstruct a product in your head and keep only the load-bearing decisions. The output is not an opinion; it is a falsifiable checklist.

M

Minimal Real Build

Compress the recipe until it can run in a browser. Each miniature keeps the same principle as the real system, minus several orders of magnitude of compute.

T

Tactile Interaction

Turn the temperature, disable pruning, drag the denoising step, stretch the cache bill. Abstractions become intuition only after they push back.

Hypothesis → build → tactile correction → better hypothesis → ...


Lesson One · The Parts Box

Six primitives, one family tree.

AI history is the invention of primitives, the recombination of primitives, and the moment one primitive finally receives enough data and compute.

Lookup
Human-written rules, machine execution, no learning.
ELIZA · expert systems · hand-coded evaluation tables
Scoring
Any input becomes a number.
AlexNet · value networks · reward models
Tree Search
Enumerate possible futures, score them, then choose a route.
Deep Blue · MCTS · Lab Two
Autocomplete
Given context, emit the next symbol. The tokenizer decides what counts as a symbol.
GPT · WaveNet · Sora space-time patches
Denoising
Autocomplete along the clarity axis, from noise toward image.
DDPM · Stable Diffusion · Lab Three
Self-play
Become your own training partner and manufacture data.
GAN · AlphaGo Zero · R1-Zero

Three knobs for the autocomplete era

Training knobWhat feedback changes the model's taste? corpus → RLHF → RLVR
Context knobWhat is on the table before the next token? prompt → retrieval → cache → compression
Loop knobWhat happens after the token? display → execute → while loop

Lesson Two · Labs

Eight recipes you can touch.

LAB 1

Character Autocomplete

Build a character-level n-gram language model. Turn the temperature down and it recites; turn it up and it starts hallucinating. Shorten the context window and meaning breaks.

Tactile point: this is the smallest honest version of GPT-style next-token prediction.
LAB 1+

Real-Model Duel

Your n-gram and a real LLM (live logprobs through the gateway) share one context, one temperature knob, and one probability-bar UI. Same bars, a hundred-million-times more corpus.

Tactile point: at temperature 1.8 the nano collapses first; the real model still holds grammar. That is what the corpus bought.
LAB 2

Deep Blue Nano

Play against minimax search with alpha-beta pruning. Disable pruning and watch the number of searched positions jump.

Tactile point: you feel how engineers made brute force affordable.
LAB 3

Diffusion Nano

Move along the noise-to-image axis by hand. A real diffusion model learns the same backward step, then repeats it.

Tactile point: every image-generation sampling step lives somewhere on this slider.
LAB 4

Prefix-cache Ledger

Drag prefix length and conversation rounds. Without caching the bill grows roughly quadratically; with caching it approaches a line.

Tactile point: agent economics starts with one rule: put the stable text first.
LAB 5

Perceptron Trainer

Watch the 1958 machine learn AND and OR one error at a time — then hit the 1969 Minsky wall on XOR, and see one extra layer bend the boundary.

Tactile point: learning rate 1 makes the line dance; 0.1 makes it settle. That is every trainer's daily life.
LAB 6

Preference Forge (RLHF)

Pick the sentence you prefer; your clicks are distilled into a linear reward model that bends the n-gram's taste. Watch the before/after probability bars diverge.

Tactile point: pick the "造"-flavored sentence ten times in a row — its bar grows. Annotation firms charge by the hour for what you just did.
LAB 7

Adversarial Arena (GAN)

A hand-written 1-D GAN trains live in your browser: the forger's red hill crawls toward the real ink hill, guided only by the appraiser's score. Then judge real-vs-fake glyphs yourself, and max the learning rate to witness mode collapse.

Tactile point: nobody told G where 2 is. The appraiser's score is the entire map.

Lesson Three · Recipe Atlas

Seventy years, seventy recipes.

Each entry in the Chinese interactive atlas is a year, a primitive mix, and a grade. Entries from the last two years carry a "provisional" seal, to be re-graded once time has voted. The point is not to memorize the table. The point is to learn to ask: which primitive changed, which knob moved, and which benchmark made the change visible? For the full seventy-entry annotated chronicle in English, open the Reader.

Symbolic line

ELIZA, expert systems, and hand-coded rules show how far lookup tables can go before they hit the wall of brittleness.

Game line

Deep Blue externalized search; AlphaGo learned the scorer; o1-like systems internalized search as written scratchwork.

Language line

Transformers turned sequence prediction into a scaling engine; ChatGPT turned the engine into a product interface.

Image and video line

Denoising made image generation tactile; video adds time to the same clarity-axis story.

Code line

HumanEval, SWE-bench, MCP, and agent loops turn language models from talkers into tool-using workers.

Infrastructure line

Attention, KV cache, routing, and pricing decide which products can exist at all.

World line

Robot VLA models put physical actions into the vocabulary; Genie-class world models make generated video interactive. Law 1's newest battlefield.


Lesson Four · Laws

Six laws for remembering the map.

LAW 1

Autocomplete eats every sequence.

Words, moves, samples, image patches, video blocks: the primitive stays the same while the token changes.

LAW 2

Search keeps moving inward.

External engine, learned scorer, internal scratchpad. The same pattern reappears across games, code, and reasoning.

LAW 3

Machine-judged reward creates infinite data.

TD-Gammon, AlphaGo Zero, and R1-Zero all exploit domains where answers can be checked automatically.

LAW 4

Benchmarks steer evolution.

ImageNet, HumanEval, and SWE-bench are not just tests; they are tracks that decide where systems run.

LAW 5

Technical grade and product grade diverge.

Some breakthroughs are engines. Some are interfaces. The best products often live in the gap between the two.

LAW 6

Build to understand.

A small working model beats a large pile of vocabulary. Make it tiny, then make it true.

Cohort · Human Review

Apply for the Minimal AI Course

Leave a contact method and the questions you care about. We will contact you soon and answer them together.