WhoBuilt

Keynote: The AI developer experience doesn't have to suck – why and how we built Modal

Feb 22, 2025· 22 min· 1.5K views·Watch on YouTube

Speaker

Eric Bernhardsson, CEO of Modal, explains at an AI Engineer keynote how Modal aims to improve the developer experience for building and running AI applications in the cloud.

Build for fast feedback loops

Bernhardsson founded Modal to help developers deploy models and run large batch jobs while focusing on code instead of infrastructure. Modal runs arbitrary Python code in managed containers, giving developers control over their workflows rather than limiting them to a fixed set of AI APIs.

Run and scale Python functions

Bernhardsson demonstrates turning a Python function into a serverless function with a decorator, then running it from a laptop with output streamed back. He adds a PyTorch environment and an H100 GPU, fans out 10,000 invocations, and shows how deployed functions can serve as persistent endpoints that scale with demand.

Reduce container startup time

Modal built custom infrastructure around gVisor, including a scheduler and storage systems, to start containers quickly. Its techniques include content-addressed storage to deduplicate image files, lazy loading, prefetching based on past runs, and CPU memory snapshots. Bernhardsson says these methods can start models such as Stable Diffusion in a couple of seconds, even with large weights.

Pool compute and simplify operations

Fast startup also supports serverless use: customers draw on shared GPU capacity and pay for the time containers are active. Modal manages capacity across cloud vendors and regions, using optimization to control costs and keeping a buffer so requests for resources can often be served quickly. Bernhardsson says developers can start with `pip install modal` and receive $30 in monthly credits.

Takeaways

  • Shorter cloud startup times can make remote development feel more like local iteration.
  • Custom infrastructure can help when general-purpose container and orchestration tools do not meet latency needs.
  • Content-addressed storage, lazy loading, and snapshots can reduce repeated image transfer and startup work.
  • Pooling GPU demand can reduce capacity planning and improve utilization.
  • A serverless function can run custom code on specialized hardware and scale across many containers.

Mentioned in this talk

Search inside this talk

What was claimed 14

  • previously at
    “I was at Spotify for many years”
    YouTube
    Verified2 sources· Talk, Web· archived
  • ceo of
    “I’m the CEO of a company called Modal.”
    YouTube
    Unverified1 source· Talk
  • founded
    CEO
    “started Modal about four or five years ago during the pandemic”
    YouTube
    Verified4 sources· Talk, Web· archived
  • feature
    Modal: Provides a pool of thousands of GPUs and CPUs
    “a big pool of thousands of GPUs and CPUs”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal: Fully managed platform for running arbitrary Python code and containers in the cloud
    “we’re fully managed: we run all the infrastructure”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal: Python functions can be turned into serverless functions
    “take any Python function and turn it into a serverless function”
    YouTube
    Unverified1 source· Talk
  • uses
    Suno uses Modal
    Runs inference workloads on Modal
    “run a lot of their inference on Modal”
    YouTube
    Unverified1 source· Talk
  • uses
    “we use a fantastic container runtime called gVisor”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal: Container images use content-addressed blobs for deduplication and lazy loading
    “we store them as metadata that points to blobs”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal: Container startup uses prefetching, task tracing, and CPU memory snapshots
    “We do a lot of prefetching and task tracing”
    YouTube
    Unverified1 source· Talk
  • uses
    Modal uses R2
    “we basically use R2”
    YouTube
    Unverified1 source· Talk
  • feature
    Modal: Usage-based billing charges only while containers are active
    “you only pay for the time the containers are actually active”
    YouTube
    Unverified1 source· Talk
  • metric
    Modal: Up to $50,000 in startup credits
    “we can give you up to $50,000 in credits to get started”
    YouTube
    Unverified1 source· Talk
  • metric
    Modal: $30 per month in free credits for everyone
    “we give everyone $30 per month in free credits”
    YouTube
    Unverified1 source· Talk

Related talks