The alpha, twice a week
That was 5 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 · 5 min · Mar 27, 2025
Inference optimization is a search across 80,000 configurations
Lin Qiao explains why prompt processing and token generation need different scaling strategies.
The episode’s best minutes
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
- 5 more moments in the full episode
“Basically, we want to find the one out of these 80,000 possible options that is the best for a particular use case.”
Lin Qiaoat 32:53 · The MAD PodcastTakeaways Pro pick
- Prompt processing is compute-bound; token generation is memory-bandwidth-bound.
- Scaling these workloads separately can remove bottlenecks.
- The best configuration depends on the use case and its trade-offs.
One of Pro's picks, open to you here. Try Pro free for 7 days
One of Pro's picks. The rest of the summary and the 3 takeaways are in Real Alpha Pro; the video, the quote and the transcript stay free.
Read it with Pro, 7 days freeAbout this segment
Lin Qiao explains why prompt processing and token generation need different scaling strategies. Fireworks searches across more than 80,000 configurations to balance quality, speed, and cost.
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.
- 30:13
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. I'm talking about that in extremely simplified way.
- 30:44
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.
- 31:27
So if it's compute bound, then we should just add more GPUs to it, right? 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.
- 32:02
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. 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 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
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.
- 33:50
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. 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.
- 34:26
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.