Software development has been commoditized. It cannot be faster. So the end result is application itself doesn't have deep moat. What cannot be copied? The data representing user preference, user intention. If we believe that intelligence is derived from data, then I believe the real frontier of intelligence hasn't been unlocked yet.
Welcome to Prompted, a podcast about AI, people, and the creative spark. I'm Cameron Adams, co-founder and chief product officer of Camber. You might have heard the word inference a lot lately. It's an important part of bringing AI to the world, but it's not one that a lot of us have to think about. Today's guest thinks about it a lot. I'm joined by Lin Qiao. She's built a $4 billion company around inference. It's called Fireworks AI and it provides inference and infrastructure to companies like Cursor, Uber, DoorDash, and Shopify in order to help them build, fine-tune, and scale high-performance generative AI applications. Before founding Fireworks, Lin was the co-creator and head of PyTorch at Meta, where she played a pivotal role in developing one of the world's most widely used machine learning frameworks. So, you could say that she's been helping to build the future of AI for almost a decade. Lin, welcome to the show.
I'm so excited to have you here and to talk about all the things that you're building at Fireworks. But first, let's kick off with the prompt. The prompt is where you tell us the story of a moment that shaped you while you draw it. We're going to take that drawing and we'll turn it into something magical with our in-house designer Harriet and a little bit of AI. Do you have a pen and paper there ready?
Go for it. Can you multitask and tell the story at the same time or do you need some drawing time?
I will say it's hard to draw.
We will take whatever you've got.
Oh, for that I think the best way I have is it's a little bit abstract. So, and I will explain. It's like that.
Abstract's good. All right. I'm seeing a square with some arrows coming out of it.
So, tell us what this sketch is all about.
So, to me, starting this company is a continuation of self-driven growth. I have been constantly seeking that from very young. Fortunately, I met a great group of people at Facebook and they drove me to a different altitude that I wouldn't imagine myself. And I would say my growth at Facebook was exceeding my own expectation — not in terms of title or anything, just in terms of the exposure to the most cutting edge and being able to achieve much bigger goals than I set for myself initially is extremely satisfying.
What I'm hearing is that your sketch is all about pushing yourself beyond boundaries. It's about trying new things. It's about growth. I love that insight into your personal philosophy and how it's shaped your life. We're going to send that picture to Harriet, our designer in residence, who's going to team up with AI to whip it into something new. We're going to reveal Lin, Harriet, and AI's creation at the end of the episode. So stay tuned for that. But while Harriet works, I'd love to go a bit deeper with you in your journey through AI, Lin. So, you've already told us a bit about your career, but I think one of the pivotal moments came at Meta where you co-created PyTorch, and I'm really interested in firstly what PyTorch is for anyone that's not familiar with it, and what problem you were trying to solve when you started developing it.
One caveat I want to mention is PyTorch was created by a group of researchers at FAIR. FAIR was fundamental AI research, and it was designed originally as a tool to make the research much more productive in making new neural networks. It's a brilliant design. That's when I moved from data into AI. And the goal here is to have not just PyTorch for research, but PyTorch for both research and production. That's a completely new design space, and I created a team and brought that into fruition, empowering all Meta's internal work and also external research and production work.
What's the difference between something that can work for research and something that can work in production?
Very different, right? So because research is about creativity and the velocity of creativity, and production is about optimization. So this is actually a very different design space, and it was not clear to us initially whether there's any overlap between these two designs. We could have a fast iterative research system transition into a hyper-optimized production system, because here we are talking about huge scale in production. But this transition between a research system to production is extremely brutal. It's slow, it's a hack of everything down, and more importantly, there is an intermediate stage between pure research and before we hit production, which is experimentation. Experimentation means we need to test those research ideas in a semi-production setting, and this semi-production setting is actually production, as in it's a small fraction of the traffic in production to test this A/B testing. So then the line between research, experimentation, and production is really blurry. And then we basically have to solve this intersection problem. There's no other way around. But that is a new challenge that no one has solved before. We took that challenge, and I would say today's result is the validation of our work: PyTorch is now the dominating AI framework across industry, especially when it comes to generative AI. The majority of models are created in PyTorch, trained in PyTorch, and deployed to inference in production in PyTorch.
So something like GPT or Claude, is that built on PyTorch?
I'm pretty sure. So fun fact, I believe it was probably seven, eight years ago we flipped OpenAI from using TensorFlow to use PyTorch. Ever since then, all the major research labs started to go all in on PyTorch, and that became the top of funnel, because there were still many research teams at that time that still open-sourced the model into the community, and that becomes the top of funnel to have the production team test it and do experimentation and bring it to product surface areas. So that's how it flowed naturally. By the way, I met my other co-founders during that time, and we worked very closely together, either on building the AI infra side that powers both massive production training and inference, or they are customers using the AI infrastructure we build. So knowing the co-founders during that time is, I would say, I'm extremely fortunate.
Were large language models on the scene at the time when you started PyTorch, or were they a development that came a bit later?
There's quite some overlap, but it didn't take off. So I think November 2022 was the ChatGPT moment, and we started the company in September 2022, before ChatGPT. So there's still a huge question: why did you start a company at that time? It's way too early, it hasn't arrived, you're going to solve a lot of data problems. Actually, maybe I will rewind and talk a little bit about our journey. It's actually very interesting. We have seven co-founders, a very big founding team. We joined Meta around a similar time frame. That's when Meta finished mobile-first or was winding down mobile-first. It's a big transition, but it's a brilliant transition where consumers can access social networks anywhere, anytime on mobile phone. Great product growth, and then from the product surface they have a lot of data generated, and that data became the future of AI. So mobile-first, AI-first — that sequence is very important, because that sequence also forecast into the sequence of this transition in the industry later on. And when we started, there was no AI team, there was no AI hardware, everything was on CPU, tiny, tiny machine learning algorithms, there was no AI software. PyTorch was for research, we had some fragmented software, for example Caffe2 for mobile, ONNX for production, but it's very fragmented. So we started from that point and brought in various different kinds of AI hardware, including Meta's own AI hardware as well as GPU, and then brought up the training platform, brought up the inference platform, everything consolidated on PyTorch, made PyTorch not just for FAIR research but also for production training and production inference. It was not an easy journey. We did a lot of trial and error, but we're happy with the result today.
For some of our less technical listeners, can you explain the difference between training, which a few people might be familiar with in terms of training something big like GPT or Claude, versus inference, which is a lot of what Fireworks focuses on?
So training is a way for a model to learn, and fundamentally, we're here mostly talking about neural networks. And the way for neural networks to learn is basically it has a forward pass and then generates a loss, and then from the loss uses the backward pass to push back and change the weights along the way, and then go forward pass again and then push back again. So this back and forth is the essence of training, and it's by nature very data-heavy because it has to learn from scratch from a huge amount of data. But also training has different phases: pre-training, mid-training, to post-training, using different kinds of algorithms.
So this is where it takes a big data set and it looks at that data, finds connections between it, and learns from that to achieve something, right?
So first of all, before you train, you need to design a model architecture with many layers, and the learning process is to populate weights into this model architecture. Those weights are kind of numerical values. And the end result is a model architecture combined with various different weights, and then you deploy that into production. And then your product can pump information — the prompt is the input — and then go forward to generate the projected result and then push back to product. So that's inference. So inference is forward pass only, and training is forward-backward multiple times, and it's fundamentally a different system to design. Training is much more complicated, I would say, but it has a common path. Training actually has part of training that is inference. You can think of it that way, and that's where having a platform that runs both training and inference fully aligned is extremely important. Alignment directly leads into quality, and misalignment leads to lower quality and loss of precision. So that's where at Fireworks we provide both training and inference as one platform to power applications. That is kind of high level, but we also have gone through phases of algorithm design. I think the biggest difference is pre-GenAI and post-GenAI. Pre-GenAI, there's no foundation model concept. Every team has to curate data and train from scratch. Post-GenAI, there's a concept of a foundation model that is learned from public internet, and labeling companies label data and a bunch of synthetically generated data to create general intelligence. And that general intelligence — we heard a lot of terms about AGI — is going to solve many problems and be used as a black-box API. So that is a massive change, because for any company to use AI, they no longer need to first build a huge AI team who can train from scratch. They can build on top of off-the-shelf GenAI models, or they can staff up a smaller team to post-train the model based on a solid base but use their own data. But post-training is a much easier problem than training from scratch the whole entire space. So that is a fundamental unlock of productivity using AI. That's why starting from 2023 the adoption of AI started to go exponential, especially starting from the end of last year. I think we hit an inflection point because the model quality, both closed and open, has passed a threshold where a lot of our day-to-day problems where we're putting human efforts can be automated by models, and that's where we see the adoption of GenAI going exponentially right now.
So for most of the world, if you're not a researcher, the way that you interact with AI is probably through the inference layer. If you're using an AI assistant, the way that your prompt gets processed and then a result returned to you is through inference. Correct?
So where do you see the most important aspects of inference improvement happening? How will it actually affect me as an end user of an AI assistant or a model if inference gets better?
So I really think the most important element of inference is quality. That's ultimately the biggest value to developers building product. Any product-market fit is hinged on the quality that product brings into a consumer or prosumer, and that quality dictates the model they're using needs to be frontier. So, but the interesting part is how to get frontier quality model, and there are two paths. One established path is use the AGI model, the models coming out of the frontier labs, and you focus on context engineering, prompt engineering, and get the best out of those models, and then your product builds on top of that.
However, in the past one year, an interesting thing happened at the macro level in the industry: software development has been commoditized to convert an application idea into implementation to scale in production. It cannot be faster. In the past it required a team of tens of strong engineers multiple quarters to do that, and now it's one engineer or one person — not necessarily an engineer, one person — multiple weeks or even days they can deliver that. So the end result is application itself doesn't have deep moat. Because a lot of people can create applications as long as they have ideas. They may not even know how to write a single line of code. And application is very easy to copy because you can just take screenshots and ask Claude Code to generate a similar one. So then what is real moat? What cannot be copied? The data that is representing user preference, user intention, user engagement, and the most important component: activate that data. And if you look at world data, actually 90 to 95% of data is private data, locked inside applications, locked inside enterprises. And it's not being activated fully. If we believe that intelligence is derived from data, then I believe the real frontier of intelligence hasn't been unlocked yet, because frontier labs don't have access to those data, and the data owner doesn't have the technology to build a model on this data. So that's where Fireworks comes in. Our mission is to fully activate private data and build application-specific frontier models. So it's very, very easy: private data plus open model equals your own frontier model. So we want everyone to be their own frontier lab. And the path is to use Fireworks' training and inference platform combined with your data, and then you will get the best model out of it. More importantly, it's actually not a one-time thing. You mentioned a bunch of customers. It's not like Uber would train this model once, train an Uber model, and then they will be good forever, or Shopify will train one Shopify model and be good forever. This has to continuously happen because applications keep evolving, base models keep improving. Every two weeks there's a new model popping up top of a leaderboard, and it's like software development to continuously rebase, and that's why this training will keep going. But at the same time, as we live in the age of agents, this process should be as easy to do as possible, as automated as possible. So then we see there are two strategies to get to frontier quality, which is the most important factor to build a product, and I believe these two strategies will coexist. But I do not believe the world will be dominated by a few foundation models. I believe the future will be millions of customized models, one per application, per use case.
That's a really interesting future. You mentioned that applications have become commoditized, and that's largely because of the power of coding agents now and the ability for them to take pretty broad instructions and turn that into anyone's reality. Are you seeing the same thing at a deeper layer? Are you seeing coding agents affect the work that you're doing and make that faster and more rapid, and enabling AI systems to evolve themselves almost?
Absolutely. I think what makes this interesting, and I'm a firm believer of the velocity of AI, is I start to see not just software engineers adopting AI tools, which is a no-brainer, but my head of accounting — she used AI tools, she also used Fireworks to manage her books, right, to manage spreadsheets. You define all kinds of skills that her team can repeatably use, and that saved multiple Python engineers, and then she just became so much more productive. And it's not just finance; it cuts across different areas. We built our own recruiting agent because we need to hire a lot of great people, and there's a lot of inbound applications — it's just too many, so we have to automate this. I think talent quality is very important for us. It's a lot of work to scan through all these applications. We also have our data team, RevOps, they're using AI tools to build various kinds of dashboards, just so we have more visibility quickly instead of waiting a long time for the pipeline to finish. I think I start to see it go into many different aspects of our professional life, and that is a strong indication that the model quality has passed a threshold. When the model quality passes a threshold, it becomes much easier to customize, use the data, and pull the model quality to a new altitude. So that's kind of where we firmly believe the direction is the right direction of a customized model, and today 95% of traffic on Fireworks is through customized models.
You mentioned earlier that there's seven co-founders on Fireworks, and this seems to be a pattern I think in AI startups that they tend to have a few more co-founders than previous startups might have. Is that a pattern that you see happening, and is there a reason for that?
I'm not sure if it's a pattern. We just happen to be that way. And there's definitely a lot of benefits. I feel if the team dynamics are really good, having a larger founding team — we're very candid in discussions, and it helps us get a very comprehensive perspective in thinking about product, in thinking about business, in where to make bets, in where to focus, and where to drop our weights. And I think those perspectives are extremely important. But at the same time, we never get analysis paralysis. Decision-making velocity — it doesn't matter how big the founding team is, you know, when the company grows bigger we'll always have more people. Decision-making velocity, the judgment, the precision of the judgment, and quality of judgment is very, very important. And that's where when we grow beyond the founding team, we pay a lot of attention to talent density and the quality of the people. And we're also fortunate that we have many great people joining us beyond the founding team and building the company towards today's shape, and we continue to hire great people into the company.
Are you starting to see AI play a more active role in decision-making itself rather than just being an analyst and giving you some data? Is it actually starting to change your decisions?