Why Did Modal Rebuild Its Tools for Generative AI?
Erik Bernhardsson · Vibhu Sapra
Erik Bernhardsson says Modal rebuilt its tools for generative AI because Kubernetes and Docker were made for a steady back-end workload. The systems expect an even number of requests and can run at low utilization, since CPUs are normally pretty cheap and cost is not the main worry. Generative AI brings very expensive GPUs, a need to manage capacity and utilization, and very large models that must load over the network into the CPU and then into the GPU. The older generation of tools was not built for that work, and a wrapper on top of them cannot deliver the new software. Modal had to start over a little bit from scratch.
Over the last few years Modal built its own file system, CPU snapshotting, GPU snapshotting, an autoscaler, a scheduler, and capacity management tools. Supplying hundreds, thousands, and tens of thousands of GPUs has always been a challenge, so Modal went multi-region very early. Modal treats capacity management as one big pool over the entire world.
Bugs, outages, and scaling issues have shown up across Modal's history. Recently uptime has basically reached four or five nines, and 100% uptime remains the aim.
Why AI Compute Comes in Rectangles — Erik Bernhardsson, Modal CEO ·
From the transcript
So I think, you know, it's often the case that tools exist, right? but they're often not particularly good. And often you kind of 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 have to invent things like Kubernetes and Docker and things like that.
And in a similar way, with Gen AI, you could build these things on the sort of prior generation of tools. You can build these things on top of Kubernetes and Docker and these things. But those technologies are built for a very different type of workload. They're built for a very sort of steady back-end workload, so you have an even steady number of requests, like running a pretty low utilization because CPUs are normally pretty cheap, and so people don't really worry so much about cost.