> Canonical URL: https://codingcat.dev/podcast/webassembly-wasm-edge-ai

# Stop Paying for Cloud LLMs: How Edge AI Actually Works

🎧 Podcast Episode · S5E15November 27, 2026[![](/logos/tags/rust-symbol-light.svg)![](/logos/tags/rust-symbol-dark.svg)Rust](/topic/rust)[#AI & Agents](/topic/ai)

# Stop Paying for Cloud LLMs: How Edge AI Actually Works

![](https://cdn.sanity.io/images/hfh83o0w/production/b60d688a50dc657d709708b602f2a93690db19b3-1376x768.jpg?rect=6,0,1365,768&w=1920&h=1080&q=82&fit=max&auto=format)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=4onL8K5Q8m4&list=UUnKZ8gEb78zXKMi1ns-IQ2g)[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Shivay Lamba](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/230d235863fd6fd647c62b49c33704aa8c6f795d-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Shivay Lamba](/guest/shivay-lamba)🎧 Listen & Subscribe120 BPM Beat-Synced Lip-Sync Ready[YouTube](https://www.youtube.com/watch?v=4onL8K5Q8m4&list=PLUKgAjyG9B0ZhUEXp9eVa7h4L__FDW3uV)[Subscribe on YouTube (62.5K / 100K) →](https://www.youtube.com/@codingcatdev?sub_confirmation=1)

Everyone is burning API credits on massive frontier LLMs for tasks a 2B or 4B parameter model can run locally on a phone, laptop NPU, or local GPU. In this CodingCat.dev Podcast Episode, Alex Patterson sits down with Shivay Lamba (Qualcomm, formerly Couchbase) to break down how Edge AI actually ships to production: from WebAssembly and Cloudflare Workers vs. hardware NPUs to PyTorch ExecuTorch, Google LiteRT, hardware delegates (XNNPACK and Vulkan), quantization trade-offs (PTQ vs. QAT), and a live visual walkthrough of an LLM inference graph.

## What You Will Learn in This Episode

- Cloud Frontier LLMs (vLLM / SGLang) vs. On-Device Edge Runtimes (PyTorch ExecuTorch .pte, Google LiteRT, ONNX Runtime): when to run models in the datacenter vs. locally.
- Hardware Delegates Explained: how XNNPACK (CPU), Vulkan (GPU), and Qualcomm QNN (NPU) translate model math onto local silicon without requiring low-level device code.
- Inside an LLM Inference Request: live visual walkthrough of tokenization, prefill, KV cache matrices, RMS normalization, and self-attention.
- Quantization Trade-Offs (TorchAO): balancing accuracy and speed across FP32, W8A16 mixed precision, W8A8, INT4, 1-bit quantization, PTQ, and QAT.
- Practical Local GPU Workflows (RTX 5090 / Mac Studio): using local 4B to 12B models for LLM-as-a-Judge evals, offline code explanation, and NPU Whisper transcription.

## Episode Chapters (54:54)

- 00:00 Stop Burning Cash on Frontier LLMs (Intro)
- 00:36 From WebAssembly & Couchbase Lite to Edge AI at Qualcomm
- 02:37 Why Developers Are Moving Off Cloud Frontier LLMs
- 03:29 The 3 Tiers of On-Device AI (Racks, DGX Spark / Mac Studio, Phones)
- 06:22 Cloudflare Edge Workers (Wasm) vs. On-Device Hardware Edge
- 08:41 Real-World Edge AI: Offline Medical Agents & XR Voice Pipelines
- 12:58 Hybrid Inference: Router Models & State Machines
- 15:06 CUDA Lock-In, NPU Fragmentation & Running GGUF Models on Hardware
- 19:46 vLLM vs. PyTorch ExecuTorch, Google LiteRT & ONNX Runtime
- 22:51 CPU, GPU & NPU Hardware Delegates Explained (XNNPACK & Vulkan)
- 24:18 LangChain Agent Graphs vs. Static AI Model Graphs
- 28:21 Live Walkthrough: PyTorch torch.export & Edge IR Model Graphs
- 30:15 Live Demo: Inside an LLM Inference Request (Tokens, Prefill & KV Cache)
- 32:12 Quantization Explained: FP32 to INT8, 4-Bit, 1-Bit & TorchAO
- 36:34 Post-Training Quantization (PTQ) vs. Quantization-Aware Training (QAT)
- 37:38 India AI Ecosystem: Sarvam, 1,369 Mother Tongues & Offline IoT
- 45:45 What Is Next for Edge AI: Context Limits, Pruning & 1-Bit Models
- 50:19 What Should You Actually Run on an RTX 5090 Locally?

## ✏️ Episode Summary

webassembly wasm edge ai AutoDirector2: 🔔 Subscribe for weekly AI, MCP & Web Architecture deep dives: https://www.youtube.com/@codingcatdev?sub_confirmation=1

Everyone is burning API credits on massive frontier LLMs for tasks a 2B or 4B parameter model can run locally on a phone, laptop NPU, or local GPU. In this CodingCat.dev Podcast E

✏️ Visual Architecture Diagram

## how this episode connects together.

Follow AJ through the pipeline topology from input contract to production output.

Let’s build it!✏️ Architecture Diagram: Stop Paying for Cloud LLMs: How Edge AI Actually…DATAFLOW PIPELINEARCHITECTURE DIAGRAM[Diagram Walkthrough]Content-driven pipeline diagram for Stop Paying for Cloud LLMs: How Edge AI Actually Works: Shivay Lamba -> How Edge AI Actually Wor -> Edge Delivery & Telemetry.AAA Contrast Verified

## related episodes.

[All Episodes&rarr;](/podcasts)[![Cloudflare Agents, Durable Objects & Stateful Workflows in TypeScript](https://cdn.sanity.io/images/hfh83o0w/production/d1afde44cc19c93fb4a68cfa428d5ff35009a7ca-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/cloudflare-agents-durable-workflows-typescript)November 4, 2026[![](/logos/tags/cloudflare-symbol-light.svg)![](/logos/tags/cloudflare-symbol-dark.svg)Cloudflare](/topic/cloudflare)[#AI & Agents](/topic/ai)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[+2](/course/cloudflare-agents-durable-workflows-typescript)

### [Cloudflare Agents, Durable Objects & Stateful Workflows in TypeScript](/course/cloudflare-agents-durable-workflows-typescript)

Build stateful, long-running AI agents and resilient multi-step workflows using the Cloudflare Agents SDK, Durable Objects with embedded SQLite, WebSockets hibernation, and Workflows.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Full-Stack AI Agents in TypeScript (No Python Required)](https://cdn.sanity.io/images/hfh83o0w/production/39029f88b3233113225c52926fd5bf8e684de4e0-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/full-stack-ai-agents-typescript)November 1, 2026[#AI & Agents](/topic/ai)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[![](/logos/tags/cloudflare-symbol-light.svg)![](/logos/tags/cloudflare-symbol-dark.svg)Cloudflare](/topic/cloudflare)[+2](/course/full-stack-ai-agents-typescript)

### [Full-Stack AI Agents in TypeScript (No Python Required)](/course/full-stack-ai-agents-typescript)

Architect deterministic tool-calling AI agents, multi-step workflows, hybrid browser-to-cloud routing, serverless GPU dispatch, and production eval guardrails in 100% TypeScript.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)