EAGLE-4 Triples Qwen3 Inference Speed by Adapting to Serving Load
A single adaptive drafter adjusts speculative decoding to batch size and hardware, posting up to 2.99x throughput on vLLM and 3x single-request speedups.
Takeaways
- EAGLE-4 ships as eagle-harness, a source-available drafter that plugs into SGLang, vLLM, and TokenSpeed.
- One drafter adapts tree depth and branching to batch size, hardware and workload at runtime.
- Measured 2.99x on vLLM batch-of-1 and 1.35x on SGLang 64-way, all preserving target distribution.
- Qwen3.8-27B is the reference target; draft weights are published on Hugging Face.
- Supports NVIDIA sm_80+ and AMD CDNA2 through CDNA4, with MI355X verified by serving tests.
- Commercial use capped at 20M USD annual revenue; competing inference services require a paid license.
The EAGLE team has released EAGLE-4, an adaptive speculative-decoding drafter, alongside a pip-installable package called eagle-harness. The drafter measures serving costs and adjusts its speculative tree for the current batch size, hardware, and workload, reducing the need to maintain separate configurations for interactive and high-concurrency inference.
Speculative decoding uses a smaller model to propose several tokens before the target model verifies them in parallel. Correct verification preserves the target model’s output distribution while reducing the number of sequential target-model calls. Performance depends on how quickly the drafter proposes useful candidates and how much work the target spends verifying them.
pip install eagle-harness
The harness integrates with SGLang, vLLM, and the experimental TokenSpeed engine through their registration hooks, with no runtime patching. The reference pairing uses Qwen3.8-27B and a published EAGLE-4 checkpoint.
Runtime-sized speculation
EAGLE-4 profiles draft generation and target verification at the active batch size, then selects the depth and branching factor expected to produce the highest throughput. A top-k value of 1 creates a speculative chain, while larger values create a tree of candidate continuations.
The drafter combines several techniques intended to limit its own compute and memory costs:
- Sliding-window draft layer: Keeps a bounded window of recent hidden states instead of attending across the full sequence.
- Low-rank candidate head: Factors token prediction into smaller matrices, reducing the cost of proposing candidates.
- Append-only draft cache: Extends the draft KV cache between rounds instead of rebuilding it.
- Multiple draft structures: Includes dense and latent mixture-of-experts implementations.
During each speculative round, the drafter proposes candidate sequences, the target model evaluates those candidates in parallel, and the engine accepts the valid prefix. Rejected candidates return generation to the target model’s verified state. Sampled decoding also requires the engine’s distribution-correct verification path.
Low concurrency leads the benchmarks
The repository reports mean throughput from two SPEED-Bench runs at temperature 0, which corresponds to greedy decoding. TP indicates tensor-parallel degree, and concurrency indicates the number of simultaneous requests.
| Engine | Hardware | Concurrency | Baseline tok/s | EAGLE-4 tok/s | Speedup |
|---|---|---|---|---|---|
| vLLM | 4× B300, TP4 | 1 | 241.6 | 722.8 | 2.99× |
| vLLM | 4× B300, TP4 | 8 | 1,699.9 | 2,883.9 | 1.70× |
| SGLang | 4× B300, TP4 | 8 | 1,479.4 | 2,820.6 | 1.91× |
| SGLang | 4× B300, TP4 | 64 | 3,925.3 | 5,281.3 | 1.35× |
| SGLang | 1× MI355X, TP1 | 8 | 552.7 | 1,145.9 | 2.07× |
vLLM’s reported gain falls from 2.99× at concurrency 1 to 1.70× at concurrency 8, while SGLang reports 1.35× at concurrency 64. The decline is consistent with speculative decoding’s economics: once concurrent requests keep the target GPUs busy, draft generation and verification provide less unused capacity to exploit.
A separate fal evaluation on four B300 GPUs reports 863.8 tokens per second for a single request, 1.28× the throughput of DFlash 2 and 1.40× that of DSpark. Another configuration reaches 961.6 tokens per second with Qwen3.8-27B, roughly three times its baseline. Those figures should remain separate from the repository table because engine settings and benchmark configurations can change the denominator.
The MI355X result shows that the implementation runs beyond CUDA: ROCm 7.2 on one AMD GPU reaches a reported 2.07× speedup at concurrency 8.
Inside the support envelope
- Target models: Published validation centers on Qwen3.8-27B, including its recurrent GDN layers. Other targets require a compatible, separately trained draft checkpoint.
- Additional adapters: SGLang and vLLM include adapters for Mamba2 targets and latent mixture-of-experts drafts.
- Engines: SGLang V2 speculative worker, vLLM Model Runner V2, and experimental TokenSpeed.
- NVIDIA GPUs: Compute capability
sm_80and newer. Kernel tests cover B300 hardware. - AMD GPUs: CDNA2 through CDNA4 using Triton kernels. Serving measurements cover MI355X.
- Batching: SGLang and vLLM support up to 512 running requests, subject to KV-cache and recurrent-state capacity.
- Decoding: Text-only requests. vLLM tree verification supports greedy and sampled generation and requires an unquantized KV cache.
- Parallelism: Tensor parallelism is supported in the published configurations. Pipeline parallelism is unavailable.
The license narrows deployment
EAGLE-4 uses a custom source-available license that lacks OSI approval. Commercial use is permitted up to $20 million in aggregate revenue over any 12-month window. Competing offerings require a separate commercial license regardless of revenue.
Internal inference deployments below the revenue threshold may qualify under the published terms. Hosted inference providers and organizations near the threshold need to assess the full license and can contact the licensing team for commercial terms.
What the results leave open
The published measurements establish throughput gains for a narrow set of engines, accelerators, and the Qwen3.8-27B pairing. They provide only two-run means and omit several details needed for a production capacity model:
- Run-to-run variance and error bars
- Time to first token and p50 or p99 inter-token latency
- Draft acceptance rates by workload
- Additional GPU memory consumed by draft weights and caches
- Performance under nonzero temperatures and varied sampling settings
- Results across prompt lengths, output lengths, and model families
Before production rollout
Deployments closest to the published configuration have the shortest evaluation path: Qwen3.8-27B on B300 or MI355X hardware, using SGLang or vLLM at low to moderate concurrency. Serial generation stages such as prompt expansion for image and video pipelines are also plausible candidates because their latency directly extends the end-to-end request.
High-concurrency inference still shows positive gains in the published table, although the margin contracts as concurrency rises. Any target outside the measured Qwen3.8-27B pairing requires training and exporting a new draft through the harness onboarding process.
A production evaluation should compare baseline and speculative runs with the same engine version, tensor-parallel layout, request mix, sampling settings, and KV-cache format. It should also measure tail latency, GPU memory, acceptance rate, output equivalence, and throughput at the concurrency levels the service actually sustains.