Official Inference Code of EAGLE-4
docs: update the support matrix with measured release results
Seyfal Sultanov2e83d58fe3e0
diff --git a/README.md b/README.mdindex 84c5cef..7925d3c 100644--- a/README.md+++ b/README.md@@ -82,10 +82,11 @@ every version pin, index URL and image tag. The wheels are also attached to theThe [support matrix](docs/support-matrix.md) reports every measurement with its conditions, separately forloading, greedy correctness, request features and throughput. Throughput is generated tokens per second ofworkload time, higher is better. The rows below are the shapes the quickstarts ship. Each one is the mean of-two server starts on the SPEED-Bench client at temperature 0.+at least two server starts on the SPEED-Bench client at temperature 0.| Engine | GPUs | Client concurrency | No-spec tokens/s | EAGLE-4 tokens/s | Speedup || --- | --- | ---: | ---: | ---: | ---: |+| SGLang | 4× B300, TP4 | 1 | 216.3 | 735.7 | 3.40× || SGLang | 4× B300, TP4 | 8 | 1479.4 | 2820.6 | 1.91× || SGLang | 4× B300, TP4 | 64 | 3925.3 | 5281.3 | 1.35× || SGLang | 1× MI355X, TP1 | 8 | 552.7 | 1145.9 | 2.07× |@@ -94,8 +95,9 @@ two server starts on the SPEED-Bench client at temperature 0.| vLLM | 4× B300, TP4 | 8 | 1699.9 | 2883.9 | 1.70× |Each speedup divides EAGLE-4 throughput by the same engine's matched no-speculation control.-No TokenSpeed throughput is claimed. An unexplained greedy mismatch fails the correctness gate even when the-speculative server is faster.+TokenSpeed is experimental; its measured concurrent throughput is in the+[support matrix](docs/support-matrix.md#tokenspeed-experimental). An unexplained greedy mismatch fails the+correctness gate even when the speculative server is faster.## Installdiff --git a/docs/install.md b/docs/install.mdindex 322387c..4b7c8da 100644--- a/docs/install.md+++ b/docs/install.md@@ -19,9 +19,11 @@ separate CUDA and ROCm wheels. The `eagle-harness` wheels and source distributionot to the GitHub Release. Publishing the public release runs `publish.yml` with PyPI trusted publishing.Fresh CUDA environments installed the engine wheels and served real requests, and the `eagle-harness`-wheel and source-distribution forms passed installation checks. Those checks used a private index,-not the public URLs. The private SGLang image also passed serving and correctness checks. vLLM image qualification is pending.-The public TokenSpeed image passed a GPU check in serve mode. The ROCm pip path below was clean-installed from the+wheel and source-distribution forms passed installation checks. Those checks used a private index.+Fresh installs of the SGLang and TokenSpeed CUDA wheels from the public index, with `eagle-harness` from PyPI,+later served the measured results in the [support matrix](support-matrix.md). The published SGLang and vLLM+images passed serving and correctness checks, and the published TokenSpeed image passed a GPU check in serve+mode. The ROCm pip path below was clean-installed from thepublic indexes and inference-tested on an MI355X. No ROCm image is published, and its Docker recipe has not beencontainer-qualified.Do not replace an unavailable artifact with the stock engine or an unpinned package.@@ -250,8 +252,8 @@ The [troubleshooting guide](troubleshooting.md) covers hook failures and startupThe files under `docker/` describe release image construction, not proof of tested image builds.The private CUDA image checks used a prebuilt `eagle-harness` wheel instead of the sketches' source install,so they do not qualify those Dockerfiles verbatim. The corrected SGLang TP4 image passed hook, dependency,-request and twenty-prompt correctness checks. vLLM image qualification is pending, the TokenSpeed image-passed a GPU check in serve mode, and ROCm has no published image or container qualification.+request and twenty-prompt correctness checks. The published vLLM image passed the same checks, the TokenSpeed+image passed a GPU check in serve mode, and ROCm has no published image or container qualification.The ROCm recipe pins its upstream base by digest and takes the downloaded locked wheels as a namedbuild context. The TokenSpeed sketch requires an explicit compatible `BASE_IMAGE`.Do not infer container qualification from a successful pip installation or syntax check.diff --git a/docs/known-limits.md b/docs/known-limits.mdindex 33fef3f..515082b 100644--- a/docs/known-limits.md+++ b/docs/known-limits.md@@ -26,18 +26,21 @@ A loaded model, an admitted request cap or a compiled kernel does not establishoverhead and intermittent stalls remain unresolved. Repeated passes in one process are notindependent server starts.- SGLang automatic high-load policy, fixed-chain improvements and sampled-tree improvements are not- qualified release defaults. High-load and Nemotron first divergences remain open, as does TP4- native-OFF arbitration. A release-engine cap-512 startup and request smoke passed, but it did not- establish high-load acceleration or concurrent correctness.-- The shipped vLLM TP4 rounds schedule improves the measured greedy concurrency-64 case. The- [support matrix](support-matrix.md#measured-high-load-tree-schedule) retains its no-spec-control and- correctness limits. The schedule has no TP1/TP8 profile, and higher concurrency and temperature-1- throughput are not qualified by that greedy result. Native-OFF is disabled by default and does not- reach native-decode throughput in the measured TP1 cases.+ qualified release defaults. High-load and Nemotron first divergences remain open. A release-engine cap-512+ startup and request smoke passed, but it did not establish high-load acceleration or concurrent correctness.+- SGLang native-OFF needs the engine's per-variant native-decode graphs. The 0.1.0 SGLang CUDA engine lacks+ them, so EAGLE-4 refuses native-OFF on that engine.+- The shipped vLLM TP4 rounds schedule improves the measured concurrency-64 and concurrency-128 cases at a+ running cap of 64, at temperature 0 and 1; see the+ [support matrix](support-matrix.md#measured-high-load-tree-schedule). The schedule has no TP1/TP8 profile.+ A running cap of 128 and higher concurrency are not qualified. Native-OFF is disabled by default and does+ not reach native-decode throughput in the measured TP1 cases.- vLLM can drop EAGLE-4 INFO messages during plugin registration. An absent schedule-load line isnot proof that the schedule is inactive. See [troubleshooting](troubleshooting.md#slower-than-expected).-- AMD measurements apply to the MI355X TP1 Qwen3.8 profile. HIP side-stream prelaunch stays disabled- because its replay check failed. Remaining target, draft and verify phase overheads are separate+- AMD measurements apply to the MI355X TP1 Qwen3.8 profile. At concurrency 64 on one MI355X, a short+ diagnostic measured EAGLE-4 at 2703.6 tokens/s against 2975.4 tokens/s for no-spec decoding, so+ speculation is slower there. HIP side-stream prelaunch stays disabled: its replay check now passes, but it+ measured no throughput gain on MI355X. Remaining target, draft and verify phase overheads are separatefrom the measured-profile throughput results.## Requests@@ -46,7 +49,9 @@ A loaded model, an admitted request cap or a compiled kernel does not establishbenchmark results. A cap of 512 is an admission limit, not a claim of acceleration or correctness at that load.- SGLang supports accepted-token and input logprobs with the required host hooks. Images are refused.- vLLM tree verification needs an unquantized KV cache. The target's sampling restrictions still apply.- Sampling smoke tests do not prove distribution equivalence on every workload.+ Sampling smoke tests do not prove distribution equivalence on every workload. The vLLM sampled-distribution+ check passes only for temperature 1 with top-p 1 and no top-k; other temperatures, top-k/top-p and+ penalties are not qualified. vLLM refuses `min_p` and `logit_bias` with speculative decoding.- Structured output and tool calls require the model's engine parser. Raw tool syntax in text is not a structuredresponse. A vLLM tree batch containing a grammar constraint emits only the root token per verify round,including unconstrained requests in that batch. Check finish reasons and validate the completed output.diff --git a/docs/quickstart-tokenspeed.md b/docs/quickstart-tokenspeed.mdindex d92fd89..9da76bc 100644--- a/docs/quickstart-tokenspeed.md+++ b/docs/quickstart-tokenspeed.md@@ -58,8 +58,8 @@ python -m tokenspeed.cli serve "$MODEL" --tensor-parallel-size 4 \The running-request cap is four in the single-client release recipe. The concurrent release recipeuses `--max-num-seqs 32` with the same TP4 and context settings. Neither setting promises a speedup-for your workload. A TokenSpeed release image has not been built or qualified.-When a qualified image is available, bind the server to `0.0.0.0` inside the container and keep the published host port on loopback.+for your workload. The published TokenSpeed image passed a GPU check in serve mode.+Inside the image, bind the server to `0.0.0.0` and keep the published host port on loopback.If using cost files in Docker, mount their directory read-only and set `COST_ROOT` to that container path.## Generate textdiff --git a/docs/support-matrix.md b/docs/support-matrix.mdindex f654934..748ddd0 100644--- a/docs/support-matrix.md+++ b/docs/support-matrix.md@@ -30,10 +30,17 @@ Every timed pass follows a warm pass. EAGLE-4 measures live costs. Each EAGLE-4|---|---:|---:|---|---:|---:|---:|| 1 | 1 | 1 | Irrelevant at batch 1 | 103.1 | 343.1 | 3.33× || 1 | 8 | 8 | Disabled in measurement | 711.7 | 1503.7 | 2.11× |+| 4 | 1 | 32 | Irrelevant at batch 1 | 216.3 | 735.7 | 3.40× || 4 | 8 | 32 | Default, enabled | 1479.4 | 2820.6 | 1.91× || 4 | 64 | 32 | Disabled in measurement | 3925.3 | 5281.3 | 1.35× || 8 | 1 | 1 | Irrelevant at batch 1 | 241.7 | 828.6 | 3.43× |+TP4 concurrency 1 measures the released stack: `sglang==0.5.23.dev252+eagle.4` from the CUDA wheel index and+`eagle-harness==0.1.0` from PyPI, installed into a clean environment and served by the SGLang quickstart command+from a directory outside any checkout. It has six EAGLE-4 starts (725.2 to 752.7 tokens/s) and three no-spec+starts, interleaved in one allocation. Every EAGLE-4 start gives 5 exact / 15 near tie / 0 fp32 / 0 failed in its+twenty-prompt check.+TP4 concurrency 8 measures 2749.5 and 2891.8 tokens/s across its two starts.TP8 concurrency 1 and 8 each give 5 exact / 14 near tie / 1 fp32-tolerance pass, with zero failuresin the configuration-specific twenty-prompt checks. This does not resolve TP8 concurrency-8 throughput variability.@@ -44,7 +51,8 @@ not a recommendation to disable padding. Concurrent serving commands keep SGLang## SGLang on AMD MI355XQwen3.8-27B and its EAGLE-4 draft run on one MI355X at TP1 with BF16 target, KV cache and recurrent state.-AMD ROCm is included at all supported batch sizes.+AMD ROCm is included at all supported batch sizes. Concurrency 64 on one MI355X is a+[known limit](known-limits.md#performance-and-correctness-gaps).The measured-profile workload uses the original SPEED-Bench client, 44 conversations and 60 turns,temperature 0, at most 1024 new tokens per turn and a full matching warm pass. The running cap matches clientconcurrency. The tree has maximum depth 12, top-k 4 and verify width 32. It uses measured MI355X costs,@@ -96,18 +104,32 @@ The two TP8 concurrency-8 starts differ by 11%, and both are included in the mea### Measured high-load tree schedule-A short-workload check uses two independent starts of EAGLE-4,-128 requests with a 256-token cap, a running cap of 64 and a warm pass before measurement. The shipped rounds-schedule reaches 8288.6 tokens/s.-The shipped starts reach 8318.5 and 8258.7 tokens/s. Their mean is 0.970× an earlier matched-workload no-spec-control at 8541.1 tokens/s on the same machine. That control was not repeated inside this check, so the-ratio does not establish a new two-start no-spec qualification. An earlier one-start smoke reached only-6872.4 tokens/s. None of these short-workload results is pooled with the longer fixed-width results above.--The final-source twenty-prompt check gives 5 exact / 14 near tie / 1 fp32-tolerance pass and no failures.-It checks first divergences against no-speculation decoding, not bitwise equality or the concurrent-high-batch width-4 path. Missing registration-time INFO logs do not imply the schedule failed to load:-runtime counters show the reduced verification width.+These rows measure the release vLLM engine with the `eagle-harness` 0.1.0 vLLM code on B300 TP4, served by+the vLLM quickstart recipe: running cap 64, calibrated TP4 costs and the packaged rounds file. The workload is+SPEED-Bench first turns with at most 512 new tokens: 88 requests at concurrency 8, 220 at 64 and 440 at 128.+Each timed pass follows a matching warm pass. Every arm, including the matched no-spec control, has two+independent server starts, interleaved in one allocation. Temperature 1 uses top-p 1, no top-k and a fixed seed.++| Client concurrency | Temperature | No-spec tokens/s | EAGLE-4 tokens/s | Speedup | Verify width |+|---:|---:|---:|---:|---:|---:|+| 8 | 0 | 1695.2 | 2932.7 | 1.73× | 16 |+| 64 | 0 | 7002.5 | 8155.1 | 1.16× | 4 |+| 128 | 0 | 7063.0 | 8552.5 | 1.21× | 4 |+| 64 | 1 | 7034.3 | 7267.9 | 1.03× | 4 |++Concurrency 128 queues into the 64 running slots. Without the rounds file the tree keeps width 16 at every+batch size, and the same concurrency-64 cells give 5349.4 tokens/s (0.76×) at temperature 0 and 4537.2 tokens/s+(0.65×) at temperature 1.++Greedy checks against no-speculation decoding pass on both verify widths. Twenty sequential prompts (width 16)+give 5 exact / 14 near tie / 1 fp32-tolerance pass, and 64 concurrent prompts at concurrency 64 (width 4) give+17 exact / 46 near tie / 1 fp32-tolerance pass, with no failures. These are first-divergence checks, not+bitwise equality. Missing registration-time INFO logs do not imply the schedule failed to load: runtime+counters show the reduced verification width.++At temperature 1 (top-p 1, no top-k), a sampled-distribution check on the same stack passes all 36 per-token+and joint tests at concurrency 1, 8 and 64. Other sampling settings are not qualified by it; see+[known limits](known-limits.md#requests).Use the [packaged rounds file with matching calibrated costs](../eagle_harness/core/profiles/vllm-qwen38-tp4/README.md).The schedule narrows the verify width from 16 to 4 at batch size 20 and above, without enabling native-OFF.@@ -132,6 +154,23 @@ no-spec mean is reported for these short checks.The adapter implements static and calibrated trees, chains and sampled trees. This is implementation coverage,not a performance or distribution-quality claim for every configuration.Prompt logprobs, live cost measurement and native no-speculation rounds are not supported.++These rows measure the released wheels (`tokenspeed==0.1.1+eagle.4` with its scheduler and kernel wheels from+the CUDA index, `eagle-harness==0.1.0` from PyPI), installed by the install guide's TokenSpeed block and served+by the quickstart's serve-mode recipe on B300 TP4 with a running cap of 32. The workload is SPEED-Bench first+turns at temperature 0 with at most 256 new tokens: 22 requests at concurrency 8 and 88 at concurrency 64. Each+timed pass follows a matching warm pass. EAGLE-4 and the matched no-spec control each have two starts,+interleaved in one allocation.++| GPUs / TP | Client concurrency | Running cap | No-spec tokens/s | EAGLE-4 tokens/s | Speedup |+|---|---:|---:|---:|---:|---:|+| 4 | 8 | 32 | 1555.7 | 3150.2 | 2.02× |+| 4 | 64 | 32 | 4894.4 | 6950.2 | 1.42× |++Each pass is one short wave of requests. The EAGLE-4 starts are 3062.5 and 3238.0 tokens/s at concurrency 8,+and 6876.4 and 7023.9 tokens/s at concurrency 64. A twenty-prompt greedy check of the same installation+gives 4 exact / 16 fp32-tolerance passes and no failures.+No TokenSpeed throughput number is claimed for an unmeasured or non-matching workload. The CUDA installchecks completed real static and cost-model requests, but a static-mode first divergence remains above thefp32 gate. Successful installation or generation is not blanket correctness qualification. TP1/TP8, sampled@@ -139,18 +178,20 @@ distributions, long contexts and release-stack Nemotron need separate qualificat## Artifact installation checks-These checks use private CUDA artifacts on B300 TP4, twenty prompts with up to 256 generated tokens,-and one server start. The rate is total generated tokens divided by summed request latency, not a-multi-start concurrent throughput benchmark. Publication and final-artifact rebuilding are separate gates.+These checks use one server start on B300 TP4 and twenty prompts with up to 256 generated tokens. The rate is+total generated tokens divided by summed request latency, not a multi-start concurrent throughput benchmark.+The image rows test the published `0.1.0` images, each of which is pullable without credentials. The wheel+rows predate publication and used a private index.| Artifact and mode | Correctness result | Tokens/s | Qualification limit ||---|---|---:|---|+| SGLang image `eagle-4-sglang:0.1.0` | 4 exact / 16 near ties | 537.40 | Hook, dependency, quickstart request and correctness checks pass |+| vLLM image `eagle-4-vllm:0.1.0` | 5 exact / 14 near ties / 1 fp32-tolerance pass | 717.36 | Hook, dependency, quickstart request and correctness checks pass |+| TokenSpeed image `eagle-4-tokenspeed:0.1.0`, serve | 4 exact / 16 fp32-tolerance passes | 743.17 | Serve mode only; the first uncached start took 1084 s for kernel downloads and compilation || TokenSpeed wheel, serve | 4 exact / 16 fp32-tolerance passes | 786.33 | Host-compatible CUDA 13.2 JIT; CUDA 13.0 JIT fails on Ubuntu 26.04 / glibc 2.43 || TokenSpeed wheel, static | 5 exact / 14 fp32 passes / 1 failure | 706.36 | Not qualified: failing gap 0.178637 exceeds 0.125 |-| SGLang corrected private image | 4 exact / 16 near ties | 628.19 | Hook, dependency and request checks pass; prebuilt `eagle-harness` wheel replaces the Dockerfile source install |-| vLLM private image | Pending | — | Image loaded; serving and correctness qualification pending |-| TokenSpeed image | Not built | — | No approved base image qualification |+The SGLang and vLLM images contain the `eagle-harness` 0.1.0 wheel published on PyPI.A near-tie or fp32-tolerance pass is not an exact-token match. TokenSpeed lacks full-decode nativetop-logprobs, so each divergent prefix in these install checks goes directly to fp32 arbitration.@@ -171,6 +212,7 @@ is not bitwise equality to the native BF16 token stream.| vLLM emitted-token logprobs | All 768 checked tokens per configuration are own-row top-1, shared-prefix deltas are below 0.12 || vLLM stop strings, stop IDs, EOS and `ignore_eos` | All 32 requests pass per checked server under concurrency 16 || vLLM temperature-1 smoke | All 18 requests per checked server finish legally and samples differ across seeds |+| vLLM temperature-1 sampled distribution | All 36 per-token and joint tests pass at concurrency 1, 8 and 64 (top-p 1, no top-k) || vLLM prefix caching | All eight second-pass outputs match the first pass per checked configuration || SGLang logprobs and sampling | Accepted-token and input logprobs and target-side speculative sampling are implemented || Nemotron / Mamba2 | Adapters are implemented on SGLang and vLLM, but a general correctness-qualified speed claim is not established |