Jul 8, 2026 · 59m · latent-space
The Future of AI Infra: from Kubernetes to Agent Sandboxes — Akshat Bubna, Modal CTO
gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions
In this interview, Modal CTO Akshat Bubna explains how Modal engineered a high-performance, serverless cloud platform tailored for elastic AI inference, fine-tuning, and autonomous agent sandboxes. He details the transition from Kubernetes-based developer workflows to agent-optimized infrastructure, highlighting innovations in GPU snapshotting, speculative decoding, and low-level kernel security.
How this conversation actually went
Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. How this is scored →
speaking balance: gold is the hosts, purple is the guest (3 minute bins)
Akshat directly dismisses the host's speculative hypothesis about an 'LLM OS' kernel, arguing firmly that sandbox security requires uncompromised deterministic boundaries.
Hardest push from the hosts ▶ 44:40 Host pushes non-consensus LLM-as-kernel thesisThe host challenges conventional security paradigms by suggesting standard sandbox approaches are dinosaur thinking compared to a hypothetical pure LLM kernel.
Biggest teaching moment ▶ 32:04 Clarifying eBPF packet filtering versus WireGuard VPNsAkshat methodically clears up the host's confusion between user-space encrypted tunnels and in-kernel eBPF TCP authorization for inter-container communication.
The host holds their own ▶ 24:22 Host analyzes the 8:1 to 1:1 GPU-CPU inference inflectionThe host synthesizes insights from Jensen Huang's GTC keynote to articulate how emerging agent workloads shift computational bottlenecks between CPU and GPU.
the scores for every segment, with the reasoning behind each
| Chapter | Topic | The hosts as informed peer | Guest teaching | Guest disagreement | The hosts pushing back | Why |
|---|---|---|---|---|---|---|
| Modal's Origin Story and Escaping Kubernetes Limitations | 6 | 4 | 1 | 2 | The host recalls Modal's early serverless container stack presentations from Data Council and questions whether data pipelines genuinely needed that level of infrastructure. Akshat explains the evolution from serverless primitives to bursty ML inference and computer vision workloads. | |
| Self-Provisioning Infrastructure and Decorators Over YAML | 6 | 3 | 2 | 3 | The host brings up his own past post on self-provisioning infrastructure and playfully notes the vendor lock-in pushback around custom DSLs. Akshat reframes the value around code ownership and how self-provisioning runtime benefits both human DX and agent AX. | |
| Defining Modal's Purpose: Cloud Primitives for AI Applications | 6 | 3 | 1 | 2 | Hosts ask Akshat to define Modal's core identity beyond general compute, citing their early direct experience running Small Developer. Akshat outlines Modal as scratch-built cloud primitives specifically optimized for AI applications rather than static web servers. | |
| Handling Massive Scale and Elastic RL Training Runs | 5 | 5 | 2 | 2 | Vibhu probes into rapid RL training run patterns like Cursor Composer scaling up and down hourly. Akshat clarifies the distinct workload profiles between diurnal custom inference, batch pre-training encoders, and massive 100k sandbox RL rollouts. | |
| Continual Learning and Upstreaming Open-Source LLM Advancements | 6 | 5 | 1 | 2 | The host and guest discuss speculative decoding, with the host asking for technical clarification on draft models versus compute overhead. Akshat breaks down the mathematics of memory bandwidth bounds versus multi-token accept length multiplicative speedups in dFlash. | |
| The Modal Infrastructure Delta and Production-Grade Reliability | 6 | 4 | 1 | 2 | Vibhu asks what technical delta Modal offers over running open-source engines like SGLang directly on raw compute. Akshat explains that Modal actively upstreams performance work to SGLang while offering zero-scaling elasticity and production-grade tail latency management. | |
| Supporting the Complete Model Life Cycle and Ramp Inspect | 6 | 4 | 1 | 2 | The host notes the shifting CPU-to-GPU workload ratio from 8:1 to 1:1 in agentic workloads and asks about multi-cloud arbitrage. Akshat explains Modal's software-defined reliability layer aggregating over 17 distinct neocloud providers without owning physical data centers. | |
| Advanced Agent Networking, Sidecars, and Private IPv6 Overlays | 5 | 5 | 1 | 1 | The host queries Modal's emerging networking capabilities, drawing comparisons to Docker Compose. Akshat reveals unpublished features like multi-container sidecars and their ISXPN private IPv6 overlay network originally built for distributed training. | |
| Inter-GPU Memory Management, RDMA, and eBPF Network Security | 5 | 6 | 2 | 3 | The host mixes up WireGuard encryption with Modal's kernel-level TCP overlay and questions whether cross-node training networking is fast enough. Akshat politely disentangles eBPF access control and clarifies their internal 3 Tbps RDMA interconnect for medium post-training workloads. | |
| Autonomous Research, Auto Inference, and Parameter Sweeps | 5 | 4 | 1 | 2 | The host characterizes auto-research as mostly science-fair hype and asks if it is merely hyperparameter sweeps. Akshat reveals Modal's internal 'auto inference' harness that autonomously runs NVIDIA Nsight profilers and tunes configurations to replace manual forward-deployed engineering. | |
| Evaluating LLM-Generated Modal Code and Building Modal Bench | 5 | 4 | 1 | 2 | The host inquires about LLM code generation reliability for Modal and hardware supply shortages. Akshat discusses developing Modal Bench and explains compute strategy roles that model fungible multi-year reservations and capacity pricing tiers. | |
| Future Product Roadmap: Real-Time Media and Agent Ecosystems | 6 | 4 | 2 | 3 | The host pushes a provocative hypothesis that an LLM should act directly as the OS kernel with adaptive permissions. Akshat firmly pushes back, maintaining that security at the sandbox level strictly requires deterministic hard boundaries rather than purely LLM-mediated guardrails. | |
| Managed Agent Ecosystem vs Dedicated Sandbox Infrastructure | 5 | 4 | 1 | 2 | The host asks whether managed agent suites from frontier labs threaten Modal's position. Akshat explains that while labs provide great starting points, production enterprise agents like Ramp require granular control over persistent storage, GPU sandboxes, and snapshotting. | |
| Code-First Infrastructure vs Commodity Model APIs | 6 | 4 | 2 | 2 | The host brings up Replicate and asks for a postmortem on why model API marketplaces struggle. Akshat points out that raw model APIs cater to transient hobbyist traffic, whereas Modal provides programmatic, customizable code-level infrastructure for enterprise products. | |
| Differentiated AI Products and Video Orchestration Agents | 6 | 3 | 1 | 1 | The host cites predictions from xAI team members about video generation moving toward multi-model orchestration agents. Akshat validates this with real customer behavior where agents execute complex FFmpeg workflows inside GPU sandboxes. | |
| The Evolution of CI/CD for Coding Agents and Runtime Sandboxes | 6 | 4 | 1 | 2 | The host discusses Gitpod/Ona joining OpenAI and queries the architecture of agent CI/CD. Akshat details how memory snapshot-and-restore primitives can eliminate dependency preparation bottlenecks and contrasts build-time with runtime sandboxes. | |
| Multi-Language SDKs and Programming Paradigms in the AI Era | 5 | 4 | 1 | 2 | The host asks if DX and AX are nearly identical paradigms. Akshat explains that while conceptually aligned, AX requires concrete product changes like porting UI observability metrics into machine-parseable CLI commands and benchmark-driven feature additions. |