Decoding Policies in a Serving Engine

Adrian Tam · 2026年11月22日

AI 摘要 AI 生成,可能有误

本文概述了一篇关于 vLLM 服务引擎中解码策略的六部分系列文章,该引擎将模型执行与 token 选择分离开来。涵盖的主题包括采样过滤器与每个 token 的处理工作、多输出与束搜索、停止条件与请求生命周期、结构化输出,以及考虑运行时成本的批处理。

Overview This post is divided into six parts; they are: • Running Decoding Policies with vLLM • Sampling Filters and Per-Token Work • Multiple Outputs and Beam Search • Stop Conditions and Request Lifetime • Structured Outputs • Batching and Runtime Cost Running Decoding Policies with vLLM vLLM separates model execution from token selection.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Machine Learning Mastery

Build a Lightweight LLM Evaluation Harness in Python

In this article, you will learn how to build a lightweight, reusable LLM evaluation harness in Python that combines exact-match scoring, an LLM-as-a-judge, and versioned...

Anatomy of an LLM Serving Engine

Overview This post is divided into four parts; they are: • The Request Path • A Minimal Asynchronous Engine • Cancellation, Backpressure, and Failure • Metrics and Production Interfaces The Request Path A text-generation workflow from reque

LLM Inference Engineering Roadmap

Decode sits on the left.

Building an MCP Client in Python from Scratch

In this article, you will learn how to build a working MCP client in Python with the official MCP Python SDK 2.0, connect it to...

Long-Context Inference

AI 摘要The article discusses long-context inference, structured in four parts: the cost of a long context, chunked prefill, managing long-lived KV state, and selecting useful context. It begins by explaining that for full causal attention over a prompt of N tokens, prefill attention computes a triangular portion of an N×N score matrix.