3d Fireoptimizer
Captured source
source ↗3D FireOptimizer: Automating the Multi-Dimensional Tradeoffs in LLM Serving
GLM 5.2 is live! Opus-level intelligence at open-source rates. Pay per token on serverless. Try it today.
Blog
3d Fireoptimizer 3D FireOptimizer: Automating the Multi-Dimensional Tradeoffs in LLM Serving
PUBLISHED 6/14/2025
Table of Contents Tradeoffs when designing AI systems The optimization search space
Model Architecture
Parallelism Strategies
Hardware Selection
Quantization
Speculation Combinatorial complexity 3D FireOptimizer tunes the knobs, so you don’t have to. Case Studies Summary
Table of Contents
Once you’ve launched your AI app, the next problem you often need to solve is maintaining quality while meeting the cost and latency bars needed to scale. However, there is no “one size fits all” approach to achieving optimal LLM performance – it depends heavily on your unique workload and the tradeoffs you make across the stack. With an explosion of choices across hardware, low-level optimizations, and model families, navigating this space on your own is more challenging than ever. At Fireworks, we help our customers find the sweet spot for their specific use case. We’ve previously published several blogs regarding tradeoffs in LLM serving and our approaches to them. Now, we’re excited to announce a new toolkit in our FireOptimizer tuning stack: 3D FireOptimizer . 3D FireOptimizer automatically searches through thousands of options to find configurations that achieve the optimal quality, throughput, and latency for your workload. In this blog, we dive into the dimensions that matter, walk through key levers 3D FireOptimizer uses, and explore a few examples. Whether you're optimizing for speed, throughput, or latency, Fireworks helps you get the best configuration — without the guesswork. To request access to an optimized-endpoint for your workload, please fill out this <1 min contact form . Tradeoffs when designing AI systems
We generally consider three metrics when designing AI systems: speed, throughput (cost), and quality. No two LLM use cases are exactly the same – the tradeoffs that matter when building a chat application can be very different from those for a coding assistant or summarization agent. For example, here are just some of the variables that affect AI system design: • Prompt (input) length – context-heavy applications may have up to 100k to 1M input tokens • Generation (output) length – reasoning use cases may produce thousands of tokens while classification produces just one • Pattern and degree of prompt repetitiveness – repetitive prompts from shared context or multi-turn tool call history allow for effective prompt caching • Predictability of the model output – the outputs of rewriting or summarization cases are “easier to guess” and make optimizations like speculation more useful than in use cases like creative writing • Request arrival pattern – some traffic patterns are spikey while others are more evenly distributed
Typically, the goal in designing your inference stack is to find the optimal setup to serve a particular traffic pattern at a minimum speed and quality with the lowest possible cost. The optimization search space
There are many levers one can pull to try and satisfy the above objective. Let’s explore some of the key vectors in detail: Model Architecture
Choosing the right model family and size for a given task has the biggest impact on the 3-D tradeoff. Different models will vary in their architectures, from the number of parameters to how they approach attention (MHA/MQA/GQA/MLA) to their feed-forward network design (MoEs vs MLPs). These naturally create differences in performance bottlenecks and, especially when considering size, out-of-the-box quality. Fireworks supports 1000s of models, and we help customers experiment with different sizes and perform targeted quality improvements with Supervised and Reinforcement Fine-Tuning to help you fully explore the limits of different model variants. Parallelism Strategies
We support a number of parallelism strategies, including data, tensor, and sequence parallel-sharding, disaggregation, different flavors of attention, and several variants of MoE sharding. Each of these stresses GPU resources in a different way: memory for model weights, how compute is allocated, memory for KV cache, communication requirements, and others. All of these sharding options can be mixed and matched with each other depending on the use case. Hardware Selection
Fireworks supports many hardware types, such as L40s, A100s, H100s, H200s, MI300Xs and the latest editions like B200s and the upcoming Mi325Xs. Each hardware type has different performance characteristics such as TFLOPs, memory bandwidth, and supported operations. Newer hardware comes with the best absolute speed but may be more expensive. Quantization
Lowering precision via quantization is a proven way to extract more speed and throughput, especially on newer hardware generations. Fireworks supports more than eight turn-key quantization recipes based on published methods and novel in-house research and developed quantization-aware fine tuning recipes to mitigate quality impacts of quantization. We also now support the newest hardware-accelerated formats like NF4 on B200s. For a more in-depth look, please see our quantization blog and recent B200/NF4 announcement. Speculation
Fireworks supports several different types of speculation strategies that excel in different scenarios. Choosing the right approach and number of speculation tokens is specific to every use case. For example, a code rewriting use case may use N-grams and Predicted Outputs, a chat use case may utilize a smaller speculator model, and a custom use case may want to train a bespoke EAGLE speculator. We always bring the latest research in speculative decoding and do in-house experimentation with custom speculator architectures–for example, we’ve recently added support for tuning and serving EAGLE3 –a novel speculator architecture. You can train or fine-tune speculators through FireOptimizer. Combinatorial complexity
It’s not sufficient to pull just one of the above levers at a time, as changing one lever may affect how another should be pulled. For example, quantizing a model in a certain way can increase the available free KV cache space. This in turn may change how you might want to parallelize or replicate the model based on the SLAs, as well as the hardware type it can be run on....
Excerpt shown — open the source for the full document.
Notability
notability 5.0/10New optimizer release by Fireworks, no traction data.