# Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal
<!--
ref: @content/youtube/latent-space/2026-10-22-why-ai-compute-comes-in-rectangles-erik-bernhardsson-modal
tags: [gpu-capacity, ai-infrastructure, sandboxes, neoclouds, serverless, company-building, security, developer-experience]
version: 2
updated_at: 2026-11-21T19:17:36.151Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=IiZ9yd2Do8I)**


*Synthesized from Erik Bernhardsson in conversation with unnamed interviewers on Latent Space, 2026-10-22.*

Erik Bernhardsson (named in the title; the captions spell it "Eric Bern Hardison") is introduced as being from Modal, a compute and storage platform for AI applications; the interviewers are not named in the transcript.

## Core Thesis
Erik argues that Modal's edge is turning the rigid, long-term "rectangle" blocks in which GPU capacity is sold (about three years, starting months out) into flexible on-demand capacity, by aggregating thousands of customers into smooth demand. He believes the company should stay a lean software business providing general-purpose building blocks (functions, sandboxes, and more) rather than becoming a neocloud, even as it has to sign large capacity deals itself.

## Key Insights
- **Background:** about 7 years at Spotify from roughly 2008-2009, building the music recommendation system (related artists, Discover Weekly) and open-sourcing the workflow tool Luigi; then CTO of Better.com for 5 years, growing tech from 2 to about 3,400 (his figures). Modal came from wanting the infrastructure he lacked at Spotify, begun during a pandemic sabbatical in 2021 with his co-founder Akshat joining as CTO.
- **Growth:** self-funded at first, first round in early 2022; revenue went from about $100 a month in November 2022 to about $2,000 in December and about $30,000 in January 2023, almost all from one Stable Diffusion customer (Mage). Now at least 50x larger than at his previous Latent Space appearance two years earlier. His founder-led tweeting and blogging drove early growth.
- **Why rebuild the stack:** Kubernetes and Docker suit steady, low-utilization backend loads, not expensive GPUs and large model loads, so Modal built its own file system, container runtime, CPU and GPU snapshots, autoscaler and capacity management, treating capacity as one global pool across regions.
- **Capacity sourcing:** early on mostly spot or one-year reservations from AWS, GCP, Azure and Oracle; now almost 25 clouds, often with 3-year-plus deals and large prepayments, a four-person purchasing desk and a bare-metal engineering team. All capacity is leased; some commitments are tens or hundreds of millions of dollars. He screens suppliers with a spec sheet (IOPS, CPU, bandwidth) and acceptance testing, and keeps an internal supplier score.
- **Market view:** prices are rising unusually (hardware normally falls), maybe for 6 to 36 months; he is more worried about prices falling, which would hurt anyone who bought at the top. He is skeptical that buying everything is wise, citing the Hunt brothers' attempt to corner silver, and says 2027 might finally be the year of non-Nvidia accelerators (AMD, TPUs), plus hybrid setups like Nvidia for prefill and Cerebras for decode.
- **Neoclouds:** they scale fast by pre-selling multi-year chip contracts to buyers like labs, then raising financing against them; Modal's product-led growth makes that harder. He is doubtful that compute becomes a Brent-style traded commodity.
- **Products:** Modal Functions (launched 2021, product-market fit in 2023, about two-thirds of revenue) and Modal Sandboxes (launched 2023, languished for two years, then took off with LLM code generation, vibe-coding companies, background agents such as Ramp's and RL workloads; now about a third of revenue). Sandboxes started on gVisor and now include full VMs. The average sandbox lasts about 8 seconds.
- **Sandbox vision:** long-running agents act like durable workflows that spin up a sandbox in about 100 ms, run commands, snapshot and shut down; fast fork, snapshot and resume enables running each test in its own sandbox (for example 1,000 in parallel) in CI.
- **Security incident:** he says an application running on Modal, not Modal itself, was exploited in the Hugging Face incident, and that Modal is exploring more restrictive defaults (like S3 public-bucket changes). Modal now has agents try to escape sandboxes to find vulnerabilities; none found yet. He expects human pentests to go from about every 6 months to yearly.
- **Agent-era DX:** what is good for developers is good for agents (docs, clear errors, fast feedback). Agents keep using old Modal syntax, so deprecations are slower; Modal runs internal benchmarks asking agents to pick a vendor and works on content clarity, a kind of SEO for agents.
- **Open models and training:** open models can now replace frontier models at much lower cost, so fine-tuning is optional; he sees demand for small and medium training (around 64 GPUs), batch (one customer transcribing 5,000 years of audio) and low-latency voice.
- **Company:** FDEs grew from 4 to about 24 this year, with the goal of turning their work into product; over 200 employees heading to about 250 by year end and possibly 700 next year, after roughly 4x annualized growth he calls unsustainable; code review is optional, backed by CI/CD and tests; managers and ICs carry equal prestige.
- **On-prem:** he calls himself a cloud maximalist; BYOC and VPC peering reflect an outdated network-as-moat security model, though he would build it at a high price.
- **Models:** he doubts LLMs are pure commodities, comparing labs to an artist with repeat releases, and expects verifiable domains (coding, math, cybersecurity, computational biology, materials) to improve fastest.

## Actionable Takeaways
1. Treat GPU capacity as shaped demand: if your load rises and falls daily, avoid fixed 3-year blocks and favor aggregated on-demand capacity.
2. When buying capacity, send suppliers a technical spec sheet, run an acceptance period and track reliability and support response.
3. Use ephemeral sandboxes with snapshots and forking, and parallelize CI per-test after a one-time setup snapshot.
4. Test your product by asking agents to recommend vendors, and keep docs and examples current so agents do not copy deprecated syntax.
5. Make code review optional only if CI, CD, rate limits and test coverage are strong.

## Notable Quotes
> "Almost all capacity is sold as a 3-year rectangle starting 3 to 6 months in the future." — Erik Bernhardsson
> "I'd rather focus on being a very lean software company, doing the things we're good at." — Erik Bernhardsson

---

*Related: `@content/youtube/tiago-forte/i-connected-claude-to-everything-then-i-saw-the-gap` · `@content/youtube/indy-dev-dan/mac-mini-agents-openclaw-is-a-nightmare-use-these-skills-instead` · `@content/youtube/cole-medin/watch-this-if-your-coding-agent-is-ignoring-your-rules-you-need-hooks` · `@content/youtube/aie/unlock-agent-autonomy-the-runtime-for-ai-native-systems-tushar-jain-docker` · `@content/youtube/aie/the-one-thing-every-ai-agent-framework-agrees-on-mislav-ivanda-daytona`*

---

*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).*