The alpha, twice a week
That was 6 min.
Get the best new moments in your inbox every Wednesday and Saturday. It's free.
Check your inbox
We sent a link to your address. Click it to finish signing up. Not there in a minute? Look in spam.
or
The MAD Podcast · 6 min · Mar 27, 2025
Fireworks tunes inference for each workload's trade-offs
Lin Qiao says developers trade quality, speed and cost differently, so Fireworks searches for a workload-specific setup.
In this episode
Full analysis- 30:10Inference optimization is a search across 80,000 configurationsPro pick 5 min
- 49:47Lower inference costs can make far more AI products viablePro pick 3 min
- 55:05Open models will produce specialized models for agents4 min
- 16:17Keeping PyTorch in production avoided costly rewrites3 min
- 23:22Fireworks tunes inference for each workload's trade-offs6 min
- 35:42Verifiable rewards make reinforcement learning easier to automate3 min
- 44:19Fireworks runs across five clouds and more than 15 regions3 min
- 47:17Fast model and hardware turnover shifts some buyers to hosted APIs3 min
“Instead, we believe in one size fits one. We believe in a platform which can automatically do customization across three dimensions.”
Lin Qiaoat 23:53 · The MAD PodcastTakeaways
- The platform optimizes across quality, speed and cost.
- Quantization can target weights, activations, KV cache or communication.
- One example raised a speculative prediction head from 30 to 90.
About this segment
Lin Qiao says developers trade quality, speed and cost differently, so Fireworks searches for a workload-specific setup. Quantization and speculative decoding are among its tuning levers.
Lin Qiao is cofounder and CEO of Fireworks AI.

Matt Turck, Host · Managing Director, FirstMark
Publishes the annual MAD landscape of data and AI; sold TripleHop to Oracle.
From “Why This Ex-Meta Leader is Rethinking AI Infrastructure | Lin Qiao, CEO, Fireworks AI”, Mar 27, 2025. Watch the full episode
Thanks. We'll look at and fix what's off.
Transcript
Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.
- 23:25
So we think about, first of all, our design principle is we don't believe in one size fits all. 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. Instead, we believe in one size fits one. We believe in a platform which can automatically do customization across three dimensions.
- 24:07
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.
- 24:46
Do you do that through, I don't know, consulting? You do that automatically? How does that work? 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.
- 25:26
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. 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.
- 26:07
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
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.
- 27:20
So there are different levers we give our customer to tune. 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.
- 28:02
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. 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.
- 28:32
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
- 29:34
speed uh saving so uh so yeah those those are kind of another examples of options and do people