M12-031M12: AI Security Red-Teaming & AI PM PlaybooksAI PM & FDE ROI & UX PlaybooksHard
⚡Flashcard Drill➔Mastery:

AI PM FinOps Math: Frontier API + Prompt Caching vs Self-Hosted vLLM Cluster Utilization Break-Even

🎯 Active Recall Self-Check (Draft First, Verify After)
Login-free practice tracker: recall core answer, audit pitfalls, and log review status.
Step 1 · Draft your concise answer & assumptions
Step 2 · Check Pitfalls & Follow-up Inquiries
Next: M12-032 →
📐 Mathematical Definition
Break-Even Qreq/s  ⟺  CGPU_cluster+CEng_OpsMonthly Tokens(Q)≤PAPI(1−hcache)\text{Break-Even } Q_{\text{req/s}} \iff \frac{C_{\text{GPU\_cluster}} + C_{\text{Eng\_Ops}}}{\text{Monthly Tokens}(Q)} \le P_{\text{API}}(1 - h_{\text{cache}})
⚡ One-Sentence Core Answer
Model exact Build-vs-Buy TCO break-even math incorporating diurnal traffic peaks (3x headroom), Multi-AZ redundancy, KV-cache concurrency limits, and amortized MLOps salaries.

📌 Key Takeaways

  • •
    Diurnal Headroom Tax: enterprise daytime traffic often spikes 3–4x over 24h averages; self-hosted clusters pay 24/7 for peak capacity while serverless APIs scale elastically
  • •
    HA Minimum Footprint: production 70B FP8 serving with zero-downtime failover needs at least 2 replicas (~4x–8x H100s = 12K–12K–20K/mo) before adding MLOps headcount
  • •
    API Cost Defenses: serverless Prompt Caching (up to 90% input discount) and Batch APIs (50% off) shift the break-even point sharply higher
  • •
    True Self-Host Inflection: dedicated vLLM wins decisively only when sustained volume hits >500M–1B tokens/day or a distilled 8B model achieves >70% round-the-clock GPU utilization

📐 Mathematical Derivations

With 2×2\times HA replicas + MLOps allocation costing \15\text{K/mo}atat30\%averageutilization( 4Btokens/mo),effectiveself−hostedCOGSisaverage utilization (~4B tokens/mo), effective self-hosted COGS is\3.75/1M3.75/\text{1M} tokens—dearer than cached mini APIs until sustained volume saturates clusters at >30B>30\text{B} tokens/mo.

🏭 Production Trade-offs

Factor model-upgrade agility into Build-vs-Buy: open weights evolve every quarter, so lock-in to custom kernels or fragile fine-tunes carries switching overhead.
⚠️ Common Interview Pitfalls
  • ✕
    Dividing GPU monthly lease by theoretical peak batch throughput while ignoring diurnal valleys and long-context KV-cache limits
  • ✕
    Comparing self-hosted costs against full list API rates instead of cached + batch-discounted API pricing
🎯 Interviewer Follow-up Inquiries
  • ?
    How much do PD Disaggregation and Speculative Decoding lower the self-hosted break-even threshold under strict TTFT/TPOT SLAs?
  • ?
    How do you architect a hybrid 'base self-hosted capacity + burst overflow to serverless API' router?
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
📚

Associated Knowledge Base Guides & Mindmaps

← PreviousM12-030: AI Red-Team & Evals: Defending LLM-as-a-Judge Against Prompt-Injection Hacking & Biases📋 Back to BankNext →M12-032: AI PM UX Playbook: Designing Confidence-Calibrated Abstention & Graceful Fallback Experiences