█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

EAGLE-4

SGLang, vLLM और TokenSpeed के लिए एक speculative decoding प्लगइन, जो आपके हार्डवेयर पर मापी गई लागतों से अपने EAGLE-4 draft tree का आकार तय करता है

Serving & DeploymentFreemium
ताज़ा
v0.1.2
अपडेट किया गया
23 अक्टू॰ 2026
भाषा
Python
लाइसेंस
Eagle 4 Source-Available License (not OSI-approved; commercial use permitted within its conditions, including a US $20 million revenue threshold, and a separate licence for competing offerings)
$docker run --gpus all --ipc host -p 127.0.0.1:30000:30000 \

नया क्या है

v0.1.223 अक्टू॰ 2026

On SGLang, batches are decoded without speculation wherever that is faster, so the high-load recipe keeps pace with plain decoding up to 512 concurrent requests on four B300 GPUs; vLLM calibration completes on hybrid targets.

संक्षेप में

EAGLE-4 क्या है?

EAGLE-4 SGLang, vLLM और TokenSpeed के लिए एक speculative decoding प्लगइन, जो आपके हार्डवेयर पर मापी गई लागतों से अपने EAGLE-4 draft tree का आकार तय करता है. यह Models & Inference टूल्स की Serving & Deployment श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Eagle 4 Source-Available License (not OSI-approved; commercial use permitted within its conditions, including a US $20 million revenue threshold, and a separate licence for competing offerings) लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

EAGLE-4 (Extrapolation Algorithm for Greater Language-model Efficiency) बड़े भाषा मॉडल (LLM) को तेज़ी से serve करने का एक speculative decoding तरीका है, और यह रिपॉज़िटरी `eagle-harness` रखती है, यानी वह package जो इसे SGLang, vLLM और TokenSpeed serving engines तक पहुँचाता है। एक छोटा EAGLE-4 draft model आने वाले tokens का एक tree अनुमान लगाता है, पूरा target model एक forward pass में पूरे tree की जाँच करता है, और सबसे लंबा स्वीकृत path commit कर दिया जाता है। प्रोजेक्ट की tagline है "one flexible drafter for all batch sizes and hardware": हर step पर एक तय shape वाले draft tree की जाँच करने के बजाय, eagle-harness यह तय करता है कि आपके setup पर मापी गई लागतों के आधार पर कितना आगे speculate करना है, ताकि tree batch size, GPUs और workload के अनुरूप रहे।

eagle-harness engine को कभी patch नहीं करता। यह हर engine के plugin entry point के ज़रिए रजिस्टर होता है — SGLang में speculative algorithm `EAGLE_HARNESS`, vLLM में speculative method `eagle_harness`, और TokenSpeed में एक drafter — और startup पर जाँचता है कि इंस्टॉल किए गए engine version में वे सभी hooks मौजूद हैं जिन पर यह निर्भर है। अगर कोई hook नहीं मिलता, तो यह कुछ भी रजिस्टर नहीं करता और log में लिखता है कि कौन सा hook गायब है और उसे कैसे ठीक करें, और engine उस method के बिना serve करता रहता है। Prefill, scheduling, KV cache, sampling और HTTP server engine ही संभालता है; eagle-harness draft tree, उसका आकार तय करने वाला cost model, EAGLE-4 draft model और tree round के kernels उपलब्ध कराता है।

हर decode round में आखिरी स्वीकृत token से शुरू करके tree एक-एक level करके draft होता है, nodes को rank किया जाता है, और एक cost model उस round का shape चुनता है। SGLang पर यह हर round के लिए draft depth और verify width दोनों चुनता है, मौजूदा batch size और context length के लिए calibrated cost tables के आधार पर; vLLM पर scheduler हर batch size के लिए verify width तय करता है और draft depth तब रुक जाती है जब अगला step अपनी लागत नहीं निकाल पाता। 0.1.2 से, SGLang जहाँ सामान्य decoding तेज़ होती है वहाँ speculation के बिना batch decode करता है। Draft model target की तीन hidden states पढ़ता है और एक low-rank candidate head से vocabulary को score करता है, और harness gated-delta-net kernels के tree versions भी देता है, ताकि hybrid targets भी trees verify कर सकें।

Bar chart of speedup over vanilla decoding for Qwen 3.8 27B on SPEED-Bench qualitative, 4× NVIDIA B300, single request at temperature 0: MTP 2.22×, DSpark 2.57×, DFlash 2 2.80× and EAGLE-4 3.59×
Figure 1(a) of the EAGLE-4 paper: single-request speedup of EAGLE-4 against other drafting methods on Qwen3.8-27B.EAGLE-4 README ↗

Release के समय प्रकाशित जोड़ी है Qwen3.8-27B और उसका EAGLE-4 draft, Hugging Face पर (`EAGLE-Corp/Qwen3.8-27B-EAGLE4`)। README के अनुसार, temperature 0 पर चार NVIDIA B300 GPU पर, बिना speculation वाले उसी engine की तुलना में single-request speedups SGLang पर 3.42×, vLLM पर 2.83× और TokenSpeed पर 3.09× हैं, जो 64 concurrent requests पर घटकर 1.14–1.41× रह जाते हैं, और एक AMD MI355X पर 8 concurrent requests पर 2.07×। FAQ साफ़ कहता है कि अलग-अलग verification shapes target arithmetic बदल सकते हैं, इसलिए वह bit-identical output का वादा करने के बजाय support matrix की correctness checks की ओर इशारा करता है। EAGLE-4 पिछले EAGLE, EAGLE-2 और EAGLE-3 methods पर आधारित है, लेकिन इसे Eagle AI Corp ने अपने source-available license के तहत प्रकाशित किया है, OSI license के तहत नहीं।

यह क्या करता है

  • SGLang, vLLM (Model Runner V2) और TokenSpeed में उनके plugin entry points के ज़रिए जुड़ता है — कोई engine patch नहीं, और startup check जो असंगत engine version पर method को साफ़ तरह से बंद कर देता है
  • एक cost model जो हर draft tree का आकार मापी गई लागतों से तय करता है: SGLang पर हर round की depth और verify width, vLLM पर हर round की draft depth, और उन batches के लिए सामान्य decoding जहाँ speculation धीमा होता
  • EAGLE-4 draft model: एक sliding-window draft layer जो target की तीन hidden states पढ़ती है, और एक low-rank candidate head जो vocabulary के केवल कुछ candidates को सटीक रूप से फिर से score करता है
  • Hybrid targets के लिए tree verification, gated delta net और causal conv1d kernels के tree versions के साथ
  • SGLang, vLLM और TokenSpeed के लिए CUDA पर प्रकाशित Docker images और pinned wheels, साथ ही AMD Instinct MI355X के लिए ROCm path
  • `eagle-harness calibrate` जो आपके GPUs पर cost tables एक बार मापता है, और एक support matrix जो हर engine के लिए speed और correctness checks का दस्तावेज़ रखता है

शुरू करें

Quick start एक GPU पर Qwen3.8-27B को उसके EAGLE-4 draft के साथ serve करता है (maintainers ने इसे Linux और CUDA 13 driver वाले एक NVIDIA B300 पर टेस्ट किया है)। पहली बार start होने पर model और draft Hugging Face से लगभग 62 GB डाउनलोड होते हैं। चार GPU पर serve करने के लिए `--tp-size 4` जोड़ें, जैसा measured recipes में है।

Docker से SGLang server शुरू करें

प्रकाशित image में SGLang और eagle-harness पहले से इंस्टॉल हैं। `--speculative-algorithm EAGLE_HARNESS` plugin चुनता है और `--speculative-draft-model-path` EAGLE-4 draft की ओर इशारा करता है।

bashbash
docker run --gpus all --ipc host -p 127.0.0.1:30000:30000 \
  -e HF_HOME=/hf -v ~/.cache/huggingface:/hf \
  ghcr.io/eagle-hq/eagle-4-sglang:0.1.2 \
  sglang serve --model-path Qwen/Qwen3.8-27B --host 0.0.0.0 \
  --disable-overlap-schedule --speculative-algorithm EAGLE_HARNESS \
  --speculative-draft-model-path EAGLE-Corp/Qwen3.8-27B-EAGLE4 \
  --speculative-num-steps 12 --speculative-eagle-topk 4 --speculative-num-draft-tokens 16 \
  --speculative-algorithm-config '{}'

या pip से इंस्टॉल करें

Pip इंस्टॉल के लिए Python 3.12 चाहिए, और साथ में CUDA toolkit और C++ compiler भी। Engine प्रोजेक्ट के wheel index से मिलने वाला pinned build है।

bashbash
python3.12 -m venv .venv && source .venv/bin/activate
pip install "eagle-harness[sglang]" "sglang==0.5.23.dev252+eagle.5" \
  --extra-index-url https://eagle-hq.github.io/EAGLE-4/whl/cu130/ \
  --extra-index-url https://download.pytorch.org/whl/cu130 \
  --extra-index-url https://pypi.nvidia.com

sglang serve --model-path Qwen/Qwen3.8-27B \
  --speculative-algorithm EAGLE_HARNESS \
  --speculative-draft-model-path EAGLE-Corp/Qwen3.8-27B-EAGLE4

Request भेजें

जब server में `The server is fired up and ready to roll!` log हो जाए, तो दूसरे terminal से उसके OpenAI-compatible endpoint को call करें।

bashbash
curl http://localhost:30000/v1/chat/completions -H 'Content-Type: application/json' \
  -d '{"model": "Qwen/Qwen3.8-27B", "messages": [{"role": "user", "content": "Explain how a hash table works."}], "max_tokens": 256}'

इसके बजाय vLLM से serve करें

vLLM, `CUSTOM` attention backend और बिना quantize किए KV cache के साथ, अपने Model Runner V2 पर EAGLE-4 चलाता है। यह static tree हर step में 4 candidates के साथ 14 steps draft करता है और 16 tokens verify करता है, और इसे calibration की ज़रूरत नहीं होती; vLLM guide की measured recipe calibrated cost tables जोड़ती है।

bashbash
VLLM_USE_V2_MODEL_RUNNER=1 vllm serve Qwen/Qwen3.8-27B \
  --attention-backend CUSTOM --linear-backend flashinfer_cutedsl \
  --speculative-config '{"method": "eagle_harness", "model": "EAGLE-Corp/Qwen3.8-27B-EAGLE4", "method_config": {"mode": "static", "node_top_k": 4, "tree_depth": 14, "max_verify_width": 16}}'

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब आप Qwen3.8-27B को SGLang, vLLM या TokenSpeed पर serve करते हैं और engines बदले बिना हर request की latency कम करना चाहते हैं, तब इसे इस्तेमाल करें
  • जब fixed-shape speculative decoding कम load पर मदद करता है, लेकिन high concurrency पर धीमा कर देता है, और आप मापी गई लागतों से हर batch के लिए tree का आकार चाहते हैं, तब इसे इस्तेमाल करें
  • NVIDIA B300 या AMD MI355X hardware पर adaptive speculative decoding का benchmark करने के लिए, बिना speculation वाले उसी engine के मुकाबले, इसे इस्तेमाल करें
  • EAGLE-3 line के उत्तराधिकारी के रूप में इसे इस्तेमाल करें, जब आपकी license शर्तें source-available software की अनुमति देती हों

वर्शन इतिहास

Every verified update to EAGLE-4 that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.

  1. 23 अक्टू॰ 2026v0.1.2

    On SGLang, batches are decoded without speculation wherever that is faster, so the high-load recipe keeps pace with plain decoding up to 512 concurrent requests on four B300 GPUs; vLLM calibration completes on hybrid targets.

  2. 20 अक्टू॰ 2026v0.1.0

    First tagged release of eagle-harness: an out-of-tree SGLang and vLLM plugin serving EAGLE-4 drafts, with cost tables that set the draft depth and verify width.

How EAGLE-4 compares

EAGLE-4 alongside other open-source serving & deployment tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Transformers★ 170kटेक्स्ट, विज़न, ऑडियो और मल्टीमॉडल के लिए एक साझा मॉडल-डेफ़िनिशन फ़्रेमवर्क: inference और training, दोनों के लिए
vLLM★ 98kबड़े भाषा मॉडल (LLM) के लिए तेज़, मेमोरी-कुशल इनफ़रेंस और सर्विंग
SGLang★ 39.3kLLM और multimodal models के लिए prefix-cache reuse के साथ तेज़ serving
Modular Platform★ 30.2kएक ही ओपन रिपॉज़िटरी में विकसित किए जा रहे MAX इंफ़रेंस फ़्रेमवर्क और Mojo भाषा
DeepInfer★ 27.4kउच्च-प्रदर्शन वाला इंफ़रेंस फ़्रेमवर्क, जो DeepSeek की अपनी प्रोडक्शन सेवाओं को चलाता है और अब ओपन सोर्स के रूप में जारी किया गया है
TensorRT-LLM★ 15.2kLLM को ऑप्टिमाइज़्ड इंजन में कंपाइल करें, ताकि NVIDIA GPU पर inference तेज़ हो
OpenVINO★ 13.6kIntel CPU, GPU और NPU पर deep learning मॉडल को ऑप्टिमाइज़ और डिप्लॉय करें
EAGLE-4★ 1.2kSGLang, vLLM और TokenSpeed के लिए एक speculative decoding प्लगइन, जो आपके हार्डवेयर पर मापी गई लागतों से अपने EAGLE-4 draft tree का आकार तय करता है