<script data-pm-proxy="intercept"></script><?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[AI inference, AI Optimizations & Evals-How it Actually Works]]></title><description><![CDATA[Everything you need to know about AI inference, AI optimizations and AI evals. Demystifying how models actually generate tokens at scale—from KV-caching and speculative decoding to vLLM etc. AI Optimizations: speed and efficiency. Take a deep dive with us]]></description><link>https://aiinferenceandoptimizations.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!cDo6!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F729d2b28-b5ab-4af6-a495-ecbfed7d1ab8_1280x1280.png</url><title>AI inference, AI Optimizations &amp; Evals-How it Actually Works</title><link>https://aiinferenceandoptimizations.substack.com</link></image><generator>Substack</generator><lastBuildDate>Sat, 05 Sep 2026 00:23:46 GMT</lastBuildDate><atom:link href="/__u/aiinferenceandoptimizations.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Naina Chaturvedi]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[aiinferenceandoptimizations@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[aiinferenceandoptimizations@substack.com]]></itunes:email><itunes:name><![CDATA[Naina Chaturvedi]]></itunes:name></itunes:owner><itunes:author><![CDATA[Naina Chaturvedi]]></itunes:author><googleplay:owner><![CDATA[aiinferenceandoptimizations@substack.com]]></googleplay:owner><googleplay:email><![CDATA[aiinferenceandoptimizations@substack.com]]></googleplay:email><googleplay:author><![CDATA[Naina Chaturvedi]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[[Important AI Inference Pulse #11] How LLMs Generate Tokens Faster: Speculative Decoding - How it Actually Works Explained in 10 Minutes]]></title><description><![CDATA[Deep dive into one of the most used word of the decade...]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-11-how</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-11-how</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Mon, 31 Aug 2026 13:37:06 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!uvS9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!uvS9!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!uvS9!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:772969,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/213545106?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!uvS9!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee4f1a7b-19de-48ea-a365-591588ad08fd_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>What if you could double your Large Language Model&#8217;s generation speed&#8212;or even triple your token throughput&#8212;without losing a single drop of output accuracy or reasoning capability?</em></p><p><em>The secret isn&#8217;t buying a bigger GPU cluster. It isn&#8217;t aggressively quantizing your model until its math capabilities degrade. The secret is an architectural paradigm shift called <strong>Speculative Decoding</strong>.</em></p><div class="pullquote"><div class="callout-block" data-callout="true"><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount">80% Off Mega Discount Code to celebrate 550000 reads and 5700 subscribers on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</a> : <a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205">Link</a></em></h4><h4><em>Access all Important AI inference Posts &#8212; Mega 80% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4></div><p><em><strong>Read Previous Top Posts &#8212;</strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p style="text-align: center;"><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-7-how?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">How GPU Actually Works - It&#8217;s not What You think : A Deep Dive</a></strong></em></p></div><p><em>In this deep dive, we open the engine bay of high-throughput AI serving infrastructure to break down:</em></p><ol><li><p><em><strong>The Memory Bandwidth Trap:</strong> Why 70B parameter LLMs leave GPU Tensor Cores at &lt;5% utilization.</em></p></li><li><p><em><strong>The Draft-and-Verify Architecture:</strong> How a tiny model guesses the future while a massive model verifies it in parallel.</em></p></li><li><p><em><strong>The Rejection Sampling Mathematical Proof:</strong> Why output quality remains 100% identical to target sampling.</em></p></li><li><p><em><strong>Tree-Based Speculation &amp; Dynamic Drafts:</strong> Maximize token acceptance using execution trees and attention masks.</em></p></li><li><p><em><strong>Production Implementation:</strong> Deploying speculative decoding with frameworks like vLLM and TensorRT-LLM.</em></p></li></ol><h2><em>1. The High-Stakes Problem: The Memory Bandwidth Trap</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!FhzW!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!FhzW!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:795445,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/213545106?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!FhzW!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9bee36d1-0b76-4809-b8f6-a8350318b05e_1024x559.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Every AI engineering team managing real-time LLM inference faces a frustrating paradox: <strong>Autoregressive generation is severely memory bandwidth-bound, not compute-bound.</strong></em></p><p><em>When generating text, an LLM outputs tokens sequentially&#8212;one single token at a time. To generate a single token from a 70-billion parameter model in FP16/BF16 precision (like Llama 3 70B):</em></p><p><em><span>Let&#8217;s take a deep dive &#8212;</span></em></p><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-11-how">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #10] Deep Dive - How KV Caching, LLM training, Inference, Costs Actually Work : Explained in 10 Minutes]]></title><description><![CDATA[Deep dive into one of the most used word of the decade...]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-10-deep</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-10-deep</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Fri, 28 Aug 2026 03:39:07 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!BhSn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="pullquote"><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!BhSn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!BhSn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em> </em></p><p><em>In this post we are going to see ( not read) how KV Caching, LLM training, Inference, Costs , LLMs actually work to understand AI inference better. Below are MUST watch 10 videos ( all explained in 10 minutes) in sequence ( thats all you need to get started with LLMs) you MUST watch to be able to make sure you understand LLMs well &#8212;</em></p><div class="callout-block" data-callout="true"><ul><li><p><strong>How KV Caching Actually Works: Why ChatGPT Costs Millions in VRAM Explained in 10 minutes</strong></p></li><li><p><em><strong>What Is a LLM, Really? Deep Dive-The Truth Behind ChatGPT, Claude &amp; Gemini : Explained in 10 minutes</strong></em></p></li><li><p><strong>Why LLMs Represent Everything as Vectors: Linear Algebra- Vectors and Arrays Explained in 10 minutes</strong></p></li><li><p><em><strong>What Is a Transformer: Deep Dive - The Architecture Powering ChatGPT, Claude &amp; Every LLM Explained</strong></em></p></li><li><p><strong>Transformer Components Deep Dive: How LLM Architecture ACTUALLY Works Explained in 10 minutes</strong></p></li><li><p><strong>Deep dive into Training vs Inference-Why LLM Inference Costs Millions of Dollars:Explained in 10 min</strong></p></li><li><p><em><strong>How Vocabulary Size Secretly Controls LLM Memory &amp; Cost Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How LLMs Split Words: BPE, WordPiece &amp; SentencePiece Explained : How Tokenizers ACTUALLY Work</strong></em></p></li><li><p><em><strong>Why LLMs Are Just Predicting One Word at a Time : How it actually works explained in 10 minutes</strong></em></p></li><li><p><em><strong>How AI Actually &#8220;Understands&#8221; Language: Embeddings Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How LLMs Actually Work: Tokens to Text Generation Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How vLLM Serves LLMs So Much Faster (Continuous Batching Explained) : How it actually works</strong></em></p></li><li><p><em><strong>GPU Inference Batching Explained: Why Your AI App Feels Slow - How it Actually Works</strong></em></p></li><li><p><em><strong>Inside an AI Chip: How GPUs Actually Run Neural Networks : The Hidden Hardware Behind Every AI Model</strong></em></p></li><li><p><em><strong>What Is a GPU, Really? (Not What You Think &#8212; Explained From Scratch)</strong></em></p><p></p></li></ul></div><div class="callout-block" data-callout="true"><h4><em>Access all Important AI inference Posts &#8212; Mega 80% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount">80% Off Mega Discount Code to celebrate 550000 reads and 5700 subscribers on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</a> : <a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205">Link</a></em></h4></div><h3>Now, Let&#8217;s take a Deep Dive &#8212;</h3><p><strong>Ever wondered why running large language models like ChatGPT or Claude costs millions of dollars in GPU hardware infrastructure1? The shocking truth lies in the "LLM inference memory paradox": without optimization, an AI generating text must redundantly recompute the exact same mathematical projections</strong></p><div id="youtube2-A42JmCnA3v8" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;A42JmCnA3v8&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/A42JmCnA3v8?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Ever wondered why tech giants are burning millions of dollars daily just to keep ChatGPT, Claude, and Llama running? While training a massive Large Language Model (LLM) gets all the hype for its eye-watering upfront hardware costs, the shocking reality is that LLM inference is a multi-billion-dollar trap.</strong></p><div id="youtube2-NyfPkweEYVY" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;NyfPkweEYVY&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/NyfPkweEYVY?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Have you ever wondered what actually happens inside the neural network of ChatGPT, Claude, or Llama the second you press enter1? This ultimate system design deep-dive strips away the hype to map out the exact mathematics, hidden operations, and weight matrices that power modern Large Language Models</strong></p><div id="youtube2-zUQpSeUYqaI" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;zUQpSeUYqaI&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/zUQpSeUYqaI?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Have you ever wondered how an AI like ChatGPT actually "knows" what you are saying when computers can only process raw numbers? It starts with a shocking system design paradox: to a neural network, raw integer token IDs like 5234 for "cat" are completely meaningless because sequential numbers carry zero mathematical context, placing "cat" right next to an unrelated word like "table".</strong></p><div id="youtube2-blZ9_6MzvPA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;blZ9_6MzvPA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/blZ9_6MzvPA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered if ChatGPT, Claude, or Gemini are actually thinking, or if we are just falling for a massive illusion? In this video, we pull back the curtain on large language models (LLMs) to reveal that these incredibly fluent systems do not have databases, do not look up facts, and do not possess a single ounce of human-like understanding.</strong></em> </p><div id="youtube2-RDoj7wfiTao" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;RDoj7wfiTao&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/RDoj7wfiTao?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered how ChatGPT, Claude, and GPT-4 actually turn your raw text prompts into human-like responses? It isn&#8217;t magic&#8212;it&#8217;s a single, mind-bending mathematical pipeline known as the Transformer architecture.</strong></em></p><div id="youtube2-4ATtAEFDpP4" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;4ATtAEFDpP4&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/4ATtAEFDpP4?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered what actually happens behind the screen when you prompt ChatGPT, GPT-4, Claude, or Gemini? Prepare to have your mind blown: Large Language Models (LLMs) do not read or understand a single word of human language. In this complete technical breakdown, we deconstruct the exact computational pipeline and open the &#8220;black box&#8221; of artificial intelligence to show how AI actually generates text.</strong></em></p><div id="youtube2--wyfIftBEfc" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;-wyfIftBEfc&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/-wyfIftBEfc?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div id="youtube2-lrcizRMTLME" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;lrcizRMTLME&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/lrcizRMTLME?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered how large language models (LLMs) like ChatGPT actually understand human language?</strong></em></p><div id="youtube2-KjxpfRB4Ees" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;KjxpfRB4Ees&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/KjxpfRB4Ees?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered how Large Language Models (LLMs) like ChatGPT actually generate text, and why they confidently make things up?</strong></em></p><div id="youtube2--gFJx3oSbDg" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;-gFJx3oSbDg&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/-gFJx3oSbDg?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered why state-of-the-art large language models (LLMs) like GPT-4, LLaMA, and BERT struggle with simple spelling, failing to count how many letters are in &#8216;strawberry&#8217;?</strong></em></p><div id="youtube2-xYuWCAj38nM" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;xYuWCAj38nM&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/xYuWCAj38nM?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered why some AI models burn through GPU memory and skyrocket in AI model training cost while others run blazing fast? It all comes down to a highly overlooked setting in Large Language Models (LLMs): vocabulary size.</strong></em></p><div id="youtube2-38coKspGtfs" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;38coKspGtfs&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/38coKspGtfs?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Deep dive into Training vs Inference-Why LLM Inference Costs Millions of Dollars:Explained in 10 min</strong></p><div id="youtube2-NyfPkweEYVY" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;NyfPkweEYVY&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/NyfPkweEYVY?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered why even the most powerful artificial intelligence models still suffer from massive lag under heavy traffic?</strong></em></p><div id="youtube2-hyKmt_md1Oo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;hyKmt_md1Oo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/hyKmt_md1Oo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Did you know that a single GPU running AI inference one request at a time is actually sitting idle and doing absolutely nothing over 85% of the time&#8212;even while it looks completely &#8220;busy&#8221;?</strong></em></p><div id="youtube2-W8K0iH2TMKA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;W8K0iH2TMKA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/W8K0iH2TMKA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Did you know that the entire modern artificial intelligence revolution&#8212;from your phone&#8217;s face recognition to the creation of ChatGPT&#8212;traces back to a single graduate student in 2012 who used just two consumer gaming graphics cards to obliterate the world&#8217;s most advanced AI research labs in a major computer vision competition?</strong></em></p><div id="youtube2-sGPdtpLjTtA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;sGPdtpLjTtA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/sGPdtpLjTtA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered why the world&#8217;s most advanced artificial intelligence runs on hardware that is technically &#8220;weaker&#8221;? While your CPU relies on a handful of highly sophisticated, powerful cores designed to handle complex, individual tasks, the secret behind NVIDIA dominance, ChatGPT, and every major AI breakthrough of the last decade lies in the mind-bending philosophy of parallel computing.</strong></em></p><div id="youtube2-GrGZ0ZyrWWo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;GrGZ0ZyrWWo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/GrGZ0ZyrWWo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p></p><p><em><strong>More Posts  and Implementations Coming soon!</strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p></div><div class="callout-block" data-callout="true"><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><div><hr></div><p><em>More Coming soon!</em></p><p><em><strong>Read More &#8212;</strong></em></p><p><em>Read and Access all the Top and Most Asked System Design Case Study Posts :</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!bBWc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!bBWc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-e1b?r=14q3sp">You Hit Upload &amp; 30 Seconds Later More than 1 Million People Can Watch It: TikTok&#8217;s Video Pipeline Processes Every Upload in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a1c?r=14q3sp">Millions of Packages: How Amazon Prime Delivery Routing Achieves Next-Day Perfection &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-59b?r=14q3sp">Millions of Swipes and Matches: How Tinder&#8217;s Real-Time Hidden Matchmaking Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-b75?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Is YouTube&#8217;s &#8220;Up Next&#8221; Loop Reading Your Subconscious? Inside the Deep Candidate Generation Architecture &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-9bc?r=14q3sp">How Does Facebook Memories Deep-Fetch a Single Photo From 15 Years Ago Out of Exabytes of Cold Storage&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-pulse-21-what-happens?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">What Happens When a Whole Country Tries to Stream the World Cup? How Disney+ Hotstar Scaled to Handle 50+ Million Concurrent Live Viewers - How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-4b7?r=14q3sp">Largest 31.4 TBPS DDoS Attack: How Does Cloudflare Stop the Internet from Attacks Melt Down? A Deep Dive into Cloudfare Massive Feat &#8212;How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-5fd?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">2 Billion Users : How WhatsApp Scales massively to Handle Billions of Messages With Tiny Engineering Team? &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-d38?r=14q3sp">Is Alexa Always Listening? How Alexa&#8217;s Processes Billions of Voice Streams in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-12d?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Dollars: How Zillow&#8217;s Zestimate Predicts Your House Price Accurately in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-5ca?r=14q3sp">2 Billion+ Daily Queries: How Facebook Graph Search Maps the Social World in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-ed3?r=14q3sp">Trillions of Queries: How Google&#8217;s Search &amp; PageRank Scales Exponentially &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a53?r=14q3sp">Is Your Car Learning From Other Cars? How Tesla&#8217;s Data Engine Ingests Petabytes of Edge Video to Train Autopilot &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1cb?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">How Facebook&#8217;s Notification Engine Decides When to Wake Up Your Phone &#8212; How Push Notifications Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1bf?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Where Does Your Voice Go When You Say Hey Siri - How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-09f?r=14q3sp">What Happens in the Microsecond After You Trade? How Robinhood Routes Millions of Orders Instantly in Real time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-de8?r=14q3sp">Is Your Phone Listening? How Meta Targets Ads in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-449?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Why Do Flight Prices Change Sharply When You Refresh? How Aggregators Cache Billions of Fares Without Dead Pricing &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse?r=14q3sp">Millions of Songs: How Spotify Decodes Your Favorite Songs and Builds Amazing Playlist in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-fb0?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Orders: How Uber Eats&#8217; Makes Money and ETA for Delivery in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed5?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Billions of Views: How TikTok&#8217;s Recommendation System Makes You Super Addicted&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Deliveries: How DoorDash&#8217;s Dynamic Delivery Fees Monetize Rain and Traffic and You Pay More &#8212;How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Massive Billions of Personalized Recommendations in Real-Time: How Instagram Scaling Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-a3b?r=14q3sp">100+ Million Requests per Minute: Amazon Shopping Cart System &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-0f3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Trillions of Edges: How Facebook&#8217;s EdgeRank Computes Friendships Instantly &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-764?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Listings: How Airbnb&#8217;s Semantic Search Understands What You Want &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-1-how-to-actually?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #1] How To Actually Build End-to-End Data Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-2-how-to-actually-c43?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #2] How To Actually Build End-to-End Machine Learning Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><span>Start System Design ( With all the case Studies) : </span><a href="https://medium.com/coders-mojo/complete-system-design-series-part-1-45bf9c8654bc">Start here</a></strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption"><em>AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</em></p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #9] Deep Dive - How LLMs, LLM Inference, GPU inference, Transformers Actually Work : Explained in 10 Minutes]]></title><description><![CDATA[Deep dive into one of the most used word of the decade...]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-9-deep</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-9-deep</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Sat, 22 Aug 2026 03:41:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!ikfz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!ikfz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 424w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 848w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 1272w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!ikfz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:104926,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/212237659?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 424w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 848w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 1272w, /__u/substackcdn.com/image/fetch/$s_!ikfz!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99f8be81-eb54-4d71-a482-8807314b04fd_1024x559.webp 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="pullquote"><p><em> In this post we are going to see ( not read) how LLMs actually work to understand AI inference better. Below are MUST watch 10 videos ( all explained in 10 minutes) in sequence ( thats all you need to get started with LLMs) you MUST watch to be able to make sure you understand LLMs well &#8212;</em></p><div class="callout-block" data-callout="true"><ul><li><p><em><strong>What Is a LLM, Really? Deep Dive-The Truth Behind ChatGPT, Claude &amp; Gemini : Explained in 10 minutes</strong></em></p></li><li><p><em><strong>What Is a Transformer: Deep Dive - The Architecture Powering ChatGPT, Claude &amp; Every LLM Explained</strong></em></p></li><li><p><strong>Transformer Components Deep Dive: How LLM Architecture ACTUALLY Works Explained in 10 minutes</strong></p></li><li><p><strong>Deep dive into Training vs Inference-Why LLM Inference Costs Millions of Dollars:Explained in 10 min</strong></p></li><li><p><em><strong>How Vocabulary Size Secretly Controls LLM Memory &amp; Cost Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How LLMs Split Words: BPE, WordPiece &amp; SentencePiece Explained : How Tokenizers ACTUALLY Work</strong></em></p></li><li><p><em><strong>Why LLMs Are Just Predicting One Word at a Time : How it actually works explained in 10 minutes</strong></em></p></li><li><p><em><strong>How AI Actually &#8220;Understands&#8221; Language: Embeddings Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How LLMs Actually Work: Tokens to Text Generation Explained in 10 minutes</strong></em></p></li><li><p><em><strong>How vLLM Serves LLMs So Much Faster (Continuous Batching Explained) : How it actually works</strong></em></p></li><li><p><em><strong>GPU Inference Batching Explained: Why Your AI App Feels Slow - How it Actually Works</strong></em></p></li><li><p><em><strong>Inside an AI Chip: How GPUs Actually Run Neural Networks : The Hidden Hardware Behind Every AI Model</strong></em></p></li><li><p><em><strong>What Is a GPU, Really? (Not What You Think &#8212; Explained From Scratch)</strong></em></p><p></p></li></ul></div><div class="callout-block" data-callout="true"><h4><em>Access all Important AI inference Posts &#8212; Mega 80% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount">80% Off Mega Discount Code to celebrate 550000 reads and 5700 subscribers on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</a> : <a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205">Link</a></em></h4></div><h3>Now, Let&#8217;s take a Deep Dive &#8212;</h3><p><em><strong>Ever wondered if ChatGPT, Claude, or Gemini are actually thinking, or if we are just falling for a massive illusion? In this video, we pull back the curtain on large language models (LLMs) to reveal that these incredibly fluent systems do not have databases, do not look up facts, and do not possess a single ounce of human-like understanding.</strong></em> </p><div id="youtube2-RDoj7wfiTao" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;RDoj7wfiTao&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/RDoj7wfiTao?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered how ChatGPT, Claude, and GPT-4 actually turn your raw text prompts into human-like responses? It isn&#8217;t magic&#8212;it&#8217;s a single, mind-bending mathematical pipeline known as the Transformer architecture.</strong></em></p><div id="youtube2-4ATtAEFDpP4" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;4ATtAEFDpP4&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/4ATtAEFDpP4?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Have you ever wondered what actually happens inside the neural network of ChatGPT, Claude, or Llama the second you press enter1?</strong></p><div id="youtube2-zUQpSeUYqaI" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;zUQpSeUYqaI&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/zUQpSeUYqaI?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered what actually happens behind the screen when you prompt ChatGPT, GPT-4, Claude, or Gemini? Prepare to have your mind blown: Large Language Models (LLMs) do not read or understand a single word of human language. In this complete technical breakdown, we deconstruct the exact computational pipeline and open the &#8220;black box&#8221; of artificial intelligence to show how AI actually generates text.</strong></em></p><div id="youtube2--wyfIftBEfc" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;-wyfIftBEfc&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/-wyfIftBEfc?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered how large language models (LLMs) like ChatGPT actually understand human language?</strong></em></p><div id="youtube2-KjxpfRB4Ees" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;KjxpfRB4Ees&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/KjxpfRB4Ees?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered how Large Language Models (LLMs) like ChatGPT actually generate text, and why they confidently make things up?</strong></em></p><div id="youtube2--gFJx3oSbDg" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;-gFJx3oSbDg&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/-gFJx3oSbDg?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered why state-of-the-art large language models (LLMs) like GPT-4, LLaMA, and BERT struggle with simple spelling, failing to count how many letters are in &#8216;strawberry&#8217;?</strong></em></p><div id="youtube2-xYuWCAj38nM" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;xYuWCAj38nM&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/xYuWCAj38nM?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered why some AI models burn through GPU memory and skyrocket in AI model training cost while others run blazing fast? It all comes down to a highly overlooked setting in Large Language Models (LLMs): vocabulary size.</strong></em></p><div id="youtube2-38coKspGtfs" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;38coKspGtfs&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/38coKspGtfs?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><strong>Deep dive into Training vs Inference-Why LLM Inference Costs Millions of Dollars:Explained in 10 min</strong></p><div id="youtube2-NyfPkweEYVY" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;NyfPkweEYVY&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/NyfPkweEYVY?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Ever wondered why even the most powerful artificial intelligence models still suffer from massive lag under heavy traffic?</strong></em></p><div id="youtube2-hyKmt_md1Oo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;hyKmt_md1Oo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/hyKmt_md1Oo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Did you know that a single GPU running AI inference one request at a time is actually sitting idle and doing absolutely nothing over 85% of the time&#8212;even while it looks completely &#8220;busy&#8221;?</strong></em></p><div id="youtube2-W8K0iH2TMKA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;W8K0iH2TMKA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/W8K0iH2TMKA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Did you know that the entire modern artificial intelligence revolution&#8212;from your phone&#8217;s face recognition to the creation of ChatGPT&#8212;traces back to a single graduate student in 2012 who used just two consumer gaming graphics cards to obliterate the world&#8217;s most advanced AI research labs in a major computer vision competition?</strong></em></p><div id="youtube2-sGPdtpLjTtA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;sGPdtpLjTtA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/sGPdtpLjTtA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p><em><strong>Have you ever wondered why the world&#8217;s most advanced artificial intelligence runs on hardware that is technically &#8220;weaker&#8221;? While your CPU relies on a handful of highly sophisticated, powerful cores designed to handle complex, individual tasks, the secret behind NVIDIA dominance, ChatGPT, and every major AI breakthrough of the last decade lies in the mind-bending philosophy of parallel computing.</strong></em></p><div id="youtube2-GrGZ0ZyrWWo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;GrGZ0ZyrWWo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/GrGZ0ZyrWWo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p></p><p><em><strong>More Posts  and Implementations Coming soon!</strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p></div><div class="callout-block" data-callout="true"><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><div><hr></div><p><em>More Coming soon!</em></p><p><em><strong>Read More &#8212;</strong></em></p><p><em>Read and Access all the Top and Most Asked System Design Case Study Posts :</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!bBWc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!bBWc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-e1b?r=14q3sp">You Hit Upload &amp; 30 Seconds Later More than 1 Million People Can Watch It: TikTok&#8217;s Video Pipeline Processes Every Upload in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a1c?r=14q3sp">Millions of Packages: How Amazon Prime Delivery Routing Achieves Next-Day Perfection &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-59b?r=14q3sp">Millions of Swipes and Matches: How Tinder&#8217;s Real-Time Hidden Matchmaking Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-b75?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Is YouTube&#8217;s &#8220;Up Next&#8221; Loop Reading Your Subconscious? Inside the Deep Candidate Generation Architecture &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-9bc?r=14q3sp">How Does Facebook Memories Deep-Fetch a Single Photo From 15 Years Ago Out of Exabytes of Cold Storage&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-pulse-21-what-happens?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">What Happens When a Whole Country Tries to Stream the World Cup? How Disney+ Hotstar Scaled to Handle 50+ Million Concurrent Live Viewers - How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-4b7?r=14q3sp">Largest 31.4 TBPS DDoS Attack: How Does Cloudflare Stop the Internet from Attacks Melt Down? A Deep Dive into Cloudfare Massive Feat &#8212;How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-5fd?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">2 Billion Users : How WhatsApp Scales massively to Handle Billions of Messages With Tiny Engineering Team? &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-d38?r=14q3sp">Is Alexa Always Listening? How Alexa&#8217;s Processes Billions of Voice Streams in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-12d?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Dollars: How Zillow&#8217;s Zestimate Predicts Your House Price Accurately in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-5ca?r=14q3sp">2 Billion+ Daily Queries: How Facebook Graph Search Maps the Social World in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-ed3?r=14q3sp">Trillions of Queries: How Google&#8217;s Search &amp; PageRank Scales Exponentially &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a53?r=14q3sp">Is Your Car Learning From Other Cars? How Tesla&#8217;s Data Engine Ingests Petabytes of Edge Video to Train Autopilot &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1cb?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">How Facebook&#8217;s Notification Engine Decides When to Wake Up Your Phone &#8212; How Push Notifications Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1bf?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Where Does Your Voice Go When You Say Hey Siri - How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-09f?r=14q3sp">What Happens in the Microsecond After You Trade? How Robinhood Routes Millions of Orders Instantly in Real time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-de8?r=14q3sp">Is Your Phone Listening? How Meta Targets Ads in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-449?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Why Do Flight Prices Change Sharply When You Refresh? How Aggregators Cache Billions of Fares Without Dead Pricing &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse?r=14q3sp">Millions of Songs: How Spotify Decodes Your Favorite Songs and Builds Amazing Playlist in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-fb0?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Orders: How Uber Eats&#8217; Makes Money and ETA for Delivery in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed5?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Billions of Views: How TikTok&#8217;s Recommendation System Makes You Super Addicted&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Deliveries: How DoorDash&#8217;s Dynamic Delivery Fees Monetize Rain and Traffic and You Pay More &#8212;How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Massive Billions of Personalized Recommendations in Real-Time: How Instagram Scaling Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-a3b?r=14q3sp">100+ Million Requests per Minute: Amazon Shopping Cart System &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-0f3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Trillions of Edges: How Facebook&#8217;s EdgeRank Computes Friendships Instantly &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-764?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Listings: How Airbnb&#8217;s Semantic Search Understands What You Want &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-1-how-to-actually?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #1] How To Actually Build End-to-End Data Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-2-how-to-actually-c43?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #2] How To Actually Build End-to-End Machine Learning Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><span>Start System Design ( With all the case Studies) : </span><a href="https://medium.com/coders-mojo/complete-system-design-series-part-1-45bf9c8654bc">Start here</a></strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption"><em>AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</em></p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #8] How Time to First Token (TTFT) Actually Works - It's not What You think : A Deep Dive]]></title><description><![CDATA[I Timed My Own AI Chatbot and Found a 90-Second Gap Nobody Warned Me About... Read on..]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-8-how</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-8-how</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Sun, 16 Aug 2026 21:01:56 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!KJvM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!KJvM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!KJvM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:705730,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/211414929?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!KJvM!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c9af849-ece2-4b71-8c9d-d8c453f020be_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div class="pullquote"><h3><em>The surprising truth: I can send the exact same prompt, to the exact same model, and get my first word back in 300 milliseconds &#8212; or in 90 full seconds. Same model. Same prompt. Same GPU underneath. The only thing that changed is a number most people never learn to name.</em></h3><h4><em>Let&#8217;s take a deep dive &#8212;</em></h4></div><p><em>Part 7 of my &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series, and the opening post of Category 2: Performance Metrics &amp; Mental Models. </em></p><p><em>In this deep dive, I explain what Time to First Token (TTFT) is, why it&#8217;s the metric that decides whether an AI product &#8220;feels&#8221; fast, and exactly how it actually works &#8212; prefill latency, queueing delay, cold starts, prompt length, and RAG retrieval overhead. If you&#8217;ve searched &#8220;what is time to first token,&#8221; &#8220;TTFT explained,&#8221; &#8220;why is my LLM API slow,&#8221; &#8220;how to reduce LLM latency,&#8221; &#8220;LLM streaming latency,&#8221; &#8220;AI inference performance metrics,&#8221; or &#8220;why does ChatGPT take so long to respond,&#8221; this POST answers all of it &#8212; with real numbers, real data, and a hands-on lab.</em></p><p><em>Watch &#8212; </em></p><div id="youtube2-GrGZ0ZyrWWo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;GrGZ0ZyrWWo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/GrGZ0ZyrWWo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h3><em><strong>In this post, there is a Hands-On lab that you can use to understand TTFT better.</strong></em></h3><h2><em>Table of Contents</em></h2><ol><li><p><em><strong>The Metric That Decides Whether My App &#8220;Feels&#8221; Fast</strong></em></p></li><li><p><em><strong>What TTFT Actually Is</strong></em></p></li><li><p><em><strong>Why TTFT Exists as Its Own Metric</strong></em></p></li><li><p><em><strong>The ASCII Flowchart: A Real Request, Second by Second</strong></em></p></li><li><p><em><strong>The Four Layers Hiding Inside One Number</strong></em></p></li><li><p><em><strong>Factor 1 &#8212; Prompt Length</strong></em></p></li><li><p><em><strong>Factor 2 &#8212; Queueing</strong></em></p></li><li><p><em><strong>Factor 3 &#8212; Cold Starts: The 90-Second Number</strong></em></p></li><li><p><em><strong>The Diagnostic Flowchart: What&#8217;s Actually Slowing Me Down?</strong></em></p></li><li><p><em><strong>Real-World Example: A RAG Chatbot That &#8220;Feels Slow&#8221;</strong></em></p></li><li><p><em><strong>How Knowing This Actually Helps Me</strong></em></p></li><li><p><em><strong>Hands-On Lab: I&#8217;ll Show You How to Measure Your Own TTFT Breakdown</strong></em></p></li><li><p><em><strong>Key Takeaways</strong></em></p></li><li><p><em><strong>References</strong></em></p></li></ol><div class="callout-block" data-callout="true"><h4><em>Access all Important AI inference Posts &#8212; Mega 80% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount"><span>80% Off Mega Discount Code on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</span></a><span> : </span><a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205"><span>Link</span></a></em></h4><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><p></p><div id="youtube2-sGPdtpLjTtA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;sGPdtpLjTtA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/sGPdtpLjTtA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div><hr></div><h2><em>Lets take a deep dive &#8212;The Metric That Decides Whether My App &#8220;Feels&#8221; Fast</em></h2><p></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!BhSn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!BhSn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:579025,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/211414929?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!BhSn!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F17ed7169-c302-4c26-89b7-1b69411df323_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Let me start with something I&#8217;ve genuinely experienced: two chatbots can generate the exact same 200-word answer in the exact same 4 seconds &#8212; and one will feel snappy to me while the other feels completely broken. The difference isn&#8217;t the total time. It&#8217;s how that time gets distributed. Do I see the first word after 200 milliseconds, with the rest streaming in steadily after that? Or do I stare at a blank screen for 3.5 seconds before anything appears at all?</em></p><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-8-how">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important: Bookmark] AI Inference Deep Dives: Weekly Roundup]]></title><description><![CDATA[I Used to Think a GPU Was Just &#8220;A Faster Chip.&#8221; I Was Wrong &#8212; Here&#8217;s What It Actually Is...read on.]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-bookmark-ai-inference-deep</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-bookmark-ai-inference-deep</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Tue, 11 Aug 2026 03:54:28 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!RSDv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!RSDv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!RSDv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>We are covering &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series everyday and this is a weekly round upof what has been covered so far &#8212;</em></p><div class="callout-block" data-callout="true"><h4><em>To celebrate our 410,000 reads and 5300 subscribers &#8212; Access all Important AI inference Posts &#8212; Mega 80% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount">80% Off Mega Discount Code on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</a> : <a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205">Link</a></em></h4></div><div class="pullquote"><h3><em>The surprising truth: a GPU core is often 10-50x weaker than a CPU core, individually &#8212; and yet a GPU can still crush a CPU at AI workloads by 10-100x, because the entire idea of a GPU is &#8220;be weak, but be weak eight thousand times at once&#8221;</em></h3><div class="callout-block" data-callout="true"><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p><h3><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-7-how?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">How GPU Actually Works - It&#8217;s not What You think : A Deep Dive</a></strong></em></h3></div></div><p><em>Watch &#8212; </em></p><div id="youtube2-GrGZ0ZyrWWo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;GrGZ0ZyrWWo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/GrGZ0ZyrWWo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div class="callout-block" data-callout="true"><div id="youtube2-sGPdtpLjTtA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;sGPdtpLjTtA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/sGPdtpLjTtA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><div><hr></div><p><em><strong>Read More &#8212;</strong></em></p><p><em>Read and Access all the Top and Most Asked System Design Case Study Posts :</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!bBWc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!bBWc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bBWc!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b4c66a6-dc7a-4bbe-89f7-652390eaa5ab_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-e1b?r=14q3sp">You Hit Upload &amp; 30 Seconds Later More than 1 Million People Can Watch It: TikTok&#8217;s Video Pipeline Processes Every Upload in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a1c?r=14q3sp">Millions of Packages: How Amazon Prime Delivery Routing Achieves Next-Day Perfection &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-59b?r=14q3sp">Millions of Swipes and Matches: How Tinder&#8217;s Real-Time Hidden Matchmaking Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-b75?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Is YouTube&#8217;s &#8220;Up Next&#8221; Loop Reading Your Subconscious? Inside the Deep Candidate Generation Architecture &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-9bc?r=14q3sp">How Does Facebook Memories Deep-Fetch a Single Photo From 15 Years Ago Out of Exabytes of Cold Storage&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-pulse-21-what-happens?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">What Happens When a Whole Country Tries to Stream the World Cup? How Disney+ Hotstar Scaled to Handle 50+ Million Concurrent Live Viewers - How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-4b7?r=14q3sp">Largest 31.4 TBPS DDoS Attack: How Does Cloudflare Stop the Internet from Attacks Melt Down? A Deep Dive into Cloudfare Massive Feat &#8212;How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-5fd?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">2 Billion Users : How WhatsApp Scales massively to Handle Billions of Messages With Tiny Engineering Team? &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-d38?r=14q3sp">Is Alexa Always Listening? How Alexa&#8217;s Processes Billions of Voice Streams in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-12d?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Dollars: How Zillow&#8217;s Zestimate Predicts Your House Price Accurately in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-5ca?r=14q3sp">2 Billion+ Daily Queries: How Facebook Graph Search Maps the Social World in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-ed3?r=14q3sp">Trillions of Queries: How Google&#8217;s Search &amp; PageRank Scales Exponentially &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-a53?r=14q3sp">Is Your Car Learning From Other Cars? How Tesla&#8217;s Data Engine Ingests Petabytes of Edge Video to Train Autopilot &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1cb?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">How Facebook&#8217;s Notification Engine Decides When to Wake Up Your Phone &#8212; How Push Notifications Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-1bf?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Where Does Your Voice Go When You Say Hey Siri - How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-09f?r=14q3sp">What Happens in the Microsecond After You Trade? How Robinhood Routes Millions of Orders Instantly in Real time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse-de8?r=14q3sp">Is Your Phone Listening? How Meta Targets Ads in Real Time &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-system-design-case-study-pulse-449?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Why Do Flight Prices Change Sharply When You Refresh? How Aggregators Cache Billions of Fares Without Dead Pricing &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-system-design-case-study-pulse?r=14q3sp">Millions of Songs: How Spotify Decodes Your Favorite Songs and Builds Amazing Playlist in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-fb0?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Orders: How Uber Eats&#8217; Makes Money and ETA for Delivery in Real Time&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed5?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Billions of Views: How TikTok&#8217;s Recommendation System Makes You Super Addicted&#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-ed3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Deliveries: How DoorDash&#8217;s Dynamic Delivery Fees Monetize Rain and Traffic and You Pay More &#8212;How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Massive Billions of Personalized Recommendations in Real-Time: How Instagram Scaling Actually Works</a></strong></em></p><p><em><strong><a href="/__u/howtosystemdesigneverything.substack.com/p/top-interview-question-ml-system-a3b?r=14q3sp">100+ Million Requests per Minute: Amazon Shopping Cart System &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-0f3?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Trillions of Edges: How Facebook&#8217;s EdgeRank Computes Friendships Instantly &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/top-interview-question-ml-system-764?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Millions of Listings: How Airbnb&#8217;s Semantic Search Understands What You Want &#8212; How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-1-how-to-actually?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #1] How To Actually Build End-to-End Data Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/howtobuildtech/p/how-to-build-tech-2-how-to-actually-c43?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[How to Build Tech #2] How To Actually Build End-to-End Machine Learning Pipelines ( With Implementation Code File) : How it Actually Works</a></strong></em></p><p><em><strong><span>Start System Design ( With all the case Studies) : </span><a href="https://medium.com/coders-mojo/complete-system-design-series-part-1-45bf9c8654bc">Start here</a></strong></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption"><em>AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</em></p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #7] How GPU Actually Works - It's not What You think : A Deep Dive]]></title><description><![CDATA[I Used to Think a GPU Was Just &#8220;A Faster Chip.&#8221; I Was Wrong &#8212; Here&#8217;s What It Actually Is...read on.]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-7-how</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-7-how</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Thu, 06 Aug 2026 05:05:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!c3-D!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!c3-D!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!c3-D!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:625603,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/210025209?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!c3-D!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbfe0e4bf-f58b-4319-b2ee-d12a32081e2a_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div class="pullquote"><h3><em>The surprising truth: a GPU core is often 10-50x weaker than a CPU core, individually &#8212; and yet a GPU can still crush a CPU at AI workloads by 10-100x, because the entire idea of a GPU is &#8220;be weak, but be weak eight thousand times at once&#8221;</em></h3><h4><em>Let&#8217;s take a deep dive &#8212;</em></h4></div><p><em>Part 7 of my &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series &#8212; the foundational prerequisite piece. Every other article in this series assumes you understand what a GPU is and why it exists. This one makes sure you do.</em></p><p><em>Watch &#8212; </em></p><div id="youtube2-GrGZ0ZyrWWo" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;GrGZ0ZyrWWo&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/GrGZ0ZyrWWo?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><h3><em><strong>In this post, there is a Hands-On lab that you can use to understand GPUs better.</strong></em></h3><h2><em>Table of Contents</em></h2><ol><li><p><em><strong>The Question I Wish Someone Had Answered for Me Earlier</strong></em></p></li><li><p><em><strong>What a GPU Actually Is</strong></em></p></li><li><p><em><strong>Why GPUs Exist: A Completely Different Philosophy From CPUs</strong></em></p></li><li><p><em><strong>Deep Dive </strong></em></p></li><li><p><em><strong>How a GPU Actually Works, Layer by Layer</strong></em></p></li><li><p><em><strong>Tensor Cores: The Part That Made GPUs an AI Chip, Not Just a Graphics Chip</strong></em></p></li><li><p><em><strong>The Real-World Moment Everything Changed: AlexNet, 2012</strong></em></p></li><li><p><em><strong>How This Helps Me, Concretely, in AI Inference</strong></em></p></li><li><p><em><strong>The ASCII Flowchart: From My Prompt to a GPU Core</strong></em></p></li><li><p><em><strong>Hands-On Lab: I&#8217;ll Show You Parallelism With Your Own Eyes</strong></em></p></li><li><p><em><strong>Key Takeaways</strong></em></p></li><li><p><em><strong>References</strong></em></p></li></ol><h4></h4><div class="callout-block" data-callout="true"><h4><em>Access all Important AI inference Posts &#8212; Mega 50% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><h4><em><a href="/__u/howtosystemdesigneverything.substack.com/availdiscount"><span>80% Off Mega Discount Code on Full System Design Series ( ML, Gen AI and Agentic AI) with All Case Studies&#8212; Claim It Here</span></a><span> : </span><a href="/__u/howtosystemdesigneverything.substack.com/subscribe?coupon=ab6b6205"><span>Link</span></a></em></h4><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling?r=14q3sp">[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why?r=14q3sp">[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><p></p><div id="youtube2-sGPdtpLjTtA" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;sGPdtpLjTtA&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/sGPdtpLjTtA?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><div><hr></div><h2><em>1. The Question I Wish Someone Had Answered for Me Earlier</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!1FE2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!1FE2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/150920fd-f851-4245-9c60-195d950e4baa_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:726686,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/210025209?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1FE2!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F150920fd-f851-4245-9c60-195d950e4baa_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>For a long time, I thought of a GPU as basically &#8220;a really fast chip that&#8217;s good at games and, apparently, also good at AI now.&#8221; I never actually asked myself WHY the same chip that renders explosions in a video game is also the chip that powers ChatGPT. Those seem like completely unrelated jobs. Why would the same hardware be good at both?</em></p><p><em><strong>Let&#8217;s take a deep dive (also build a hands-on program) to understand how GPU actually works &#8212;</strong></em></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-7-how">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #6] Why Is My GPU Only Using 5% of Its Power During AI Inference? (Memory-Bound vs Compute-Bound)- How It Actually Works]]></title><description><![CDATA[The most expensive chip in your data center spends most of its time simply waiting, and I can prove it to you with numbers you can run yourself...read on.]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Wed, 05 Aug 2026 02:35:35 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!bt5m!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!bt5m!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!bt5m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:708106,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/209741980?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!bt5m!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe42f7d5e-97a4-4ca2-8380-005f4b50d7c9_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="pullquote"><h3><em>I&#8217;m going to show you the exact math that proves it: during single-token LLM inference, a GPU capable of 312 trillion operations per second does roughly 1 operation for every byte it moves &#8212; against a break-even point of 156 to 208. That means the most expensive chip in your data center spends most of its time simply waiting, and I can prove it to you with numbers you can run yourself.</em></h3><h4><em>Let&#8217;s take a deep dive &#8212;</em></h4></div><p><em>Part 6 of my &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series. In Parts 3 and 5, I told you decode is &#8220;memory-bound&#8221; and asked you to trust me. In this article, I&#8217;m not asking you to trust me anymore &#8212; I&#8217;m going to prove it with the actual math: the roofline model and arithmetic intensity, the single framework that explains why almost every AI inference optimization technique exists.</em></p><h2><em>Table of Contents</em></h2><ol><li><p><em><strong>The 5% Number That Should Bother You</strong></em></p></li><li><p><em><strong>Every GPU Has Exactly Two Speed Limits</strong></em></p></li><li><p><em><strong>Arithmetic Intensity: The One Ratio That Decides Everything</strong></em></p></li><li><p><em><strong>The Roofline Model, Drawn in Plain ASCII</strong></em></p></li><li><p><em><strong>Let Me Do the Actual Math for Decode</strong></em></p></li><li><p><em><strong>Why Batch Size Is the One Lever That Changes Everything</strong></em></p></li><li><p><em><strong>Real Hardware Numbers: A100 vs. H100 vs. a 30B Model</strong></em></p></li><li><p><em><strong>The Decision Tree: Am I Compute-Bound or Memory-Bound?</strong></em></p></li><li><p><em><strong>Why This One Framework Explains So Much of AI Inference Optimization</strong></em></p></li><li><p><em><strong>Hands-On Lab: I&#8217;ll Show You How to Measure Your Own GPU&#8217;s Roofline</strong></em></p></li><li><p><em><strong>Common Misconceptions I Want to Clear Up</strong></em></p></li><li><p><em><strong>Key Takeaways</strong></em></p></li><li><p><em><strong>References</strong></em></p></li></ol><h4><em>Access all Posts &#8212; Mega 50% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><div class="callout-block" data-callout="true"><p><em>Read Previous Top Posts &#8212;</em></p><p></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><div><hr></div><h2><em>1. The 5% Number That Should Bother You</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!o1Us!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!o1Us!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0563ee04-b760-45b3-8634-79c682016703_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:664526,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/209741980?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!o1Us!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0563ee04-b760-45b3-8634-79c682016703_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Let me start with a number that genuinely surprised me the first time I calculated it myself.</em></p><p><em>A modern datacenter GPU &#8212; the kind companies spend $30,000 or more on &#8212; is one of the most powerful pieces of math hardware ever built for sale. And yet, for the vast majority of the time a large language model spends generating your reply, I can tell you that GPU is using a startlingly small fraction of its actual math capability.</em></p><p><em>Here&#8217;s the number: during single-token decode &#8212; the mode a model spends roughly 95% of its generation time in &#8212; let&#8217;s take a deep dive how it actually works :</em></p><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-6-why">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #5] Sampling Strategies: What Makes Your AI Chatbot Run 9x Slower- How It Actually Works]]></title><description><![CDATA[The surprising truth: temperature, top-k, and top-p aren&#8217;t just &#8220;creativity dials&#8221; for text quality &#8212; the exact same settings can make or break speculative decoding, one of the biggest speed..read on.]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Mon, 03 Aug 2026 03:14:45 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!em0p!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!em0p!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!em0p!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d60615b3-830b-4684-a739-c4837a5662c5_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:674752,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/209574815?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!em0p!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd60615b3-830b-4684-a739-c4837a5662c5_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>This is Part 5 of the &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series. this posst takes a deep dive into that <strong>repeating decode step and asks: once the model has computed probabilities for 128,256 possible next words, how does it actually pick one</strong></em></p><h2><em>Table of Contents</em></h2><ol><li><p><em>The Decision Nobody Notices Happening</em></p></li><li><p><em>Autoregressive Generation, Refreshed</em></p></li><li><p><em>Greedy Decoding: The &#8220;No Decisions&#8221; Decision</em></p></li><li><p><em>Temperature: Reshaping Confidence Before You Choose</em></p></li><li><p><em>Top-K: A Hard Cutoff</em></p></li><li><p><em>Top-P (Nucleus Sampling): A Cutoff That Adapts</em></p></li><li><p><em>Min-P: The New Challenger</em></p></li><li><p><em>The ASCII Flowchart: One Distribution, Four Different Fates</em></p></li><li><p><em>Why Sampling Choice Affects Quality &#8212; Real Product Examples</em></p></li><li><p><em>Why Sampling Choice Affects Latency &#8212; The 9x Number</em></p></li><li><p><em>Hands-On Lab: Build All Four Samplers From Scratch</em></p></li><li><p><em>Key Takeaways</em></p></li><li><p><em>References</em></p></li></ol><h4><em>Access all Posts &#8212; Mega 50% off : <a href="/__u/aiinferenceandoptimizations.substack.com/accessall2026">Link</a></em></h4><div class="pullquote"><h4><em>The surprising truth: temperature, top-k, and top-p aren&#8217;t just &#8220;creativity dials&#8221; for text quality &#8212; the exact same settings can make or break speculative decoding, one of the biggest speed optimizations in modern AI serving, by a measured 9x swing in throughput. </em></h4><h4><em>Let&#8217;s take a deep dive &#8212;</em></h4></div><div class="callout-block" data-callout="true"><p><em>Read Previous Top Posts &#8212;</em></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></p><p></p><p><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv?r=14q3sp">[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip &#8212; Just By Remembering- How It Actually Works</a></strong></em></p></div><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><div><hr></div><h2><em>1. The Decision Nobody Notices Happening</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!alok!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!alok!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:706112,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/209574815?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!alok!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F57341872-9952-4909-9fb5-4ce5d5e922e6_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Every single word an AI model outputs is the result of a decision most people never think about. The model doesn&#8217;t &#8220;know&#8221; the next word &#8212; from Part 2, we saw it produces logits, then a probability distribution, over its entire vocabulary (128,256 candidates for a model like Llama 3). Something still has to turn &#8220;here are 128,256 numbers&#8221; into &#8220;here&#8217;s one actual word.&#8221; That something is a sampling strategy &#8212; and which one you pick doesn&#8217;t just change whether your chatbot sounds robotic or creative. It also, measurably, changes how fast the whole system runs.</em></p><p><em>Understanding these parameters is not optional for anyone working seriously with LLMs &#8212; they determine whether your model gives you a deterministic SQL query or a wildly hallucinated one, whether your creative writing assistant sounds inventive or repetitive, and why the exact same prompt can return completely different outputs on successive calls. This article covers the four sampling strategies that matter most &#8212; greedy, temperature, top-k, top-p, and the newer min-p &#8212; and then the part most explainers skip entirely: the direct, measured link between your sampling choice and your inference latency.</em></p><div><hr></div><h2><em>2. Autoregressive Generation, Refreshed &#8212; Let&#8217;s take a deep dive with Implementation </em></h2><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-5-sampling">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #4] KV Cache: The One Piece of Memory That Can Eat an Entire Expensive Chip — Just By Remembering- How It Actually Works]]></title><description><![CDATA[Without one specific memory trick, generating word #10,000 of a conversation would mean redoing all the work for words #1 through #9,999 all over again &#8212; keep reading..]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Fri, 31 Jul 2026 03:50:28 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!RSDv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!RSDv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!RSDv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:653824,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208719197?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!RSDv!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f1aaac9-071a-42f8-8fa9-bfc8c125aef3_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>This is Part 4 of the &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series. This article is entirely about that notebook &#8212; arguably the single most important piece of memory in modern AI chatbots.</em></p><h4><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></h4><h4><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></h4><h4><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill?r=14q3sp">[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works</a></strong></em></h4><div><hr></div><p><em><strong>All System Design Series : <a href="/__u/open.substack.com/pub/howtosystemdesigneverything/p/extended-50-off-discount-top-system?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">Top System Design Weekly Round Up: Bookmark</a></strong></em></p><p><em><strong>All System Design Watch Playlists : <a href="https://www.youtube.com/channel/UCfDjQJqBrlzuwYUFzoIwttQ">Important Videos Playlist</a></strong></em></p><h2><em>Table of Contents</em></h2><ol><li><p><em>The Question That Exposes the Whole Problem</em></p></li><li><p><em>What the KV Cache Actually Is</em></p></li><li><p><em>Why It Exists: The Quadratic Trap</em></p></li><li><p><em>The Flowchart: With and Without the Notebook</em></p></li><li><p><em>The Memory Math, Fully Unpacked</em></p></li><li><p><em>Real Numbers: Two Versions of a Similar-Sized Model</em></p></li><li><p><em>Why This Is the Reason Writing Replies Is Memory-Bound</em></p></li><li><p><em>The Tricks Invented Purely to Fight This Math</em></p></li><li><p><em>Try It Yourself: Watch the Notebook Grow</em></p></li><li><p><em>Common Mix-Ups, Cleared Up</em></p></li><li><p><em>Quick Summary</em></p></li><li><p><em>Further Reading</em></p></li></ol><div><hr></div><h2><em>1. The Question That Exposes the Whole Problem</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!4bgw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!4bgw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:794862,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208719197?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4bgw!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F14aa28b2-aa06-453b-a896-0c2709aae86d_1024x559.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Here&#8217;s a question that sounds simple and isn&#8217;t: when a chatbot writes the 10,000th word of a long conversation, does it have to re-read and re-process all 9,999 words before it, completely from scratch, every single time?</em></p><p><em>The honest, slightly uncomfortable answer is: <strong>without the trick in this article, yes &#8212; every single time, over and over.</strong> As covered in an earlier article, the &#8220;pay attention&#8221; step requires every word to compare itself against every earlier word. Without some way of remembering the results of that comparison, producing each new word would mean redoing the entire attention process over the entire growing conversation, from the very beginning, again and again &#8212; getting slower and slower the longer the conversation runs. That&#8217;s not a hypothetical annoyance. Without a fix, generating each word would require re-running the whole comparison process over the entire conversation so far, which would make a chatbot painfully, unusably slow for anything beyond a short exchange.</em></p><p><em>The fix is called the <strong>KV cache</strong> , and it&#8217;s the reason a 50,000-word conversation with a chatbot doesn&#8217;t grind to a crawl by the end.</em></p><div><hr></div><h2><em>2. What the KV Cache Actually Is and Why Its important - Let&#8217;s take a deep dive ( with Code) : </em></h2><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-4-kv">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Important AI Inference Pulse #3] Prefill vs. Decode: How It Actually Works]]></title><description><![CDATA[The same chip that&#8217;s working flat-out crunching your prompt suddenly looks &#8220;lazy&#8221; while typing out the reply &#8212; not because anything&#8217;s broken, but because those are two opposite kinds of work...]]></description><link>https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Mon, 27 Jul 2026 17:36:08 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!g1_-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!g1_-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!g1_-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:732811,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208702294?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!g1_-!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb15481c5-7b5b-40e9-9811-bbfd18e0ec15_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Part 3 of the &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series. Part 1 covered training vs. inference; Part 2 opened up the five-step process behind a single word. This article splits that process into the two phases every AI chatbot is quietly built around.</em></p><h4><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #1]</a><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></h4><h4><em><strong><a href="/__u/open.substack.com/pub/aiinferenceandoptimizations/p/top-ai-inference-pulse-2-a-trillion?r=14q3sp&amp;utm_campaign=post-expanded-share&amp;utm_medium=web">[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works</a></strong></em></h4><div><hr></div><h2><em>Table of Contents</em></h2><ol><li><p><em><strong>The One-Line Distinction That Explains Almost Everything Here</strong></em></p></li><li><p><em><strong>What &#8220;Reading Your Prompt&#8221; Actually Involves</strong></em></p></li><li><p><em><strong>What &#8220;Writing the Reply&#8221; Actually Involves</strong></em></p></li><li><p><em><strong>Two Kinds of &#8220;Busy&#8221;: Doing Math vs. Fetching Data</strong></em></p></li><li><p><em><strong>The Flowchart: One Request, Two Personalities</strong></em></p></li><li><p><em><strong>Why This One Split Explains Most Chatbot Engineering</strong></em></p></li><li><p><em><strong>A Real Example: Big AI Companies Splitting Their Hardware</strong></em></p></li><li><p><em><strong>The Two Numbers That Only Make Sense Once You Know This</strong></em></p></li><li><p><em><strong>Try It Yourself: A Simple Code Experiment</strong></em></p></li><li><p><em><strong>Common Mix-Ups, Cleared Up</strong></em></p></li><li><p><em><strong>Quick Summary</strong></em></p></li><li><p><em><strong>Further Reading</strong></em></p></li></ol><div><hr></div><h2><em>1. The One-Line Distinction That Explains Almost Everything Here</em></h2><h2><em>Let&#8217;s take a deep dive ( with code) &#8212;</em></h2><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/important-ai-inference-pulse-3-prefill">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Top AI Inference Pulse #2] A Trillion-Parameter Model Only Ever Does Five Things: How It Actually Works]]></title><description><![CDATA[The surprising truth: every "magical" AI response &#8212; from a haiku to a bug fix &#8212; is produced by the exact same five-step pipeline, repeated once per word, with zero variation in the steps themselves...]]></description><link>https://aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-2-a-trillion</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-2-a-trillion</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Mon, 27 Jul 2026 15:01:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!4ZfA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!4ZfA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!4ZfA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:647383,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208692419?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="/__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4ZfA!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcfd10df1-fd0a-4d63-b49d-2c3bbee82474_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Part 2 of the &#8220;AI Inference, Optimizations &amp; Evals &#8212; How It Actually Works&#8221; series. Part 1 covered training vs. inference &#8212; this one opens up what&#8217;s actually happening inside a single &#8220;guess.&#8221;</em></p><h3><em><strong><a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training?r=14q3sp">Training vs. Inference: What it is and How It Actually Works</a></strong></em></h3><div><hr></div><h2><em>Table of Contents</em></h2><ol><li><p><em><strong>The Illusion of Complexity</strong></em></p></li><li><p><em><strong>The Five Steps, at a Glance</strong></em></p></li><li><p><em><strong>Step 1 &#8212; Turning Words Into Numbers</strong></em></p></li><li><p><em><strong>Step 2 &#8212; Deciding What to Pay Attention To</strong></em></p></li><li><p><em><strong>Step 3 &#8212; Thinking It Over, Word by Word</strong></em></p></li><li><p><em><strong>Doing It All Again, 32 Times Over</strong></em></p></li><li><p><em><strong>Step 4 &#8212; Turning Thoughts Back Into Word Scores</strong></em></p></li><li><p><em><strong>Step 5 &#8212; Actually Picking a Word</strong></em></p></li><li><p><em><strong>The Whole Pipeline, One Word, Start to Finish</strong></em></p></li><li><p><em><strong>A Real Example: Watching Llama 3 Produce One Word</strong></em></p></li><li><p><em><strong>Try It Yourself: A Simple Code Experiment</strong></em></p></li><li><p><em><strong>Common Mix-Ups, Cleared Up</strong></em></p></li><li><p><em><strong>Quick Summary</strong></em></p></li><li><p><em><strong>Further Reading</strong></em></p></li></ol><div><hr></div><h2><em>1. The Illusion of Complexity</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Qx3e!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Qx3e!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:803761,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208692419?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Qx3e!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F18fb627e-6572-4726-9ffc-62da3fcaa2f5_1024x559.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p><em>Here&#8217;s a sentence that sounds impressive and explains basically nothing: &#8220;Large language models use deep neural networks with billions of parameters to understand and generate human language.&#8221;</em></p><p><em>Here&#8217;s what&#8217;s actually true, and much more useful: <strong>every single word a model ever produces &#8212; whether it&#8217;s a small model or a massive one &#8212; goes through exactly five kinds of steps, in the exact same order, every single time.</strong> Turn words into numbers. Decide what to pay attention to. Think it over. Turn the result back into word-scores. Pick a word. That&#8217;s the whole recipe. There&#8217;s no secret sixth step hiding somewhere. The &#8220;intelligence&#8221; comes from doing these five steps really well, with the right internal settings -&#8212; settings that got tuned during training, across an enormous amount of text.</em></p><h2><em>Let&#8217;s take a deep dive ( with code) &#8212;</em></h2>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-2-a-trillion">
              Read more
          </a>
      </p>
   ]]></content:encoded></item><item><title><![CDATA[[Top AI Inference Pulse #1] Training vs. Inference: What it is and How It Actually Works]]></title><description><![CDATA[The surprising truth: training and inference run almost the same code &#8212; but one number in the math changes from 1 to 3, and that single difference explains everything...readon!]]></description><link>https://aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training</link><guid isPermaLink="false">https://aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training</guid><dc:creator><![CDATA[Naina Chaturvedi]]></dc:creator><pubDate>Mon, 27 Jul 2026 14:18:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!7iRM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!7iRM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!7iRM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:703306,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208685884?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!7iRM!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F15e019c2-602d-49b2-b3e7-259bc3be38b6_1024x559.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h3><em>Why &#8220;training teaches, inference answers&#8221; is true but doesn&#8217;t actually explain anything. </em></h3><p>In this post we will take a deep dive into Training Vs Inference - Answering What, Why and How!!</p><div><hr></div><h2><em>Table of Contents</em></h2><ol><li><p><em>The Question Everyone Gets Half-Right</em></p></li><li><p><em>Think of It Like a Student Taking a Test</em></p></li><li><p><em>What&#8217;s Actually Happening Inside the Computer</em></p></li><li><p><em>Side by Side: The Flowchart</em></p></li><li><p><em>The Number That Explains the Cost Difference</em></p></li><li><p><em>A Real-World Way to Picture This</em></p></li><li><p><em>Why AI Answers Come Out One Word at a Time</em></p></li><li><p><em>Try It Yourself: A Simple Code Experiment</em></p></li><li><p><em>Common Mix-Ups, Cleared Up</em></p></li><li><p><em>Quick Summary</em></p></li><li><p><em>Further Reading</em></p></li></ol><div><hr></div><h2><em>1. The Question Everyone Gets Half-Right</em></h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!eNBV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_webp, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!eNBV!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png" width="1024" height="559" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:559,&quot;width&quot;:1024,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:691256,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://aiinferenceandoptimizations.substack.com/i/208685884?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_424, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 424w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_848, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 848w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_1272, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 1272w, /__u/substackcdn.com/image/fetch/$s_!eNBV!, /__u/aiinferenceandoptimizations.substack.com/w_1456, /__u/aiinferenceandoptimizations.substack.com/c_limit, /__u/aiinferenceandoptimizations.substack.com/f_auto, /__u/aiinferenceandoptimizations.substack.com/q_auto:good, /__u/aiinferenceandoptimizations.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d914b30-194b-4f9d-8f9c-bea4200c7a7e_1024x559.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://aiinferenceandoptimizations.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">AI inference, AI Optimizations &amp; Evals-How it Actually Works is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p><em>If you ask someone what&#8217;s the difference between training an AI and using it, they&#8217;ll usually say something like: &#8220;Training is when it learns, inference is when it answers.&#8221; That&#8217;s true, but it doesn&#8217;t explain much. It doesn&#8217;t explain why training a model takes months and a warehouse full of computers, while getting an answer from ChatGPT takes two seconds. It doesn&#8217;t explain why your AI bill and a company&#8217;s training bill are completely different kinds of expenses. And it doesn&#8217;t explain why &#8220;make training faster&#8221; and &#8220;make answers come back faster&#8221; are basically two different jobs that barely overlap.</em></p><p><em>Here&#8217;s the actual explanation, and it&#8217;s simpler than you&#8217;d think:</em></p><p><em><strong>Training does two things. Inference only does one of them.</strong></em></p><p></p>
      <p>
          <a href="/__u/aiinferenceandoptimizations.substack.com/p/top-ai-inference-pulse-1-training">
              Read more
          </a>
      </p>
   ]]></content:encoded></item></channel></rss>