Transcript
0:00 Riner Pope who is the CEO of Matx. Um Riner is somebody you're going to be hearing a lot about over the next few years and so we're super lucky to have him come give us a bit of a crystal ball into where the future is going. Um just to before we we jump in, I'm going to sort of recap what we covered in class yesterday. We had um let me share my screen. I feel like I'm back in COVID. Uh here we go. Okay. And RER, can you see this visual >> coming up? Yes.
0:34 >> Okay. Great. So, this is a sort of a stylized visual of the CS153 frontier factory that we all looked at yesterday in class. Um, we've spent the first few weeks, as you all know, talking about the assembly line of intelligence, right? We've got data, comput, and algorithms. That goes into pre-training outcomes a foundation model, which you then do more train mid-training on. you get a mid-train base model and then you can start sort of customizing that model with post-training SFT and RL to give that model capabilities in the real world like being able to uh take actions, call tools and you know that system we typically call an agent and then you rinse and repeat and we've done field trips right over the last few weeks with folks like Robin Rambach who um was the co-creator of of stable diffusion and the f Um actually no we had Andy Blackman. Robin was last year.
1:27 Andy Blackman this year was on uh from Black Forest Labs was here. Co-creator of Stable Diffusion. We took a field trip into the visual intelligence factory with with him. Unified intelligence with with Ahmed who's training video models at Luma. Um of course you know with with Maddie at 11 Labs who's training audio models. You later this quarter we'll have uh Liam from and and Doge from Periodic. But as as we've talked about this class, this is a systems class, right? And of course, one system is the machine learning pipeline that makes these frontier capabilities possible. But there are other systems that need to come together to keep the frontier of progress going for humanity. Um, yesterday with Scott Nolan from General Matter, we talked about the energy bottleneck and that's sort of represented by the the the clean nuclear energy reactor over here, which maybe one day we'll have on campus at Stanford. Um, and next to it here, we've got my sort of idealized version of what compute looks like, you know, maybe a decade from now, which is a modular data center sitting right, you know, on on prem, so to speak. And so you could have a sort of self-contained um, uh, factory. We're nowhere close to this today, but we're lucky to have with us someone who has had a vision for a long time about how compute should work. Um, who's Riner. So again, Reiner, thanks for joining us. Uh, can you hear us?
2:50 Okay. Yeah. Yeah. >> Okay. Great. So, we're going to spend the first few minutes doing sort of fireside chat style talking about you, what Maddox is, the compute bottlenecks, and then we're going to jump into office hours with the students and they're submitting their students, which I've got on a stream here. Um, and we'll try to do that, you know, for at least uh 30 to 40 minutes. >> Great. >> All right. So, why don't we start with you, RER? Tell us about yourself. How did you get here?
3:17 >> Yeah. Um so originally software background I I worked um for about a decade at Google across all kinds of things. Um originally to web development back in the time but then um much more relevant to this is like I shifted into machine learning teams. Um pre-neural nets neural nets then took over and wiped wiped all of that out. Um and so I worked on uh chip design for neural nets. Um and so several years doing that at Google. Um uh and then coming out of that um the uh the other big thing is working on a Google brain for several years and so that was um uh helped train Google Palm which is one of the predecessors to Gemini. Um I wrote the inference stack and I that was one of the highest performance inference software for for running LLMs at the time. Um very very strong team on Google brain. We we did a lot of analysis of like theoretical analysis of how to map models to hardware. We've put out a book uh publicly for that that's called how to scale your model. Um uh put out some papers around that as well. Um but ultimately as part of that uh that was all working on TPUs uh my co-founder Mike Gunter was on the TPU architecture team at that time and uh what we were seeing is you know GPT3 at this at this time had come out. We know that models are going to be massive. We want to target very large matrices, very low precision, very low latency. Um, and sort of figure out how to do that in the most cost-ffective and power effective way. Um, so at some point uh uh we concluded the best way to do that would be a bit of a clean start focusing on large models specifically rather than sort of the um older perspective of uh accelerating neural nets in general. And so uh we left Google in in end of 22 to to start MaddX. Um the goal of Maddx uh as we we've been doing that for a few years is to make the best physically possible for running uh large model workloads specifically focusing on the needs of Frontier Labs. They drive most of the spend. Um that is where most of the buildout is happening and so really really nailed that workload without consideration for others.
5:23 >> Uh there's that was a speedrun so thank you. I know they're there. eternity is con, you know, contained in each of those sentences you just told us, but um let's zoom back a little bit to the moment when you decide to leave Google, right? You said the end of 2022. >> Um I think December 4th, 2022 is when Chad GPT came out. >> Yeah. >> Did that have anything to do with your decision to leave or was that just an independent decision? What what what prompted you to leave the Google complex, which doesn't happen very often after >> Yeah. Yeah. Yeah, I mean so the timing is like I had no inside knowledge about when whether and when chat GPD was going to be released but the the thing which was sort of a a public secret uh was GPT3 had been around for one or two years in advance of that. Um and uh it was very hard to use like it it does did not have the product market fit that chat GPT itself had. Um like if you like you can use it on the website but you have to sort of get in this mindset of um I'm not talking to a chatbot I'm sort of completing a document and that's really hard to use but but there were glimmers of it working really well. Um and the one of the uh questions inside of Google, Google had its own versions as well. And one of the questions was um these models seem very capable. There are some concerns about hallucination which like still persist today but have have like been dramatically improved.
6:50 But then there were also concerns about cost. um this entire SAS business like Google and all of these other companies providing SAS um the marginal cost of a user is basically zero. Um you can serve all of the web traffic for tiny like like millionth of a cent uh uh costs uh to serve each query. You can serve it for free in effect. Um and then for the first time GPT3 completely violates that uh you know it costs cents per query.
7:20 Um, and when you're serving all these queries for free, it it becomes extremely expensive very quickly. Um, and so the fear was like, how do you even build a product around this? It's it's way too expensive. Maybe we can never launch something. Um, and I think the big thing that chat GBT showed is actually you can launch something and it's incredibly valuable in uh to users. And you know I I I what I find is friends who have had were in or around the machine learning community from that era.
7:50 um you know you spend have often asked the question what is the right eval right if you're I went to grad school for for ML and the the thing you you learned consistently is you got to start with the right eval right like that's what >> um matters most when you're trying to uh develop a new capability and I've heard you say a few different times now that intelligence per picoel is the right eval um both for for you for humanity can you can you zoom in a little bit on why that is.
8:20 >> Yeah. So, I mean, I think that's a particularly catchy way of putting it. Um, but let me put uh there are like there's a few axes always when you're doing evals. You may need to make sure like look at maybe four of them and see that you're doing well on all of them. But this is definitely like one of the most important and understandable ones. Um, the overall trade-off is I know how I can make a model cheaper. I make the model smaller. Um, but then I lose quality there. And like conversely, I have this very straightforward recipe to make a model more intelligent. that make it bigger and more expensive. And so if I tell you, look, I've got a model that's way cheaper than anyone else.
8:54 It's not very useful. If I tell you, I've got a model that's much smarter than everyone else, well, that is actually useful, but but uh ultimately like I'm also going to care about the subscription cost of of the service that you've got. And so the what users are going to end up caring about is the level of quality somehow normalized by dollars. Um so I really like quality at an isocost uh comparison point. Um and then like let's zoom into what are those dollars spent on. Um uh those dollars are almost all running the data center. Um so the model is running in a massive data center. These data centers are um like these days a gigawatt or substantial fraction of a gigawatt large. This takes you know uh many many acres of land and is like more power consumption than than a than you know than than a town or even a city. Um so very very um sort of large concentrated buildings. Um and the the big costs going into them are the just the cost of the GPUs or other chips uh that are in them. And then the and then the second after that is cost of electricity. Um so cost of electricity really means actually you probably need to build a data like build a power plant sitting next to the data center and you need to pay for that as well, >> right? Um the main cost uh today is actually the um the cost of the GPUs itself. And then if you sort of trace down that supply chain, you're paying for the logic dies that are produced typically at TSMC or you're pay and you're paying for the memory which are produced at Samsung um SKH Highix and Micron. Um uh so like materials costs on on on silicon. Um uh and then the other cost is just this cost of electricity uh as we discussed.
10:43 And as you look at as as we sort of extrapolate um those costs out, you know, which one of those do you feel that you was you were confident saying, you know, the from an operating assumptions perspective for the system of MATX? um which were assumptions that you felt were essentially steady state assumptions you could hold true and which assumptions did you feel you know were needed significant prior updates and could actually be updated with this with the right technology is my is my question making sense >> yeah so where are the places where the the state-of-the-art is actually as good as you can get versus where ones where there's an opportunity >> right >> um so I mean there's a huge ecosystem here and many people are innovating in different places. Um the place where we chose to focus on is not innovate on physical technology at all. So we buy the same power supply and cooling and um uh and interconnect and cabling all of that. We buy the same as anyone else buys. Um innovating on physical technology is harder. Iteration times are longer. Um it's sort of a challenging thing to build a business on. Other people do, but it's not our expertise. Um so we chose to innovate on the architecture of the logic die of the main chip itself. Um and a reason that is uh particularly sort of attractive is that you can do so much in simulation.
12:13 Um and you can actually model it out and even maybe to some extent even in your head predict what the performance is going to look like. Um and then zooming in within that uh what are the different resources you optimize for on a AI chip in general there are maybe five or so big resources you care about. It is the HPM bandwidth and capacity. So the memory bandwidth and capacity the compute performance measured in flops um and then the interconnect bandwidth measured in you know bytes per second.
12:46 When we look at those technologies, it seems to be the case that the um your ability like the marginal improvement you can do on compute performance is much larger than the uh how much improvement you can get on the other two things on the memory and on the on and on the interconnect. The the memory and interconnect are sort of fairly well specified and well understood problems of just the most bytes per second uh that you can do and they've been pushed already very much to their physical limits. Um but on the compute side uh there's a lot more richness in the design space. I I can play with things like how do I lay out the compute cores on my chip? How do I which number formats do I use? Um what is the ratio of um storage to compute inside the chip itself? Um and we find that when we play with those things, you can get uh sort of multiple factors improvements over some of the other things.
13:41 Um that was a great summary. Now let's zoom in on those those parameters. Right? We've got a bunch of parameters when you're innovating on compute um especially on the logic die. But getting those those decisions right is quite important. >> Yes. >> Of error is quite low especially because an error you make there ends up literally impacting hundreds of billions of dollars worth of capex. Right. >> Yes. So can you walk us through as you can tell I'm teeing you up to talk about code design but could you please talk about what the optimal way it is to manage the risk around those decisions from a systems perspective and how you've ultimately converged on what what the right process is where the risks are um and and how the students should think about you know the the unfair advantages that you've discovered or the asymmetric bets you've made um that you may get wrong but if you get right you have a chance to change humanity and and the industry.
14:40 >> Yeah. So I think the big task and and the main work of architecting a chip like ours especially when the focus is on the digital logic and the architecture of it is it primarily comes down to one of resource balance. >> So like we have a fixed budget of area in of of square millimeters of um of silicon um that is determined by the manufacturing constraints of TSMC. Um and so within that fixed budget we want to like it is somewhat zero sum in that like the resources I allocate that silicon to are SRAMM which is the onchip memory um compute and then onchip interconnect like wiring between different parts of the chip. So your goal is to pick a resource allocation that ends up when when I map my neural network uh to to this hardware um gives me overall best uh uh like tokens per second for example. Um and it turns out the the models are simple enough that you can actually make uh really good analyses um in a like in a quite simple sort of spreadsheet or Python modeling based way. um uh uh and and likewise the hardware is actually relatively simple compared to something like a CPU which is extremely complicated um that you can do a lot of analysis. And so a big part of what we do especially early in project uh in in project definition product definition is um saying uh if I have a chip with a certain amount of memory and a certain amount of compute performance and a certain amount of interconnect um what is the optimal way to take a LLM and cut it up over maybe thousands of these chips um considering what is the communication bottleneck between the chips what is the like am I limited by memory capacity ity, memory, bandwidth, compute performance and then after considering all of that and trying all the different ways to cut it up, what is the best way to cut it up for a given hardware? And then finally, I do the outer loop over this is sort of to in principle search over all possible hardares >> and which of those parameters are within your control and which ones do you often require input from customers um and shipped from. So I mean I think that's like you said code design and I think that's where the really big uh opportunity is is to um not treat the the workload as fixed. So if you like if you say we know what the workload is, it's Deepseek V3 or maybe V4 which came out today. Um and that is the workload.
17:12 I'm going to make the best chip for that. Um this is sort of a an optimization problem where you said this one half is fixed and I'm going to optimize the other half. And then like there's this slow long-term iteration loop where then you come up with the new hardware and then like maybe Deep Seek V6 or V7 will be optimized for this hardware but they haven't been jointly optimized. And that is a very like slow iteration loop to to sort of find a global optimum. So the much better thing to do if you can is to um say I'm going to jointly optimize the model and the hardware at the same time.
17:43 >> Right? um that requires you to not just be a model company and not just be a hardware company but have a bit of both in-house so that you can you can do these evaluations. So as an example the way that we do that is we um firstly we narrow the search space a lot. I described like this huge multi-dimensional search space in reality we don't actually search all of it. It's too slow. We have a very strong like human prior of what are the likely good good points. Um, and then we pick some of those and we train models. We we train them from scratch. Um, and look at what the quality is. Um, we don't have the same money to train models that like OpenAI does for example, but scaling laws really help where you can evaluate um at a small scale and then and then predict up to what that is. Uh, so um like making a few sort of uh careful hardware bets on I mean to give some examples we've said low precision is very important. Other things would be um what is the compute to memory bandwidth ratio? Um maybe we can change that significantly relative to where models are today and then evaluate how good the models are that are optimized for that hardware.
18:50 >> And to what extent, you know, having the visible so ideally, you know, if if you're a model company, you just have like like like Google did with you, you have your Gemini team or your Palm team, right? And then you have your chip team right next to you. you've got Reiner, you know, doing systems code design back and forth. Um, and that works great when you have full visibility internally. You're within one trust boundary. >> Yeah.
19:15 >> Right. But when you leave Google now, you're not in the Google trust boundary. >> Yeah. >> And so how do you navigate the trust boundary between your customers who are some of the world's most the fastest growing companies but for whom model architecture and model innovation, model workload inset is core IP. >> Yeah. and they can't have that IP leaking, right? And so how do you navigate that problem where um you're you're you know you're now within the trust boundary of Matx and your customers are a different trust boundary whether that's you know some new frontier lab that you're trying to work with or or might it be Google too because you might be wanting them as a customer. How do you navigate that code design problem?
19:53 >> Yeah. Um I I I think this is a real sort of information discovery challenge. Um looking historically uh there was a time right up until the release of chatpt when actually labs were publishing all of their technology that that stopped uh in 20 at the end of 22. Um but there was a time when actually uh any hardware company could know what the state-of-the-art is by looking at publications >> right >> that stopped um and then restarted but at lower volume with uh Deepseek uh with some of their publications. So for a um for a hardware company that is not attached to a frontier lab sort of looking at DeepS and some of the other um open source labs their publications has been sort of the most um specific public information um and and we we we've gotten a lot from that and we don't literally take the deepseek model we look at it and then say okay we understand the ideas the ideas have been validated and maybe what are the different ways you might scale them up and so on but that is the sort of biggest most specific form of information.
21:00 >> Yeah. >> The that puts you at a real disadvantage compared to um a vertically integrated player like you describe as Google. Um and the way you manage that is uh I mean you called it trust and this is really the right thing. You like um an important aspect of running a business like ours is is actually developing a very close trust with with customers. Um you see this from Nvidia. Open AAI has a history of giving a lot of product feedback to NVIDIA's products. Um they're very aligned on that. NVIDIA products being better will make OpenAI do better. Um uh and really you just need to sort of uh be demonstrate that you're um impeccable with with the trust that's been placed in you as well as um like actually we also um reciprocate as well a lot. We we share a lot of information about our trip architecture so that our customers can make an assessment of uh does this already meet my needs or does it or is there something that should be changed?
21:58 You know on that topic, one technique that keeps coming up over and over again in systems design um is you have either you know full systems integration, right? Where you have a vertical integration um where you just collapse uh architecturally some process into one node. >> Yeah. >> Or you have different nodes but then you do pooling and utilization, >> right? Because if you pull then you can drive up utilization in some sense. The day you decided to leave Google you became a node.
22:30 >> That's right. >> You went from one to the other regime, right? >> Yes. >> And where in your journey are you right now on the on should should the students think about sort of Maddox as a as a bet ultimately on ecosystem pooling or do you believe that there's a different way for you to do systems code design where you actually could make custom implementations for a single company? what what what is and and where on that sort of x versus y a y- axis should folks think about um you know the the current landscape and where where you fit in and where you think the world would go.
23:03 >> Yeah. So I think um so I'll talk about us specifically first and then I'll I'll zoom out to sort of the ecosystem as well. us specifically being a um an uh a a startup uh working on our first generation product, we we are not able to as in we we can't afford the distraction of focus to to make sort of custom chips on our first generation for multiple different players. So we we've designed a chip that we think is a really good uh chip has a lot of flexibility for for all of the things you might want to do at at not too much of a cost. Um, I think I think that there's a reasonable economic argument for that to change um as as you grow larger. Uh, just to put it sort of straightforwardly, um, the the sort of cost per tape is somewhere in the order of um the tape out itself costs maybe $30 million.
23:56 There's a lot of IPs you license as well and there's other manufacturing processes, some call it a hund00 million per tape that you do. um lab frontier labs are spending tens of billions of dollars or hundreds of billions of dollars on chips and so that that spend is enough to uh to cover many many different tape in fact and so so like you should be able to uh develop many different chip products. Uh if you look at the broader market this is not happening. Um like uh no one is really developing like a hundred different SKs or even 10 different SKs of their product. almost everyone makes one or two SKs of their product. Uh and and the variations are very small. Um this is it's it's not so much driven by the um the cost of the tape out then but more from the uh the focus of of the engineering focus.
24:46 >> Yeah. >> Um I think there is uh I think over time we'll see this push towards more um more sort of specialized products. >> Got it. Uh great. I think um there's one more question I had which is if you could talk to the students about prefill versus decode and why that's an important um architectural difference that they should be aware of as they navigate the compute space that would be useful. >> Yeah. So I mean in general there are um sort of three categories of main workloads for uh chips running LLMs which is um the the training prefill and decode. Um prefill and training actually look very similar to each other in practice. Um the the big distinction is are all of so a model like the chip has to process a set of set of tokens that that run through a forwards pass of the model and the big distinction is do I have many tokens presented to the chip all in parallel or are they presented sequentially and this ends up affecting all of the um uh resource requirements of the workload. So, so prefill is talking about when I have uh like the chat the AI itself is not producing tokens. It's ingesting tokens given it to from the outside either from a chat context or it's reading a file in in your uh git repository or something like that. Um all of those tokens are presented to the model in parallel. The model can um can share a lot of the the resources that would used be used per token. So in particular, it can amortize all of the memory bandwidth, all the memory fetches over all of those tokens that are processed in parallel. Um, in contrast, decode is when the AI is generating uh new text and it has to generate text one at one token at a time or maybe like three or four tokens at a time uh but like substantially sequentially and this ends up not having the same amortization ability. And so you you you don't get the same savings on memory bandwidth. it ends up meaning that decode tends to be more memory bandwidth dominated whereas prefill and training tend to be more compute dominated. Uh some people uh have said okay that maybe that means we should have like a different style of chip for for decode versus uh prefill. Um we actually at Maddox have taken that different position of like you can actually make an extremely good chip that works well really well both >> and uh could you spend just a couple minutes on talking about how you know what is the innovation there that allows that generalizability across both those workloads.
27:16 >> Yeah. So um the the I mean really what you want to what you want in order to perform well on prefill and training is very high compute throughput. Um what you want in order to perform well on decode is um very good memory bandwidth. For us that means uh we get that memory bandwidth by having a huge amount of capacity and bandwidth of SRAM on the chip. Um uh to some extent that actually solves the the a lot of the memory bandwidth requirement for decode. Um but then we also put a lot of compute performance on the chip. um fitting both of them in into the same chip. That is actually the that's that's the challenge. Like you only have a certain amount of silicon budget. Um and so uh we have a a few different architectural optimizations that we've done to be much more area efficient both around numeric and just the way we connect all the cores together on the chip so we don't spend too much on wiring.
28:15 >> Fantastic. Okay. Thank you so much for that speedrun on the, you know, on chip 101. Um, there's a bunch of questions piling up, so I'm just going to start taking them at a time. >> The first one is that you went from Haskell and math to TPU architecture to founding a chip company. What did the transition from software to hardware actually feel like and what surprised you most? >> So, um, the context in which I was uh, like the software I was doing immediately before switching to chip architecture was performance optimization. So, I was writing C++. I spent all of my time looking at assembly code. uh that generated by the compiler and saying okay there was an instruction here that it wasn't necessary can we change it somehow to fix that so a theme when you are doing this kind of performance optimization is you really want to know the primitives you're working with really well so know the assembly code and the the speed of every single instruction on an Intel CPU that was sort of my mentality working on high performance software that exact same mentality actually ended up applying very strongly on chip as well so the question is what are the primitives that you work with on a chip everyone understands like I think we understand that assembly instructions are the primitives on CPU but what are the primitives on a chip it is the gate library so there is a relatively small set of gates and or not exor are the standard ones and then there's some slightly bigger ones which are moxas and uh a particular device called a full adder um so one of the things I did quite early on was I just read through the gate library which has a description all of these gates and what is the area and power. So what is the performance cost of these gates? Uh it's a small enough list that you can commit it to memory. This is really helpful when when you want to reason about what is the cost of this thing I have in my mind.
29:59 Then I can quickly evaluate that. So so the big transition was to sort of learn this new set of primitives. The other thing that ends up being sort of qualitatively different when doing hardware design is that it is extremely extremely parallel. Uh you can think that there are maybe a 100 billion transistors on on a chip. um all of them operate at the same time and so you like in to some extent you're designing a a chip that is 100 billion way parallel uh which is a very different place than being you know like a 100 cores on a CPU and so there's a bit of a mindset shift of like what does massive massive parallelism look like.
30:35 >> Awesome. Thank you. Um next question is what did you know after two years at Matx that you wish you'd known on day one? I there was some evolution of the market that I didn't expect. Um I think it's actually like what we see is that um if you'll like behind the Nvidia behemoth uh is a huge ecosystem of um suppliers building things like power supplies, cooling uh cabling um and and and and interconnect technology.
31:17 that ecosystem has be like there have been so strong demands on that ecosystem over the last few years that that there's been so much innovation on all of these things. It has ended up meaning that if you look at the latest Nvidia racks their power consumption is you know five times higher than where it would have been or even 10 times higher than where it would have been a few years ago. Um but all of this ecosystem is actually able to deliver the power and remove the heat and and make all of that work out. And so physically how ambitious you can be is the bar on how ambitious you can be physically has has raised a lot. Um and that has led to you know everyone having a lot better products. Um I think if if we had been even more AI pilled than we were um we maybe could have predicted this growth in the market but ultimately it did mean that things like interconnect and memory um and power density uh ended up being a lot better than we expected and and we had to sort of somewhat pivot to to that target.
32:11 >> Yep. Don't worry everybody. I'm I'm not sure anyone has been guilty of being too uh killed, but I find myself saying this phrase a lot more now. Better late than never. >> Yes. >> But the bitter lesson holds. It's still holding, so you might as well update your priors uh and not have an ego about it. So, thank you for for doing that. Um the third question is at Google you were a tech lead on TPU v2 and three and also training Palm.
32:42 How much did working on both sides of the stack software and hardware shape how you think about chip design? >> Yeah. So I I I did not in fact lead TPU V23. I I helped with the ideation of um some of the later generation TPUs. Um and uh so I'll tell the story of how that interacted with the the Palm work. Um I was coming from the uh from the definitely from the the workload mapping and the software optimization point of view. Um and in this process of uh like the big part of workload mapping is to to develop analytical models and say I have these thousands of different ways of cutting up a model and running it on many different chips uh and then sort of running it in like running the programs in different orders and look at the scheduling um and selecting the best one of that. This is this code design process that I talked about when we went through that exercise. Uh, one of the big things we found there and I think is a common theme for generally what you find in this exercise is that many chips have more resources especially around communication and memory um than they really need. Um, it's a natural place for that to be.
33:57 Customers really like it when you have a lot of uh surplus on on interconnected memory because they don't want to deal with uh like a resource crunch there. And so it's much easier and and friendlier to customers to have an overprovisioning, but it grows cost as well. And so um there's sort of an exercise of how like your ideal operating point is that you can hit close to 100% of your compute theoretical compute performance. Uh is that limited by the other resources the memory and interconnect uh performance?
34:28 And so like typically what you do is you say overprovision uh those other resources so that you are never limited like so that you can realize all of the compute performance but then the optimization uh process for a chip is to bring that margin down such that it's quite a tight rope that the you're very close to the balance point. So this was a big part of the um sort of like we can analyze that very very well once we know uh our experts on how to map models to hardware that is a software exercise but then that gives you that feedback into hardware and saying your hardware typically you've overprovisioned in some of these ways and you could make it cheaper um and so that's really what what led into some of the TPU designs.
35:09 >> Great. Um the next question is what's the hardest part of building a chip company that nobody talks about? the I mean one of the the probably big challenges that we are like looking at now is how to manufacture in very very large volume. Um we our goal is to sell to Frontier Labs. Um they're very attractive because they're they have a lot of expertise in house. Um they drive a lot of volume. Uh but the flip side of that is since they have such large volumes for your product to be meaningful, you need to be able to sell a lot. Um so I mean selling a lot is great. You can get a lot of revenue. Uh but especially for a startup going from zero volume to you know massive massive gigawatts of volumes um in a very short amount of time. Uh there's a whole ecosystem of supply chain that you need to build up there. you need to build trust with your vendors that uh that you are actually going to be around in a few years and when they are ready to deliver you are ready to pay for that. Um and so that really shows up in terms of like logic die vendors so TSMC uh and then memory vendors which are SKH, Samsung, Micron.
36:28 Yep. Um actually on that topic could you talk a little bit about uh the cloud ecosystem and how you think about folks hosting your you know what happens after manufacturing is somebody needs to host those chips. Could you talk about how you're approaching that problem that bottleneck? >> Yeah. So um like I'll do general economy and then how it relates to us first. In in general economy that we like there is this uh buildout of data centers that is happening like on massive scale now and it's primarily constrained I mean there's a land constraint but the bigger constraint is the power power like being close to power um and building out new uh power plants. Um this is a substantial constraint uh in like locally now and in the past few years. Um the expectation is that um uh sort of it's a balance of this constraint versus the cost of the GPUs and uh there's a bit of push and pull always uh o over the time here. Um now switching to how we view this um we don't don't want to additionally be in the business of building data centers because that is risk stacking. Um we already have enough risk in developing our product. Um so we offload the the question of building data centers, securing power and and operating the data centers to our customers. Um that is how the industry already is in practice. Um, the frontier labs are uh they have like a huge amount of what they're doing is is actually securing all of these data centers as well as as chips. Um, and they do this by any means necessary. To some extent they operate their own data centers. They sign a lot of deals with partners who have built out data centers and power supply um themselves. Uh, any means necessary is what they're doing.
38:16 you know um on that topic when this is a constant tension leaders often face right is you have a mission in your case it is to bring um that that sort of generalizability of of workload to frontier teams um I don't know if you feel like I'm summarizing the mission correctly >> I mean performance very high performance high performance >> performance right and and and to accomplish that you often need to make a bunch of tradeoffs and when you're early in in in a category in a space that means deciding what not to focus on.
38:52 >> Yeah. >> Right. And you decided just in that answer you said we decide not to focus on the on the cloud hosting part. The risk of course of that is that then now you're dependent on somebody else to do that well with your chip. >> Yes. >> And and then there there exists again an opportunity to co-design right within you. And so there's sort of this recursive um pattern here of of code design that keeps coming up that I'd like the students to realize, you know, is a is a pattern up and down the stack in systems design. But how would you reason about the opportunity to co-design for example of the data center, right? How how would do you feel like with given your understanding of of the MaddX implementation, what would be the ideal data center that would really allow Maddox performance to shine to ultimately deliver the best capabilities to your end customers? Does that make sense?
39:40 >> Yeah, makes total sense. Um, so I mean I'll I'll sort of capture what I heard there, which is how do you in general decide what is the ROI of code design versus versus like I mean the you you always get returns on code design, but then you take on the the risk of um distraction of focus and and and increased possibility of failure. >> Yes. Um the uh I think the the costs are actually maybe easier to reason about. Um uh you can just reason about how much will it uh take you in terms of capital cost and building out a team to to to to run a data center operation. Um and uh I mean in that case it's extremely capital intensive and so that's a very clear cost. Um uh and then also like you can reason about your expertise and I think again for us that was a very simple thing. Um we looked at where we as a founding team had very strong expertise and is absolutely not in in operating data centers. It is in the um design of the chips and so we sort of wanted to keep it as tight to our expertise as possible. So, so that's the cost side of the equation and then there's the what is the return return return on investment side of the equation of uh am I missing some huge opportunity for co-design and and how much am I going to regret uh this lack of vertical integration and there we uh you can try and do some back of the envelope to sort of bound what the costs would be and so uh the big opportunities specifically we see in in having the data data center designed right are do you have enough chips in one data center such that you get like a lot of interconnect between those chips in the data center and then quite similarly to that do you have enough power density in your data center. So a big constraint is um or the tension here is do I pack my chips very close together physically um or far farther apart. If I pack them close together, the cables I run between them are shorter. Um, and that has a lot of knock-on benefits. Uh, I can, you know, I can use electrical cables rather than fiber optic cables.
41:52 Those are cheaper. Um, I can I don't actually have to drive them with as much uh energy um because the data is traveling a shorter distance. So, packing chips closer together is much better for um uh for an interconnect perspective and you can get more bandwidth and lower latency and all those good things. um packing chips close together is much harder from a power point of view because now I have to deliver a like a megawatt of power into like a one square meter uh box. Um so there's like a really big power delivery challenge and then there's also a cooling challenge. I I have to run liquid cooling to all of these chips and then extract all of that um hot liquid out and bring it to the the building's um cooling units. Um and so the big constraint for us ends up being what is the power density in the data center that you're designing for. Um the way we approach that is standardization.
42:43 We said Nvidia is setting the standards. We're going to fit within Nvidia standards. Um and so given how how much of the market they have uh we think people people are probably going to be building the data standards for that. We don't see too much regret uh there. >> Yeah. So this is a great call back to our first lecture where I did talk about the compute bottleneck and if you look at the history of infrastructure we go through these boom and bus cycles and what comes out on the other side is standardization that ensures fungeibility of resources that's happened with railroads meter gauge with electricity ACDC I guess what you just pointed out an interesting insight which is um that that the Nvidia reference architecture for data design uh for data center design feels to you like a um acceptable standard today that then unlocks efficiency for new chip platforms to get into data centers that were maybe originally uh sort of uh forecasted for the Nvidia reference design. Is that >> that's exactly right and and uh and customers think about it in a similar way of like they're they're building data centers lifetime of a data center is like really long. It's in in decades.
43:51 Um that's for the shell at least for the power delivery network it's maybe a little shorter. Um but the um they absolutely have this fun fungeibility consideration in mind >> right um in contrast the Google or TPU data center design um which is not open source might be a different standard right and and so then that prevents fungeibility across these two ecosystems right from TPUs to this other standard um is is in in your view will that fungeibility always just remain a constraint or do you see a future where compute can flow across data centers uh that were designed for different specs.
44:32 >> Yeah. Um it's the the standardization sets a bounding box. Um you can you can have this much power density, you can have this much interconnect, um uh your racks can weigh this much and it's it's always like less than or equal to this much actually as a bounding box. So um if you want to fit in a bounding box that someone else has defined um it's totally fine to be less than that um in fact you can and and if you are more than that like if you consume more power uh there are things you can do to adapt compromising your product but you can say okay only half as many chips per rack or something like that um that makes the racks smaller. Um and so uh I mean you may lose some of the other advantages you have but like especially at the rack level there's uh in this particular case there's um the design of a rack is a lot cheaper than the design of a chip and so you have some some ability to like impedance match there.
45:28 >> Yeah. >> Um the the Google data centers I think is a sort of really interesting example. um like in I would say in in the several years ago um we've seen big advantages from that vertical integration for Google. So they were uh really the first to very deeply adopt liquid cooling and that is a massive advantage in in what you can do with your chip. You can run it at almost twice the speed as a result because it can cool better. Um and then Google has been deploying much larger interconnect domains. So, uh, different generations of TPU have had like 4,000 chips all connected together or even 8,000 chips all to connect all connected together at very high interconnect. And if you contrast that with Nvidia where they've like recently in the Blackwell generation started connecting 72 together, you can see that there's this very big difference in this spec which is coming primarily from Google's ability to vertically integrate.
46:24 >> As us being an outside company, we cannot rely on that level of vertical integration that Google does. And so we we have to fit within the more flexible Nvidia profile and then we have to make that like that is a big part of our product design is to make the choices where we're not losing too much as a result. >> Yep. Awesome. Thank you. Um the next one says next question. You've mentioned being excited about unexplored model architectures. What architectural changes in future models would most benefit Maddx's design choices versus hurt them?
46:57 >> Yeah. So in general if you take a model and you map it to a chip it's going to like and then you look at how much of your different chip resources are used um you'll get some profile of like 100% usage of compute 50% usage of memory 20% usage of interconnect something like that. the you should expect that all model companies when they have a given piece of hardware are going to adapt their model to move all of those dials up to 100%. Um so for example if I want to increase my usage of memory bandwidth I can either if I'm talking about the mixture of experts layer I can have a greater degree of sparsity so more experts uh while holding the number of activated experts constant or I can increase the size of my KB cache so uh the amount of bytes that I store per token of of context. Um that would like adjust the amount of memory uh usage. To adjust the amount of compute usage, I would change the number of activated experts.
48:00 And then to adjust the amount of interconnect bandwidth, I would change the size of my experts. Bigger experts uh need less interconnect. Smaller experts need more interconnect. So I have all of those levels available to me as a as a model comp if I were a model company. Um what we then do is sort of like think of what do models look like if they are hitting 100% of all of those resources on on our chip. Um so concretely what that means is we have we are unusual in that we have substantially higher compute to memory bandwidth ratio.
48:33 That's because we have a lot more compute. We have the same amount of memory bandwidth and a lot more compute. Um so the things that are most attractive are things that figure out how to utilize that compute best. Um that is the simplest thing is the one I already said more activated experts. Um other things that are interesting there are spending compute to decompress KV cache like you've got a very compressed KV cache and then and then and then expand it into a more bigger and more useful one when I actually operate on it inside the chip.
49:04 I hope well folks are going to take notes but each of those bullet points um could win a test of time award at Nurips if um implemented correctly. So request for request for whatever solutions >> going from what what RER's talking about guys >> please do. >> Okay. Uh how do you think about RL driven chip design? Is that something you're actively using or still more theoretical? >> Yeah. So um there's the RL loop. Uh I think uh and then separate from that is just like AI LLM driven ship design. um the AI LLM driven one developing a chip is writing code like we write um verarilog and we have another language called bluepec to to design the chip it to express the chip itself and then we write the software that runs on it all of that is just writing code um uh existing agents are really really good at that already so that is the very straightforward path of um uh like implementing a chip faster now the RL loop is I think what that's hinting at is But can we have a real like really powerful optimization process on top of that? Um to make that assessment of where does that make sense versus other approaches.
50:20 There are other optimizations we can do. Uh like the natural other uh optimization mechanisms are can I just do exhaustive search on a space? Maybe the space is small enough that I can do that or maybe I can even like solve analytically um for the optimal. Um for a lot of the um tasks that I described of in code design, the the problem definition is actually simple enough that it it completely yields a a perfect solution to these simpler methods. In fact, so how do I map a a workload optimally to this set of chips? Um you can solve that analytically under appropriate assumptions.
50:56 Uh and so that doesn't like doesn't necess necessitate in sort of this context of like the very high level chip specs um doing a powerful and complicated optimization process like RL. Um RL is most useful when the search space is really massively large and an exhaustive search search is not so good. Um so that has shown up in chip design in especially in the physical design parts of the chip. So where do I place each of the gates individually like in the 2D grid that is the that is the chip? Um especially where do I place the memories relative to the gates? Um Google has uh has several examples of this. Nvidia has some examples of this. Um that is sort of beyond the the realm that you can fit in your head and and this is a really good fit for RL. Um I think it's pretty attractive. Um to date the winds have been pretty modest from it uh because the um sort of the opportunities in physical design are not as large as in architecture. So the wins are maybe in the order of 10% or so.
51:54 >> Great. Thank you. Um, question seven. How do you get model developers to actually optimize for Matx hardware when their entire tool chain is GPU native? >> Yeah. Um, you can only expect a little bit of this to happen uh because I mean we can only expect that because we're a startup. Uh, I don't know five years from now if we have um a huge volume of deployment uh the world would be different. But today we can we can we have to stick somewhat close. So the way we think about that is there are these five specs that we care about. Memory bandwidth capacity, compute performance, interconnect bandwidth. Um our goal is to be not substantially behind on anything. We have to be at least on par with Nvidia on all of these and then be substantially ahead on a few of them.
52:41 And so what that means for model developer is your regret of buying a MADX chip is very low because we're not behind but your opportunity is large. And so uh that allows you the upside without paying a lot on the downside. >> Um we are almost at time but if you have time we'll take two more questions and then and then wrap. Yeah. Okay. Um, how do you think about the SRAMM versus HBM trade-off as context windows get longer and does your memory hierarchy need to change meaningfully at 1 million plus token contexts? Yeah. So the way specifically we use SRM and HPM is we put weights in SRAM and KVs the contexts in HPM.
53:24 Other chips have done it differently. So Grock and Cerebras have had only SRAM and they've put everything in SRAM. And then obviously Nvidia, Google, Amazon have put almost everything in HPM and only use SRAM uh in in in transit. The uh putting weights in SRAMM is a good idea. Um you get low latency. Um SRAMM capacity is not actually really a constraint. You can solve the capacity problem by having like many many chips uh and aggregating the capacity of many chips. Um, Grock and Cerebras have demonstrated that that works and it achieves much better latency than you can do with the uh, weights in HBM. So, so weights in SRM I think is a clear and proven win. Now, KVS, do they go in SRAMM versus uh, in HBM? If you put them in SRAMM, uh, you very quickly run up against the um, the capacity constraints of SRAMM.
54:18 Uh, this strategy of like sharding it, sharding it over many chips, you get more SRAM um, actually doesn't work. uh and doesn't give you uh an effective saving for the KB cache um like for fairly technical details but essentially it amounts to pipelining doesn't scale well um and so uh that is very qualitatively different where um SRAMM like SRAMM capacity does not scale large enough to to handle long context and especially long context with large batch size well and so our conclusion is that the right thing is to put KBS in HBM that's the only way that'll actually scale um that scale scales up to extremely long context lengths. Um the main thing you need to be concerned about is memory bandwidth and so uh think about accessing the KB cache sparsely or compressing it very highly.
55:05 >> Great. >> Um since you mentioned recursive design, do you see CAD drafting as a real bottleneck in data center projects or is it more about power cooling and MEP coordination? So this is talking about the the data center design, not the chip design. >> Yeah. >> Um the so I I will say first that like my expertise in rack design is not as strong as in in chip design. But um what I see from our rack design teams is um racks are being pushed very aggressively on physical limits, power, interconnect density um and and cooling. Um the a lot of this is a sort of a risk uh riskreward uh analysis of like um if I push aggressively here I can get higher performance but then when I actually have the the part physically I may discover that um variations and and tolerances are not as high as I wanted and and and my product quality and reliability suffers too much and so uh the there's a substantial amount which is uh managing the risk there. um the I I don't know uh how much of that effort is spent on the actual sort of the CAD and design process. I would guess um it is a lesser amount and it is more on the uh sort of overall design principles of like vertical versus horizontal trays. What is the density of trays in the rack? What are the other components that go in a rack like power and and and CPUs and networking and so on.
56:41 >> Fantastic. That is a wrap. That was incredible. The information density from you is incredible and I I'm gonna be watch re-watching our lecture at least three times. Um, but thank you so much, Reiner. And uh, we'll probably have you back next year. >> Thank you, An. This was a ton of fun. >> Okay. Thanks everybody. Have a great weekend. See you all. Cheers.
Summary
- Matx aims to create optimal chips for large model workloads, focusing on high performance and efficiency.
- Riner transitioned from software to hardware, leveraging his experience in performance optimization to inform chip design.
- The company prioritizes a balance of compute, memory bandwidth, and interconnect bandwidth to maximize chip performance.
- Riner highlights the importance of standardization in data center design, particularly aligning with Nvidia's architecture for broader compatibility.
- He addresses the trade-offs between SRAM and HBM for memory hierarchy, advocating for SRAM for weights and HBM for context storage to handle longer contexts efficiently.
- Riner discusses the necessity of building trust with customers while navigating the complexities of proprietary model architectures.
- The conversation touches on the potential of AI-driven chip design and the challenges of scaling manufacturing in a rapidly evolving market.