Practical AI
Practical AI

End-to-end cloud compute for AI/ML

We’ve all experienced pain moving from local development, to testing, and then on to production. This cycle can be long and tedious, especially as AI models and datasets are integrated. Modal is trying to make this loop of development as seamless as possible for AI practitioners, and their platform

Featured Speakers

Eric Bernardson Guest

Topics Discussed

Episode Summary

Executive Summary: Modal co-founder Eric Bernardson explains how the platform aims to make cloud compute feel like local development: developers define Python functions, dependencies, and compute needs in code, then run them in fast-starting cloud containers. Built to shorten slow deployment feedback loops, Modal is gaining traction in AI inference and parallel workloads. The discussion covers its technical tradeoffs, emerging use cases, enterprise adoption, roadmap, and current scaling challenges.

Main Topics: Developer feedback loops and Modal’s design: Bernardson argues that data and ML teams lose time moving code through container builds, cloud deployment, and log inspection. Modal brings cloud execution into the coding loop so developers can test against the environment where code will run. How Modal works and why it built custom infrastructure: Developers define functions, dependencies, and resource requirements in Python and invoke or deploy them to cloud containers. Modal built its own runtime, container builder, and file system because existing options such as Kubernetes, Docker workflows, and Lambda did not meet its speed or capability requirements. AI inference and other workloads: Online inference is Modal’s leading use case, especially for GPU models where serverless execution can avoid paying for idle instances and managing autoscaling. Modal also supports batch inference, web scraping, simulations, backtesting, and other parallel jobs. Unexpected applications and developer experience: Users have used Modal webhooks to host full web applications and have treated functions as job queues. Hot reloading and rapid cloud execution are intended to provide a tight iteration cycle similar to frontend development. Adoption, enterprise needs, and product direction: For large organizations, Bernardson recommends beginning with a low-risk, greenfield project rather than replacing critical infrastructure. Modal plans to expand from Python-based inference toward training, fine-tuning, data preparation, scheduling, and stronger enterprise security and compliance. Technical limits and near-term challenges: Modal is not targeting edge workloads that require roughly millisecond-level latency; its container-based approach is oriented to workloads with higher latency tolerance. Current priorities include improving notebook ergonomics, GPU model startup and isolation, and scaling its backend.

Key Arguments: Slow feedback loops are a major source of friction for data and ML teams because code often must run on real datasets or in production-like environments; making cloud execution quick and immediate can improve productivity. Modal’s custom runtime is intended to reduce the delays and operational steps involved in building and pushing containers, scheduling jobs, and retrieving logs. Bernardson says it can launch many containers in seconds and run code in an already-built image in about a second. Serverless GPU inference can reduce the cost and operational burden of keeping instances idle or configuring autoscaling, while letting model developers deploy without managing endpoints and security groups themselves. The platform’s broad utility is a deliberate long-term ambition, but Bernardson emphasizes expanding incrementally from validated demand, currently strongest in online inference. Enterprise adoption is more achievable when teams start with a contained, low-risk use case; existing platforms, security requirements, and organizational ownership make wholesale migration difficult. Modal’s container approach is not suited to every workload: extremely latency-sensitive edge applications may need technologies with much lower overhead.

Data Points: Bernardson’s data-industry experience: About 15 years or more - He describes working with data for roughly this long over his career. Time at Spotify: 7 years - He built the music recommendation system and worked across data and infrastructure areas. Time at Better: 6 years - He managed data teams and other teams before starting Modal. Modal container launch capacity: Hundreds of containers in a few seconds - Bernardson describes the runtime’s ability to launch cloud containers using current code. Lambda deployment delay: About a minute - Bernardson says a newly published Lambda can take about a minute before it is runnable. Modal apps deployed by co-host Daniel: 129 - Daniel cites his own Modal usage as evidence of his enthusiasm for the platform. Share of data teams using Python: More than 90% - Bernardson gives this as the reason Python is Modal’s initial language focus. Modal’s intended project horizon: 20 years - Bernardson calls Modal a long-term project and describes the broader ambition to serve data teams. Target latency for edge workloads: Around 1 millisecond - Bernardson uses this as an example of latency needs that Modal’s container-based approach is not designed to meet. Backend scaling ambition: 10x or 100x - Bernardson says Modal needs to scale its backend substantially to meet demand.

Pivotal Quotes: "What if we bring the infrastructure into that innermost loop?" — Eric Bernardson: He summarizes the central design idea: make cloud infrastructure part of rapid code iteration rather than a later deployment step. "Everything is in code. There's zero config in modal. There's like not a YAML file." — Eric Bernardson: He explains Modal’s approach of defining infrastructure needs alongside application code. "I tend to think in those conversations, it's about finding a niche use case that's low risk" — Eric Bernardson: He advises larger companies on how to begin adopting Modal without disrupting critical systems.

Implications: For ML teams, fast cloud iteration and serverless GPU execution may reduce infrastructure work and idle-compute costs. Modal’s expansion will depend on improving GPU startup, scale, and enterprise safeguards while proving itself through focused use cases; latency-critical edge workloads remain outside its target.

🔓 Sign Up for Unlimited Episode Search

About Practical AI

View all episodes from Practical AI