The 100,000 Sandbox Problem — Akshat Bubna, Modal CTO
- AI Engineering, Software, And Developer Tooling
- AI Infrastructure, Compute, Chips, And Energy

Audio deep dive
Listen to this deep dive
IntroductionSection 01
This Recap covers a *Latent Space* podcast interview and a follow-up technical conversation published by Modal. Hosts Shawn Wang and Vibhu Norby talk with Modal CTO Akshat Bubna about cloud systems for bursty inference, training jobs, and agent sandboxes. Modal inference lead Gani then talks with Cognition research lead Silas about RL execution, speculative decoding, DFlash, and automating inference optimization. One RL workload can demand 100,000 isolated sandboxes while the serving stack balances speed, cost, memory, and compute.
Modal rebuilt cloud infrastructure for bursty AI work and coding agentsSource4:55
Modal built a serverless runtime for specialized workloads that scale faster than conventional web services. Its code-first configuration now serves agents as well as developers.
- Kubernetes was designed for slower-scaling web servers, while Modal’s customers needed accelerators, varied images, and sharp bursts.
- Users keep hardware and scaling configuration beside their application code instead of maintaining extensive YAML.
- Developers use a few decorators to expose that configuration through a live, self-provisioning runtime.
- Agents can inspect problems through the CLI; people still interpret results and make judgment calls.
GPU snapshots help Modal launch as many as 100,000 sandboxesSource15:14
GPU snapshots shorten cold starts as Modal scales inference, training, and RL jobs. RL rollouts can create bursts of 100,000 sandboxes.
- Custom audio, video, robotics, and biology models gave Modal its first product-market fit.
- Many models across regions make autoscaling harder because demand peaks at different times.
- A snapshot can preserve compiled PyTorch state and make the next GPU cold start faster.
- Training preparation may need thousands of GPUs, while RL rollouts may need 100,000 sandboxes.
DFlash trades draft speed, acceptance, and concurrency across the inference frontierSource7:20
DFlash drafts tokens in parallel while the larger model verifies them. Its design shifts the balance among latency, throughput, cost, memory traffic, compute, and concurrency.
- DFlash uses a small model to draft several tokens, then the large model verifies them in one batch.
- Bubna reports a two-to-four-times speedup without reducing the verified model’s output quality.
- A constant-time draft stage gains value as the model produces longer accepted spans.
- DFlash keeps drafting efficient as concurrency or the number of speculative steps increases.
- More verification work per model load can improve both throughput and latency.
Production inference depends on utilization, autoscaling, and request reliabilitySource4:03
Production inference must handle traffic cycles as well as model speed. Utilization, elasticity, tail latency, delivery guarantees, and exact benchmarks all affect the result.
- Scale-to-zero and burst capacity can matter more than simply finding a GPU and serving a model.
- Production systems must control tail latency and deliver each request at least once.
- Daily demand can swing several times above its low point.
- Fixed clusters can run other jobs during off-peak hours.
- Autoscaling reduces the need to keep rearranging fixed capacity when traffic changes.
Production agents need colocated compute, private networking, and hard boundariesSource24:46
Agents move repeatedly among GPU inference, CPU tools, storage, and sandbox execution. Modal combines local components and private networking with enforceable security boundaries.
- Production agents use sandboxes, persistent storage, and supporting services in one coordinated system.
- One host says agent workloads shifted the GPU-to-CPU ratio from roughly 8:1 toward 1:1.
- Private IPv6 addresses let workspace containers communicate without exposing the network to others.
- Bubna rejects model-granted sandbox permissions when data exfiltration requires hard boundaries.
- Teams building production agents need control over files, snapshots, networking, isolation, and GPU access.
Modal pools 17 cloud providers and plans capacity for cheaper batch workSource25:29
A software and reliability layer joins capacity from 17 cloud providers. Hardware commitments and flexible scheduling support cheaper batch work.
- The global pool combines 17 providers and several kinds of cloud capacity, including NeoClouds.
- Working with data-center builders keeps the company capital-light and focused on software.
- Its reliability layer shields workloads from failures such as a GPU falling off the bus.
- Capacity planners model reservation terms, GPU choices, regions, forecasts, and supply-chain changes.
- A planned batch tier offers lower prices when customers can wait about 24 hours.
Agents now run reinforcement-learning and inference experiments inside ModalSource17:46
Cognition uses Modal’s elastic GPUs for RL rollouts, distributed training, and automated inference experiments. Agents run sweeps and monitor jobs, while researchers still supply ideas and diagnose failures.
- Training infrastructure, rollouts, sandboxes, and inference must work together across thousands of GPUs.
- Silas estimates 20 researchers can now match a former team of about 100 by running agents.
- Modal’s harness lets agents profile alternatives, tune configurations, and compare H200 with B200 GPUs.
- Devin runs its inference experiments inside Modal GPU sandboxes.
- After a benchmark failed, Devin found the affected work and reran a large sweep.
Open models and media agents push infrastructure below a fixed APISource42:09
Open models and real-time media require more control than a fixed API provides. Teams may need custom backends, regional GPU routing, and agents that orchestrate several models and tools.
- Bubna expects thousands more companies to post-train and deploy open models.
- Regional routing with fallbacks places GPUs near audio and video users to cut latency.
- Starter code lets teams modify and run a complete backend instead of calling one endpoint.
- One customer needs code-level changes because its model architecture is fully custom.
- Wang describes video agents that use code, tools, and models to make work longer than one clip.
Coding agents are reshaping CI, SDKs, CLIs, and infrastructure interfacesSource53:40
Coding agents will create more CI work and need direct access to infrastructure. The company is adapting its SDKs, CLI, startup path, and benchmark around those workflows.
- Memory snapshot-and-restore primitives could reduce time spent preparing CI artifacts and dependencies.
- Python, Go, and TypeScript SDKs are available; agents favor TypeScript while model work remains Python-heavy.
- Faster service startup and production deployment are part of the agent experience.
- The Modal Bench records agent failures that may justify new features or CLI access to logs and metrics.
Tags
- Open Source AI
- Inference Infrastructure