<?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>Latency on k4i's blog</title><link>https://k4i.top/tags/latency/</link><description>Recent content in Latency 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>Wed, 22 Apr 2026 11:00:00 +0800</lastBuildDate><atom:link href="https://k4i.top/tags/latency/index.xml" rel="self" type="application/rss+xml"/><item><title>Chunked Prefill: Slicing the Prefill to Protect Decode Latency</title><link>https://k4i.top/posts/chunked-prefill/</link><pubDate>Wed, 22 Apr 2026 11:00:00 +0800</pubDate><author>sky_io@outlook.com (K4i)</author><atom:modified>Sun, 26 Apr 2026 16:08:06 +0800</atom:modified><guid>https://k4i.top/posts/chunked-prefill/</guid><description>&lt;h2 id="interference"&gt;the interference problem&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://k4i.top/posts/continuous-batching/"&gt;continuous batching&lt;/a&gt; keeps the GPU busy by scheduling at iteration granularity. but one edge case breaks the latency story: &lt;strong&gt;long prefills&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;when a request arrives with a 2048-token prompt, the scheduler runs it through prefill in a single iteration. on an A100, a 2048-token prefill for a 7B model takes roughly 200 ms. all the decode requests already in the batch are blocked for the entire duration.&lt;/p&gt;</description><dc:creator>K4i</dc:creator><media:content url="https://k4i.top//images/posts/chunked-prefill/cover.svg" medium="image"><media:title type="html">featured image</media:title></media:content><category>llm</category><category>inference</category><category>systems</category><category>latency</category><category>scheduling</category><category>AI</category><category>LLM Inference Internals</category></item></channel></rss>