Fireworks Ships a 1,200+ tok/s Endpoint for DeepSeek V4.1 Flash
Summary:Fireworks AI has moved its Ultra-fast serving tier for DeepSeek V4.1 Flash 1017 from preview to general availability. The endpoint uses the same released weights, with no distillation, model substitution, or additional quantization, and Fireworks reports more than 1,200 output tokens per second, nearly five times the rate of its standard endpoint. The implementation centers on FireAttention, a model-specific inference engine featuring custom sparse-attention kernels, layer-grouped KV-cache pack
Scope: Same Weights, a New Inference System
Fireworks AI has moved the Ultra-fast endpoint for DeepSeek V4.1 Flash 1017 from preview to general availability. Two layers must be distinguished: DeepSeek supplies the model and weights, while Fireworks provides the hosted service, FireAttention inference engine, and Ultra-loop optimization system. Fireworks is not releasing or retraining the underlying DeepSeek model.
The endpoint uses the same released weights, with no distillation, model substitution, or quantization beyond the precision supplied by DeepSeek. The event therefore tests whether a serving stack can materially improve streaming generation, time to first token, and multi-step agent execution without changing the model's output behavior.
Why Agents Need a Different Kind of Speed
Tokens per second alone does not capture agent latency. Each tool turn may resend a long system prompt, tool definitions, and conversation history, then wait for a tool result before carrying the expanded context into another model call. A useful breakdown is:
T_step ≈ T_queue + T_prefill_or_cache + T_first_decode + T_generation + T_tool
Ultra-fast primarily targets decoding, kernel scheduling, and context movement. If a step is dominated by tool execution, network latency, or an uncached long-context prefill, higher generation throughput will not translate proportionally into shorter task completion time. Fireworks reports that 95% of prompt tokens across its production traffic are cache hits, but that reflects the platform's own workload mix and should not be generalized to every customer.
How FireAttention Handles the Architecture
Sparse Attention and Kernel Fusion
DeepSeek V4.1 Flash 1017 uses sparse attention. Rather than forcing the model into generic runtime components, FireAttention includes custom GPU kernels and fuses many small operations that would otherwise incur separate launches, temporary-memory traffic, and synchronization overhead. The announcement does not disclose the sparsity pattern or provide a complexity proof, so it would be inappropriate to label the implementation as linear attention or assign it a specific asymptotic complexity.
Repacking the KV Cache
Fireworks changes the layout of KV state in GPU memory without changing the precision of the stored values. It removes most per-row padding and groups all layers belonging to the same token block. Each decode step consequently reads about 10% less cache data in aligned chunks, while transferring a request between machines can use a few large transfers instead of scattered per-layer copies.
Because decoding is often bandwidth-bound, reducing cache bytes can materially improve latency. End-to-end gains, however, will not mechanically equal 10%, because attention computation, MoE expert access, network transfers, and scheduling overhead still consume time.
MoE Placement and Speculative Decoding
The model activates only a small subset of experts for each token. Fireworks selected its GPU and expert layout using measurements from real hardware and traffic patterns, reducing unnecessary movement and cross-device synchronization. The model also ships with a draft model that proposes several tokens ahead; the full model verifies them together and retains the matching tokens, collapsing multiple sequential decode steps into one verification pass.
The practical benefit of speculative decoding depends on acceptance rate, draft-model overhead, and verification batching. The excerpt provides no acceptance-rate distribution, so the reported 1,200 tok/s should not be projected to every prompt or domain.
Scheduling, Caching, and Ultra-loop
The inference engine treats prefill and decode as stages with different resource profiles and schedules them separately to reduce the chance that a long prompt stalls another user's token stream. The model's built-in memory system must also be distinguished from Fireworks' prompt cache. The former is part of the model's context mechanism; the latter reuses computation for an identical prefix without expanding the context window or improving model quality.
Ultra-loop uses agents to propose and verify engine optimizations across scheduling, disaggregated prefill and decode, KV-cache transfers, routing, and kernels. A change must pass reproducible benchmarks and automated accuracy checks before deployment. This approach reduces the burden of manually adapting every newly released architecture, but deterministic regression gates, rollback mechanisms, and production monitoring remain necessary.
Official Results and Their Boundaries
| Test | Standard Endpoint | Ultra-fast | Interpretation | | --- | --- | --- | --- | | LiveCodeBench hard programming problems, 20 tasks with two attempts each | Typical answer about 56 seconds; 65 minutes of total generation | Typical answer about 12 seconds; 17 minutes of total generation | Hidden-test passes were 29/40 and 32/40, respectively; Fireworks considers the difference within run-to-run noise | | Eight GitHub issues from the hardest tier of SWE-bench Verified | 14.8 minutes waiting on the model at about 250 tok/s | 6.0 minutes waiting on the model at about 1,200 tok/s | Both solved 8/8; median time to first token improved by about 1.4x | | Output-heavy coding with few tool calls | Baseline generation rate | Up to about 8x generation speed | A workload-specific peak, not a universal agent-loop result |
The results have meaningful engineering value but remain short of an independent performance proof. LiveCodeBench contains only 40 generations, while the SWE-bench evaluation contains eight tasks and both endpoints reach the ceiling at 8/8. The excerpt does not disclose GPU models, precision, batch size, concurrency, confidence intervals, or per-task variance. Prompt mix, repository size, cache-hit rate, and tool execution time may all materially alter the observed gains.
Engineering Trade-offs and Cost
Throughput and latency are not interchangeable. Ultra-fast primarily improves perceived speed at low batch sizes and for individual users. Maximum service capacity, queueing behavior, and cost per GPU still require independent stress testing. The reported 1.4x median first-token improvement, compared with nearly five times the generation rate, also indicates that context recovery and tool steps remain a lower bound on agent latency.
Custom kernels add performance and maintenance cost. Dedicated sparse-attention kernels, layer-grouped cache layouts, and optimized cross-machine transfers reduce generic-runtime overhead, but each model or hardware change requires renewed correctness and compatibility testing. Ultra-loop automates parts of this validation, but it does not replace deterministic numerical tests.
Price cannot be inferred from speed alone. Ultra-fast costs $1.20 per million input tokens, $0.024 per million cached input tokens, and $4.80 per million output tokens. Cached input is one-fiftieth of regular input, while output is four times as expensive. Agent workloads should be evaluated by total input, cached input, output, repeated context, and tool-call volume per successful task. The excerpt does not provide the standard endpoint's pricing, so a direct unit-cost comparison is not possible.
Deployment Guidance
- Run an A/B test against the two endpoints with identical models, prompts, tool definitions, and context lengths. Record p50 and p95 time to first token, output throughput, end-to-end task latency, and failure rates.
- Break cost down into regular input, cached input, output, repeated context, and tool execution to determine whether latency savings justify any unit-cost difference.
- Test first visits, repeated prefixes, high-cache-hit traffic, long-context traffic, and low-hit traffic separately; the first two best represent Ultra-fast's intended use case.
- Add regression gates for code quality, test pass rates, and tool-call correctness rather than selecting an endpoint on generation speed alone.
- Start a production canary with the model ID
accounts/fireworks/routers/deepseek-v4p1-flash-1017-ultrafast, while monitoring p95 latency, errors, cache-hit rate, and actual cost per task. - Offline batch processing that prioritizes compute economics may not need peak streaming throughput. Interactive coding agents, real-time voice systems, and workloads with frequent tool calls are stronger candidates for Ultra-fast.
The main value of Ultra-fast is that it turns model-specific inference work into a generally available API: the same weights benefit from revised KV-cache layout, sparse-attention kernels, MoE placement, and speculative decoding. It shows substantial reductions in agent wait time, but the current evidence remains a vendor-run, small-sample evaluation. Production adoption should therefore be validated through workload-matched regression tests and cost per completed task.
— END —Source: Fireworks AI Blog (2026-12-02)
Tags: #Fireworks AI #DeepSeek V4.1 Flash #FireAttention #Inference Optimization #KV Cache
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments