▶ 原文链接

推理工程大师课 — Philip Kiely 与 Ali Taha, Baseten

来源: Latent Space | Philip Kiely & Ali Taha | Aug 03, 2026
播客: Latent Space 分类: AI 资讯
原文发表: Aug 03, 2026
纪要生成: 2026-08-10


全集重点


嘉宾/话题简介

Philip Kiely 是 Baseten 的核心团队成员,同时也是《Inference Engineering》一书的作者。Ali Taha(ID“Waterloo intern”)是 Baseten 的研究实习生,深度参与模型量化、投机解码和视频扩散等前沿推理优化工作。本期节目两位专家携手 Swyx 与 Vibhu,以高密度的技术细节描绘了从用户发出一个 200K token 请求开始,到底层 GPU 内核、硬件架构、模型持续学习的全链路推理工程全景。


分节详述

00:00:00 Introduction and the 200K-Token Prompt

本节重点

详细精要

💬 精华片段(中文)

"We want to send this one to something with, number one, available prefill workers, and number two, ideally some cached input already there so that we can skip prefill on at least part of these two hundred thousand tokens."
“我们要把它路由到一个既有空闲预填 worker,又最好已经缓存了部分输入的地方,这样至少能跳20万 token 中的部分预填。”


00:03:18 Dedicated Deployments, Speculative Decoding, and Tool Calling

本节重点

详细精要

💬 精华片段(中文)

"The LLM is not capable of doing anything. It’s only capable of making suggestions of what to do and then if those suggestions are formatted in a certain way and applied to a system that knows what to do with them, then an action occurs."
“LLM 本身做不了任何事。它只能给出做什么的建议,然后只有当这些建议被格式化成特定方式,并被一个知道怎么执行它们的系统所应用时,动作才会发生。”


00:11:26 Launching Production-Ready Open Models

本节重点

详细精要

💬 精华片段(中文)

"The brain is frozen and the eyes are frozen. It’s just we’re trying to align the interconnect between the eye and the brain."
“大脑(LLM权重)是冻结的,眼睛(视觉编码器)也是冻结的。我们只是在训练连接眼睛和大脑之间的投影器。”


00:19:06 Model Retrofits, Failure Modes, and Nondeterminism

本节重点

详细精要

💬 精华片段(中文)

"The KV cache transfer from a node to node in that one cluster is using a slower interconnect than the node to node in another cluster. So that exposes the race, whereas in another cluster it doesn't."
“某一个集群内节点间的 KV 缓存传输用的互连速度比其他集群更慢,这就暴露了竞态,而在另一个集群里则不会。”


00:28:22 Quantization and Canceling Errors

本节重点

详细精要

💬 精华片段(中文)

"It is very possible that the model in which I quantized more information is going to perform better because the quantization errors have canceled out."
“量化了更多信息的模型完全可能表现更好,因为那些量化误差彼此抵消了。”


00:32:15 The Race to 10× Faster Inference

本节重点

详细精要

💬 精华片段(中文)

"When we publish optimizations, it’s 20%, it’s 100% it’s 200%. So there’s still probably like a lot further to go."
“我们发布优化成果时,常常是 20%,100% 乃至 200%。所以可挖掘的空间还非常非常大。”


00:40:48 Dynamo, Speculation, and Local vs. Data-Center AI

本节重点

详细精要

💬 精华片段(中文)

"With local AI, it’s how do I fit this model onto my hardware and then make it less dumb? And with data center inference, it’s how do I load this model and then make it less slow?"
“对本地 AI,问题是我怎么把模型塞进硬件,然后让它别太笨?对数据中心推理,问题是我怎么加载这个模型,然后让它别太慢?”


00:50:18 Model Parallelism, Auto-Tuning, and Mega Kern详细精要

💬 精华片段(中文)

"The GPU is designed in such a way that it kills mega kernels. You don’t need to use mega kernels that much anymore."
“GPU 本身的设计就消灭了超级内核。你已经不太需要再去融合内核了。”


01:00:55 Rubin, GPUs vs. ASICs, and Custom AI Chips

本节重点

详细精要

💬 精华片段(中文)

"Compared to Ampere or a T4, Rubin is an ASIC. It’s just a thing that is used — it has systolic arrays and tensor cores that are almost exclusively useful for loading model weights."
“跟 Ampere 或 T4 相比,Rubin 就是个 ASIC。它的脉动阵列和张量核心几乎完全就是为了加载模型权重而存在的。”


01:10:03 Giant Models and the Limits of GPU Memory

本节重点

详细精要

💬 精华片段(中文)

"You don’t gotta have a save Llama 3 movement. You just gotta have an H100 somewhere."
“你不需要发起‘拯救 Llama 3’运动,你只需要在某个角落里还有一台 H100。”


01:12:42 AI Video, Quadratic Attention, and Autoregressive Generation

本节重点

详细精要

💬 精华片段(中文)

"With video, there is no sequential. The pixel in the top left corner and the pixel in the bottom right corner, they both need to attend to each other to understand how the video quality is gonna be almost as equally."
“视频没有先后之分。左上角的像素和右下角的像素几乎同等重要地需要互相关注,才能知道视频的整体质量。”


01:21:47 Audio, Images, and Diffusion Models

本节重点

详细精要

💬 精华片段(中文)

"I've done a lot of LLM sonnets... even models today don’t get the syllables right. And if you can attend across all of the different tokens, you can get the syllables right."
“我用 LLM 写过很多十四行诗……即使是现在的模型也搞不对音节数。而如果能同时关注所有 token,就能把音节数做对。”


01:27:32 Training, Self-Optimizing Models, and Continual Learning

本节重点

详细精要

💬 精华片段(中文)

"We had literally GLM-5.2 optimizing GLM-5.2. Some of the GPU kernels within our inference engine are written by GLM-5.2, and the trace and kernels were guided by GLM-5.2 as the driver."
“我们真的让 GLM-5.2 去优化 GLM-5.2。我们推理引擎里的某些 GPU 内核就是 GLM-5.2 自己写的,剖析路径和内核代码全由它驱动。”


01:40:06 Closing Thoughts

本节重点

详细精要

💬 精华片段(中文)

"If someone were to figure out faster NICs, it would literally be like two orders of magnitude faster to do decode."
“要是有人能把网卡做得更快,解码速度直接就是两个数量级的提升。”


专业术语注释

术语 解释
KV 缓存 推理时为避免重复计算,将自注意力层中已计算过的键-值对存储下来,供后续 token 生成的缓存结构。
预填/解码分离 将推理过程拆分为两个阶段:预填阶段用高并行处理输入创建 KV 缓存,解码阶段用低延迟逐 token 生成,二者常在不同 GPU 上运行。
投机解码 用一个轻量小模型快速预测多个未来 token,再由大模型一次性验证,加速自回归生成的技术。
NVFP4 NVIDIA Blackwell 架构支持的低精度浮点数格式,每个参数仅占半字节,极大节省显存带宽。
动态量化 在推理过程中根据输入动态选择量化参数的技术,多用于本地设备,数据中心较少使用。
GQA 分组查询注意力,通过减少注意力头共享的 key/value 投影来降低 KV 缓存大小,提升吞吐。
MoE 混合专家模型,由多个子网络(专家)和路由模块构成,每次推理仅激活部分专家以节约算力。
张量并行 将单层权重切分到多张 GPU,每步计算后需聚合部分结果,高度依赖 GPU 间高速互连。
专家并行 在 MoE 模型中将不同专家完整放置于不同 GPU,路由复制到每张卡,减少跨 GPU 通信。
流水线并行 将模型按层拆分到不同节点顺序执行,仅在模型太大单卡装不下且互连速度不足以张量并行时使用。
超级内核 将多个 GPU 微内核融合成一个大内核以减少启动开销的理念,因硬件趋势和开发难度受质疑。
Dynamo NVIDIA 开源分布式推理框架,主要解决集群内 KV 缓存卸载、转移和缓存感知路由问题。
Rubin NVIDIA 计划中的下一代 GPU 架构,强调系统级互连和 CPU-GPU 协同。
ASIC 专用集成电路,相对 GPU 牺牲通用性以换取特定负载的极限性能和能效。
平方注意力 Transformer 注意力机制的 O(n²) 复杂度,在长序列或高帧率视频下成为核心计算瓶颈。
自回归视频模型 像语言模型一样逐帧生成视频的架构,可流式输出但当前画质较差。
扩散模型 通过逐步去噪生成数据,能够同时关注全体信息,在图像/视频领域占据主导。
KL 散度 衡量两个概率分布差异的指标,文中用于比对量化模型与全精度模型的 logits 分布相似度。
量化感知蒸馏 训练中让全精度教师模型指导低精度学生模型,使后者在量化后仍保持教师模型的行为分布。
KV 缓存压缩 对长对话历史的关键-值缓存进行总结或裁剪,在有限显存中保留尽可能多的上下文信息。

延伸思考

原文发表:Aug 03, 2026  ·  纪要生成:2026-08-10