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

Show all 14 facts

Related talks