<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Ai-Infra on k4i's blog</title><link>https://k4i.top/tags/ai-infra/</link><description>Recent content in Ai-Infra on k4i's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>sky_io@outlook.com (K4i)</managingEditor><webMaster>sky_io@outlook.com (K4i)</webMaster><copyright>All content is subject to the license of &lt;a rel="license noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank"&gt;CC BY-NC-SA 4.0&lt;/a&gt; .</copyright><lastBuildDate>Thu, 04 Jun 2026 22:10:00 +0800</lastBuildDate><atom:link href="https://k4i.top/tags/ai-infra/index.xml" rel="self" type="application/rss+xml"/><item><title>vLLM / SGLang Source Reading: From Request to Forward Pass</title><link>https://k4i.top/posts/vllm-sglang-source-reading/</link><pubDate>Thu, 04 Jun 2026 22:10:00 +0800</pubDate><author>sky_io@outlook.com (K4i)</author><atom:modified>Fri, 05 Jun 2026 00:26:17 +0800</atom:modified><guid>https://k4i.top/posts/vllm-sglang-source-reading/</guid><description>&lt;p&gt;This series is for source reading and engineering follow-through. The goal is not to translate files line by line, but to locate core inference-engine mechanisms in real code paths and verify their behavior with benchmarks or small experiments.&lt;/p&gt;
&lt;h2 id="reading-order"&gt;Reading Order&lt;/h2&gt;
&lt;p&gt;Planned posts will follow the request lifecycle:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Request lifecycle: from OpenAI API to one forward pass&lt;/li&gt;
&lt;li&gt;Scheduler loop: waiting queue, running queue, token budget, and decode priority&lt;/li&gt;
&lt;li&gt;vLLM Block Manager: from logical blocks to physical KV blocks&lt;/li&gt;
&lt;li&gt;SGLang Radix Cache: why prefix reuse wants a tree&lt;/li&gt;
&lt;li&gt;What a prefix cache hit actually saves&lt;/li&gt;
&lt;li&gt;Chunked prefill parameters, scheduling branches, and benchmarks&lt;/li&gt;
&lt;li&gt;Why structured output / FSM decoding is a strong SGLang use case&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="format"&gt;Standard Format&lt;/h2&gt;
&lt;p&gt;Each source-reading post should answer four questions:&lt;/p&gt;</description><dc:creator>K4i</dc:creator><media:content url="https://k4i.top//images/posts/vllm-sglang-source-reading/source-reading-code-path-icon.svg" medium="image"><media:title type="html">featured image</media:title></media:content><category>llm</category><category>inference</category><category>vllm</category><category>sglang</category><category>source-reading</category><category>ai-infra</category><category>AI</category><category>vLLM and SGLang Source Reading</category></item></channel></rss>