Try Pro free
Full episode 59:22

The best 11 min of 59

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

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

The MAD Podcast · Matt Turck

  • Lin Qiao is cofounder and CEO of Fireworks AI.

The best minutes

  1. 30:10Inference optimization is a search across 80,000 configurationsPro pick 5 min
  2. 49:47Lower inference costs can make far more AI products viablePro pick 3 min
  3. 55:05Open models will produce specialized models for agents4 min

Every moment plays free. PRO marks a write-up that's in Pro.

Also worth watching

  1. 16:17Keeping PyTorch in production avoided costly rewrites3 min
  2. 23:22Fireworks tunes inference for each workload's trade-offs6 min
  3. 35:42Verifiable rewards make reinforcement learning easier to automate3 min
  4. 44:19Fireworks runs across five clouds and more than 15 regions3 min
  5. 47:17Fast model and hardware turnover shifts some buyers to hosted APIs3 min

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

Full analysis · 5 min read

Real Alpha · Nov 12

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.

Free with an account

Read the rest of the analysis

7 sections, the 2 other voices it tests Qiao against, and what it means for you. Every episode we cut gets one.

Signed up before? The same buttons sign you in. The episode, its moments and the transcript stay free.

32:37

80,000 configurations describe a search space, not savings

The number to take to an engineering team is more than 80,000. At 32:37, Lin Qiao says Fireworks’ choices create more than 80,000 possible ways to optimize a workload.

That measures configuration complexity, not proof Fireworks tests every option or cuts a customer’s costs by a fixed amount. The comparison to compiler and database optimization explains the search, but inference adds quality alongside speed and cost.

Fireworks sells the optimization platform, so its CEO is explaining both a technical problem and her product’s value. But the episode gives no customer benchmark, savings figure or comparison with another provider to validate results.

Our read

The number makes the problem concrete, but does not prove the solution’s return. Buyers should ask what gets searched, how long it takes, and how results are validated.

24:00

Fireworks optimizes a model against each workload’s trade-offs

Qiao’s product premise is that no single model or inference setup fits every application. At 24:00, she describes a workload-specific balance among quality, speed and cost. That is a more demanding promise than simply offering the fastest or cheapest model.

For example, Fireworks can quantize different model parts, reducing precision to save compute or memory while risking quality changes. For instance, speculative decoding lets a smaller model predict tokens for a larger model to check.

Qiao says the end user decides whether the quality change is acceptable. So the evaluation set and tolerance for errors matter as much as the infrastructure bill.

Our read

This is more useful than a generic low-cost promise because it names competing objectives. The open question is how customers define quality and whether that measure reflects live use.

30:22

Prompt and token stages need different scaling

The configuration count has a systems explanation. In her simplified account at 30:22, Qiao says prompt processing is compute-bound, while next-token prediction is memory-bandwidth-bound.

Scaling both stages as one block can leave one bottleneck in place while adding resources to the other. The implication is that splitting them can target resources differently.

Qiao calls assembling the components a complex systems problem. Danila Shtan, Nebius CTO, made a related point on Unsupervised Learning in November 2026. He said 95% of customers modify open models, with optimization across serving, kernels and weights.

Our read

The technical case for per-workload tuning is credible in shape. Its business value still depends on whether measured outcomes justify the operational complexity.

16:24

PyTorch taught Qiao to hide production complexity

Qiao traces Fireworks’ product philosophy to PyTorch. At 16:24, she says simplicity helps adoption while a strong engineering team handles infrastructure complexity.

At Meta, researchers could build in PyTorch, but moving successful experiments into another production framework meant rewriting models. She says that transition was too much hassle, so the team optimized PyTorch instead.

That experience informs Fireworks’ promise to keep the developer interface simple while its platform handles deployment choices. But the 80,000-option search only helps if customers can trust the result without operating those options themselves.

Our read

The PyTorch story supports the design principle, not a guarantee that the same adoption pattern will repeat. Fireworks must make complexity disappear without making results opaque.

50:16

Order-of-magnitude savings remain Qiao’s forecast

At 50:16, Qiao says she believes overall AI infrastructure costs would fall by an order of magnitude. Her case is that inference expense can stop useful products from scaling sustainably.

She says she has seen startups scale to bankruptcy and GPU bills reach big-company CEOs. Those examples explain the pressure, but offer no baseline bill, measured savings or forecast timeframe.

Stefano Corazza, Canva’s head of AI research, offered a related view on The TWIML AI Podcast in November 2026. He said owning the full stack creates room for efficiency and could bring another order-of-magnitude drop. Still, that parallel forecast is not evidence that Fireworks customers have achieved similar savings.

Our read

Lower inference costs could widen the range of viable products, but lower prices alone do not establish a durable provider business. The episode does not show how gains reach customers or Fireworks.

55:19

Specialized models make integration the next bottleneck

Qiao predicted that 2025 would be the year of agents and open models. She pointed to more than 500 DeepSeek variants appearing within a month of release. Developers adapted them for local devices, cloud infrastructure and specialized tasks.

Her forecast shifts the infrastructure problem from serving one general model to connecting specialized models with agents. At 57:51, she calls last-mile quality alignment and real-time experience between them a next-level challenge.

Danila Shtan, Nebius CTO, emphasized reliability over model size on Unsupervised Learning in November 2026. Yet that related view raises the bar beyond fast inference, but does not establish Fireworks can deliver reliable agent workflows.

Our read

More model choice can make workload-specific optimization more valuable while multiplying integration work. Whether Fireworks can own that layer remains a forecast, not a demonstrated outcome in this episode.

49:17

Deployment choice reflects change speed as well as privacy

Enterprises often begin with a rule that data cannot leave their premises, Qiao says. But she has seen some choose Fireworks’ secured hosted API because models and hardware change quickly.

Fireworks also offers deployment into a customer’s cloud or VPC. Qiao says the platform was running across five clouds and more than 15 regions. Those are footprint details, not proof of lower latency, stronger privacy or lower total cost.

The trade-off is practical. Hosted service may reduce the buyer’s burden of refreshing models and hardware, while private deployment offers more control. And buyers still need to compare security terms, update speed and staffing.

Our read

The episode makes the hosting decision less binary than on-premises versus public API. It does not provide the security terms or cost comparisons needed to choose between Fireworks’ deployment modes.

What it means for you

  1. Benchmark one workload. Choose a representative task and record its quality, speed and cost before tuning. Ask the provider to show the same measures after optimization.
  2. Define quality gates. Have application owners set acceptable errors and test cases before a provider optimizes. The episode leaves the customer responsible for judging quality.
  3. Compare deployment effort. Price hosted and VPC options against the staff time needed to refresh models and hardware. Qiao says some enterprises choose hosted APIs to keep up with change.
  4. Measure refresh overhead. Record the time and expense of moving a workload to a new model or hardware setup. That tests whether optimization absorbs the complexity Fireworks describes.

What to watch

  • Whether Fireworks reports measured quality, speed and cost improvements for customer workloads.
  • Whether its optimizer handles specialized models and agent integrations, not only model serving.
  • Whether hosted deployments reduce refresh work without weakening enterprise security requirements.

Send this to the engineering and finance leads budgeting inference workloads.

32:37

Watch the segment where Qiao gives the configuration count

Written by Real Alpha from the episode's transcript and the other moments it links, then checked against the transcript. Quotes are the speaker's exact words.

Minute by minute

  1. 1:17Fireworks 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.

  2. 3:04PyTorch 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.

  3. 7:56Foundation 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.

  4. 13:32Fireworks 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.

  5. 19:37Customers 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.

  6. 25:31Optimization 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.

  7. 30:10Model 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.

  8. 34:40Fine-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.

  9. 38:53Function 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.

  10. 44:19Custom 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.

  11. 49:47Lower 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.

  12. 52:42Open 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.

Published Mar 27, 2025.

Transcript · 35 min read

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.

  1. 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.

  2. 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.

  3. 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.

Read the whole transcript
  1. 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. 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. 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. 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.

  5. 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?

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

  13. 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.

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. Yeah, I think it's working. Yeah, it is a progressive transition. How did your experience at Meta and then PyTorch

  20. Lin Qiao · 3 min

    “it's much easier to just use pytorch into production and let's optimize pytorch”

  21. 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.

  22. 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.

  23. 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.

  24. 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.

  25. 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.

  26. Lin Qiao · 6 min

    “Instead, we believe in one size fits one. We believe in a platform which can automatically do customization across three dimensions.”

  27. 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?

  28. 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?

  29. Lin Qiao · 5 min

    “Basically, we want to find the one out of these 80,000 possible options that is the best for a particular use case.”

  30. 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?

  31. 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?

  32. Lin Qiao · 3 min

    “we actually verified reinforcement learning with verifiable reward is a very simple version to do reinforcement learning.”

  33. 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?

  34. 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.

  35. 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.

  36. 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.

  37. 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

  38. 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.

  39. 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.

  40. Lin Qiao · 3 min

    “deployed to more than 15 regions globally. Currently, we're on top of five different clouds.”

  41. Lin Qiao · 3 min

    “But at the same time, the market is very interesting. So first of all, model depreciation has never been faster.”

  42. Lin Qiao · 3 min

    “I believe this overall AI infrastructure would go down by order of magnitude in terms of cost. And they should.”

  43. 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?

  44. 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.

  45. 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.

  46. 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?

  47. Lin Qiao · 4 min

    “I'm very bullish on open models because I have seen the power of open source that PyTorch has been able to leverage.”

  48. 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.

  49. 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.

More interviews