WHY-AI COURSE GUIDE

Why AI Compute Comes in Rectangles

A chapter-by-chapter readback of the free course by Erik Bernhardsson on Latent Space.

Length1:25:33
Chapters22
Modules5
Plain Markdown with clickable timestamps — drops into Obsidian, Notion or GitHub as-is.

GPU capacity is sold as rigid three-year 'rectangles' while real AI demand is bursty — Modal's edge is pooling thousands of customers into one global pool of on-demand capacity. This guide covers the actual financial and operational machinery of running a GPU cloud.

Who it's for
Read this guide if
  • You want a inside look at how a GPU cloud actually procures, vets, and prices capacity
  • You build on Modal, serverless GPUs, or AI sandboxes and want the roadmap
  • You're curious about NeoCloud financial engineering and GPUs as an asset class
Skip ahead if
  • You want a hands-on coding tutorial with step-by-step exercises
  • You're looking for model architecture or ML theory content
  • You need beginner-level explanations of what a GPU or container is
In brief
  • 85-minute interview (5133 seconds) organized into 9 chapters across 5 modules
  • Covers Modal, Spotify-era Luigi, Kubernetes vs AI workloads, NeoClouds, sandboxes, agents, and GPU economics
  • No coding demo — it's a strategy and infrastructure economics conversation
  • Best for founders, infra engineers, and platform/procurement decision-makers
  • Guest: Erik Bernhardsson, CEO of Modal (ex-Spotify recommendation systems, ex-CTO of Better)

The walkthrough

Each chapter below is our original written explanation of what happens at that moment in the video — a paraphrase, not a transcript. Click any timestamp to jump the player.

From Spotify to Modal: Origin Story

0:00

Introduction

Erik introduces Modal's platform — compute and storage serving customers like Decagon, Suno, Runway, and Cognition via an SDK that handles capacity, deployment, and scaling. Revenue has grown roughly 50x in two years.

1:35

Spotify Recommendations and Better

Before Modal, Erik spent seven years building Spotify's first music recommendation system (Related Artists, Discover Weekly) and five years as CTO of mortgage company Better, scaling its team from a few people to ~400.

3:24

Founding Modal and First Revenue

Started in 2021 as roughly his third venture after a pandemic sabbatical; he realized the real problem was executing compute, not orchestrating it. Revenue went from ~$100/month in late 2022 to $30K in January 2023, largely from one Stable Diffusion customer.

4:57

Luigi and the Pivot to Execution

At Spotify he open-sourced Luigi, an orchestration framework, but never made it a business. He pivoted Modal toward making it easy to run GPU and data workloads in the cloud, building their own file system and container runtime.

GPU Supply and the 'Rectangle' Problem

10:30

Why Kubernetes Isn't Enough for AI

Every tech era forces tool reinvention — Kubernetes and Docker fit cheap, steady CPU workloads, not expensive GPUs with models loaded over the network. Modal rebuilt the stack: file system, snapshotting, auto scaler, scheduler, and one global capacity pool.

13:36

How Modal Buys Capacity

Early on Modal rented mostly spot capacity from hyperscalers; today it works with ~25 clouds, often on 3+ year prepaid deals. A ~4-person procurement desk and ~10-person bare-metal engineering team manage this worldwide.

15:38

Renting vs Owning GPUs

Renting is capital-efficient, but buying is on the table for 2027 capacity. Erik weighs the operational and financial complexity of ownership and notes NeoClouds are essentially sophisticated financial engineering firms.

18:06

Is GPU Supply Really Scarce?

He pushes back on permanent scarcity — Nvidia ships hundreds of thousands of Blackwells monthly if you pay enough. Prices rising instead of falling is historically unusual, and he compares buying urgency to a pandemic toilet-paper run.

20:03

Scarcity, Tail Risks, and Vetting Vendors

Rising prices aren't bad for Modal — locked reservations effectively make it long GPU prices. He explains vendor vetting with spec sheets and acceptance tests, an internal ClusterMax-style vendor score, and the correlated tail risks of buying at the top.

25:46

Non-NVIDIA Accelerators and NeoCloud Finance

2027 might be the year of non-NVIDIA accelerators (AMD, TPUs, Trainium, plus Cerebras/Groq in hybrid inference). He explains the NeoCloud playbook: pre-sell five years of capacity, raise against the contract, then buy hardware.

Modal's Products: Functions, Sandboxes, Training

30:10

GPUs as an Asset Class?

Startups are building price indices and derivatives for GPU capacity, but compute is heterogeneous — networks, disks, reliability — so it may never commoditize like oil. Modal deliberately avoids becoming a NeoCloud selling multi-year commitments.

32:23

Functions and Sandboxes

Modal Functions (serverless GPU inference) is about two-thirds of revenue; Sandboxes, prototyped in days on gVisor, exploded once LLMs started generating full apps and now drive a third of revenue from vibe-coding companies and RL labs.

36:09

Training, Batch, and Market Positioning

Modal wants to be the building-block vendor for AI software, now betting on training, batch jobs (one customer transcribed 5,000 years of audio in days), and voice — while avoiding 100k-GPU mega-deals and serving underserved smaller runs.

40:38

Fine-Tuning and Open-Source Models

Open-source models near frontier quality make fine-tuning optional, but post-training demand remains. Modal believes it holds the largest sandbox market share, running hundreds of thousands to millions of sandboxes with multiple system rewrites behind it.

Sandboxes, Agents, and Security

42:10

The Future of Sandboxes

Modal added full VMs for Linux compatibility and is building forking, snapshotting, and ~100ms spin-up so durable agents can run thousands of short-lived sandboxes in parallel — the current blocker is start/stop overhead, a kind of Amdahl's-law problem.

47:30

The Hugging Face Incident

Agents exploited a vulnerability in a customer app deployed on Modal — the app was hacked, not Modal itself. The lesson: more restrictive security defaults, plus internal agents that probe the system for privilege-escalation and sandbox-escape vulnerabilities.

54:16

Agents and Developer Experience

Good DX (docs, error messages, fast loops) now doubles as good agent experience. Modal avoids feature deprecations since agents use old syntax, runs internal 'agent optimization' benchmarks, and focuses on making content legible to agents.

59:59

No Product Managers, Optional Code Reviews

Modal has no PMs — senior engineers handle product thinking — and treats code reviews as optional, arguing mandatory reviews dodge accountability and that infra companies need an extra 'nine' of uptime and strong testing before trusting AI-written code.

Culture, Growth, and the Long Game

1:06:09

Cloud Maximalism and BYOC

Erik remains a cloud maximalist, viewing on-prem and BYOC as legacy security thinking. For Fortune 500 BYOC requests Modal quotes very high prices; BYOC could also let Modal aggregate AI labs' reserved capacity into its pool.

1:08:10

Scaling to 250+ People

Modal grew ~4x annualized — deliberately unsustainable — and is hiring systems engineers (file systems, networking, CUDA/inference) plus a research team in post-training and quantization. The CEO's three focuses: capacity finance, product bets, and culture near the ~200-person threshold.

1:11:58

On-Demand vs Rectangles

The core mismatch: capacity is sold as three-year rectangular blocks while demand is bursty; median Modal sandboxes last ~8 seconds. Modal's value prop boils down to developer experience plus instantly available capacity by pooling thousands of customers.

1:18:00

Model Providers, Commodities, and What's Next

Inference providers should be separate from model builders since demand shifts between labs — Modal can auto-shift 50% of thousands of GPUs to a new open-source release. He doesn't think intelligence is plateauing and is excited about LLMs in computational biology and materials science.

Moment by moment

TimeWhy it matters
11:30Why Kubernetes was built for the wrong era — the core argument for rebuilding the AI stack
18:36The 'toilet-paper bank run' comparison for today's GPU buying frenzy
34:38Modal's refusal to become a NeoCloud — the strategic split between selling compute and selling software
47:30The Hugging Face security incident and what it means for agent-era defaults
1:19:31GPU rectangles vs bursty demand — the thesis the whole episode is named after

Do this next

  1. Try Modal's free tier: deploy a small GPU function and a sandbox to feel the developer-experience pitch firsthand
  2. Map your own AI workload's utilization pattern — bursty vs steady — and compare on-demand vs 3-year reservation pricing for your scale
  3. Read Modal's engineering blog and Latent Space's back catalog on NeoCloud economics to deepen the GPU supply-chain picture

Common questions

What does 'AI compute comes in rectangles' mean?

GPU capacity is sold in rigid three-year blocks that start months out, while real AI workloads are bursty and unpredictable. Modal's answer is pooling thousands of customers into one global pool so demand smooths out and capacity can be sold fully on-demand.

Why doesn't Modal just own its GPUs?

Renting is capital-efficient; buying brings operational complexity (power, cables, vendors) and financial complexity (dilutive raises or debt needing locked revenue). Ownership is on the table for 2027, but Erik generally believes software companies shouldn't hold hard assets.

How does Modal vet unknown GPU vendors?

It uses a detailed spec sheet (IOPS, CPU scores, bandwidth, egress) plus acceptance testing on a node before committing, and maintains an internal vendor reliability score similar to SemiAnalysis's ClusterMax, favoring vendors with fast fix turnaround.

How big are Modal's sandboxes and why does it matter?

The median sandbox lasts about 8 seconds and may get shorter. Modal's vision is durable agents that spin up thousands of tiny sandboxes in ~100ms, snapshot, and shut down — making parallel agent workflows and CI dramatically more efficient.

Spot a mistake?

Every chapter summary on this page is hand-checked against the actual video, but a 85-minute conversation can hide a misquote. If you spot an error in a timestamp, summary, or fact, please tell us so we can fix it.

More course guides