CEOInterviews.AI
Start App
Get an email when Erik Bernhardsson gives a new interview
One email per new interview. Unsubscribe in one click.
Erik Bernhardsson
Co-founder & CEO, Modal

Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal

📅 Oct 22, 2026 Latent Space and Basil Chatha 85 MIN 232 VIEWS 210 SEGMENTS · 2 SPEAKERS
AI workloads don’t run in neat, three-year rectangles. But much of the GPU market still sells capacity that way. Modal CEO Erik Bernhardsson joins Latent Space to explain how Modal pools compute, scales AI workloads and thinks about the financial risks of building a GPU cloud. Erik takes us from building Spotify’s recommendation system to founding Modal, then digs into GPU supply, alternative accelerators and the surprising growth of agent sandboxes. We also discuss sandbox security, developer experience in the age of agents, forward-deployed engineers and why Modal makes code review optional...

What Erik Bernhardsson said

Written from the verified transcript and checked against it. Every figure links to the moment it was said.

Erik Bernhardsson, CEO of Modal, discussed the company's evolution from a general-purpose compute platform to a multi-product AI infrastructure company. He emphasized Modal's focus on flexible, on-demand capacity, contrasting it with the industry's common practice of selling capacity in fixed, three-year blocks. He described the shift in capacity procurement, now working with nearly 25 clouds and making long-term deals, while expressing caution about buying hardware due to risks of price collapses. Bernhardsson highlighted two core products, Modal Functions (about two-thirds of revenue) and Modal Sandboxes (about a third), with sandboxes seeing explosive growth. He discussed the importance of building general-purpose building blocks, the potential of non-Nvidia accelerators, and the value of developer experience in an agentic era. He also touched on team culture, hiring plans, and the strategic use of forward-deployed engineers.

Key takeaways

  1. Modal's revenue and usage have grown roughly 50x since late 2023.
  2. Modal now works with nearly 25 clouds and has shifted to multi-year deals, sometimes three years or longer, with significant upfront payments.
  3. Modal Sandboxes now generate about a third of revenue, with monthly growth around 30%.
  4. Bernhardsson warned that GPU prices could collapse, and owning hardware carries tail risks.
  5. Modal is open to buying capacity but currently rents all hardware, preferring capital efficiency.

Numbers and commitments

FigureWhat it refers toTypeAt
50x Revenue and usage growth since late 2023 metric 0:59
25 Number of clouds Modal works with metric 14:16
about 2/3 of revenue Share of Modal revenue from Functions metric 32:10
30% Monthly growth in sandbox revenue metric 1:20:26
200 people Current employee count metric 1:10:20
250 Expected employee count by end of year commitment 1:11:33
700 people Expected employee count next year commitment 1:13:09
8 seconds Median sandbox duration metric 1:17:52
4 FDEs Number of forward-deployed engineers at start of year metric 57:53

Chapters

  1. 0:00Background and early career
  2. 3:50Founding Modal and growth
  3. 13:37Capacity procurement and GPU market
  4. 24:18Risks and tail risks
  5. 26:13Alternative accelerators
  6. 28:25Neocloud business model
  7. 31:59Products: Functions and Sandboxes
  8. 47:30Security incident and cybersecurity
  9. 52:51Developer experience and agents
  10. 1:01:45Team structure and company culture

Questions asked in this interview

12
  1. 0:04Could you explain the business a little bit and maybe how you got here?
  2. 4:47And was this before the ChatGPT launch?
  3. 12:21Was there anything that broke while you guys were scaling?
  4. 21:19How do you compete with OpenAI and Anthropic buying GPU capacity?
  5. 27:46What are your thoughts on some of those providers?
  6. 36:02Any predictions maybe about the market, anything like that?
  7. 45:57Why hasn't that already been built?
  8. 50:08When did you start doing that?
  9. 56:19Like, yeah, what do you do about that?
  10. 1:01:45Have your team structures evolved a lot now that we have coding agents?
  11. 1:10:17Do you think that's going to change?
  12. 1:19:44Would you say that's a differentiator? Like the — oh really?
Interviewer 0:04 ↗
Thanks for coming on. Eric Bernhardsson from Modal. Could you explain the business a little bit and maybe how you got here?
Erik Bernhardsson 0:11 ↗
Yeah, so we build... the easiest way to put it is we build AI infrastructure. So we offer a bunch of compute, a compute platform, and a storage platform that enables a lot of customers like Decagon and Sunno and Runway and Cognition and many others to essentially build AI applications. So what that means in practice is a lot of inference, a lot of sandboxes, sometimes training and fine-tuning, sometimes batch jobs and other things. So we have basically built a software SDK that enables customers to move really fast and build this. We manage all the capacity underneath, make it easy to deploy and scale and run these things in production.
Interviewer 0:49 ↗
So you were on late in space like 2 years ago. A lot has happened since then. Like how big were you back then? Like whatever numbers you can share and comparatively, yeah, how big are you now?
Erik Bernhardsson 0:59 ↗
I actually don't remember where we were, but it's like probably at least like 50x in terms of revenue and users and usage and stuff like that.
Interviewer 1:08 ↗
I use it actually for like a side project that I have.
Erik Bernhardsson 1:11 ↗
Nice.
Interviewer 1:11 ↗
Yeah, it's like turning 2D images into 3D models. So yeah, just hosting models there.
Erik Bernhardsson 1:17 ↗
What do you think? Any feedback?
Interviewer 1:18 ↗
I mean, I love it.
Erik Bernhardsson 1:20 ↗
Nice. Good.
Interviewer 1:21 ↗
Yeah, that's why I use it over any competitors or anything.
Erik Bernhardsson 1:24 ↗
Good. So before you started Modal, you were at Spotify and also better.com I think. That's right. Yeah.
Yeah, what were you doing at Spotify?
I actually did a lot of different things at Spotify, but my main contribution was I built a music recommendation system, the first version. I joined after school in 2008, 2009 maybe. And spent seven years at Spotify and most of that time was building basically from scratch a music recommendation system and built up a small team and we launched a bunch of features like related artists and Discover Weekly and a bunch of other stuff. So a lot of matrix factorization, a lot of compute intensive stuff, and arguably a lot of what later became the genesis of Modal was just building AI applications and realizing like the infrastructure sucks. There's got to be a better way to do that. So a lot of the rationale for Modal was kind of building a tool I always wanted to have throughout my years at Spotify.
Interviewer 2:20 ↗
Yeah. So Modal was more of an offshoot of the stuff you learned at Spotify, not much from better.com.
Erik Bernhardsson 2:27 ↗
Better.com was a little bit of a side tour. It was kind of a roller coaster. Long story about the company, talk about it separately, but I was CTO for 5 years of Better and grew the tech team from, I think, two to three to 400. So learned a lot about management and building teams and hiring and also learned a lot about developer productivity. Thought a lot about tools and things like that. Did a lot more like full stack stuff, but yeah, kind of came back to what's close to my heart, which is infrastructure and AI and machine learning after that.
Interviewer 2:56 ↗
What was better.com doing again?
Erik Bernhardsson 2:57 ↗
Mortgages.
Interviewer 2:58 ↗
Okay.
How did you get into that? I mean we don't have to spend too much time on that.
Erik Bernhardsson 3:02 ↗
Yeah, no, it's fine. Like this guy Zack Frankle, who I didn't know at that time, ended up recruiting me to Better as the CTO and the company was 10 people and, you know, for whatever reason, the founder Vishal, very interesting guy, very very smart, a little crazy in mostly positive ways. We got very well along, so we started building it in 2015 and I spent 5 years growing that company and then eventually turned out that doing mortgages is pretty hard. And interest rates went up very quickly after the pandemic and then that caused a lot of issues at the company, but by then I had already left.
Interviewer 3:39 ↗
That was like 2020, 2021 when you left.
Erik Bernhardsson 3:42 ↗
Yeah, something like that. Yeah.
Interviewer 3:43 ↗
So you left before you had the idea for Modal, or you left and then you started?
Erik Bernhardsson 3:50 ↗
It's hard to say. I had a lot of random ideas when I left Better and I wasn't sure if I wanted to start a company. I was kind of just, you know, during the pandemic, I almost took like a sabbatical. I had two kids, I mean I still have two kids, but at that time there were, I think two and four, and so I decided to hang out and took some time off and was kind of working part-time, hacking on certain things, and wasn't sure maybe I should do some consulting. And I started building stuff and I just got super pumped about this idea that eventually became Modal. But I actually built, you know, Modal was like I think the third thing I built that I got, you know, there were a few attempts before then that went nowhere, but Modal was like the first idea where I thought this is kind of cool, I should do this. This could be a really cool platform.
Interviewer 4:37 ↗
Were the other ideas also in a similar vein, like developer tools?
Erik Bernhardsson 4:41 ↗
The first thing was like some sort of web scraping thing, which went nowhere, but actually in hindsight maybe could have gotten somewhere.
Interviewer 4:47 ↗
And was this before the ChatGPT launch?
Erik Bernhardsson 4:50 ↗
Yeah. Yeah. 2021.
Interviewer 4:51 ↗
Okay.
Erik Bernhardsson 4:51 ↗
So ChatGPT was late 2022. Right. Then I started building... so maybe actually to rewind a little bit, context: when I worked at Spotify I released an open source framework called Luigi, which is like workflow orchestration. This is sort of the same category as Airflow and Prefect and Dagster. Sort of dated category to some extent, like people don't talk about as much, but for a while it got a lot of attention. Anyway, I never turned it into a business. But a couple years later, in 2021 when I was thinking about business ideas or things to work on, I kind of came back to workflow orchestration and I started hacking on a bunch of ideas of, you know, running code in the cloud, basically orchestrating code running in the cloud. And what I realized was that at the end of the day, the core puzzle piece is not just orchestrating the compute, it's executing the compute. And I realized that's kind of a bigger problem actually to solve. So in a way I actually left it on the shelf and said, actually I'm going to go to this other thing over here and I'll get back to the workflow scheduling in a little bit, but you know, I never got back to it. Long story short, ended up building Modal, which was more focused on let's just figure out a way to make it easy to run code in the cloud. And the focus was initially fairly general purpose, and actually in a way it's always, we've kind of gone full circle more recently, but we focused on so many different applications. The idea was let's just make it super easy to run code in the cloud, could be GPU code, AI, machine learning, could also be like data stuff. And we focused a lot on how do we scale it, how do we make the developer experience awesome? We realized super early that in order to do that, we'd have to go very deep in the stack and build our own file system, build our own container runtime, and we solved a lot of hard engineering challenges. And then you mentioned ChatGPT, that was actually not quite the killer app, but if you remember that fall, another thing came out around the same time which was Stable Diffusion. And Stable Diffusion turned out to be a killer app for what we were building at that time. We were only four or five people at that time, so we started seeing a lot of people coming to us wanting to run a Stable Diffusion model. And that made us realize that maybe generative inference is actually a really good use case for us.
Interviewer 7:01 ↗
How were they finding you?
Erik Bernhardsson 7:02 ↗
I'm a compulsive tweeter. I was even more like now, like I'm too distracted by building a company, but I always tweeted a lot, I always blogged a lot. I think I had a little bit of a following, so in the early days, a lot of what drove the growth is just me compulsively tweeting about Modal and what I was building, and getting people excited, and writing long blog posts about where the cloud is going and all these things.
Interviewer 7:26 ↗
I call it a bit like founder-led marketing. I always feel like you kind of have to lean into what you're good at, and what I'm good at is I guess just posting and being terminally online. And so you know, it's still, I think a lot of our growth is just being kind of good at social media and being online a lot.
Nice. How long until you had your first customer?
Erik Bernhardsson 7:46 ↗
It took a while.
Interviewer 7:48 ↗
Also did you raise like early on?
Erik Bernhardsson 7:50 ↗
We didn't raise for a while. I actually self-funded it for a while, even up until the first few employees, which in a way was kind of nice because it made me really frugal about money and wanting to see ROI. I wasn't taking out a salary for a long time actually. At some point it became a problem because I needed the money, but we didn't raise for a while. Until early 2022 we raised a seed round. So at that point I'd already been working on it for about a year. Akshay joined as the CTO and co-founder in about five years ago, about now, maybe August 2021. But then it took until basically late 2022 for us to see any meaningful revenue.
Interviewer 8:30 ↗
I guess that's when ChatGPT came out.
Erik Bernhardsson 8:32 ↗
Yeah, and Stable Diffusion in our case was the main thing. So we went from like $100 a month in November 2022, and the next month we did like $2,000 a month, and then January 2023 we did like $30,000 all of a sudden. So finally I felt this massive anxiety lift off my chest. I'm like maybe this is actually, we're on to something. It feels like we're on to something. And then 2023 we grew very fast, and I guess we've been growing very fast since then basically.
Interviewer 9:04 ↗
That 30k a month moment, was that just a couple big customers or was it very diverse?
Erik Bernhardsson 9:10 ↗
It's just one, and I don't know if I ever talked about who that was, and if they even know it, but I think they suspect it was a company in New York called Mage. They're doing like a stable diffusion company. So at some point, and in the first quarter of 2023, I think they were like 80-90% of our revenue. But then after that it started diversifying a little bit. And late 2023 we got Sunno as a big customer. They were a big chunk of our revenue for a while too. But then over time, we actually have really good revenue diversification now.
Interviewer 9:42 ↗
Yeah. For the stable diffusion stuff, I remember using it for like Comfy UI. I'm assuming a lot of people were using Comfy UI, like running Comfy UI workflows on it.
Erik Bernhardsson 9:52 ↗
Some people were, but I think the people that were using Modal tended to be more like low-level stuff, like they did complicated stuff. What they like with Modal is like it's always been pretty hackable. And so they deployed their own custom workflows with adapters and custom inference and a lot of optimizations. And all the stuff we had done in order to get the developer experience to be really good turned out to be really good for also running production workloads. Because autoscaling turns out to be actually a very similar problem: you want to scale containers up and down very fast. So we just happened to be very well positioned to capture a lot of those workloads in the early days.
Interviewer 10:25 ↗
Did tools for autoscaling like not exist? Like why did you have to build those yourself?
Erik Bernhardsson 10:30 ↗
In general, my thesis is that every new era of technology kind of runs up against limitations of tools. Whether you look back at the web or the cloud or mobile or PCs or AI or whatever. So I think it's often the case that tools exist but they're often not particularly good, and you often need to rethink a lot of those tools in order to reap the benefits and really turbocharge and start building for this new world. And you saw this with cloud: we had to invent things like Kubernetes and Docker and things like that. And in a similar way, with generative AI, you could build these things on the prior generation of tools, like you can build on top of Kubernetes and Docker, but those technologies are built for a very different type of workload. They're built for steady backend workloads, with a steady number of requests, running at pretty low utilization because CPUs are normally pretty cheap and people don't really worry so much about cost. But now you're entering this new world and you have very expensive GPUs, you want to manage capacity and utilization, you have very large models that you need to load over network into GPU, and it turns out a lot of these tools were just not built for that. So we felt that we had to rebuild a lot of that. I mentioned the file system, but we also spent a lot of time over the last few years building some really cool stuff around CPU snapshotting, GPU snapshotting, we built our own autoscaler and scheduler and all kinds of capacity management tools. And we kind of feel like you have to do that because you can't build this new generation of software on top of, you can't build like a wrapper on top of the old stuff. You kind of need to start over a little bit from scratch.
Interviewer 12:21 ↗
So I guess like the auto scaling, doing stuff like that, did you see any weird behaviors on the platform? Was there anything that broke while you guys were scaling?
Erik Bernhardsson 12:32 ↗
I mean, capacity is always from time to time been a challenge. How do you get hundreds and thousands and tens of thousands of GPUs? So that's always challenging. We had to go multi-region very early. I think that was like a fateful decision in hindsight. Doing that and just biting the bullet and building it. We always thought of our capacity management as one big pool over the entire world. We don't think of it as separate clusters running in each region. So that was one of the very consequential decisions we made earlier, to kind of think about it that way. So I don't know if there's been specific issues. I mean, we've obviously had bugs and outages, and I hate, as much as I would love for Modal to be 100% uptime, and I think recently we've basically hit four or five nines, but throughout the history of Modal, of course, we've run up against scaling issues and things like that.
Interviewer 13:21 ↗
The GPU market and well, actually before that, so you guys use AWS, like GCP, like all these cloud providers underneath. Like, do you also buy any infrastructure or no? Let's talk a bit about cloud capacity because I think it's actually changed a lot.
Erik Bernhardsson 13:37 ↗
In the first few years, we got almost all the capacity pretty much from the hyperscalers, spot and on-demand capacity, mostly spot capacity running in all the different regions, initially AWS but also GCP and over time Azure. We started renting some capacity from Oracle pretty early because we wanted H100s and H200s and we got really good rates on those. And we added a couple more clouds, doing reservations, but still up until actually end of last year, most of our capacity was either spot or one-year reservations.
Interviewer 14:13 ↗
Spot means you're just like renting it right there and then?
Erik Bernhardsson 14:16 ↗
Exactly. Yeah. And it's also preemptable, which we had to deal with. But it sort of works in aggregate because you can just aggregate capacity from many, hundreds of regions basically. So that model worked really well until we started running up against. First of all, Modal started growing very fast and so we needed more capacity, but fundamentally also the cloud market started changing a lot. So in the last year basically, in order to get the capacity we need, we had to work with a much larger set of clouds. We actually work with almost 25 clouds at this point. And in many cases, in order to get the capacity we want, we have to go and do three-plus-year deals and you have to pay a meaningful amount of money up front. And you're locking in pricing on a three-year term. So we had to spend the entire last 6 to 9 months kind of rethinking how we get capacity. We had to build a whole procurement desk, like we have four guys working full-time basically, all they're doing is procuring capacity, calling neoclouds, doing deals, vetting the capacity. We've had to build a whole engineering team, basically 10 people just managing bare metal capacity from all over the world and dealing with network issues and bad drives and GPUs falling off the bus and all these things. We don't own capacity. We rent all the capacity so far, typically on three-year deals. And that's like a big decision: should we buy, or should we keep renting? I'm actually not mega dogmatic about it. I think renting is nice because there's a certain amount of capital efficiency. If you're buying, first of all, there's an obvious operational complexity, like you have to deal with vendors and suppliers and power and cables and all kinds of stuff. But there's also financial complexity, like how do you fund it? Should you raise equity and then you can raise a billion dollars and go buy hardware for it? That's a very diluted way to do it. You can raise debt, but if you raise debt, you typically want to have locked-in long-term revenue to pay the interest rates. So that's also not trivial. But we look at the economics, we look at the operational complexity, we look at the risks. It's a complex trade-off and we're open to buying. There are other constructs too. To get the capacity we need for 2027, it's going to take a lot of work, going down a lot of different avenues to lock it up.
Interviewer 16:47 ↗
So do you have to hire a lot of finance people to do all this stuff or not really?
Erik Bernhardsson 16:51 ↗
You know, I've had to spend a lot of time on this, and we've had to spend a lot of time on this. And I do think over time, there is a lot of, these are very expensive assets, the hardware. And I think it's kind of staggering. You're starting to see AI investments starting to become like several percentage points of GDP of the US. And you're starting to see like interest rates in America shooting up in the last few weeks. And at this stage, you go and look at the neoclouds, these are very sophisticated financial engineering companies. So yeah, we look at that and we look at all the options, and it's possible we might have to do similar things ourselves. I wouldn't want to, like I would rather focus on being a very lean software company doing the things we're good at. I don't think it's good in general for software companies to own hard assets, in the same way as should you own your office? I don't think that's necessarily the right solution for most companies. But of course, in order to get the capacity you want, everything's on the table.
Interviewer 17:57 ↗
Yeah. And I guess the supply is going to be constrained for a while, so you kind of have to do that. Do you agree with that or do you think this is just a moment in time?
Erik Bernhardsson 18:06 ↗
I don't necessarily agree with that. I mean, Nvidia is delivering several hundred thousand Blackwells a month, right? And I don't want to say the market is 100% efficient, but in general, if you're willing to pay a high price, you can get GPU capacity. If you're willing to pay more than everyone else, and of course Anthropic and OpenAI are buying up as much as they can, but fundamentally there's constantly supply coming on the market. So I don't necessarily think it's a fully cornered resource. Prices are going up, and I do think it's worth reflecting on that: the normal state of hardware is like gravity, eventually hardware prices always go down. So we're a little bit in a weird period of time where hardware prices are going up, and it's hard to say how long this is going to last. Could be another 6 months, could be another 36 months. It's really hard to know. But I fundamentally don't know if it's true to say you need to buy capacity in. To me, that's a little bit like the great toilet paper shortage of the pandemic, or the run on the bank type situations. But that being said, capacity is going to be tight for a while and prices are going up. And luckily, it's not even necessarily bad for us if prices go up, because scarcity also means we can charge more from our customers. And the fact that we have a lot of reservations locked in at a rate means, to some extent, we're effectively long GPU prices already. So I don't necessarily worry too much about prices going up. I do worry more about prices collapsing. I don't think that's going to happen anytime soon, but I think that would be a quite bad thing for a lot of the players in the market.
Interviewer 19:54 ↗
Why would that be bad?
Erik Bernhardsson 19:55 ↗
I think it would be bad for anyone who's locked in a lot of supply.
Interviewer 20:00 ↗
Yeah. Because they paid way too much.
Erik Bernhardsson 20:02 ↗
They paid too much, you know. So there's a risk of buying at the top, right? And again, I don't worry about that that much. I don't think it's going to happen anytime soon, but like I said, hardware prices in the very long run tend to go down. So it's worth reflecting on that. Right now, capacity is constrained, and that leads to, in economic terms, a scarcity rent. Who captures the scarcity rent? I think that primarily goes to two places, mostly Nvidia, but also to some extent neoclouds. And neoclouds in general, anyone owning capacity has better economics. That's undeniably true today with capacity constrained. Long term, in the very long run, I don't think that's necessarily entirely true. There's always going to be a little bit of a premium you can get from owning GPUs, but is it worth the risk of holding these very expensive assets on your balance sheet? I'm not so sure. But we're going to see. It's going to take a few years to get through this, and in the long run, we might own some, we might rent some, maybe a combination, maybe do some other crazy stuff, joint ventures, who knows, maybe some complex SPVs or whatever. Everything is on the table.
Interviewer 21:19 ↗
How do you compete with OpenAI and Anthropic buying GPU capacity? I'm assuming they'd want to buy up literally everything that's available.
Erik Bernhardsson 21:26 ↗
They are. And I think what you're seeing is a lot of the prices going up is a reflection of that. That being said, Nvidia is shipping a lot of stuff. I think also to some extent, Nvidia kind of prefers a little bit of diversification. They don't want a small amount of large buyers, in much the same way as you see hyperscalers getting a constrained allocation. I think Nvidia also prefers to see a lot of neoclouds and alternative clouds getting more allocation. And I think a little bit what we see in the market, this is more speculation, but I think we see smaller clouds that are a little bit more risky to work with being more of an opportunity for us. Where maybe Nvidia... sorry, Anthropic and OpenAI, my feeling is they prefer to buy from the tried and true. Part of it is also because they have to do a lot of training runs, so they need to have very large blocks. But there's plenty of capacity out there. You can get 32 nodes in Armenia, you can get 128 nodes in Indonesia. We love that kind of stuff. So we can go out there and get a lot of smaller capacity all over the world at pretty good prices.
Interviewer 22:41 ↗
Is it pretty much just like if someone offers you a certain number of GPUs, that's all you care about? Is there nothing like, oh, you care about how reliable it is? Is it just some janky warehouse that someone has these in?
Erik Bernhardsson 22:53 ↗
I mean, sometimes it's kind of a janky warehouse. It feels like, you know, but we do have like a spec sheet basically. When we talk to vendors, the first thing we do is we send them a spec sheet. We say we need this number of IOPS, we need the CPU to have at least this many passmark scores, whatever it is, we need to see minimum north-south bandwidth, egress and ingress. So we do have a list of requirements. Often we try to do an acceptance testing period where we get one node and run some tests over time. To some extent it also involves a little bit of a leap of faith. Sometimes we sign very big commitments, tens or hundreds of millions of dollars, and we start working with a vendor that we still don't fully know. And over time, we'll see. And I think a little bit, there's a little bit of our own sort of, like how Semi Analysis has a ClusterMax, I kind of feel like we almost have our own Modal Max score internally. I know which vendors I like more than others, and we sort of prefer to do additional deals with the vendors that we've seen very good reliability. Not just that, it's also, not just reliability, it's also are they very responsive when we have support issues, do they fix the issues we ask for, what's the turnaround time, if things go down, how quickly do they fix it? Things like that.
Interviewer 24:18 ↗
Do you agree that the demand for intelligence is basically infinite? And if so, why wouldn't you just buy up as much capacity as possible and then like if you overbuy, you can just sell it to somebody else?
Erik Bernhardsson 24:31 ↗
I think it's very easy to say when there's a scarce resource, let's just buy as much as you can. But I think, first of all, if we bought it today we couldn't utilize all of it. We could utilize a lot of it right, but...
Interviewer 24:43 ↗
But you can sell it off to somebody else who wants to use it right.
Erik Bernhardsson 24:46 ↗
I think the challenge is if there was something in the market that happens, there are a lot of correlations that happen at the same time. If prices going down and utilization going down and the market for reselling capacity vanishes, that kind of happens at the same time. I'm sitting here and I'm extremely aggressive buying capacity every day and raising money to buy, so overall I'm very bullish. But I do want to point out that there are tail risks here, and when those tail risks happen, it could get very bad. Part of it is maybe I'm just old and I've seen this in the past. I actually had my first job in 1999, so I saw the dotcom crisis and I've seen the great financial crisis and things like that. And I want to build a company that's around for 20, 30, 50 more years. So I think we can certainly go out and buy an insane amount of capacity right now and try to corner the market.
Interviewer 25:42 ↗
But you know, do you know about the Hunt brothers?
Erik Bernhardsson 25:44 ↗
It's a legendary story in trading. They tried to corner the silver market.
Interviewer 25:49 ↗
It failed spectacularly.
Erik Bernhardsson 25:51 ↗
So cornering the market I think in general can be not a good idea. But we are in general very aggressive. We're ramping up at an aggressive plan that basically matches our demand growth and matches where we want to get to at the end of next year in terms of run rate.
Interviewer 26:13 ↗
Are you only buying up Nvidia stuff or also like capacity from other types of companies?
Erik Bernhardsson 26:21 ↗
We're looking at it. I think the alternative accelerators are starting to get very interesting. It's, ironically, every year in the last five, maybe even 10 years, I've been saying next year it's going to be the year of non-Nvidia accelerators, and then I'm always wrong. But I do think 2027 might be the year of non-Nvidia accelerators finally. So we'll see if I'm wrong this year too. But AMD's are starting to get really good scores on certain things. I think TPUs are obviously used very widely internally at Google and seem to work really well. I don't know much about Trainium. I don't feel like I see quite as much, but the team is very good, I know they're working on a lot of the software stuff. Hardware is hard in a certain way, software is easier, and that makes me feel like if we just fix the software layer for these accelerators, I think there's going to be a lot of demand for them. And I think fundamentally, with Nvidia being such a bottleneck, we'll probably see more alternative accelerators. That being said, there are bottlenecks further down the pipe, like TSMC and ASML, maybe a deeper bottleneck to all of this anyway. But long-term, I think monopolies don't always last. And I think it'd be healthy for the market to have more alternatives. As much as I love Nvidia, to make that clear, they're obviously an amazing company with an amazing product. I do expect to see a little bit more diversity in the market, as well as things like Cerebras and Groq and these things.
Interviewer 27:46 ↗
Yeah. What are your thoughts on some of those providers?
Erik Bernhardsson 27:49 ↗
I think they're pretty exciting. And you see them doing really well on certain workloads. And there's some interesting people doing these hybrid, disaggregated inference setups, where they run Nvidia for the prefill and Cerebras for the decode and things like that.
Interviewer 28:03 ↗
I've never heard of that actually.
Erik Bernhardsson 28:04 ↗
Yeah. And Groq too, because a lot of these things, certain things are compute-bound, certain things are memory-bound, so you can mix and match. And I think that's quite exciting. It starts to get very complex when you're deploying these things in practice, but I do think there's a lot of opportunity in these more complex hardware setups.
Interviewer 28:25 ↗
Are there any learnings that you get from some of these neoclouds, like I don't know, Nebius or whatever, and the way that they're doing things versus what you're doing?
Erik Bernhardsson 28:34 ↗
I think one of the things that is very interesting with neoclouds...
Interviewer 28:38 ↗
Is like, how can they expand so quickly?
Erik Bernhardsson 28:40 ↗
I think actually the most crazy example is neocloud, which went from nowhere to having, you know, whatever, hundreds of billions of dollars in their pipeline despite barely having any capacity. How can neoclouds grow so fast? I mean, basically the answer is — and this might be obvious — but what they do is they go out to, you know, Anthropic or OpenAI, some big buyer or whatever, and basically say like, hey, do you want to buy like five years of chips? You know, sign this contract, we give you a good rate. And then they take that contract and then they go to, you know, Wall Street and say, look, we got this big buyer, you know, they committed to $10 billion worth of chips, we just need the money right now. And they're going to raise the money, and then they, you know, go to Supermicro and Dell or whatever, and Nvidia, and get the hardware, and then they install it, and then, you know, now they deliver it to the customer, right? So you have this very nice sort of financial construct where you can basically pre-sell things that you haven't even bought, and that means you can scale up extremely fast. And so that's what we've seen with these neoclouds: they can scale very, very well. I think Modal, because we've always had a little bit more of a PLG focus and not the ability to lock in long-term contracts in the same way, it's a little bit more challenging from a financial perspective to scale that fast. Even though I think in the long run we'll get to the same point. But I think that's been kind of a fascinating thing to see with these neoclouds, and especially like Core and those big ones, been very, very savvy with how they raise money and how to think about GPU as collateral for loans and all these things.
Interviewer 30:18 ↗
What's the relevance of like — I forget who it was, but some financial company was like, oh, we're going to make — oh, I think it was Nvidia actually — they were like, we are going to turn GPUs into an asset class. Is that just because they need to raise money and they were trying to figure out where to get the money from? Like, what's the relevance of that?
Erik Bernhardsson 30:37 ↗
I mean, there's a bunch of startups. I don't know if you're thinking about that. There's like Silicon Data and Compute Exchange and a few other ones that are basically trying to get to creating price indices and indexes and trading derivatives and things like that. I think it's interesting. With compute, there are a number of challenges with compute as an asset class. It's definitely not as homogeneous as other asset classes. You have different networks and different locations, and different disks, and CPUs, and all kinds of stuff, and reliability. That being said, you can say the same thing about oil, and we kind of created relatively commoditized tradable assets out of oil. It remains to be seen. I do think at this scale where we are with the sort of AI data center GPU deployment, we do need to be a little bit smarter with risk hedging and how we share risks and having more insurance and things like that. So I'm very happy that people are thinking a lot about this. That being said, I'm not entirely sure if we're going to see GPUs becoming sort of, you know, whatever, the Henry Hub, Brent crude type super commoditized tradable asset.
Interviewer 31:54 ↗
Yeah. I want to shift the conversation to Modal Sandboxes.
Erik Bernhardsson 31:59 ↗
Yeah.
Interviewer 31:59 ↗
I guess like before we do that, what are the different products that Modal has? I guess like the main product obviously is the GPUs, then you have Modal Sandboxes. Is there anything else?
Erik Bernhardsson 32:10 ↗
I think of the two big products that we have: basically number one is Modal Functions and number two is Modal Sandboxes. So with Modal Functions, we launched that back in 2021. It was the idea of serverless functions that are very easy to deploy and very easy to scale, and we manage all the capacity. That turned out to be really, really good for inference, and it turned out to be really good for managing GPUs and running on things like that. But we actually never had a dedicated inference product or a GPU product per se. We never thought of Modal as like a neocloud, and I think there's a risk of getting sucked in that direction, becoming a neocloud — selling, you know, sort of what I think was like rectangular, like here's a three-year, you get this many GPUs. We've always been very good at like you deploy something, you can kind of scale it up, you have this very cyclical or bursty stuff, like we manage all the capacity. And the beautiful thing is because we have many, many thousands of customers, we can sort of aggregate that capacity and very smooth workloads, you know, very smooth aggregate demand which we can manage very, very efficiently. So Modal Functions was the core. We launched that in 2021, like I mentioned. We started seeing product market fit in 2023, and now it's about two-thirds of our revenue and powering a lot of — in practice it's mostly inference, but you can use it for all kinds of other stuff. Modal Sandboxes, we launched that in 2023, and it actually kind of took a while to see product market fit, similar to functions. Why did we launch it? We realized a lot of people we talked to were using LLMs to output code. This is like me and Asha talking over lunch one day. We're like, maybe they need a place to run that code. And we realized actually we kind of have a lot of the infrastructure already to just take code and run it, because we already built the primitives for managing containers and isolation. We already had gVisor as an isolation primitive and things like that. So we got kind of excited about that idea, and Nokia wrote a prototype and launched it in basically one day or two days or something like that. Zero — like, we saw very little growth. I don't want to trivialize it. We did see some growth, like there were some sort of, you know...
Interviewer 34:12 ↗
It was 2023, so...
Erik Bernhardsson 34:13 ↗
Yeah, it was 2023, and like, you know, some people picked it up. We had some early users who kind of enjoyed it for certain things, but overall it was like a pretty insignificant source of revenue going into the summer of 2023. So two years later we even discussed, like, do we even need this product? Should we shut it down? Then it just started exploding. So 2023 — and I think what really happened in 2023 was LLMs got really good at generating code.
Interviewer 34:41 ↗
In 2023. 2023.
Erik Bernhardsson 34:43 ↗
I mean, it was like around that time. I feel like that was when they went from being able to refactor functions and write snippets to generating full apps, right? And so we started seeing a lot of growth coming from vibe coding, you know, companies like Lovable and other ones. And then companies like Ramp started using Modal for background agents, and then we started seeing tremendous growth coming from a number of neolabs doing things like reinforcement learning on Modal Sandboxes. So Sandboxes is now about a third of our revenue. We consider it basically our second product. And to me it's really exciting because even back in the early days of Modal, I always knew that Modal is about creating a whole toolkit of products. Like we always wanted to be almost like a cloud — you know, you have the storage and the compute and a bunch of different ways to work with it. We always wanted to be a multi-product vendor, but that wasn't necessarily true in practice until now, where I think now it's kind of clear: we have functions, we have sandboxes, we're working on a bunch of other stuff too. Working on training, working on batch, we're working on a bunch of other stuff. So to me that evolution into becoming like a multi-product company I think has been amazing, because that was always so core to the vision, even in the very early decks. I had a bunch of slides on this, but it wasn't necessarily true to the external world until recently.
Interviewer 36:02 ↗
Do you have anything in the works that you think is going to be like that next product? Any predictions maybe about the market, anything like that?
Erik Bernhardsson 36:10 ↗
I mean, I'm very bullish on training. I think training is kind of an underserved market. Obviously there's a lot of focus on very large training runs, but we actually see a lot of demand in the sort of smaller and midsize training segment. So I'll be talking a little bit about that later this week. We're organizing a conference. Batch is, I think, a really interesting market. I think we see a lot of demand for sort of, you know, customers that need a — you know, we had a customer the other day that needed to transcribe 5,000 years of audio. They had millions and millions of audio files, and we had a lot of capacity, so we let them do that. You know, it took a few days. I think there's some really interesting use cases there. Very bullish on low-latency stuff. I think there's going to be a lot of — once we sort of get the audio, like the speech-to-text models working, like the voice models, I sort of expect that to be a very interesting market. Then of course all this agentic stuff, right? In a way I have mixed feelings about the word agentic, because I feel like in certain ways I think all software will become agentic. So it's almost like, to me, what does it mean to be agentic? I think all software in a certain way will become AI-powered over time, but clearly there's a set of building blocks of doing more LLM-powered software that seems to be common across all the different use cases. And the way I think about Modal is we're in the business of building building blocks. We want to give you amazing, generalizable, battle-tested, general-purpose, composable building blocks, and I think there's some really interesting stuff also with the agent use cases.
Interviewer 37:48 ↗
That's interesting you bring up training, because I think in another podcast maybe a year ago, maybe two years ago, you said like training, you were not focused on. Like specifically, what changed in the market?
Erik Bernhardsson 37:59 ↗
I mean, we've been building a training product for multiple years, on and off. So I wouldn't say we've never been focused on it, but it's like one of those things where — I mean, now we're like 150 engineers, but a year or two ago we were a much smaller number of engineers, and so by just virtue of being smaller we had to focus a little bit more, and so inference became our sole focus and was our sole focus for many years. But we're bigger now. We do have opportunities to also place bets in other markets. I'm also really interested in continuing the list of things: post-training, reinforcement learning. I think there's some really exciting stuff around that. I think there's also many other stuff around storage and building data warehousing and feature stores and real-time streaming pipelines and all kinds of — I don't know. I think the long-term view of Modal is basically: you want to build some cool AI, we got you covered, we got all the building blocks, come to us and we'll help you take all these building blocks and compose them. And that's the beauty of software — you can build almost anything if you have the right building blocks. That's very much the sort of company and the product I want to build.
Interviewer 39:06 ↗
When you say training, are you focused on more of the bigger enterprises doing huge training runs, or... Okay.
Erik Bernhardsson 39:13 ↗
No, they're going to go and, you know, do these big hyperscaler or rather neocloud mega deals and get, you know, 100,000 GPUs or whatever. But there's like a little bit of an underserved market of, in my opinion, researchers iterating or people training smaller models. There's, you know, text-to-speech and speech-to-text models. Computational biotech is actually a market that we see a lot of demand from. We have a lot of customers in that space. Training relatively modest models — you can train on 64 GPUs or whatever. Recommendation systems, a lot of sort of traditional machine learning. There's a lot of things where you don't need 100,000 GPUs. That market I think is like — we're not going to focus on that for a while, but I think there's a lot of stuff in the slightly smaller markets that are relatively underserved. It's very hard to set up training clusters.
Interviewer 40:05 ↗
Yeah. Have you noticed like since, I don't know, like GLM 5.2 or like Kimi K3 or maybe like Kimi 2.5, that a lot of people are using those and like fine-tuning them?
Erik Bernhardsson 40:16 ↗
If anything, I've actually seen the other direction. I feel like fine-tuning, the value prop a couple years ago was like, yeah, you know, open source models, they're not quite as good, but you know, if you take a small model and you fine-tune it on your specific domain, you can actually reach the frontier in terms of quality and cost. Today I would say the open source models are so good that you can basically just swap them out and just run — instead of the frontier ones, you can run, you know, Kimi K3 or whatever, DeepSeek 4.1 or GLM 5.3, and they're basically almost as good as the frontier model at a much lower cost. So we still see a lot of demand for post-training, and I do think it's a really interesting space, and we're working on some products in that space, both sort of SFT but also reinforcement learning and things like that. I would also say fine-tuning is no longer the thing that you kind of have to do — it's very optional. Like, open source models work really well just off the shelf too.
Interviewer 41:20 ↗
Back to sandboxes. Actually, I forgot to ask you. So, like, what did you have to update about the sandboxes that you guys were offering that existing sandboxes did not allow for?

98 more exchanges in this transcript

Sign in free to read the rest of this interview. No card required.

Sign in to read the full transcript

Cite this transcript

APA, MLA, BibTeX
APA

Bernhardsson, E. (2026, October 22). Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal [Interview transcript]. Latent Space and Basil Chatha. CEOInterviews.AI. https://ceointerviews.ai/interview/3113246/

MLA

Erik Bernhardsson. "Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal." Latent Space and Basil Chatha, 22 Oct. 2026. Transcript, CEOInterviews.AI, https://ceointerviews.ai/interview/3113246/.

BibTeX
@misc{bernhardsson2026_3113246,
  author       = {Erik Bernhardsson},
  title        = {Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal},
  howpublished = {Interview transcript, Latent Space and Basil Chatha. CEOInterviews.AI},
  year         = {2026},
  month        = {oct},
  url          = {https://ceointerviews.ai/interview/3113246/},
  note         = {Speaker-attributed transcript with timestamps}
}