# Why This Ex-Meta Leader is Rethinking AI Infrastructure | Lin Qiao, CEO, Fireworks AI

Markdown copy of https://realalpha.app/v/wbhGAc_itMg/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

Lin Qiao says AI infrastructure should hide deployment complexity and tune models to each application's quality, speed and cost needs.

- Show: The MAD Podcast
- Hosts: [Matt Turck](https://realalpha.app/people/matt-turck/)
- Guest: [Lin Qiao](https://realalpha.app/builders/lin-qiao/) is cofounder and CEO of Fireworks AI.
- Published: Mar 27, 2025
- Length: 59 min

## The best minutes

- [30:10](https://realalpha.app/v/wbhGAc_itMg/?t=1810) [Inference optimization is a search across 80,000 configurations](https://realalpha.app/s/inference-optimization-is-a-search-across-80-000/) (5 min)
- [49:47](https://realalpha.app/v/wbhGAc_itMg/?t=2987) [Lower inference costs can make far more AI products viable](https://realalpha.app/s/lower-inference-costs-can-make-far-more-ai-products-viable/) (3 min)
- [55:05](https://realalpha.app/v/wbhGAc_itMg/?t=3305) [Open models will produce specialized models for agents](https://realalpha.app/s/open-models-will-produce-specialized-models-for-agents/) (4 min)

## Also worth watching

- [16:17](https://realalpha.app/v/wbhGAc_itMg/?t=977) [Keeping PyTorch in production avoided costly rewrites](https://realalpha.app/s/keeping-pytorch-in-production-avoided-costly-rewrites/) (3 min)
- [23:22](https://realalpha.app/v/wbhGAc_itMg/?t=1402) [Fireworks tunes inference for each workload's trade-offs](https://realalpha.app/s/fireworks-tunes-inference-for-each-workloads-trade-offs/) (6 min)
- [35:42](https://realalpha.app/v/wbhGAc_itMg/?t=2142) [Verifiable rewards make reinforcement learning easier to automate](https://realalpha.app/s/verifiable-rewards-make-reinforcement-learning-easier-to/) (3 min)
- [44:19](https://realalpha.app/v/wbhGAc_itMg/?t=2659) [Fireworks runs across five clouds and more than 15 regions](https://realalpha.app/s/fireworks-runs-across-five-clouds-and-more-than-15-regions/) (3 min)
- [47:17](https://realalpha.app/v/wbhGAc_itMg/?t=2837) [Fast model and hardware turnover shifts some buyers to hosted APIs](https://realalpha.app/s/fast-model-and-hardware-turnover-shifts-some-buyers-to/) (3 min)

Skip the opening PyTorch history and traditional-ML primer, the agent/function-calling walkthrough, and the roadmap discussion.

## Full analysis: Lin Qiao says inference tuning spans more than 80,000 configurations

- Fireworks frames more than 80,000 possible inference configurations as a search for workload-specific quality, speed and cost.
- That count describes options, not demonstrated savings or faster deployments.
- Buyers should test measured gains against their own quality bar and operating costs.

Its 7 sections, what it means for you and what to watch are on [the page](https://realalpha.app/v/wbhGAc_itMg/#analysis), free with an account:

- [32:37](https://realalpha.app/v/wbhGAc_itMg/?t=1957) 80,000 configurations describe a search space, not savings
- [24:00](https://realalpha.app/v/wbhGAc_itMg/?t=1440) Fireworks optimizes a model against each workload’s trade-offs
- [30:22](https://realalpha.app/v/wbhGAc_itMg/?t=1822) Prompt and token stages need different scaling
- [16:24](https://realalpha.app/v/wbhGAc_itMg/?t=984) PyTorch taught Qiao to hide production complexity
- [50:16](https://realalpha.app/v/wbhGAc_itMg/?t=3016) Order-of-magnitude savings remain Qiao’s forecast
- [55:19](https://realalpha.app/v/wbhGAc_itMg/?t=3319) Specialized models make integration the next bottleneck
- [49:17](https://realalpha.app/v/wbhGAc_itMg/?t=2957) Deployment choice reflects change speed as well as privacy

## Summary

Lin Qiao left Meta in 2022, where she was managing several hundred engineers, to co-found Fireworks AI. She previously worked at IBM Research, LinkedIn and Meta, where she helped lead PyTorch; at Fireworks, she leads work on model deployment and performance optimization.

Qiao says Fireworks AI abstracts the work of deploying models and optimizes each workload for its quality, speed and cost needs. Drawing on PyTorch, she argues that simple user experiences can drive adoption while infrastructure teams handle production complexity. She sees inference costs falling by an order of magnitude, which she says could make more AI products viable. Qiao expects agents and open models to proliferate, creating integration and quality-alignment challenges that Fireworks wants to simplify.

### Minute by minute

- [1:17](https://realalpha.app/v/wbhGAc_itMg/?t=77) **Fireworks abstracts deployment complexity.** Qiao describes Fireworks AI as a developer platform that lets application teams build on generative AI models. She says it handles infrastructure complexity so developers can focus on user experience while balancing model quality, interactive speed and cost.
- [3:04](https://realalpha.app/v/wbhGAc_itMg/?t=184) **PyTorch unified research and production.** Qiao says Meta built PyTorch to unify separate frameworks for mobile, research and production. An early attempt to combine an easy-to-use front end with a high-performance back end failed, so the team rebuilt the back end; she says that work took five years and supported use across data centers, phones and AR/VR devices.
- [7:56](https://realalpha.app/v/wbhGAc_itMg/?t=476) **Foundation models broaden AI access.** Qiao says PyTorch’s simplicity and Python-based interface made models easier to build and debug, helping research spread through open-source projects. She contrasts earlier machine learning, which required companies to curate data and train models, with foundation models that let application teams build directly on existing models.
- [13:32](https://realalpha.app/v/wbhGAc_itMg/?t=812) **Fireworks carries over PyTorch’s simplicity.** Qiao says AI adoption is happening across startups and traditional enterprises because generative AI models are accessible. She says PyTorch taught her that users want tools to work without needing to understand the infrastructure, so Fireworks keeps the user experience simple and handles production optimization behind the scenes.
- [19:37](https://realalpha.app/v/wbhGAc_itMg/?t=1177) **Customers use AI in distinct workflows.** Qiao says Fireworks manages the infrastructure and scaling work that would otherwise require scarce, specialized engineers. She names Cursor, DoorDash, Uber and Samsung as customers, describing uses that include meeting scheduling and improving marketplace search through enriched product and supplier information.
- [25:31](https://realalpha.app/v/wbhGAc_itMg/?t=1531) **Optimization balances three objectives.** Qiao says Fireworks Optimizer takes a model, workload and target trade-off across quality, speed and cost, then proposes a model and deployment configuration. Options include quantizing weights, activations or KV cache from 16-bit to 8-bit or 4-bit, and speculative decoding that pairs a smaller model with a larger one; she says some prediction-head results improved from 30 to 90.
- [30:10](https://realalpha.app/v/wbhGAc_itMg/?t=1810) **Model partitioning targets separate bottlenecks.** Qiao says prompt processing can be compute-bound while next-token prediction can be limited by memory bandwidth, so scaling a model as one unit can leave bottlenecks. Fireworks can scale different model components separately. She says its optimization choices create more than 80,000 possible configurations, making workload-specific search necessary.
- [34:40](https://realalpha.app/v/wbhGAc_itMg/?t=2080) **Fine-tuning and rewards automate adaptation.** Qiao says Fireworks supports both human-in-the-loop and automated optimization. For DeepSeek, which she describes as having more than 250 experts and deployments involving more than 300 GPUs, supervised fine-tuning can adapt models to a domain. She says automated reinforcement learning can use verifiable rewards, such as whether code runs, or ratings from people such as designers.
- [38:53](https://realalpha.app/v/wbhGAc_itMg/?t=2333) **Function calling enables agent workflows.** Qiao says agents need models to produce structured outputs that software can use, so Fireworks supports JSON and other formats through grammar mode. She describes agents that combine models with APIs and databases, and gives medical-claim processing as an example of pairing vision and language models. She says Fireworks added function calling to DeepSeek V3.
- [44:19](https://realalpha.app/v/wbhGAc_itMg/?t=2659) **Custom kernels target hardware limits.** Qiao says Fireworks develops custom GPU kernels, including at the PTX level, to improve speed and cost. She says the platform supports Nvidia GPUs through the B200 generation and AMD hardware through ROCm, and runs across five cloud providers in more than 15 regions. Deployment options include a managed API and customer VPCs or clouds.
- [49:47](https://realalpha.app/v/wbhGAc_itMg/?t=2987) **Lower inference costs could widen adoption.** Qiao expects AI infrastructure costs to fall by an order of magnitude and says lower costs could make many more applications viable. She says high bills can prevent products with market fit from scaling, including startups that can scale to bankruptcy, and argues that cheaper infrastructure could increase industry-wide usage.
- [52:42](https://realalpha.app/v/wbhGAc_itMg/?t=3162) **Open models and agents shape the roadmap.** Qiao says Fireworks is doubling down on its optimizer, especially quality gains from customization and customer data. She calls 2025 the year of agents and open models, and says more than 500 DeepSeek variants appeared on Hugging Face within a month of release. She expects specialist models and agents to create integration challenges that Fireworks aims to simplify.

## Transcript

The MAD Podcast, hosted by Matt Turck, with Lin Qiao.

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[0:00](https://realalpha.app/v/wbhGAc_itMg/?t=0) Welcome back to the Matt Podcast. I'm your host, Matt Turck from FirstMark. Today, my guest is Lin Shao, the CEO of Fireworks AI, an LLM inference platform that enables companies like Cursor, Uber, and DoorDash to build AI product experiences on top of hundreds of open source models like DeepSeek, Quen, Lama, and Mistral. Prior to co-founding Fireworks, Lin had an illustrious career at places like IBM Research, LinkedIn, and Meta. We talked about how her experiences with PyTorch and Meta led to the creation of Fireworks. One of the biggest success we saw from the PyTorch experience is simplicity scales.

[0:40](https://realalpha.app/v/wbhGAc_itMg/?t=40) People don't want to spend time figuring out how to make things work. They just want it to work. And also covered a bunch of other topics from the continued drop in inference prices. I believe this overall AI infrastructure would go down by order of magnitude in terms of cost, and they should. To Lin's thoughts on the future of open source AI. Despite DeepSig model extremely hard to tune and optimize, more than 500 variants published on Huggy Face, optimizing for local device, optimizing for cloud infrastructure. Please enjoy this great conversation with a CEO who's very much at the forefront of generative AI infrastructure today.

[1:17](https://realalpha.app/v/wbhGAc_itMg/?t=77) Helene, welcome. Hi, thanks for having me here. We're going to talk about all things Fireworks AI today, but as a level set, what is the elevator pitch for Fireworks AI? Fireworks AI provides a developer platform for application developers to build on top of Gen.I. technology. They need to hypothesize what kind of product is interesting. and they need to use certain models to integrate and build this great innovative user experience. Oftentimes, they have to solve multiple problems. One is quality. Is the model delivering towards the quality they want? And also interactive real-time speed because many of those products are consumer-personer facing.

[2:10](https://realalpha.app/v/wbhGAc_itMg/?t=130) And then when they hit the product market, And when they scale the business, they have to have a sustainable way to scale. So cost efficiency is very important. So oftentimes, we see application developer heavily focus on three-dimension optimization, quality, speed, and cost. And we want to take away all this complexity from them. So they focus on thinking about what is the best user experience, what is the best product idea. So infrastructure as a service, you abstract away the whole complexity of what needs to happen behind the scenes to deploy those models. Maybe a few words on your story, your background.

[2:49](https://realalpha.app/v/wbhGAc_itMg/?t=169) In particular, you were one of the key people on PyTorch at Meta, Facebook at the time. Yeah, Facebook at the time. I guess, what is PyTorch for anybody that doesn't follow the things, you know, in great detail? And then how did it all come about? What was your role there? Yeah, that was an amazing journey. When PyTorch happened, what was the kind of industry context here? So I joined Meta in 2015. At that time, Meta, it was called Facebook at the time, was going through the transition of finishing mobile first to starting AI first. Like, there's a fundamental reason why it's sequenced that way.

[3:33](https://realalpha.app/v/wbhGAc_itMg/?t=213) because after meta-transition, it's application from desktop to mobile first, and it's widely accessible everywhere. Using your phone, you can connect with people. And that drive a lot of user engagement and a lot of data being created. And we all know data-fueled AI. So quickly after mobile first transition, we started AI first. At that time, there's no software, no hardware, there's no GPU. people building all this infrastructure. So we post-trapped the whole thing from ground up. And it was interesting time. Feels like right now, there's so many companies building their own AI framework. There's a gazillion number of AI frameworks.

[4:17](https://realalpha.app/v/wbhGAc_itMg/?t=257) Even within Mata, there are three different flavors. One for mobile, one for research, one for production. So it's very confusing. And we decided to unify all of that and have one framework aiming to be the best tool for researchers to create innovative model architecture, but also one framework to deploy and deliver those innovative models into production to power all the product needs. So these two actually have huge tension across because for researchers, you want the flexibility. You want ease of use. You want them to just think about what's possible, right? And for production, it's a constraint problem solving.

[4:58](https://realalpha.app/v/wbhGAc_itMg/?t=298) As in, you have latency budget, you have cost budget, you want to scale, you want to be reliable. So it's kind of, hey, you have all these constraints, let's kind of optimize. It's an optimization problem. So how to create one framework to solve both problems with big tension in between is a very, very hard challenge. I would say we have a lot of fun. Think about that. It was deemed mission impossible at the beginning. And many people feel this is so experimental, probably about to fail, but it's worth to give it a try. And I would say our initial attempt was not successful. In when was that? 2016?

[5:41](https://realalpha.app/v/wbhGAc_itMg/?t=341) From 2015 to 2016. Because idea is great. Idea was simple. Because PyTorch has great front-end, very simple Pythonic. And we have another framework internally. It has high performance kernels, backend. And you would think we can zip them together so we get the benefit of both. How hard can it be? How hard can that be, right? So let's just zip them together. It's actually called Zipper. And it turns out it's really, really hard to bring two frameworks completely designed with different goals and different interface these internal APIs to kind of work seamlessly together. It's like building a bridge with both ends moving.

[6:28](https://realalpha.app/v/wbhGAc_itMg/?t=388) It's going to be an extremely fragile bridge. So then we decided, hey, making both sides happy is not the goal. We need to build an extremely strong product. And we decided we were going to rebuild the whole entire back end from this beautiful front end and bring it to production. It took us five years. It took us five years to get the stage. supporting almost all internal needs using deep learning and a massive, massive scale. So, yeah, so it also has been deployed to not just data centers or Mata's own data center, but also mobile phones. If you use any of Mata's apps, that means our tiny infrastructure is running on your mobile phone and also ARVR devices.

[7:14](https://realalpha.app/v/wbhGAc_itMg/?t=434) It's kind of ubiquitous everywhere. At that time, PyTorch externally is an open source project. It has grown from a baby GitHub project into more and more massive adoption. So through that, we got exposed to many other companies using PyTorch. And it's fascinating to see the growth of all different use case adoption from image recognition to ranking recommendation to robotics, self-driving cars. And JNI is nascent, but it's literally everywhere. And it's used by all the research labs. It started from research labs, and the fun fact is OpenAI switched to use PyTorch fully. From what? From TensorFlow.

[8:11](https://realalpha.app/v/wbhGAc_itMg/?t=491) So TensorFlow was dominating at that time. TensorFlow being the Google framework. Google framework, yes. Google also put a lot of effort behind open sourcing, this effort growing the community. But simplicity wins. PyTorch is so simple. and the user interface, the debuggability, and people can easily change the model architecture as they want. It's dynamic and flexible. To drive it home, the simplicity point, so it does because you had the sort of low-level and high-level stuff. So it does anything from whatever the research scientists need to do in terms of, I don't know, like a backprop, whatever, on one hand.

[8:56](https://realalpha.app/v/wbhGAc_itMg/?t=536) but on the other hand, it's going to do GPU usage optimization. Is that fair? So it spans the whole, all the things that you need to do to develop faster and simpler? Right. So I think the APIs, it kind of adopts Python as the programming language. That's why it's called PyTorch. The idea is from Torch, lower Torch time. And Python is a very simple, easy to use program language for many researchers. and they think about deep learning, neural network in code, right? You don't need to think about that as graphs, as nodes and edges and how to tie them together. When this graph becomes like hundreds, thousands of nodes, then it's how you even kind of manage that thinking process.

[9:46](https://realalpha.app/v/wbhGAc_itMg/?t=586) But represent that in code, in Python code, is very easy to manage. and then you become a software engineer to think about a neural network. And it's very easy to debug because all Python tooling, the tool chains can all work. So, yeah, so that actually unblocked a lot of progress made in the modern innovation. And it's also, of course, it can run on GPU. It can run on different hardware skills. We have many different hardware vendor plug-in to a lower level to support PyTorch, including TPUs. And because Google has a compiler that can directly connect with PyTorch and lower the program into the TPU runtime.

[10:42](https://realalpha.app/v/wbhGAc_itMg/?t=642) So that enables significant advancement. from a modern research side. And the interesting part of modern research is a lot of research has been published as open source project. And Hugging Face is one example of adopting and becoming the Ripple, centralized Ripple, for new research ideas. And it's very easy for people to take this model architecture. So there's a pre-Gen AI and post-Gen AI era. Pre-Gen AI is the model code is open source. but there's no weights, right? Everyone has to curate their own data and train from scratch. That just means any company want to invest in deep learning, they have to first hire people who understand how to curate data first and then who understand how to train, how to manage GPU fleet and so on.

[11:40](https://realalpha.app/v/wbhGAc_itMg/?t=700) So that takes a lot of time to hire those people, which come from a very, very small pool and takes a lot of capital investment. to get this going. So that's why pre-Gen AI, not all the company can access this technology, even though it's great. And usually it concentrates in hyperspace. or whoever has a big resource to be able to do it. And then post-GNI, GNI is basically built on top of foundation models which can learn from the world knowledge, internet knowledge. And these models are good by self, so applications can directly run on top of those models. So you don't need a machine learning team to begin with to start imagining what are the new user experience.

[12:24](https://realalpha.app/v/wbhGAc_itMg/?t=744) Or you can have a small machine learning team who just do fine-tuning or reinforcement learning, which requires much smaller samples to curate. And the post-training process is much simpler. So I always say that shift is fundamental. It's monumental to unblock a lot of new innovations in the application space. Yeah, just to play it back, it's something that's super obvious to people like you at the forefront of the field. but that a lot of people don't quite realize this fundamental difference. And just to play back exactly what you said between traditional machine learning and digital AI is not just a difference of technologies.

[13:07](https://realalpha.app/v/wbhGAc_itMg/?t=787) It's exactly what you said. You had to build your models from scratch before, more or less. And now you have this concept of foundation models that you can build on top of. Therefore, the whole complexity has moved to how you deploy the models, which was going to lead us into fireworks. But just to play it back, because it's such an important concept that people may or may not have internalized, how that changes everything. That's exactly right. So that's why we see an explosion of adoption of this technology from the inception of our company. And there are AI-native startups. There's no box around what's possible.

[13:46](https://realalpha.app/v/wbhGAc_itMg/?t=826) And they create completely new user experience that we will never imagine. But also the enterprises, whether it's digital, native, or traditional enterprise, they are all joining this transformation and rethink their existing product experience or rethink how to power their internal productivity or customer service, many different surface areas. So I always say across the board, what's most surprising to me from the beginning of when I started this company, I had this sequential go-to-market motion in my head is to go to native startups first because they are most technical advanced and then digital native because they are more like they're embracing new technology in open-minded way.

[14:36](https://realalpha.app/v/wbhGAc_itMg/?t=876) And then traditional enterprise, because they want to prove, I see enough proven point before enter. Now it's happening across the board, everywhere. That's partly our attribute to, like, Gen AI models are so easy to use and so accessible. And just to close on PyTorch, and then we'll go into fireworks in detail, as a passing thought, And that sort of echoes a conversation I was just having most recently with Dow from Contextual AI on this podcast, who was probably at FAIR around the same time you were. And, you know, we were just like talking about how incredible an impact FAIR, Facebook, Meta have had on the AI ecosystem.

[15:25](https://realalpha.app/v/wbhGAc_itMg/?t=925) So PyTorch being like another fantastic example of just like open sourcing, all of this is fundamental framework that everybody uses and now is a fully independent project, right? I think the governance was transitioned completely out of meta at the end of 2022 or something. It's just incredible, like the impact that all of you had on this ecosystem. Yeah, it transitioned to Pythorch Foundation with, yeah, expanded to industry governance. But I believe Mara still have a... a very representative presence there to continue to foster PyTorch growth in the future. So transition, but not completely transition.

[16:12](https://realalpha.app/v/wbhGAc_itMg/?t=972) Yeah, I think it's working. Yeah, it is a progressive transition. How did your experience at Meta and then PyTorch influence the idea for Fireworks in the first place? I think one of the biggest success we saw from the PyTorch experience is simplicity scales. And this simplicity is user experience simplicity. Because we have a very strong engineering team, we can solve any infrastructure challenges and complexities. but when it comes to adoption people don't want to spend time figuring out how to make things work they just want it to work and that's kind of where PyTorch shine and that's why in the heavy competition or very noisy market of every company is building their awards building their own AI framework I think there are like tens of those AI frameworks at that time but none of those were focusing on the simplicity part and we'll focus on production um and all the nitty-gritty details to get into production but to the point it is very hard for researchers to adopt um and a kind of interesting funnel we saw from the Python journey is the researcher adoption is the top of the funnel because they create new model architecture which get open source and get adopted by industry practitioners for experimentation maybe one or ten of those

[17:46](https://realalpha.app/v/wbhGAc_itMg/?t=1066) experiments will be successful and then it goes down to the next phase of funnel for production and once go to production people start to transition from pytorch into other production more production focus to optimize the framework but that transition is too hectic they're going to rewrite the whole model in a complete different mass and then you lose position

[18:07](https://realalpha.app/v/wbhGAc_itMg/?t=1087) **Lin Qiao:** is too much hassle and it's much easier to just use pytorch into production and let's optimize pytorch so we saw this journey now it's kind of retrospectively we saw this how is this evolved

[18:19](https://realalpha.app/v/wbhGAc_itMg/?t=1099) um and at time it was not clear who is going to win and how it's going to win but now it's very clear is to um to leverage simplicity to get to adoption because that's what end user cares about and then we have you know we focus on optimize behind the scene and that's a way to to drive impact so we carry the same mindset when we think about fireworks is we want to keep the fireworks user interaction really really really simple and we take the heavy lifting of production optimization and production optimization is so complicated and i would like to elaborate on that um and so that's kind of our the funding principle of designing fireworks product is simplicity first because prism will be at meta to manage pytorch you had what hundreds of engineers? We have hundreds of engineers building PyTorch and infrastructure around PyTorch.

[19:29](https://realalpha.app/v/wbhGAc_itMg/?t=1169) But at the same time, I believe PyTorch within Meta probably has thousands of users. Outside the Meta, it will be hundreds of thousands of developers. But in terms of like the infrastructure required to just manage something like this, you would need to be able to, if you're one of your customers like with that firework you would need to hire like dozens of folks or hundreds of folks maybe to just maintain and manage models right is that fair in terms of what you abstract away First of all, hiring infrastructure like Genia, infrastructure engineers, is a very, very small pool. And it's also very deep optimization we do.

[20:11](https://realalpha.app/v/wbhGAc_itMg/?t=1211) You probably wouldn't be able to get anybody with our depth. But also, we manage huge fleets. The scalability is very fast. We saw, for example, AI-native startups, they can ramp up extremely quickly without even being able to predict what's going to come next. We have seen digital native companies, they transition their online traffic to run on top of J&M models also extremely quickly. And famously, one of your customers is Cursor, right? Which is like the poster child example of super fast growth. Exactly. And from what I know, everyone I talk to, they use Cursor. it's very interesting so today I talked to one of our customers they even use cursor to schedule meetings very very creative so another example is that we work very closely with DoorDash and Uber and Samsung so they are incorporating JNI into their main products because they are marketplace and the search relevance is extremely important in order for them to accurately target and give recommendation to their end user, their consumers.

[21:36](https://realalpha.app/v/wbhGAc_itMg/?t=1296) They have to have high quality data and high quality supplier information, product information, all of those was manually corrected. And GNI actually can have a model which can see, extract information and enrich through LM. So we are running their whole internal setup to have high quality end user experience. Let's get into the weeds of the product itself. So starting with models, so you sort of offer power hundreds of models. What is the latest number of models that you offer? Yeah. So our product has multiple layers. At the lowest layer, we have been working on distributed inference engine from the beginning. And that's basically a customized PyTorch inference infrastructure we set up for J&I specifically.

[22:38](https://realalpha.app/v/wbhGAc_itMg/?t=1358) and that distributed infrastructure was designed very composable and building block based the fundamental reason is we want to launch any state-of-the-art model very quickly as we just discussed we have the track record of new open model get released in the same day we launch it Right. So that's because we kind of took the PyTorch idea and built our inference infrastructure in a composable way. And then we can pick and choose what is the best options and setup for that particular model. But the search space is very big. So we think about, first of all, our design principle is we don't believe in one size fits all.

[23:33](https://realalpha.app/v/wbhGAc_itMg/?t=1413) We don't believe in one size fits all for quality, as in we don't believe one model will solve all the problems in GNI in the best way. That setup doesn't exist. We also don't believe there's one inference configuration that's best for all different use cases.

[23:57](https://realalpha.app/v/wbhGAc_itMg/?t=1437) **Lin Qiao:** Instead, we believe in one size fits one. We believe in a platform which can automatically do customization across three dimensions.

[24:07](https://realalpha.app/v/wbhGAc_itMg/?t=1447) As I mentioned, application developer, they usually are concerned about these three dimensions. One is quality, one is speed, one is cost. And it's a three-dimensional space, a three-dimensional curve. And different product, different use case, they want to land in different spots. And they want to make different trade-offs. It's all use case specific. So what we want to provide to our end user is give them the option, find the best option based on their requirements, specific target at their workload, and give them the optimal point. Do you do that through, I don't know, consulting? You do that automatically? How does that work?

[24:52](https://realalpha.app/v/wbhGAc_itMg/?t=1492) So we have a product called Fire Optimizer. it's a platform, it's a SaaS platform and it took the inference workload for a particular use case and the objective function across quality, speed and cost where you want to land it will do its own magic and spit out a new model plus a new inference deployment configuration and go into the rest of the CICD infrastructure. A new model or it would pick one of the hundreds of models that you have on the platform? So right now it's given a model and there are different ways to improve quality or make quality, speed, cost trade-off. For example, we have five different ways to quantize.

[25:49](https://realalpha.app/v/wbhGAc_itMg/?t=1549) We can quantize different parts of a model. So quantize means making models smaller. Making models run in lower position where it's much more computational efficient or memory bandwidth efficient or communication efficient. But you can run instead of 16-bit floating point arithmetic, you can do 8-bit or even 4-bit. But you can apply this to different parts of the model. You can apply it to weights. You can apply it to activation. You can apply it to KVCache. You can apply it to the communication part. You can apply it to different parts, and it will have different impact to the end, the sensitivity of the quality change.

[26:38](https://realalpha.app/v/wbhGAc_itMg/?t=1598) At the end, sensitivity of quality change, who is the judge? Prada is the judge, right? So the end user is the judge. So we would like to kind of fit the best into what end user wants. So that's one example of, and we can do runtime quantization as in you still train, pre-train or post-train to the full position and then we can quantize on the fly during runtime. Or we give you tools to do quantization aware training where you decide the position during the pre-training or post-training time and then you generate a much higher quality that way. So there are different levers we give our customer to tune.

[27:24](https://realalpha.app/v/wbhGAc_itMg/?t=1644) But also, for example, we have three to four different ways to do speculative execution. The idea here is to conceptually, you think about speculation as you have a way to predict not one token at a time. you have a way to predict three or four tokens ahead of time in one shot. And that's more efficient than predict one at a time, right? So because, you know, you can predict four at a time very accurately, then it's four times more. And the physical mechanism of doing that, there are so many different ways. We support many different approaches. One approach is pair a small model with a large model, right? And ask a small model the question first, and have it do the speculation. And if it's correct, then it's great. Then you get a small model speed.

[28:24](https://realalpha.app/v/wbhGAc_itMg/?t=1704) If it's wrong, then you ask the large model to judge. If it's wrong, then you ask the large model to give you the answer. So basically, the end result is you get the large model quality and the small model speed in combination. So that's a very good example to talk about Fire Optimizer. Because in order for this to work, the small model, large model need to align towards your use case and workload pattern. if it doesn't align then the small model predicts something it always off let's say extreme case it's 100 off then you get the worst situation where you always fall back to a large model you have the overhead of running both models but you have the speed of the large model quality of large model it's there's no benefit so this alignment process is basically to make small model always predict higher and higher with higher and higher probability if you can uh for example if you we can we have seen cases improving the prediction head from 30 to 90 and that's huge speed uh saving so uh so yeah those those are kind of another examples of options and do people on the customer side need to have the level of sophistication to understand those various options The idea here, so the number of options is big, right?

[29:51](https://realalpha.app/v/wbhGAc_itMg/?t=1791) So I just talked about two different areas, but we also have five different ways to partition the model and six, seven different ways to allocate different parts of the model to different hosts in a distributed way. Let's cover some of this quickly. This is fascinating. So what does that mean? Different ways of partitioning the model, you said? Right, right. Because we look at a model in, let's take a large language model, for example. Some parts of the model is doing prompt, like processing the prompt. And some part of the model is predicting what is the possibility of next token. And during runtime, they actually bottleneck by different things.

[30:41](https://realalpha.app/v/wbhGAc_itMg/?t=1841) I'm talking about that in extremely simplified way. is prompt processing is bottlenecked by computation and predicting the next token is bottlenecked by memory bandwidth, right? So if you think about the model in one chunk and scale them all together, and you always get stuck in one bottleneck versus the other. So the way we have seen similar kind of infrastructure problem in other domains, like databases. And a way to kind of solve that problem is pull those parts that are bottleneck by different system resource to scale them completely differently. So if it's compute bound, then we should just add more GPUs to it, right?

[31:34](https://realalpha.app/v/wbhGAc_itMg/?t=1894) If it's memory bottleneck bound, then there's a different way to scale it. If it's computation bound, then we like we make computation more efficient so by scaling those different parts of model execution independently then we remove all possible bottlenecks and that's the most efficient way to run those models so um so that Part, I think we are on pretty cutting edge. I think recently we started to see open source, like people pay attention to those kind of setup. But at the end, it's a complex system problem, right? There are libraries that get open source to cover parts of the execution. But putting these all together and solving a lot of real system problem is the most difficult.

[32:28](https://realalpha.app/v/wbhGAc_itMg/?t=1948) I'll give you one example. before i give you example actually i want to close close the complexity on on the optimization space and all these different options add up together it can lead into more than 80 000 possible possible way to optimize um so so then how do anyone even come up with the optimal point for a particular

[32:54](https://realalpha.app/v/wbhGAc_itMg/?t=1974) **Lin Qiao:** workload. And that's a search problem. Basically, we want to find the one out of these 80,000 possible options that is the best for a particular use case. So it's a search problem. And this is

[33:10](https://realalpha.app/v/wbhGAc_itMg/?t=1990) not new. This problem exists in areas like compilers, right? Compiler is solving a search problem these existing areas of database query optimizer and speaking of database is very interesting in the early days databases are designed to be very hard to optimize and even there is a it create a new career called dba it's a very well-paid career it's very well-paid job people get a certificate to qualify to be a DBA and enter the industry. But over time, data vendors start to build automation. They build Query Optimizer where it takes a query workload and spit out, rewrite the SQL and spit out the most efficient new way of running the SQL.

[34:08](https://realalpha.app/v/wbhGAc_itMg/?t=2048) But it's one-dimensional optimization. It only optimizes for speed. And here I'm talking about three-dimensional optimization across quality, speed, and cost. So it's a much more complicated problem, a much more complicated search problem we're solving through File Optimizer. And that's kind of the value add we want to free up app developers to not be able to need to understand any of this complexity and get the best quality, speed, and latency and cost for their new user experience. That search problem, you solve it on a per-task basis, so sort of a priori for the specific use case, or are you going toward, or maybe you do it today, towards real-time optimization?

[34:58](https://realalpha.app/v/wbhGAc_itMg/?t=2098) Right. So we have two modes, similar to agentic development. I think agent is a very, very hot topic these days. Yeah, I'm hearing, yes. Everybody's talking about agents. And there are basically two extremes of thinking about agent development, right? So one extreme is autonomous, right? The goal here is to replace human and generate the same quality or even better results than what human can do. And they are tapping into human resource budgets of different professions and so on. So that's one extreme. The other extreme is human assist and to make the professionals become much more productive, right?

[35:46](https://realalpha.app/v/wbhGAc_itMg/?t=2146) So similarly, when we think about this optimization, we also have two modes. One is human in the loop. The second is more automated. So human in the loop that we... have, take DeepSeq, for example. DeepSeq is a very, very complicated model architecture because it has more than 250 experts. And DeepSeq, actually, that company itself was running and still running this model over more than 300 GPUs. So think about this deployment, one replica is 300 GPUs, and there are so many different, so many more replicas. it's a very big distributed system problem to solve. So that's why that model itself is very hard to tune.

[36:34](https://realalpha.app/v/wbhGAc_itMg/?t=2194) So we enabled supervised fine-tuning for DeepSeq where people need to be in the loop to label the risk data and the feeding to supervised fine-tuning will have seen excellent results to any DeepSeq models to customize to a specific domain. So that's human in the loop. And not to go into too many different rabbit holes, but that's the reinforcement learning with rewards? So reinforcement learning with rewards, we are working on the automated flow.

[37:10](https://realalpha.app/v/wbhGAc_itMg/?t=2230) **Lin Qiao:** Because there are, so we actually verified reinforcement learning with verifiable reward is a very simple version to do reinforcement learning.

[37:21](https://realalpha.app/v/wbhGAc_itMg/?t=2241) and there are many domains getting the verifiable reward is simple it's easy, for example coding space it's very easy to do grammar check and then it's very easy to run the code and see if it's runnable, does it produce right results or not we have also seen other domain in more like vibe based it's not like absolutely correct or math is absolutely correct or not, vibe-based, people start to develop a good practice of providing some kind of API where there are, for example, designers sitting behind the scene and to rate a certain kind of design, whether it's good or not good. And that can feed into the reward to automate.

[38:21](https://realalpha.app/v/wbhGAc_itMg/?t=2301) So we start to see very active development of providing those reward functions, whether it's programmable or in a sense human in the loop. But I believe that's a direction that the industry will be moving towards. And we want to build out this stack in the way, we don't want to be opinionated how different companies The company wants to plug in their reward function, but we want to make integration extremely easy and the rest of the feedback loop should be automated. It seems that another important part of the platform is function calling. Do you want to talk about what it is, how you do it, and why it's important?

[39:05](https://realalpha.app/v/wbhGAc_itMg/?t=2345) Right. Talking about that, we need to kind of talk about agentic development. So on GNI, I think the first wave of application development of GNI has been focusing on building user experience for humans to consume because the nature of the content, the results being generated are human consumable content, right? So, and the model was trained to generate, optimize for human consumable content. So building agents is more complicated than being direct human facing because those models need to speak to each other or connect with external APIs to enrich the results. So the fundamental need here is to make the model output.

[40:00](https://realalpha.app/v/wbhGAc_itMg/?t=2400) feeding to some kind of programmable framework. That's a fundamental change in this new agent development. So first of all, we need to teach model to generate programmable output. It's called constraint output generation. And to follow certain schema, and usually it's JSON format for most of API integration. But we have seen many other customers, they want to generate XML, they want to generate HTML. Those are all schematized formats. So we support a new mode called grammar mode. That is any BNF format we can support. It's very generic. So that empowers developers to extend beyond JSON. That's the base foundation.

[40:47](https://realalpha.app/v/wbhGAc_itMg/?t=2447) And on top of that foundation, then there are two different ways to build, to like satisfy agent development needs. One is people build orchestration layer. to pull multiple models. Here, multiple models came across multiple different modalities, and I can talk about examples there. Or integrate models with databases, with search engines, with knowledge graph basis, and so on and so forth. So they take full control of the orchestration scheduling. The other approach is expand LMs, let larger language model dynamically orchestrate. create a plan, create execution, and the title result back and continue use, serve the rest of the answers.

[41:38](https://realalpha.app/v/wbhGAc_itMg/?t=2498) But ALM is the main brain behind this. So these are two different modes. For the first mode, we provide a composable framework, especially across multiple modalities. We have seen use cases, for example, medical claim. Medical claim processing historically has a lot of legal involvement because lawyers need to review. People submit pictures of their medical bill and they allow the patient's information. It's very complicated document processing. And they have to review a lot of information. And then they will need to generate a report following some kind of legal format to decide go no go and you know what are the implications on it's a very lengthy process and we know like lawyers time is very precious and expensive so but significant part of this process can be automated combining a vision model which can read and see with a large language model that is tuned towards generating legal reports and composing them and you can pick and choose which vision model you want to use because as i mentioned no one size fits all our prediction is the future will be a lot of expert model focused on solving certain problems really well there are vision models really good at uh reading headwritten documents their vision model really

[43:09](https://realalpha.app/v/wbhGAc_itMg/?t=2589) good at processing pdfs processing tables uh weird like tables spinning across pages and so on so there's a lot of complexity in the document format and their language model really good at the generating summarization in general or specializing in legal terms or specializing in finance terms and so on and so forth. So this composability allow you to pick and choose the best and solve your use case the best. So we have this multimodal composable framework. So that's one for you to orchestrate. and then when it comes to large language model to do dynamic optimization that's where tool use or function calling coming into picture we have been working on function calling for a long time, and we are the first one to enable function calling for DeepSeq models.

[44:05](https://realalpha.app/v/wbhGAc_itMg/?t=2645) And DeepSeq models come in as a raw model, and we add function calling to V3 model, which create a lot of interest. That was recent, right? That was announced just a couple of weeks ago. That was announced recently, and many people have been using it and gave us very good feedback. Let's talk a little bit about the low-level architecture part of the platform. In particular, sort of the GPU layer and like the work you've done around CUDA? Right. So we have been invested in overall the speed and the cost optimization. There are two sides of the same coin, shall we say, for a long time and from the PyTorch days.

[44:50](https://realalpha.app/v/wbhGAc_itMg/?t=2690) And we actually have a lot of customized kernel we developed in-house. and we are not afraid of, we actually wrote PTX. So a lot of kernel build on top of CUDA, but we also build kernels at the lower level. You think about PTX as writing assembly code. And those are extremely high performance kernels to maximize, to kind of maximize software performance towards the hardware limit. uh so that yeah so we have been uh building that for large language model of course large language model now has different classes mostly the biggest bucket of chat models and logical reasoning model they have different characteristics um and then we have been optimizing for communication um any possible bottleneck that we have been optimized for and the gpus themselves they sit on some cloud or like how does that how does that work like do you run on like all sorts of NVIDIA's and mds and like are you agnostic that way or like how does does that work yeah similar to pytorch idea we want to provide we want to build on top of the best hardware possible and the different hardware skill has different strength so we build on top of NVIDIA gpus from the many, many generations to the most recent one, B200.

[46:22](https://realalpha.app/v/wbhGAc_itMg/?t=2782) We're also built on top of AMD's hardware, and we optimized on top of RACM as their CUDA equivalent layer.

[46:31](https://realalpha.app/v/wbhGAc_itMg/?t=2791) **Lin Qiao:** So, yeah, so we have been deployed to more than 15 regions globally. Currently, we're on top of five different clouds.

[46:40](https://realalpha.app/v/wbhGAc_itMg/?t=2800) We plan to expand to possibly 10 different clouds and a lot more regions globally. And in terms of deployment, we have our hosted, fully managed single tenant API. We can also deploy into your VPC and into your cloud for privacy concerns. Or we can connect VPC to VPC through private link or VPC peering. So all these possible way of deployment we have enabled for various different enterprises and startups. Are you seeing a robust demand for the latter, meaning enterprises wanted to deploy AI in VPC, on-prem, perhaps even locally? What's your sense of the market demand, right? This whole thread of conversation around the fact that people just don't want to send their sensitive data to OpenAI or any, you know, not too big on them, but like any kind of API provider.

[47:43](https://realalpha.app/v/wbhGAc_itMg/?t=2863) What's the reality of that from your perspective based on what you see in the field? I feel there are market demand or constraint that's not movable and there are constraint that's movable. So I think the default mode when we work with enterprises The default mode is no data can leave our premise for good reasons.

[48:06](https://realalpha.app/v/wbhGAc_itMg/?t=2886) **Lin Qiao:** But at the same time, the market is very interesting. So first of all, model depreciation has never been faster.

[48:18](https://realalpha.app/v/wbhGAc_itMg/?t=2898) Every week. Every week. And you never know tomorrow what's going to happen. Quite literally. It's not an expression. So catching up with this fast-moving chain of model innovations happening across all different modalities, all different space, is really, really hard and interesting. And the second is hardware depreciation is happening also very fast. In the past, every three years, there's new hardware. That's kind of the cadence we're thinking about, new SKU coming up. and this year there are three like each of vendors probably has three skills planning to get into production and with the moving target of new model innovation and new models typically optimized for newer hardware and new hardware advancement and the enterprise is asking us hey it probably is better to use our hosted API because we always move towards the top of the state-of-the-art models there are the hardware and they want to get on to the heart like state-of-the-art technology and so we have seen the trend of enterprise moving to our single tenant heavily secured hosted API more and more so that's very interesting why we still deploy into their cloud, their premise to run high production traffic.

[49:50](https://realalpha.app/v/wbhGAc_itMg/?t=2990) From a business standpoint, there is this wide expectation across the industry that the cost of inference needs to keep going down and will keep going down. What does that mean for you in terms of business as an inference infrastructure provider? Is there an expectation that you're going to be cheaper and cheaper and cheaper? and if so, how do you build your business over time? Right.

[50:16](https://realalpha.app/v/wbhGAc_itMg/?t=3016) **Lin Qiao:** So I believe this overall AI infrastructure would go down by order of magnitude in terms of cost. And they should.

[50:28](https://realalpha.app/v/wbhGAc_itMg/?t=3028) Where it is today is, I don't think it's a stable state to be where it is today. And this whole trend of infrastructure should become a utility is really, really good for the industry. Because today we see a lot of cases that, I think today the infrastructure costs basically start to separate out two different concepts. One is product market fit. Is this product useful? Does this product add value? It is a different concern to, can you build a sustainable business? The fundamental reason is, Even if people can't have a product market fit, they get really good feedback from their users. They cannot scale it to the maximum degree because this is so expensive.

[51:20](https://realalpha.app/v/wbhGAc_itMg/?t=3080) And we literally have seen cases that a startup can scale to bankruptcy. And for big companies, for very big companies, like the GPU bill surfaced to their CEO and they're asking questions, what the heck is going on here? Why are we burning so much money? And we should really think about ROI here. So because of that high cost of infrastructure, infrastructure for JNI, it basically creates a high bar of what kind of application can be a viable business. If this bar can be lowered by 10 times, you can imagine there's... So many more, it will be 100 times more applications enter this arena to create a brand new experience to end consumers and prosumers.

[52:10](https://realalpha.app/v/wbhGAc_itMg/?t=3130) And by that, we'll see a much bigger consumption across the industry. So I don't think I worry about my business. I think actually I want this cost to go down. It has been our primary focus to help application developers to build a sustainable business to fireworks because we hyper focus on cost efficiency and not just beyond speed and quality. So from total cost ownership side, they can have a durable, they have a longevity of a durable business. And that's what we care about. So maybe to close, some forward-looking, future-guessing kind of thoughts. So one, for Fireworks specifically, in the next 12 to 18 months, what's on the roadmap?

[52:59](https://realalpha.app/v/wbhGAc_itMg/?t=3179) What are you excited to build that you can talk about today? And then for the broader industry, any thoughts for, you know, where things may be going from your perspective? Yeah, I'm super excited. We're doubling down on the Fire Optimizer. it's our customization engine across quality, speed, and cost. We have made a tremendous amount of progress in the past one year, and we are getting that to massive production. With many customers, they now have a viable path to have both power market fit and durability. And we are going to heavily focus a lot more for file optimizer on the quality side because we're already doing really well on the speed and cost.

[53:51](https://realalpha.app/v/wbhGAc_itMg/?t=3231) And we want to maximize the quality gain that through customization, the quality should be much better than they build on top of any generic model, any generic model API, because they shouldn't, right? So if you fuse use case specific data to it, it should just shine. And for application default, I think fundamentally what is that mode, right? Their mode is probably not the user experience because it's very easy to copy. Anyone can study the product and copy. Their mode is data. The mode is the data they curate through or the insight of the usage pattern and kind of create this flying wheel. And this flying wheel should feed back into the Gen AI model they use.

[54:45](https://realalpha.app/v/wbhGAc_itMg/?t=3285) And we want to kind of really double down to make customization heavily push on the next level quality. So I'm super excited about that level investment. and we will launch a series of product features along those lines. And then any thoughts on the future of the industry at large? Like the next 12 to 18 months, is that the year of agent that everybody's talking about? Is that the year of adoption? What's your prediction? What are your predictions? So there's no doubt 2025 is the year of agents. literally no matter where you go people are building all kind of agents so i think there will be thousands of agents being built focus on solving specific problems at the same time i also think 2025 is the year of open models and it's clear that deep seek has has created big dent there but it's the meaning is not about deep seek itself by itself it's the precedent it has set in the world about setting a huge like Very solid baseline for open models, for open model providers, that it just needs to be better.

[56:09](https://realalpha.app/v/wbhGAc_itMg/?t=3369) Before anyone can open source new models, it also set a presence for all model providers to be better.

[56:18](https://realalpha.app/v/wbhGAc_itMg/?t=3378) **Lin Qiao:** I'm very bullish on open models because I have seen the power of open source that PyTorch has been able to leverage.

[56:28](https://realalpha.app/v/wbhGAc_itMg/?t=3388) um deep seek um for example just within one month of releasing their new models there are despite deep seek model extremely hard to tune and optimize extremely hard there are 500 more than 500 variants published on hugging face optimizing for um for local device optimizing for cloud infrastructure people tune and deep seek model people distill all in deep seek model into various different kind of models and companies like perplexity also tuned deep seek model uh for 1776 yes uh and we launched that model in partnership with them and to for much unbiased accurate information for deep research uh link is our another customer of ours they focus on they launch a deep seek model tuned this model for financial assistance they're building so where we see a lot of vibrant energy from the open source community and that's we believe in the future of the future of modeling sits on open model side and I believe that side is going to be much more active in creating those hundreds or maybe thousands of expert models that is specialized delivering much better quality in certain domain And the interesting challenge then is between those active development of agents and active development of open models, across these two, there will be heavy spaghetti in the middle.

[58:06](https://realalpha.app/v/wbhGAc_itMg/?t=3486) and that complexity of navigating and doing the last mile quality alignment between these two and deliver a real-time experience for the agentic user to consume is going to be a next level challenge. And we want to like solve, like take over, solve a big chunk of those complexities and simplify it for the agentic developers in the future. And that's also going to be this year's focus for fireworks. So do you tell your friends and parents that you are in the spaghetti business? We love spaghetti. We love to simplify spaghetti. It feels like a wonderful place to live in. Thank you so much, Lynn.

[58:51](https://realalpha.app/v/wbhGAc_itMg/?t=3531) This was terrific. Yeah, thank you. Hi, it's Matt Turck again. Thanks for listening to this episode of the MAD podcast. If you enjoyed it, we'd be very grateful if you would consider subscribing if you haven't already or leaving a positive review or comment on whichever platform you're watching this or listening to this episode from. This really helps us build a podcast and get great guests. Thanks and see you at the next episode.
