<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aaryaman Bajaj on Medium]]></title>
        <description><![CDATA[Stories by Aaryaman Bajaj on Medium]]></description>
        <link>https://medium.com/@ab6105?source=rss-dfdbeed8ddcc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*wtClZXNGpkpzpzlu</url>
            <title>Stories by Aaryaman Bajaj on Medium</title>
            <link>https://medium.com/@ab6105?source=rss-dfdbeed8ddcc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:58:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ab6105/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[You’re Overpaying to Serve Your Fine-Tuned Model]]></title>
            <link>https://medium.com/@ab6105/youre-overpaying-to-serve-your-fine-tuned-model-ca44659bb8b4?source=rss-dfdbeed8ddcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca44659bb8b4</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Aaryaman Bajaj]]></dc:creator>
            <pubDate>Sun, 14 Dec 2025 15:25:16 GMT</pubDate>
            <atom:updated>2025-12-14T15:25:16.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWyO9QhzQQRp2mt13gVIRA.png" /></figure><blockquote><strong>The infrastructure gap between training and inference — and why it persists</strong></blockquote><p>You just spent $5K-20K fine-tuning a model (multiple runs, experiments, getting it right). It works. Your customers love it.</p><p>Now you’re paying $500/month to serve it on a dedicated GPU — even though it sits idle 60% of the time.</p><p>There should be a cheaper option: shared GPU inference that costs 40–70% less. Same throughput, slightly higher tail latency. You pay only for what you use.</p><p>You trade a small amount of p99 variance for dramatically better utilization.</p><p>Anyone who’s tried to serve fine-tuned models outside managed APIs runs into this immediately. So why doesn’t this exist cleanly?</p><h3>The Problem Is Structural</h3><p>Training and inference have opposite economics.</p><p><strong>Training:</strong></p><ul><li>Runs once (or a few times)</li><li>Costs $5K–50K</li><li>Needs dedicated GPUs</li><li>Latency doesn’t matter</li></ul><p><strong>Inference:</strong></p><ul><li>Runs continuously</li><li>Can <em>technically</em> share GPUs</li><li>Latency matters a lot</li></ul><p>They should never run on the same infrastructure. Yet most platforms force you into one of three bad choices:</p><ul><li>Rent a dedicated GPU ($350–600/month), even when it’s idle</li><li>Use cheap spot instances (and pray they don’t disappear mid-request)</li><li>Build your own infra team (2–6 engineers, 6–18 months)</li></ul><p>There’s no clean middle option that says: <em>“I trained this model. Now just serve it reliably at shared-infrastructure prices.”</em></p><p>That gap is small today — but strategically important. Whoever owns it decides where post-training workloads land.</p><h3>The Math (What the Bills Actually Look Like)</h3><p>Here’s a representative workload:</p><p><strong>Model:</strong> fine-tuned 7B</p><h3>Option 1 — Dedicated GPU</h3><ul><li>NVIDIA L4 (common for 7B inference): $350–600/month</li><li>Or T4 with int8 quantization: $250–400/month on budget providers</li><li>You pay 24/7, whether traffic shows up or not</li></ul><p>In practice, utilization is usually 20–40%. Nights, weekends, and low-volume endpoints kill efficiency.</p><p><strong>Effective outcome:</strong> you’re paying for ~2–3× more capacity than you use.</p><h3>Option 2 — Shared GPU Pool (the missing option)</h3><p>If multiple tenants share GPUs and you can sustain ~70–80% utilization across workloads, inference amortizes to roughly:</p><ul><li>$0.010–0.020 per 1K tokens(assuming 100–300ms p95 latency budgets)</li></ul><p>That translates to:</p><ul><li><strong>500K tokens/day:</strong> $150–300/month (vs $500 dedicated)</li><li><strong>1M tokens/day:</strong> $300–600/month (sometimes cheaper, sometimes a wash)</li></ul><p>The irony is hard to miss: the <em>less</em> you use a dedicated GPU, the <em>more</em> you overpay. Shared pools flip that relationship.</p><p>This is the standard cloud economics playbook — applied to inference. AWS didn’t win because servers were cheaper. They won because you didn’t have to own one.</p><h3>Why This Still Doesn’t Exist</h3><p>This isn’t a mystery. It’s three very practical problems.</p><h3>1. The market is small (for now)</h3><p>The companies that need this are in a narrow window:</p><ul><li>Fine-tuned models in production</li><li>Predictable but not massive inference load</li><li>No infra team yet</li></ul><p>That’s maybe a few thousand companies globally. Too small for AWS to care. Too operationally heavy for a two-person startup.</p><p>Platforms like Modal, Replicate, and RunPod already have solid serverless GPU primitives. What’s missing is the layer <em>above</em> them: model versioning, atomic swaps, health checks, and rollbacks that don’t require redeploying entire endpoints.</p><h3>2. Shared GPUs are genuinely hard</h3><p>Batching strategies are model-specific. Memory management is unforgiving. One bad tenant can ruin latency for everyone.</p><p>The real challenge is deciding when to delay a 200-token request by 10–15ms to batch it — without stalling a 20K-token job or blowing p95 for another tenant. That’s distributed systems work, not a weekend YAML project.</p><p><strong>(Long-context requests &gt;8–16K tokens likely need separate queues or pricing tiers — they’re fundamentally harder to share efficiently.)</strong></p><h3>3. Model updates are scary</h3><p>Here’s the trust problem: how do you update a model in production without downtime <em>or</em> silent regressions?</p><blockquote>Code has unit tests. Models have… vibes.</blockquote><p>You can verify a model loads. You can’t easily verify it didn’t get subtly worse. So teams roll their own blue/green deployments, shadow traffic, and gradual rollouts. Nobody sells this cleanly as a product.</p><h3>What It Would Take</h3><p>The user-facing API is simple:</p><pre>train(model, data) → version<br>serve(endpoint → version)<br>switch(endpoint → new_version)</pre><p>No GPUs. No clusters. No Terraform.</p><p>Behind the scenes, you need four pieces:</p><ol><li><strong>Training Plane</strong> — Dedicated GPUs, job-based, expensive. Outputs versioned artifacts.</li><li><strong>Model Registry</strong> — Immutable versions, rollback-safe. The contract between training and inference.</li><li><strong>Inference Plane</strong> — Shared GPUs, dynamic batching, pay-per-token. Where the economics flip.</li><li><strong>Control Plane</strong> — Atomic model swaps. Load v2, validate, flip the pointer, drain v1.</li></ol><p>The moat isn’t the hardware. It’s the scheduler.</p><p>At scale, with a diverse workload mix, you <em>can</em> sustain 70–80% GPU utilization while keeping latency acceptable — but only if scheduling decisions are ruthless and correct. That’s where the margin comes from.</p><h3>Who Wins This Market</h3><p>There are three plausible outcomes:</p><ul><li><strong>Hyperscalers absorb it</strong> — AWS adds “managed inference.” It’s buried under 47 config screens and costs ~2× more than it should.</li><li><strong>API providers unbundle</strong> — OpenAI/Anthropic let you bring fine-tuned models at lower rates, but you’re locked in.</li><li><strong>Inference platforms expand</strong> — Modal, Replicate, or Together add zero-downtime model swapping. It becomes a feature, not a company.</li></ul><p>My bet is the third. The market’s too small for a standalone startup, but too real to ignore.</p><h3>What You Can Do Today</h3><p>There isn’t a perfect answer yet:</p><ul><li><strong>Accept the waste</strong> if you have one or two models and don’t want pager duty.</li><li><strong>Build it yourself</strong> (vLLM + Ray Serve + Kubernetes) if you’re already infra-heavy or running &gt;5 models.</li><li><strong>Use serverless GPU platforms</strong> and live with rough edges around deployments and versioning.</li></ul><p>None of these are great. That’s the point.</p><h3>Why I’m Publishing This</h3><p>I’m not building this. The market is narrow, the ops burden is real, and the trust bar is unforgiving.</p><p>But the economics are correct, and the architecture is sound. Someone will build this — even if it ships quietly as a feature inside an existing platform.</p><p>If you’re working on inference platforms, I’d love to hear how you’re approaching model versioning and atomic updates — the missing piece in this puzzle.</p><p>And if you’re running fine-tuned models on dedicated GPUs right now, I’m curious: what percentage of your GPU capacity actually gets used? My bet is it’s under 40%.</p><p><strong>Thesis (one sentence):</strong> Post-training inference should be 40–70% cheaper for underutilized workloads, but the model-versioning control plane needed to make that happen cleanly doesn’t exist yet.</p><p><em>Cost models are based on public GPU pricing (AWS g6/g4dn, RunPod, vast.ai) and throughput benchmarks from vLLM. Your mileage will vary.</em></p><p><em>Thanks to the teams at Modal, Replicate, vLLM, and RunPod whose public work informed this thinking.</em></p><p><em>Connect: [ab6105@columbia.edu/ </em><a href="https://www.linkedin.com/in/aaryaman-bajaj/"><em>LinkedIn</em></a><em>]</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca44659bb8b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>