<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Inference on Pratik Patre</title>
    <link>https://pbpatre.github.io/tags/inference/</link>
    <description>Recent content in Inference on Pratik Patre</description>
    <image>
      <title>Pratik Patre</title>
      <url>https://pbpatre.github.io/images/og-image.jpg</url>
      <link>https://pbpatre.github.io/images/og-image.jpg</link>
    </image>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 20 Mar 2024 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://pbpatre.github.io/tags/inference/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Prefill vs Decode: The GPU Scheduling Trade-off in LLM Inference</title>
      <link>https://pbpatre.github.io/deep-ml-systems/prefill-vs-decode-gpu-scheduling/</link>
      <pubDate>Wed, 20 Mar 2024 00:00:00 +0000</pubDate>
      <guid>https://pbpatre.github.io/deep-ml-systems/prefill-vs-decode-gpu-scheduling/</guid>
      <description>A 50-token chat question should prefill in 2 ms. In bimodal production traffic, P99 TTFT spikes to 56 ms — a 216% penalty from a single long RAG request arriving one millisecond earlier. The GPU scheduler is forced to choose between responsiveness and throughput, and uniform benchmarks hide the collision entirely.</description>
    </item>
    <item>
      <title>The Preprocessing Barrier (Part 2): How Preprocessing Starves Your GPUs</title>
      <link>https://pbpatre.github.io/deep-ml-systems/preprocessing-barrier-part-2/</link>
      <pubDate>Mon, 12 Feb 2024 00:00:00 +0000</pubDate>
      <guid>https://pbpatre.github.io/deep-ml-systems/preprocessing-barrier-part-2/</guid>
      <description>nvidia-smi reads 95% GPU utilization while throughput stays flat and latency degrades 18×. Decoupling preprocessing from the inference loop recovered 40% of GPU capacity the monolithic architecture was leaving on the table.</description>
    </item>
    <item>
      <title>The Preprocessing Barrier in LLM Inference</title>
      <link>https://pbpatre.github.io/deep-ml-systems/preprocessing-barrier-in-llms/</link>
      <pubDate>Mon, 15 Jan 2024 00:00:00 +0000</pubDate>
      <guid>https://pbpatre.github.io/deep-ml-systems/preprocessing-barrier-in-llms/</guid>
      <description>A Jinja2 template loop takes 7% of single-request latency. At production concurrency, it becomes the throughput ceiling — Python&amp;#39;s GIL serializes the one stage nobody thought to benchmark.</description>
    </item>
  </channel>
</rss>
