Please welcome to the stage Anyscale co-founder, Robert Nishihara, CoreWeave SVP of Physical AI, Richard Alfons, Runway co-founder, Joanna Rencinch, and AWS Managing Director, Cherieus Abuashi.
Good afternoon. I'm Cherieus Abuashi. I am a Managing Director at Amazon Web Services. I lead our North America Solutions Architecture team. Great models get the headlines. But today, we are going to look underneath them. What does it take to train, serve, and scale models? I have the pleasure to moderate this panel here. I'd like to introduce the panelists for you. Joanna Rencinch. She's the co-founder of Runway, and she's going to give us her perspective from an inference perspective. Robert Nishihara is the co-founder of Anyscale, and also one of the creators of Ray. He's going to give us his perspective from an orchestration. Unfortunately, Richard Alfons from CoreWeave couldn't be with us today. So, we hope everything is good with him. All right. So, let's get started. My first question is if you could share with us what changed most about AI infrastructure in the past 2 years or so. Let me start with you, Joanna.
Sure. So, AI infrastructure initially was all about training, right? Having the biggest clusters to train the biggest and best models. And of course, this is still like everybody still wants big clusters to train models. But now, inference is becoming the dominant workload. And also, the more widely adopted the models are, and the more we go from one person doing something to a swarm of agents initiated by another agent does something, the volume is growing exponentially. This means that we're hitting the limits of what the infrastructure can accommodate. That's why we're seeing like everybody's trying to build data centers. All the data centers are also getting canceled and getting under moratorium. So now there's a shift towards distributing inference on the edge. And this is useful for two reasons. One, world models, robotics models, they really benefit from low latency and edge inference. They need to be close to where they're actually consumed. And two, there's actually a lot of power in a lot of places. So it's sometimes easier to kind of take the inference where the power already is and take it closer to the user than kind of build from these massive, massive clusters that require a lot of resources in one place.
Yeah, that's pretty interesting. Thank you for your perspective. Robert, how about you from your side?
So with Ray and Anyscale, we really look at the world through the lens of training models, you know, deploying models, running inference, running data preparation workloads, running reinforcement learning, these types of AI workloads. And as the scale and costs of these workloads has just grown immensely, one of the things that's changed the most is this the importance of vertical integration in some sense. So you are or we're used to thinking of a clean separation of different layers of the infrastructure stack from software layers to the hardware. But increasingly, you know, the application developer who's running building a reinforcement learning workload is going to have to reason about hardware failures. They're going to have to be aware of how they're, you know, the different processes that they're managing are mapping on to different cluster topologies and things like that to get the most performance and to build reliable applications. And so, we've seen an increasing trend toward the, you know, kind of developing these applications in a full stack way.
Mm. Okay. Got it. So, developing the applications from a full stack is where we're seeing it being creative on edge in terms of power and compute is what Dayana shared with us. That's awesome. So, I'm going to go to you next, which is when a model moves into a real product, right? When we're able to put it into production, and what tends to surprise teams most about serving it in terms of speed and cost?
Yeah, I think we've moved from this paradigm of one large model to there is an architecture of models, right? There is some tasks that are handled by a smaller model. There is a, you know, again, agents that run like some very specific model types, and then there is like more intelligent models that people use for coding and so on. They'll have different context windows. So, we're seeing things go to a real workflow or pipeline that actually needs to be orchestrated. All those workflows need to be distributed. But, ultimately everything just generates more demand for compute. I think there was an assumption that, oh, the models will get more efficient and then we will use less compute. What is happening is the models get more efficient, we put them into more things, and then you spend even more than you did before, and you need even more compute. So, I think we're now starting to grapple with the reality of like, oh, this is really not going anywhere. We need to solve this problem.
Yeah, that's interesting. And I hear you, right? Yes, we can do more now. So, yes, I'll keep doing and need more compute. All right. So, Robert, what changes when that work has to scale across many machines and workloads as well? Would love to hear your perspective.
Yeah. I mean, this actually gets at why we created Ray in the first place. You can think of Ray, so if you haven't heard of Ray, Ray is an open-source Python framework for basically building, you know, scalable distributed Python applications. Right? And so, we were doing research at Berkeley, needed to scale our AI workloads, training, and so forth across clusters. And we were in the situation a lot of people were where we knew how to write Python programs on our laptop, like we knew what kind of algorithms we wanted to express. But then when you take that algorithm and you try to run the same thing across at a large scale, across a cluster, you end up needing to solve a ton of new challenges, right? Like, the most basic is just how do I divide up the work across the different machines? How do I place the work? How do I move data efficiently from, you know, point A to point B? What if one of the machines crashes? How does my application deal with that? All sorts of questions around resilience and efficiency and scalability. And so, writing programs for clusters just ends up being way more complex than writing a program on your laptop. And we started Ray to try to basically solve some of those challenges for you. So, if you're a developer, you know how to write a Python program, that's all you need to know in order to run the same thing on a cluster, right? That's not quite true. I'm exaggerating, but that's the goal and that's what we're trying to achieve.
I see. I see. Okay, great. And so, what I'd like to move to next is, like, okay, so when things break, okay? And I'm going to stay with you, Robert, if you don't mind. So, if you can share with the audience here a concrete example of something that breaks at scale. And we'd like to see like what is the user or developer experience, you know, as well.
Yeah. That is a... It's a fascinating question. Truly everything breaks at scale. And this gets back to my point about vertical integration. You have to think about failure detection and failure handling at every layer of the stack, right? So, at the hardware layer, you can have, of course, hardware failures. Sometimes that manifests itself in some kind of CUDA, you know, exception, an exception you get in your Python application. Sometimes it could manifest itself just in silent numerical corruption. Right? You're running your application, there's no sign of anything, but actually the data's getting corrupted. Or it could result in a straggler. Right? You have errors that can happen at the Kubernetes layer, where pods are not getting scheduled or taking too long at startup. You can have errors at the kind of like Ray or PyTorch or vLLM layer. You can have errors in your application. Right? You can have errors in how everything comes together. A big challenge is, I mean, there's error detection, like error localization, and just figuring out where the error was, and then, of course, the actual mitigation. On the detection side, you want to, like, of course, there are passive health checks you do on every node, but one of the most interesting things, we talk about vertical integration, there's a lot of application level health checking that people do as well. For example, I mentioned you can have silent numerical corruption if something's going wrong on your GPU. Sometimes in your application, say you're doing training, there might be multiple times when you recompute the same value, right? You might have some activations in that you're computing your forward pass that you then throw away, and then on your backwards pass you actually recompute those activations to avoid having to store them in memory, to save GPU memory. And if you compute hashes of those activations and those vectors and then compare the hashes when you recompute them, you can detect if potentially something was corrupted, right? And so the application may actually be the one that notices that something's going wrong, even though all the Nvidia health checking tools you have didn't catch anything, right? And so there's different layers of the stack that are responsible for detection. There's different layers of the stack that may be responsible for addressing the issue, right? Maybe the issue is like the first thing you should try is rebooting the machine, or maybe it's actually like terminating the application and just moving the compute to a different GPU, which you can do at the application level. Part of what I'm trying to depict here is that it's really hard to solve at just a single layer of the stack.
I see. I see. It makes sense. And actually continuing on that thread, I want to, as I look at where the layers meet, I call it, right? Whether it's on the inference or the orchestration or the scaling, where does optimizing, I'm going to go to you with this, Joanna, where does optimizing one part of the system fail because the whole system matters most, right?