# "Fireside Chat with Erik Bernhardsson, Modal" <!-- ref: @content/youtube/langchain/fireside-chat-with-erik-bernhardsson-modal tags: [sandboxes, AI infrastructure, inference, open source models, reinforcement learning, forward deployed engineers, agent harnesses] version: 2 updated_at: 2026-11-22T10:28:43.956Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=1M8vagUOdJM)** # Fireside Chat with Erik Bernhardsson, Modal *Synthesized from Erik Bernhardsson in conversation on LangChain, 2026-11-12.* Erik Bernhardsson describes Modal, an AI infrastructure company, in a fireside chat with an unnamed interviewer at a LangChain event. ## Core Thesis Erik argues that infrastructure rewards long-term thinking about primitives, and that Modal's early building blocks (file system, container runtime, scheduling) positioned it for the Gen AI wave. He expects agent harnesses to decouple from short-lived sandboxes, open-source models to displace frontier ones for many workloads, and architectures to churn heavily over the next 12 to 24 months. ## Key Insights - **Company history.** Modal started in early 2021, struggled to find its direction, and got its break when Stable Diffusion became a killer app after ChatGPT arrived in late 2022. Customers named include Cognition, Decagon, Suno, Runway, Lovable, Ramp and Meta. - **Sandboxes timeline.** A serverless function product launched in 2021 and took one or two years to find product-market fit. Sandboxes launched in 2023, built by co-founder Akshat in about two days, and did not grow until 2025. Growth came from vibe coding apps, then background coding agents (Ramp runs an internal one called Ramp Inspect on Modal), then reinforcement learning at millions of sandboxes with constant rollouts. - **Differentiation.** Interfaces are similar across vendors; Erik says the difference is scale, performance and reliability. He believes Modal is likely the largest sandbox vendor. - **gVisor to VMs.** Modal is moving from the gVisor runtime to full virtual machines because customers want complete operating systems, such as running Docker or changing firewall rules, plus some performance gain. Windows and possibly Mac sandboxes are being explored, driven by expected training of computer-use agents on Excel, Outlook, Slack and Teams. - **Decoupling hot take.** Long-lived stateful sandboxes reflect poor harness architecture, where the harness runs inside the sandbox. He wants a long-running harness with ephemeral sandboxes, perhaps one per tool call, enabling cloned subagents, snapshots and restores. Modal's median sandbox lasts about 12 seconds, with a tail up to 24 hours. The interviewer says builders have moved from about 50/50 to 75 or 80% running the harness outside, after Anthropic's "hands from the brain" post. - **Lightweight sandboxes.** He sees Wasm, V8 isolates, Pydantic Monty and just-bash as useful for running small snippets a million times, but says agents generally want a "fat Linux box." - **Inference.** Open-source models were far behind a year ago; in the last three months Erik says they have been roughly as good as frontier models, though new OpenAI and Anthropic releases pulled ahead again. Swapping Anthropic for Kimi K3 or DeepSeek 4.1 can save about two-thirds of token cost. Modal offers auto endpoints (one-click single-tenant deploys) and shared endpoints, and self-optimizes performance by training draft models and tuning batch sizes. He guesses inference volume is about 50/50 custom versus off-the-shelf, while about 95% of customers use off-the-shelf models. - **Post-training.** Most users do supervised fine-tuning; RL is costly, use-case specific and tricky (rollouts, evals, judges), worth it mainly for customers like Cognition. He would like to package "RL in a box," citing Tinker by Thinking Machines as an example for SFT. - **Upcoming products.** Multi-node training (4, 8 or 16 nodes, about 128 GPUs, RDMA interconnect) launching in a few weeks, and a batch product with up to 50% discount for latency-insensitive jobs, such as a customer transcribing 5,000 years of audio. - **Team and AI use.** Forward deployed engineers grew from three at the start of the year to 25. Erik estimates AI coding is a 2x to 3x change, not 10x, and says more experienced engineers use agents more, treating them like interns. Tooling is not mandated: Cursor first, then Claude and Codex. - **Bullish bet.** Voice-to-voice models, with six to twelve months to reach human-like latency and fidelity. ## Actionable Takeaways 1. Build agent harnesses that run outside the sandbox and use one ephemeral sandbox per tool call or task, so you can snapshot, clone and restore. 2. Consider an open-source model such as Kimi K3 as a swap for a frontier model before investing in post-training. 3. Try supervised fine-tuning or better prompting before reinforcement learning. 4. Use batch or queued jobs for latency-insensitive work to take discounts. 5. For AI infrastructure, plan for virtual machines rather than minimal runtimes when agents need full Linux behavior. ## Notable Quotes > "I think the future of agent harnesses is actually a decoupling." — Erik Bernhardsson > "Reinforcement learning is a mess, though." — Erik Bernhardsson > "Infrastructure is like a little bit more, like, slightly more longer term." — Erik Bernhardsson --- *Related: `@content/youtube/sequoia/ai-that-designs-its-own-chips-ricursives-anna-goldie-and-azalia-mirhoseini` · `@content/youtube/no-priors/from-note-taking-app-to-ai-workspace-the-simon-last-interview` · `@content/youtube/aie/unlock-agent-autonomy-the-runtime-for-ai-native-systems-tushar-jain-docker` · `@content/youtube/yc-root-access/improving-small-language-model-reasoning-with-a-search` · `@content/youtube/yc-root-access/any-horizon-reasoning-for-video-agents`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*