You can run, you know, three-month-old intelligence at 20% of the cost. One of our customers said they were using OpenCode with the GLM 5.2, but it was 15% of frontier.
So significant reduction in spend. And with our most sophisticated customers, it looks like something between 30 and 50% goes to open source and closed source models.
Tuhin, it's great to have you. Every time we chat, I learn a lot. Glad that we're going to open source this conversation.
Yeah, amazing. Great to be here.
There's a lot going on in your world: AI, inference, open source, a lot to chop up. But before we get into it, I thought I'd ask you about the scenic route to what Baseten is today. Baseten obviously started in 2019. You've had lots of scenic stops along the way. Talk us through them and what got you here.
We started the company with a very different mindset, I'd say. It's like, you know, we had done a bunch of machine learning stuff.
And not many people know this, but the way we started the company, which, you know, may be inspiring, maybe uninspiring, everyone can decide, which is that we created a list of things we wanted to work on.
And then, you know, we would go and basically go really, really deep on each of these ideas and come back, discuss, and be like, 'All right, should we keep going or not?'
And we very quickly found what became Baseten. You know, when we started the company, we'd been doing a lot of work in machine learning from 2012 to 2019. And the idea really was, how do we start a picks-and-shovels business along some large secular trend?
And, you know, we were pretty convinced that machine learning was going to be a big deal. We didn't know what it would look like. So, like, all right, let's just start building tools for, you know, those people who were doing machine learning.
The people doing machine learning in 2019 weren't like the people who were messing around with models today. There were a lot of data scientists working on classification systems and recommendation systems and content moderation systems. And so we were building tools for those folks, and funnily enough, we were building serving as part of that and alongside a bunch of other things.
Serving small models is actually trivial because you can basically load them and run them in memory, and they run on CPUs. It's very quick. They're tiny. We would go around saying, which is funny now in hindsight, we'd go around saying, 'Well, model serving is a commodity. There's nothing there. We'll give it away for free.' And so that was really the genesis.
But I think the bigger genesis was, you know, spending time with my two co-founders, Amir and Phil, and then Punkaj, who we found right after that, was like, we just want to hang out and build some cool things together. And from 2019 to 2022, I'd say like not much was happening. You know, we'd go and talk to a bunch of customers, and everyone was pretty exploratory. All these use cases were predominantly internal.
And so there wasn't much budget behind it. And I still remember this moment in 2021. We went to talk to the head of AI or the head of innovation at a financial services company, and we asked, and we were like, 'All right, so what do you want to do with AI?' And I remember he didn't really have an answer, and he just said... I was like, okay, we're really early if we're really in the buzzword territory.
But then I think in 2022 the market started to shift a bit, and I think a few key moments come to mind. I think obviously like Stable Diffusion was a big moment, Whisper was a big moment, transcription.
And honestly, ChatGPT was a big moment just in general because I think it set the standard very, very early for the experience that developers and consumers would come to expect of AI.
And so, you know, like even small things, right? Like, you know, the AI blinks at you when it's thinking. You know, like that was clearly something that had been designed with the user in mind. And that was really the moment that everything started, you know, moving as an industry.
And then it kind of just kept, like the breakthroughs just kept happening. Not many people know this also was like the first time where it felt like inference was a market. We had a buddy called Seth who started this company called Refusion. And what he had done was, him and his co-founder Hike, they had fine-tuned Stable Diffusion to generate histograms, like music, sorry, spectrograms, music spectrograms.
And so they created like the first text-to-music model, and they came to us, and he'd been working on this for six months. This is like November '22. And he said, 'Hey, I've got this model that I'm going to put out tomorrow.' He's like, 'I'm going to need a lot. It's going to pop. I'm pretty sure it's going to pop.' I'm like, 'Sure.' He's like, 'We're going to need a lot of GPUs.' We're like, 'Yeah, what, like five, ten A10s at the time.'
And then, you know, it went to the top of Hacker News, and it felt like a lot at the time, but it ended up needing like 40 or 50 A10Gs to serve the traffic, which is very small today, but it was very big. It felt very big at the time, and we ended up spending like 48 hours kind of readjusting all our infrastructure to be able to service it.
And that's kind of when it felt like inference was a proper market, because this would be, if you believe there were going to be a lot more such challenges and a lot more such consumer and enterprise experiences, a lot more people would need all that help being able to serve the traffic. And that's when I'd say like this version of Baseten was really formed, and that was the end of '22.
End of '22. Yeah. Say the name of the business one more time.
It's called Refusion. It became Producer AI. It was acquired by Google maybe like three months ago, four months ago.
So end of 2022. So this is December 2022. ChatGPT's come out. It's been like one or two months. Things are blowing up. The OpenAI Microsoft deal's just happened or happening maybe. Baseten back then was, you know, you guys had to make a decision to pivot to inference.
Actually, the other big insight is your first signal was not an LLM model. This sounds like text-to-music. Is that a diffusion model?
A diffusion model, because all Stable Diffusion, because Stable Diffusion was open. So the entire ecosystem was being built around Stable Diffusion. That was the first thing.
Also, I wouldn't say it was a pivot. I'd say it was more just like a focus, a refocusing on inference, which like we already did inference. We just thought it wasn't interesting, and it all of a sudden became very, very interesting.
And then I think as LLMs got really, like, got better over time, as the Llama 3 moment happened, you know, all these things became really important for us.
Fascinating. You are now synonymous with the inference cloud. But shocker, you're doing more than inference, you're also doing training. Talk about that for a second. Where does training fit in the portfolio? What led you to it? And why does the vertical independence matter for the customers that we serve?
The way we think about everything at Baseten is as a function of inference. So, like, you know, the north star of the company is how do we power more inference over time, and so all roads must lead to inference.
So even to what we realized over time, though, is like, sure, there's all these open source models and custom models, but, you know, what those models create is, you know, real user data that you can then get some signal out of, that then you can in turn use to train better models that ideally you would then go and do inference on, on Baseten.
And two things that we realized: one is like that if we, the more and more that we could own of that loop, the better. And secondly, that there weren't that many great post-training tools.
And so as we started to think about that loop, we're like, okay, let's own more and more of them. And that's when we really created, you know, we first launched our training product about a year ago, Baseten Training. And then we acquired a company in November or December, could pass through a post-training, basically a post-training lab.
More or less. And now we have a product called Loops, which, you know, allows you to do post-training, you know, manages rollouts, allows you to do all this work, but also all of it is meant so it feeds back into inference on Baseten.
That makes sense. And, you know, launching training puts you arguably close to the labs themselves. How do you think about that competitive line? At what point should a customer come to you guys for their post-training versus go to a lab?
Yeah, it's a good question. Look, I think it does and it doesn't, right? And I'd say it does in the sense that it allows all of a sudden, you know, customers have control over their models.
Yeah. So it is competitive in that before you were renting intelligence and now you're owning intelligence, and, you know, if all owners are competing, sure. I still think that a lot of these, like, most of our customers do and should start at, you know, using the easiest thing that they can possibly use, which a lot of the times is a closed-source model, right? Because it comes with the entire ecosystem around it, and we are building out that ecosystem through our model API product, and like that will become more and more fleshed out over time, especially as open source models continue to catch up, there'll be like real viable alternatives right out the gate.
To use. But what I always say to go as a customer until you have product-market fit, right? Figure out how to use the easiest thing to use.
They were saying that, you know, a lot of it's about like they right now they're spending time collecting water by the riverbank, but there's a waterfall over there. It's like, go to the waterfall.
Yeah. Collect the water and then yes, everything will break. Once you're collecting that water from the waterfall, but then you can start to optimize.
Got it. Got it. So go to the API for discovery, for figuring out your use case, for iterating, even value. But then once you have product-market fit and the waterfall is coming down your bucket and it's overflowing, then you show up to us.
100%. And I took that from someone today. I don't remember who it was. But I will find it and we can credit in the comments.
But yes, that's right. Which is, you know, go find product-market fit, then start to optimize.
And some of that optimization might even mean not using open source models or custom models. It might just be like go figure out how to use those other APIs in better ways or use cheaper models from them. But a lot of the time when you need specialized intelligence, and more importantly when you need control and want independence, that's when it will make sense for you to switch over to these models that are, you know, being run, hosted, and post-trained on Baseten.
Is using your models or owning your intelligence kind of a power-user use case, and the vast majority of customers will stay on the bank collecting the water?
No, I don't think so. I think it's not a power user. I think it's just like, look, at some point, like, what do you have as a company, right? So you have your data, you have your workflows, you have your UI, you have your reward signal, and so you know what are the things that you and your customers like.
At some point, like if I am one of these companies, I want to hold on to that with dear life. That is all the IP I have left. And so at some point, you know, and this is one of the challenges I think that a lot of companies have, is that first you start by querying the APIs and just using them in path to production. Soon you just start giving them all your data so you can get the best possible answer out of them.
In the context, eventually maybe you even start giving them all the reward as well and try to figure out how to encode that in your context as well. And then as a result, what will happen is two things. One, you know, you're giving someone else's API, someone else all the data they potentially need that you find to be near and dear to you, but you're also adding dependence yourself, more and more dependence yourself on those APIs.
So in a lot of ways you are eroding away both your kind of customer data moat and your financial moat as well.
And so at some point at scale you need to move away from... I talked to a company that was, you know, at scale recently. This was an at-scale company that said kind of hit their gross margin by 25 to 30 points.
That doesn't have to be the case. You know, and like that's when I think a lot of companies start to think about how do we do this ourselves? How do we post-train models ourselves? How do we own more and more of the stack.
So you don't have to give all the data away. And so, and you can also hold on to the business edge you have with these models.
So now if I'm a, let's say I'm a customer, I'm, you know, I graduated from being two guys in a laptop and a dream to a product-market fit use case that is the waterfall's flowing. Explain to us in simple words what the counterfactual looks like, because in the mind of many it's too much work. What would that process look like in simple words, having to own your intelligence and maintaining your moat?
Well, look, I think there's like two or three things that you need to have. One is that you have to have a very good understanding of what is good.
So, like, you know, and this is a problem that we see with a lot of our customers too, is that, you know, they're like, 'Hey, can you help me post-train a model?' I'm like, 'Sure.' But we can't tell you what your users like. That's like ideally what you are good at, right? Look, if I'm creating an app, like I know the utility that my users care about. I have the data on that.
So, one, you know, you have to have a good understanding of the thing you are trying to maximize.
But once you have that, it's actually not so bad. So, like, you know, one, you obviously need to have a bunch of data. You need to have a way to evaluate how a model is doing. And then, like, you know, through products like ours, a product called Loops, it's actually pretty straightforward to get started with recipes for post-training models.
And so we have a Loops SDK, we have a forward-deployed function that can help you there as well. But once you have that, you're actually also in pretty short order. You'll have the ability to have a model that you can run yourself, and that's when you need serving infrastructure.
And so serving infrastructure comes in many forms. What we believe is that it's kind of like the three or four different key components to serving models. One is the ability to serve them very fast. So you need to have some know-how in terms of what it takes to, you know, choose. There's like kind of two variables here, which is how much throughput do you have and how much speed do you have.
And like, you know, our goal is to move that curve as far to the top right as possible, and then you choose where you sit on top of that. That's the performance piece.
The second piece is infrastructure. And so that's not only just having access to compute, but also knowing how to wrangle that compute and run these performant models on that compute in a reliable way.
And the third thing is just developer experience and the ability to do like the tooling required to get these deployed but also run them in production. So what that might mean is an SDK to get these deployed, to optimize them, to configure how they scale in production, but then also like all the observability, all the CI/CD, all the infrastructural care to A/B test these things and monitor billing.
And that's the three things, and I think all that serving infrastructure you kind of get for free when you work with Baseten or someone like Baseten.
Super helpful. Can I double-click into the forward-deployed function you mentioned? As a forward-deployed engineer, anytime I hear the word I want to learn more. Why is that valuable? Are there customers of yours that find it valuable? And talk about that a little bit.
Really two core reasons. So, one is it can just, you know, at no point when we, through our FDE function, are we trying to do the work for you. What we're trying to do is accelerate how quickly you can get it done.
So what it means is like, hey, if you did this yourself in Baseten through our software, we hope you'd be able to do it, and it would just take you, let's say, N days or Y weeks, you know, that's fine. Hopefully we can just do it in a third or a quarter of that time with the help of our FDE function, who just has lots of reps in this.
And what they're really good at is kind of setting up that infrastructure and scaffolding so you can move from 'I have a model' to 'I need that serving a lot of traffic at scale' very, very fast.
Right. Also presumably a lot of your customers are very, very busy and resource-constrained. And so this is helpful in getting them some capacity to make the transition.
100%. Surge capacity. Exactly.
And then the second piece is that, you know, when you're running these things at scale, you need an infrastructure team, and we're kind of like an infrastructure team on loan in that way. And what we believe is that, you know, we can provide that included in the Baseten experience, and what we get out of it is happier customers.
Happier customers. What our customers get out of it is, you know, they don't need to staff a massive SRE and infrastructure team.
And the third one is that, you know, what we have seen is it scales pretty well.
This is a plug to everybody out there who tells me that they don't have time or capacity. Baseten will send you the capacity to make this transition.
Back to the, you know, the question that we were going down is how does Baseten help these customers? You know, one of the other things that I thought I'd get your pulse on is what percentage of traffic for your, let's say, your most mature customers is going through an open-source model or a fine-tuned model versus a closed model? How has that traversed over time and where do you see that headed?
Yeah, it's a good question. I mean, I think this actually just like goes, can I just zoom out really quickly? And I think like this is what you need to believe to believe that Baseten inference is going to be a massive, massive business, is like fits into this, which is right, like that AI usage is going to be massive. I think we all agree on that.
Trillions of dollars of spend in 2030. If you think about the app layer running at 50% gross margin, and we think in three years there's going to be three to five trillion dollars of AI app spend, what that really means is one and a half to two trillion dollars of inference spend.
And then the question just becomes how much of that is in closed-source inference and how much of the open-source and custom model inference. Today it's probably like 3 to 5% is on open-source and custom model inference dollar spent.
What's interesting, and this is definitely being driven by the rise of really good open-source models and a lot of researchers who are working on post-training techniques, is that you can run, you know, three-month-old intelligence at 20% of the cost. And so what that means, a lot of people are starting to invest.
Three-month-old intelligence at 20% of the cost. Yeah, I saw something on Twitter about this. One of our customers said they were using OpenCode with the GLM 5.2, and it was spent, it was 15% of frontier. And they were using frontier, I don't know if everything's frontier, but of using, you know, the closed-source APIs.
So significant reduction in spend. And if you believe that, so what we end up seeing with our customers is, with our most sophisticated customers, is that it looks like something between 30 and 50% goes to open-source and closed-source models.
30 to 50% of volume goes to open-source and custom models?
No, not of volume, of spend.
Of spend. And okay, but they're actually doing like 3 to 5, like it's like 3 to 5x the volume, right, than the closed.
And so you end up with somewhere where you can do way more relative tokens at a fraction of the absolute cost.
Where it's like win-win, win-win, win-win. What we think is that over time the market will mature towards that. But I think, you know, going back to my prior, like the thing I just said right before that, says today if it's like 3 to 5% of spend, even if you assume it's 10 to 15%.
Let me rephrase all of that. So you said for your most advanced customers, the volume is 3 to 5x closed volume. So at, let's say, at mid-4x, so the ratio is 80% tokens going on open or fine-tuned open, 20% on closed.
Yeah. And then in terms of dollar spend, it's 30 to 50% of total. So that's 40%, let's say at midpoint, of total spend going on.