Official Inference Code of EAGLE-4
docs: split the harness and image versions in release.env for 0.1.1
Seyfal Sultanov1ed89d6ec16e
diff --git a/.github/workflows/publish-images.yml b/.github/workflows/publish-images.ymlindex f0d457b..578f2d3 100644--- a/.github/workflows/publish-images.yml+++ b/.github/workflows/publish-images.yml@@ -77,7 +77,7 @@ jobs:df -htest -f "docker/$ENGINE.Dockerfile". ./docs/release.env- test "$EAGLE_VERSION" = "${RELEASE_TAG#v}"+ test "${EAGLE_HARNESS_VERSION:-$EAGLE_VERSION}" = "${RELEASE_TAG#v}"test "$EAGLE_CUDA_INDEX" = https://eagle-hq.github.io/EAGLE-4/whl/cu130/test "$EAGLE_ROCM_INDEX" = https://eagle-hq.github.io/EAGLE-4/whl/rocm/if [[ "$ENGINE" == sglang-rocm || "$ENGINE" == tokenspeed ]]; thendiff --git a/README.md b/README.mdindex d7fa17d..5d9d17a 100644--- a/README.md+++ b/README.md@@ -15,7 +15,7 @@</p><p align="center">- <a href="https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.0"><img src="https://img.shields.io/badge/eagle--harness-v0.1.0-orange.svg" alt="eagle-harness 0.1.0"></a>+ <a href="https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.1"><img src="https://img.shields.io/badge/eagle--harness-v0.1.1-orange.svg" alt="eagle-harness 0.1.1"></a><a href="https://github.com/eagle-hq/EAGLE-4/issues" target="_blank"><img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance"></a><a href="https://github.com/eagle-hq/EAGLE-4/pulls" target="_blank"><img src="https://img.shields.io/badge/Contributions-welcome-brightgreen.svg" alt="Contributions welcome"></a></p>@@ -75,7 +75,8 @@ The patched engines ship as pinned wheels and container images, not as source trStock engine packages do not carry the hooks. [Release settings](docs/release.env) is the one place that holdsevery version pin, index URL and image tag. The wheels are also attached to the-[v0.1.0 GitHub release](https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.0).+[v0.1.0 GitHub release](https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.0): the engines did not change in 0.1.1.+The 0.1.0 images carry `eagle-harness` 0.1.0.## Measured results@@ -101,7 +102,7 @@ correctness gate even when the speculative server is faster.## Install-Install one patched engine per environment, then `eagle-harness==0.1.0` from PyPI. The+Install one patched engine per environment, then `eagle-harness==0.1.1` from PyPI. The[v0.1.0 GitHub release](https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.0) carries the engine wheels, not `eagle-harness`.Use Python 3.12 for the CUDA engines and Python 3.10 for the ROCm wheel. The commands read their pins from therelease settings file in the checkout. Run them, and start servers, from the directory that contains the checkout.@@ -119,16 +120,18 @@ python3.12 -m venv .venv-sglang && source .venv-sglang/bin/activatepython -m pip install --upgrade pippython -m pip install --extra-index-url "$EAGLE_CUDA_INDEX" \--extra-index-url "$EAGLE_TORCH_CUDA_INDEX" "sglang==$EAGLE_SGLANG_VERSION" 'flashinfer-python>=0.7.2'-python -m pip install "eagle-harness==$EAGLE_VERSION"+python -m pip install "eagle-harness==$EAGLE_HARNESS_VERSION"eagle-harness-check```-Or open the release image, which has the engine and EAGLE-4 installed:+Or open the release image, which has the engine and EAGLE-4 installed. The 0.1.0 image carries `eagle-harness`+0.1.0; upgrade it inside the container:```bashdocker run --rm --gpus all --ipc host -it \-p 127.0.0.1:30000:30000 -v "$PWD/models:/models:ro" \--entrypoint bash "$EAGLE_SGLANG_IMAGE"+python -m pip install -U eagle-harness==0.1.1eagle-harness-check```diff --git a/docs/install.md b/docs/install.mdindex 4b7c8da..ad6be74 100644--- a/docs/install.md+++ b/docs/install.md@@ -4,17 +4,18 @@ owner: eagle-harnesslast_verified: 2026-10-20----# Install EAGLE-4 0.1.0+# Install EAGLE-4 0.1.1Use one patched engine per environment. Every path installs from public package indexes:-`eagle-harness==0.1.0` from PyPI and the patched engine from the EAGLE-4 wheel index.+`eagle-harness==0.1.1` from PyPI and the patched engine from the EAGLE-4 wheel index.Stock engine packages do not provide the required plugin hooks. Choose the pip or Docker path below,then follow that engine's quickstart.## Release locations and availability[Release settings](release.env) is the single source for package pins, wheel indexes and container tags.-The engine wheels belong to the GitHub release named by `EAGLE_RELEASE_ASSETS`. Its PEP 503 indexes+The engine wheels belong to the GitHub release named by `EAGLE_RELEASE_ASSETS` (v0.1.0: the engines did not+change in 0.1.1). Its PEP 503 indexesseparate CUDA and ROCm wheels. The `eagle-harness` wheels and source distribution are published only to PyPI,not to the GitHub Release. Publishing the public release runs `publish.yml` with PyPI trusted publishing.@@ -67,19 +68,21 @@ python -m pip install --upgrade pippython -m pip install --extra-index-url "$EAGLE_CUDA_INDEX" \--extra-index-url "$EAGLE_TORCH_CUDA_INDEX" --extra-index-url "$EAGLE_NVIDIA_INDEX" \"sglang==$EAGLE_SGLANG_VERSION" 'flashinfer-python>=0.7.2'-python -m pip install "eagle-harness==$EAGLE_VERSION"+python -m pip install "eagle-harness==$EAGLE_HARNESS_VERSION"eagle-harness-check```The NVIDIA index supplies the pinned `cuda-tile==1.6.0rc5` wheel. It avoids relying on a source buildfrom PyPI. The private install check also succeeded with that exact dependency built from its PyPI source.-After the image is published and qualified, open it and check the hooks:+Or open the published image and check the hooks. The 0.1.0 images carry `eagle-harness` 0.1.0; upgrade it+inside the container:```bashdocker run --rm --gpus all --ipc host -it \-p 127.0.0.1:30000:30000 -v "$PWD/models:/models:ro" \--entrypoint bash "$EAGLE_SGLANG_IMAGE"+python -m pip install -U eagle-harness==0.1.1eagle-harness-check```@@ -171,18 +174,19 @@ source .venv-vllm/bin/activatepython -m pip install --upgrade pippython -m pip install --extra-index-url "$EAGLE_CUDA_INDEX" \--extra-index-url "$EAGLE_TORCH_CUDA_INDEX" "vllm==$EAGLE_VLLM_VERSION"-python -m pip install "eagle-harness==$EAGLE_VERSION"+python -m pip install "eagle-harness==$EAGLE_HARNESS_VERSION"eagle-harness-check```-The vLLM image has been built, but its serving and correctness checks are pending. After qualification-and publication, mount a writable directory for the calibration output:+Or use the published vLLM image, which passed serving and correctness checks. It carries `eagle-harness` 0.1.0;+upgrade it inside the container. Mount a writable directory for the calibration output:```bashmkdir -p calibrationdocker run --rm --gpus all --ipc host -it \-p 127.0.0.1:8000:8000 -v "$PWD/models:/models:ro" \-v "$PWD/calibration:/calibration" --entrypoint bash "$EAGLE_VLLM_IMAGE"+python -m pip install -U eagle-harness==0.1.1eagle-harness-check```@@ -207,16 +211,18 @@ python -m pip install --upgrade pippython -m pip install --extra-index-url "$EAGLE_CUDA_INDEX" \--extra-index-url "$EAGLE_TORCH_CUDA_INDEX" \"tokenspeed==$EAGLE_TOKENSPEED_VERSION" $EAGLE_TOKENSPEED_AUX_REQUIREMENTS-python -m pip install "eagle-harness==$EAGLE_VERSION"+python -m pip install "eagle-harness==$EAGLE_HARNESS_VERSION"eagle-harness-check```-Or use the published TokenSpeed image, which passed a GPU check in serve mode:+Or use the published TokenSpeed image, which passed a GPU check in serve mode. It carries `eagle-harness` 0.1.0;+upgrade it inside the container:```bashdocker run --rm --gpus all --ipc host -it \-p 127.0.0.1:30000:30000 -v "$PWD/models:/models:ro" \--entrypoint bash "$EAGLE_TOKENSPEED_IMAGE"+python -m pip install -U eagle-harness==0.1.1eagle-harness-check```diff --git a/docs/known-limits.md b/docs/known-limits.mdindex 515082b..4a992ee 100644--- a/docs/known-limits.md+++ b/docs/known-limits.md@@ -25,21 +25,24 @@ A loaded model, an admitted request cap or a compiled kernel does not establish- SGLang TP4 single-request and 32K-context optimization remain open. TP8 concurrency-8 prefilloverhead 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. A release-engine cap-512+- SGLang automatic high-load policy and high-load fixed-chain improvements are not qualified release defaults.+ High-load and Nemotron first divergences remain open. A release-engine cap-512startup 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+- SGLang native-OFF, including OFF forced by a cost profile, needs the engine's per-variant forward-mode+ decode graphs (the `forward_mode` field of the decode graph variant). The 0.1.0 SGLang CUDA engine lacksthem, so EAGLE-4 refuses native-OFF on that engine.+- The SGLang temperature-1 sampled tree (draft proposals drawn in one fused launch and verified against their+ recorded probabilities) needs the engine's `sampling_step` verify hook. The 0.1.0 SGLang engines lack it, so+ on them temperature-1 requests keep the 0.1.0 behaviour: a greedy draft verified by the target's sampler.+ On every engine, a batch uses that path when any request has another temperature, a grammar or a penalty.- The shipped vLLM TP4 rounds schedule improves the measured concurrency-64 and concurrency-128 cases at arunning 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 doesnot reach native-decode throughput in the measured TP1 cases.-- vLLM can drop EAGLE-4 INFO messages during plugin registration. An absent schedule-load line is- not proof that the schedule is inactive. See [troubleshooting](troubleshooting.md#slower-than-expected).- 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+ diagnostic on the release stack measured EAGLE-4 at 2703.6 tokens/s against 2975.4 tokens/s for no-spec+ decoding, so speculation is slower than no-spec there. HIP side-stream prelaunch stays disabled: its replay check now passes, but itmeasured no throughput gain on MI355X. Remaining target, draft and verify phase overheads are separatefrom the measured-profile throughput results.diff --git a/docs/release.env b/docs/release.envindex e54fd18..7677402 100644--- a/docs/release.env+++ b/docs/release.env@@ -1,8 +1,11 @@# Copyright 2026 Eagle AI Corp.# SPDX-License-Identifier: LicenseRef-Eagle-4-Source-Available# Source it from the directory that contains the checkout: . EAGLE-4/docs/release.env-# Distribution locations for 0.1.0. Publication is a separate release gate.-export EAGLE_VERSION='0.1.0'+# Distribution locations for eagle-harness 0.1.1. Publication is a separate release gate.+# The engines did not change in 0.1.1: their wheels stay on the v0.1.0 GitHub release (EAGLE_RELEASE_ASSETS), which+# the wheel indexes serve, and the published images are the 0.1.0 images, which carry eagle-harness 0.1.0.+export EAGLE_HARNESS_VERSION='0.1.1'+export EAGLE_IMAGE_VERSION='0.1.0'export EAGLE_WHEEL_ROOT='https://eagle-hq.github.io/EAGLE-4/whl'export EAGLE_CUDA_INDEX="$EAGLE_WHEEL_ROOT/cu130/"export EAGLE_ROCM_INDEX="$EAGLE_WHEEL_ROOT/rocm/"@@ -11,11 +14,11 @@ export EAGLE_AMD_TRITON_INDEX='https://pypi.amd.com/triton/release/rocm-7.2.0/siexport EAGLE_AMD_ROCM_WHEELS='https://repo.radeon.com/rocm/manylinux/rocm-rel-7.2/'export EAGLE_RELEASE_ASSETS='https://github.com/eagle-hq/EAGLE-4/releases/tag/v0.1.0'export EAGLE_IMAGE_ROOT='ghcr.io/eagle-hq/eagle-4'-export EAGLE_SGLANG_IMAGE="$EAGLE_IMAGE_ROOT-sglang:$EAGLE_VERSION"+export EAGLE_SGLANG_IMAGE="$EAGLE_IMAGE_ROOT-sglang:$EAGLE_IMAGE_VERSION"# Not published yet: build it locally (docs/install.md, "Build the ROCm image").-export EAGLE_ROCM_IMAGE="$EAGLE_IMAGE_ROOT-sglang-rocm:$EAGLE_VERSION"-export EAGLE_VLLM_IMAGE="$EAGLE_IMAGE_ROOT-vllm:$EAGLE_VERSION"-export EAGLE_TOKENSPEED_IMAGE="$EAGLE_IMAGE_ROOT-tokenspeed:$EAGLE_VERSION"+export EAGLE_ROCM_IMAGE="$EAGLE_IMAGE_ROOT-sglang-rocm:$EAGLE_IMAGE_VERSION"+export EAGLE_VLLM_IMAGE="$EAGLE_IMAGE_ROOT-vllm:$EAGLE_IMAGE_VERSION"+export EAGLE_TOKENSPEED_IMAGE="$EAGLE_IMAGE_ROOT-tokenspeed:$EAGLE_IMAGE_VERSION"export EAGLE_SGLANG_VERSION='0.5.23.dev252+eagle.4'export EAGLE_ROCM_VERSION='0.5.23.dev252+eagle.4.rocm'export EAGLE_VLLM_VERSION='0.32.0rc1.dev283+eagle.4'diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex eb0d7dc..58e4b44 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -32,7 +32,7 @@ With `--kernels`, the last line says where the native library came from:On a machine without engines and without a GPU the output is:```text-eagle-harness 0.1.0.dev0 (.../eagle_harness/__init__.py)+eagle-harness 0.1.1 (.../eagle_harness/__init__.py)sglang: not installedvllm: not installedtokenspeed: not installed@@ -75,7 +75,7 @@ inputs.`). Serve them from a server without the method.- Look for the startup warning `native CUDA kernels unavailable`. The Triton fallback gives the same results moreslowly.- On vLLM, `no cost tables price a draft step ...` means the lossless stop drafts every step that could- still change the verify set. Registration-time INFO messages can be suppressed before logging is configured.- An absent schedule-load message alone does not show that `rounds/tree.json` was ignored. Verify the- configured `data_path` and runtime draft-width counters rather than relying only on that message.+ still change the verify set. A loaded `rounds/tree.json` logs+ `eagle_harness: tree verify width per batch size from <path> (sha256 <digest>)` at startup; vLLM's log level+ applies to EAGLE-4's messages, so that line needs INFO.- Run `python -m eagle_harness.kernels.arch` to see which kernel tier each GPU gets.