Event ·Single source

斯坦福 CS336 第 10 讲:从数学主线讲透 LLM 推理优化

斯坦福 CS336「Language Modeling from Scratch」第 10 讲由 Percy Liang 讲解 Inference,位于 Scaling Laws 两讲之间。讲义以可执行的 sympy 推导形式,沿“自回归无法并行→算术强度低→memory-bound→减少每步搬运字节数”这条链路展开。内容覆盖架构层的 GQA/MLA/量化/剪枝、算法层的投机采样、系统层的连续批处理/分页/前缀共享。Percy 结尾指出 KV cache 是 Transformer 对推理不友好的结构性根源,从第一天为推理设计的架构(SSM、线性注意力、扩散式生成)可能是最大改进空间。视频与讲义均已公开。

Current read

Percy Liang 把 KV cache、GQA、投机采样这些推理优化串成一条数学主线,讲义公式全用 sympy 可验证,想搞懂推理为啥慢的必看。

2 sources52° AI heatLast updated 2026/10/18 12:59:57

Evidence

2 sources
Related source 1arXiv cs.LG
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.