The Five-Layer Cake Approach to Scaling AI Without Wasting Money

The Five-Layer Cake Approach to Scaling AI Without Wasting Money

Author: Demetrios September 4, 2026 Duration: 38:55

In this episode of Agentic Conversations, we sit down with Ambud Sharma, Principal Engineer at Pinterest, responsible for general technology efficiency, fresh off delivering a controversial keynote on AI infrastructure optimization at scale.


Ambud walks us through his Five Layer Cake framework - a structured approach to driving efficiency across every level of the AI stack, from silicon and hardware procurement to model selection, inference engine design, and governance. We explore how decisions compound across layers to unlock real business growth, and how the wrong choices can lock you into expensive commitments for years.


We stress test the framework against two very different business models: what the stack looks like if you are building the next Cursor, and how it changes entirely if you are building the next YouTube. Along the way we cover hardware immutability, inference engine warm-up costs, GPU occupancy, context switching, quantization trade-offs, model routing, and why experimentation discipline is the only thing that keeps AI infrastructure costs from getting out of control.


We also look at how this framework holds up in the emerging agent era, what changes when agent-to-agent communication becomes the norm, and why agent traffic just passed bot traffic on Cloudflare. The conversation closes on a deceptively simple takeaway: there is no silver bullet, and experimentation at every layer always comes first.


Pinterest: https://about.pinterest.com/


Alex Salkever: https://www.linkedin.com/in/alexsalkever

Ambud Sharma: https://www.linkedin.com/in/ambud


Timestamps:

[0:00] Introduction and the controversial keynote

[2:09] The five-layer cake explained

[4:30] Why hardware decisions are irreversible

[6:47] Two business models: building Cursor vs YouTube

[10:42] Applying the five layers to a YouTube-style company

[14:23] Experimentation as the core efficiency method

[17:09] Inference stack: context switching and warm-up costs

[20:07] Model layer: why changing models breaks everything

[24:10] When you should not use an LLM at all

[26:41] Governance and routing: right model for the right task

[29:20] Horror stories of unchecked token spend

[31:37] Experimentation discipline without stifling innovation

[34:35] How the five layers change in the agent era

[36:05] Agent-to-agent communication and governance complexity

[38:27] Core takeaway: experimentation first at every layer


Hosted by Demetrios, MLOps.community is a space for honest, meandering talks about the real work of making artificial intelligence systems actually work. This isn't about hype or theoretical papers; it's about the messy, practical, and often surprising journey of taking models from a notebook into a live environment. You'll hear from engineers and practitioners who are in the trenches, discussing the tools, the frustrations, and the occasional breakthroughs that define the day-to-day. The conversations are deliberately relaxed, covering everything from traditional machine learning pipelines to the new world of large language models and even the intangible "vibes" of team culture and process. Each episode peels back a layer on what "production" really means, whether that involves deploying a predictive service, managing an agentic system, or maintaining reliability as everything scales. Tuning into this podcast feels like grabbing a coffee with colleagues who aren't afraid to dig into the technical nitty-gritty while keeping the tone conversational and accessible. It's for anyone who builds, manages, or is just curious about the operational backbone that allows AI to deliver value, offering a grounded perspective often missing from the broader conversation.
Author: Language: en-us Episodes: 50

Agentic Conversations (formally mlops.community)
Podcast Episodes
What Happens When Every Developer Has 20 AI Agents? [not-audio_url] [/not-audio_url]

Duration: 34:37
In this episode, we're joined by Stephen O'Grady, Co-Founder and Principal Analyst at RedMonk, to explore one of the biggest shifts happening in software engineering: AI is making code dramatically cheaper to produce, bu…
AI Agents Should Be Treated Like Hackers [not-audio_url] [/not-audio_url]

Duration: 31:35
In this episode, we're joined by Matt DeBergalis, CTO and Co-Founder of Apollo GraphQL, to explore what happens when AI agents start interacting with enterprise systems that were never designed for them.We dive into the…
Developers May Stop Depending on Libraries [not-audio_url] [/not-audio_url]

Duration: 46:52
In this episode of Agentic Conversations, we're joined by Shaun Smith, software engineer, open source advocate, and contributor at Hugging Face, to explore how AI coding has changed almost overnight.We dive into reinforc…
10 Cities. 4 Countries. One Unexpected MCP Lesson. [not-audio_url] [/not-audio_url]

Duration: 22:18
In this episode, we're joined by Ben Morss, Developer Advocate at DeepL, who spent months traveling across North America and Europe teaching developers about MCP, building MCP servers, and helping teams understand how AI…
The Next Programming Language Is English [not-audio_url] [/not-audio_url]

Duration: 38:13
In this episode, we're joined by Cornelia Davis, Developer Advocate at Temporal and a longtime software architect who has spent decades helping shape modern cloud-native systems.We explore how programming has evolved fro…
Omnigent: Composition, Control, and Collaboration for AI Agents [not-audio_url] [/not-audio_url]

Duration: 58:16
Denny Lee is PM Director, Startups & Ecosystem at Databricks, a longtime Apache Spark, MLflow, and Delta Lake contributor — and one of the people behind Omnigent, the open-source meta-harness Databricks just released und…
The Current State of Agentic Retrieval - Qdrant Roundtable [not-audio_url] [/not-audio_url]

Duration: 58:54
Qdrant Roundtable episode: The Current State of Agentic RetrievalJoin the Community: https://go.mlops.community/YTJoinInGet the newsletter: https://go.mlops.community/YTNewsletterMLOps GPU Guide: https://go.mlops.communi…
AI Agents in Healthcare? [not-audio_url] [/not-audio_url]

Duration: 39:28
Kingsley Madikaegbu is the founder of HealID, a startup building agentic AI on top of the Model Context Protocol (MCP) for one of the most heavily regulated environments there is: healthcare.Recorded at MCP Dev Summit No…
Coding Agents Are Secretly General Agents [not-audio_url] [/not-audio_url]

Duration: 1:12:02
In this episode:🧠 Coding agents are generalist agents — why "positive transfer" means an agent that's better at code is better at everything, and how that makes them "AGI-complete"⏳ "Code will be solved in a year" — what…
The Dark Side of MCP Servers [not-audio_url] [/not-audio_url]

Duration: 1:09:59
Sam Partee (CTO & co-founder of Arcade.dev) and Nate Barbettini (Founding Engineer at Arcade.dev) sit down at the MCP Dev Summit to unpack what nobody wants to admit about the Model Context Protocol: the security model i…