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.
Keynote: The AI developer experience doesn't have to suck – why and how we built Modal
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.
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.
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.
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 atErik Bernhardsson previously at
Spotify
“I was at Spotify for many years”
YouTube Verified2 sources· Talk, Web· archived
- ceo ofErik Bernhardsson CEO of
Modal
“I’m the CEO of a company called Modal.”
YouTube Unverified1 source· Talk
- foundedErik Bernhardsson founded
Modal
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
- usesRuns 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












