Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal CEO Source: latent.space.
Modal’s CEO, Erik Bernhardsson, explains how AI compute demand differs from traditional capacity contracts. Instead of fixed, rectangular blocks of GPU time, real-world workloads spike and fall. This leads to a shift in infrastructure design—from rigid contracts to elastic, on-demand compute.
GPU Demand Isn’t Rectangular
Traditional capacity contracts give customers a fixed number of GPUs for a fixed period. When plotted over time, this forms a rectangle.
Real AI workloads, however, are dynamic. They grow, spike, and fall throughout the day. A customer might need full GPU power during a peak hour, then idle for hours.
Buying enough for the peak means paying for unused hardware. Buying less risks missing demand. This mismatch creates inefficiency and cost.
Modal’s Duration Transformation
Modal’s approach is a form of duration transformation.
It pools demand from thousands of users, secures underlying capacity, and allows each customer to use what they need—when they need it.
The smoother the aggregate demand, the more useful this pooled capacity becomes. This model complements other infrastructure efforts, like those at SF Compute, which focus on trading capacity.
Financial Risks in GPU Pricing
There is a financial risk if providers lock in capacity at current prices, only to see GPU prices fall later.
Bernhardsson acknowledges this possibility but says it is not imminent. He emphasizes that such a collapse would be damaging for providers who have overcommitted.
Modal has not seen a price collapse, and he does not expect one in the near term. However, it remains a tail risk in business planning.
The Sandbox That Almost Didn’t Make It
Modal launched sandboxes after Bernhardsson and co-founder Akshat Bubna noticed that language models could generate code—and that someone needed a place to run it.
Early adoption was modest. The team considered shutting down the product.
Then, coding agents, background agents, and reinforcement learning created new demand. Sandboxes grew to about a third of Modal’s revenue—far beyond initial expectations.
Fast Startup as an Infrastructure Feature
For elastic compute to work, capacity must arrive quickly. Modal’s infrastructure includes:
- A buffer of available GPUs
- A custom filesystem
- Process checkpointing
- GPU memory snapshots
These features reduce the time needed to bring a model replica online. This responsiveness is critical for agent-based workflows.
From Spotify to Modal
Bernhardsson spent seven years at Spotify building a music recommendation system. Much of that work involved matrix factorization and heavy compute.
He realized that AI infrastructure was poorly designed. The tools available at the time were not built for modern, dynamic workloads.
He later joined Better.com as CTO, growing a team from two to four hundred people. There, he focused on developer productivity and tooling.

Modal’s Early Growth
Modal began as a personal project. Bernhardsson self-funded it for years before raising seed capital.
Initial revenue was minimal.
That spike came from a single customer: Mage, a stable diffusion startup in New York. It accounted for 80–90% of revenue at that time.
By late 2023, revenue diversified. Today, Modal has strong, broad customer distribution.
Building New Tools for AI Workloads
Traditional tools like Kubernetes and Docker were built for steady, low-utilization workloads. They are not optimized for GPU-intensive AI tasks.
Modal rebuilt core infrastructure from the ground up. This includes:
- Custom file systems
- GPU and CPU snapshotting
- Autoscalers and schedulers
- Capacity management tools
These tools are designed for dynamic, high-utilization workloads. They allow rapid scaling and efficient resource use.
Cloud Capacity Strategy
Modal initially sourced capacity from AWS, GCP, and Oracle spot and one-year reservations.
To secure capacity, it now enters multi-year deals—often three years or longer—with significant upfront payments.
Modal does not own any hardware. It rents all capacity. This approach offers capital efficiency and avoids operational complexity.
It has a dedicated procurement team of four people. They manage vendor vetting, capacity deals, and technical testing.
Why Renting Over Buying?
Bernhardsson sees hardware as a long-term investment. He believes most software companies should avoid owning hard assets.
He compares it to owning an office. While it may seem logical, it adds operational and financial complexity.
Buying hardware requires equity or debt financing. Both are dilutive or risky. Debt requires long-term revenue to service interest.
GPU Prices and Market Dynamics
NVIDIA continues to deliver hundreds of thousands of GPUs monthly. This suggests supply is not fully constrained.
Prices have risen due to demand, but Bernhardsson does not believe hardware prices will remain high indefinitely.
He notes that in the long term, hardware prices tend to fall—like all technology.
Modal benefits from current scarcity. It charges more due to limited supply. It also has long-term reservations, effectively locking in GPU prices.
He does not expect prices to collapse soon. But such a collapse would be damaging for providers who locked in high prices.

Competing with OpenAI and Anthropic
OpenAI and Anthropic are large buyers of GPU capacity. They prefer large, stable allocations.
They also tend to buy from major hyperscalers and avoid smaller, riskier providers.
Modal, in contrast, targets smaller, distributed capacity. It sources from regions like Armenia and Indonesia—offering 32 to 128 nodes at competitive prices.
It evaluates vendors based on:
- Minimum IOPS and CPU performance
- Bandwidth and network reliability
- Response time for support issues
- Speed of issue resolution
Modal runs acceptance testing on one node before committing to large deals. This reduces risk.
Is AI Demand Infinite?
Bernhardsson acknowledges that AI demand is growing rapidly. But he cautions against overbuying.
Even if capacity were bought, utilization would not be guaranteed. Demand is correlated—when prices fall, utilization drops too.
He cites the Hunt Brothers’ failed silver market cornering as a warning. Overbuying can backfire in a market with correlated downturns.
Modal grows capacity at a rate that matches its demand. It does not aim to corner the market.
Non-NVIDIA Accelerators
He notes that TPUs are already widely used at Google. Hardware like Cerebras and Grok show promise on specific workloads.
Some systems use hybrid inference—NVIDIA for pre-fill, Cerebras for decode—leveraging different hardware strengths.
While complex, such setups offer new possibilities. Bernhardsson sees growing demand for alternative accelerators.
Lessons from Neoclouds
Neoclouds have grown rapidly despite having minimal capacity. Their model is to go directly to large buyers—like OpenAI or Anthropic—and offer long-term chip commitments.
They do not rely on large-scale infrastructure. Instead, they use direct buyer relationships to scale quickly.
This model shows that capacity can be secured through strategic partnerships, not just physical scale.
What to Watch Next
Modal’s strategy reflects a broader shift in AI infrastructure: from fixed contracts to dynamic, elastic compute.
As AI agents grow in complexity, demand for fast, responsive, and scalable compute will rise.
Providers that can adapt infrastructure to real-world usage patterns—like Modal—will lead in the agent cloud era.
Modal’s success shows that AI infrastructure must evolve with the applications it supports.
Sources & further reading
Featured image: original publisher image. Via original publisher. Image source

