Skip to content

By playing, you agree to uListen's Terms and Privacy Policy and YouTube's Terms of Service.

Latent SpaceLatent Space

The Future of AI Infra: from Kubernetes to Agent Sandboxes — Akshat Bubna, Modal CTO

From adding GPUs a year before ChatGPT to building the cloud primitives behind elastic inference, agent sandboxes, post-training, and production AI workloads, Modal has quietly become one of the most important infrastructure companies in…

Akshat BubnaguestswyxhostAlessio Fanellihost
Jul 8, 202659mWatch on YouTube

Summaries, chapters, transcripts, and FAQs on this page are made by uListen, not YouTube.

Great conversations run long. Their best ideas don't have to.

uListen is free on iPhone, iPad, Android, Chrome, and Claude.

See how

At a glance

WHAT IT’S REALLY ABOUT

Modal’s AI infra thesis: elastic inference, sandboxes, and supercloud primitives

  1. Akshat Bubna explains that Modal began as a better runtime to avoid Kubernetes complexity and YAML-heavy workflows, optimized for bursty, specialized compute workloads.
  2. He describes Modal’s current focus as cloud primitives built from scratch for AI applications spanning inference, training, batch processing, and sandbox-based agent workloads.
  3. He says Modal’s largest present-day use case is elastic inference for custom models, where regional traffic variability and rapid scaling requirements are more important than raw GPU provisioning alone.
  4. He outlines performance work for LLM inference—including DeFlash speculative decoding and Auto Endpoints—to deliver strong performance with transparent, user-modifiable code and easier onboarding.
  5. He positions Modal as a multi-cloud “supercloud” with reliability and networking layers (including private IPv6 overlay networking and RDMA clusters) to support emerging agent and training workloads.

IDEAS WORTH REMEMBERING

5 ideas

Modal is shifting from developer experience to “agent experience” by collapsing infra configuration into code-adjacent primitives.

He argues that agents shouldn’t be forced to read and edit large collections of Kubernetes manifests, especially untyped YAML, when infrastructure intent can be expressed directly next to code via small decorator changes that provision the right runtime.

Modal’s origin story is a reaction to Kubernetes being mismatched for bursty, specialized compute-heavy workloads.

He says Kubernetes is “hard to manage,” not built for burstiness, and poorly suited to specialized environments (different images, accelerators), while Modal’s runtime was designed around these workload shapes.

Elastic inference—especially regional autoscaling for custom models—became Modal’s core product-market fit.

He describes Modal’s biggest current use case as elastic inference for companies deploying many custom models across regions, where traffic is unpredictable (diurnal patterns, launches) and scaling needs to happen quickly within specific regions.

Snapshotting and rapid provisioning are central to handling bursty inference and RL/eval sandbox spikes.

He says GPU snapshotting lets Modal capture GPU state (including compiled model state) so cold starts become much faster, enabling deeper autoscaling and “true scaling to zero.” He also mentions extreme bursts such as needing “100,000 sandboxes in seconds” for RL rollouts.

Modal is investing in inference algorithmics (e.g., DeFlash speculative decoding) where accept-length drives multiplicative gains.

He explains speculative decoding as using a smaller draft model to propose tokens and a larger model to verify them, emphasizing that increasing the “accept length” yields multiplicative speedups, while kernel improvements tend to be incremental; he notes no quality drop because the larger model verifies tokens.

WORDS WORTH SAVING

5 quotes

We've actually changed our SDK team to think about agent experience instead of, uh, developer experience.

— Akshat Bubna

Like uh, when, when you're doing, uh, rollouts, uh, you, you sometimes need 100,000 sandboxes in seconds.

— Akshat Bubna

We've incorporated GPU snapshotting into the product so we can actually, uh, take the GPU state, uh, like your Torch compiler model, snapshot it, and the next cold start's way faster.

— Akshat Bubna

I think it's, it's that running production-grade inference is a hard infer problem.

— Akshat Bubna

We've built this capacity pool that spans, uh, 17 cloud providers, so we're, we're very good at running on various kinds of cloud capacity across the world.

— Akshat Bubna

Read the available transcript
Why Kubernetes wasn’t enoughSelf-provisioning runtime via decoratorsDeveloper experience vs agent experienceElastic inference for custom modelsGPU snapshotting and cold-start reductionSandboxes, agent loops, and RL rolloutsSpeculative decoding and DeFlash open sourcing (accept length)

Ask ChatGPT about this episode

Get its key ideas, plus a summary of each chapter linked to that point in the video, right in your chat.

  1. Add uListen AI to ChatGPT.

  2. Paste this prompt into a new chat.

    Use uListen AI to give me this episode's key ideas and a chapter-by-chapter summary, with timestamps: https://www.youtube.com/watch?v=UwxxlTNPjWo

SPEAKERS

  • Akshat Bubna

    guest

    CTO of Modal, working on AI/cloud infrastructure for serverless GPU and sandboxed compute.

  • swyx

    host

    Co-host of Latent Space; software/AI infrastructure commentator formerly at Temporal.

  • Alessio Fanelli

    host

    Co-host of Latent Space, focusing on AI systems and infrastructure.

High quality AI-generated summary created from speaker-labeled transcript.

Get more out of YouTube videos.

Read along on your phone, search it beside the video, or ask your favorite AI app what was said.