thoughtworks / Qwen3-Coder-Next-Eagle3

huggingface.co
Total runs: 68
24-hour runs: 6
7-day runs: 5
30-day runs: -18
Model's Last Updated: April 16 2026
text-generation

Introduction of Qwen3-Coder-Next-Eagle3

Model Details of Qwen3-Coder-Next-Eagle3

EAGLE3 Draft Head — Qwen3-Coder-Next

A lightweight EAGLE3 draft head for Qwen3-Coder-Next (80B MoE, 512 experts, 10 active per token, GDN+attention hybrid, 48 layers). Trained with SpecForge on 8x H200 GPUs using the EAGLE-3 training-time test objective.

Qwen3-Coder-Next uses a hybrid layer design that interleaves standard multi-head attention with GDN (linear recurrence) layers. Only 12 of 48 layers are attention layers (every 4th: 3, 7, 11, ..., 47). EAGLE3 auxiliary layers must be selected from attention layers only — GDN layers produce recurrent hidden states that are not compatible with EAGLE3. The model code handles this automatically, selecting layers 3, 23, 47 (first, middle, last attention layers).

Blog post : [TODO: link after publication]

Usage
SGLang (GPU)

Requires our SGLang fork for Qwen3-Coder-Next Eagle3 support.

B=1 server (wide tree — optimal for single-user, real-time requests):

pip install 'git+https://github.com/tails-mpt/sglang.git#subdirectory=python'

python -m sglang.launch_server \
    --model-path Qwen/Qwen3-Coder-Next \
    --speculative-algorithm EAGLE3 \
    --speculative-draft-model-path thoughtworks/Qwen3-Coder-Next-Eagle3 \
    --speculative-num-steps 3 \
    --speculative-num-draft-tokens 8 \
    --speculative-eagle-topk 4 \
    --tp 4 \
    --trust-remote-code \
    --attention-backend triton \
    --port 30000

B=32 server (narrow tree — eliminates Terminal-Bench regression):

python -m sglang.launch_server \
    --model-path Qwen/Qwen3-Coder-Next \
    --speculative-algorithm EAGLE3 \
    --speculative-draft-model-path thoughtworks/Qwen3-Coder-Next-Eagle3 \
    --speculative-num-steps 5 \
    --speculative-num-draft-tokens 6 \
    --speculative-eagle-topk 1 \
    --tp 4 \
    --trust-remote-code \
    --attention-backend triton \
    --port 30002

Important : Wide tree (topk=4) maximizes MT-Bench at B=32 (1.31x) but regresses Terminal-Bench (0.89x). Narrow tree (topk=1) eliminates the regression at the cost of lower peak speedup (1.10x MT-Bench). Use narrow tree for mixed or unknown workloads.

Python Client
import requests

response = requests.post(
    "http://localhost:30000/v1/chat/completions",
    json={
        "model": "default",
        "messages": [{"role": "user", "content": "Write a Python function to merge two sorted lists."}],
        "max_tokens": 512,
        "temperature": 0,
    }
)
print(response.json()["choices"][0]["message"]["content"])
Training Details
Parameter Value
Framework SpecForge (PyTorch), SGLang backend
Hardware 8x NVIDIA H200 144GB (TP=4, DP=2)
Pre-training 6 epochs on 54K mixed data (ShareGPT / UltraChat / PerfectBlend), LR=1e-4
Optimizer AdamW
Batch size 1 (per device)
max_length 2048
TTT (tree training tokens) 7
Precision bfloat16
Training accuracy (acc_0) 0.97
Training Method

EAGLE3 trains a single-layer draft head that predicts the next token using hidden states captured from three auxiliary layers of the target model (layers 3, 23, 47 — first, middle, and last attention layers out of 12 total). The training objective is the Training-Time Test (TTT) loss, which simulates the speculative decoding accept/reject process during training to maximize the expected number of accepted tokens at inference time.

GDN (linear recurrence) layers are excluded from auxiliary layer selection because their hidden states encode sequential recurrence rather than per-token representations, making them incompatible with EAGLE3's draft prediction.

Performance
B=1 Inference Benchmarks (temp=0, TP=4, Triton backend)
Dataset Baseline (tok/s) EAGLE3 (tok/s) Speedup Accept Rate Accept Length
SWEBench-Verified 163.9 249.7 1.52x 37.5% 3.00
HumanEval 171.1 237.9 1.39x 20.0% 1.60
Terminal-Bench 166.0 231.0 1.39x 34.7% 2.77
MT-Bench 166.5 196.0 1.18x 30.6% 2.45
Mean 166.9 228.7 1.37x 30.7% 2.46
B=32 Inference Benchmarks (temp=0, TP=4, wide tree)
Dataset Baseline (tok/s) EAGLE3 (tok/s) Speedup
MT-Bench 1,529.1 2,009.4 1.31x
SWEBench-Verified 2,010.4 2,186.5 1.09x
HumanEval 1,740.2 1,793.8 1.03x
Terminal-Bench 2,310.5 2,057.1 0.89x
Mean 1,897.5 2,011.7 1.06x
B=32 Inference Benchmarks (temp=0, TP=4, narrow tree)
Dataset Baseline (tok/s) EAGLE3 (tok/s) Speedup
MT-Bench 1,529.1 1,688.6 1.10x
Terminal-Bench 2,310.5 2,379.8 1.03x
HumanEval 1,740.2 1,756.3 1.01x
SWEBench-Verified 2,010.4 1,998.7 1.00x
Mean 1,897.5 1,955.9 1.03x

Config: B=1 uses steps=3, topk=4, draft_tokens=8. B=32 narrow uses steps=5, topk=1, draft_tokens=6. Hardware: 4x H200 (TP=4), Triton backend. SGLang commit 63291f7f51 .

Model Architecture
Parameter Value
Architecture LlamaForCausalLMEagle3
Hidden size 2048
Num hidden layers 1
Num attention heads 16 (4 KV heads)
head_dim 128
Intermediate size 8192
Auxiliary layers [3, 23, 47] (attention layers only)
Vocab size 151936 (target) / 32000 (draft)
Checkpoint size ~278 MB
Limitations
  • TP=4 required. FP8 block constraint: shared_expert dim=512, 512/8=64 not divisible by block_n=128.
  • Triton attention backend required. FlashInfer is incompatible with head_dim=256 hybrid attention+GDN layers. Pass --attention-backend triton .
  • GDN layer constraint. EAGLE3 auxiliary layers must be attention layers (every 4th), not GDN layers. The model code handles this automatically.
  • Temperature sensitivity. Best performance at temp=0 (greedy). MoE expert routing is non-deterministic at temp>0, which reduces draft acceptance rates.
  • Terminal-Bench regression at B=32. Wide tree (topk=4) regresses Terminal-Bench to 0.89x. Use narrow tree (topk=1) for mixed workloads.
  • Requires SGLang fork. Upstream SGLang does not yet include the Qwen3-Next EAGLE3 patches.
License

This draft head is released under Apache 2.0, matching the Qwen3-Coder-Next license .

Citation
@inproceedings{li2025eagle3,
  title={{EAGLE-3}: Scaling up Inference Acceleration of Large Language Models via Training-Time Test},
  author={Li, Yuhui and Wei, Fangyun and Zhang, Chao and Zhang, Hongyang},
  booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
  year={2025}
}

Runs of thoughtworks Qwen3-Coder-Next-Eagle3 on huggingface.co

68
Total runs
6
24-hour runs
8
3-day runs
5
7-day runs
-18
30-day runs

More Information About Qwen3-Coder-Next-Eagle3 huggingface.co Model

More Qwen3-Coder-Next-Eagle3 license Visit here:

https://choosealicense.com/licenses/apache-2.0

Qwen3-Coder-Next-Eagle3 huggingface.co

Qwen3-Coder-Next-Eagle3 huggingface.co is an AI model on huggingface.co that provides Qwen3-Coder-Next-Eagle3's model effect (), which can be used instantly with this thoughtworks Qwen3-Coder-Next-Eagle3 model. huggingface.co supports a free trial of the Qwen3-Coder-Next-Eagle3 model, and also provides paid use of the Qwen3-Coder-Next-Eagle3. Support call Qwen3-Coder-Next-Eagle3 model through api, including Node.js, Python, http.

Qwen3-Coder-Next-Eagle3 huggingface.co Url

https://huggingface.co/thoughtworks/Qwen3-Coder-Next-Eagle3

thoughtworks Qwen3-Coder-Next-Eagle3 online free

Qwen3-Coder-Next-Eagle3 huggingface.co is an online trial and call api platform, which integrates Qwen3-Coder-Next-Eagle3's modeling effects, including api services, and provides a free online trial of Qwen3-Coder-Next-Eagle3, you can try Qwen3-Coder-Next-Eagle3 online for free by clicking the link below.

thoughtworks Qwen3-Coder-Next-Eagle3 online free url in huggingface.co:

https://huggingface.co/thoughtworks/Qwen3-Coder-Next-Eagle3

Qwen3-Coder-Next-Eagle3 install

Qwen3-Coder-Next-Eagle3 is an open source model from GitHub that offers a free installation service, and any user can find Qwen3-Coder-Next-Eagle3 on GitHub to install. At the same time, huggingface.co provides the effect of Qwen3-Coder-Next-Eagle3 install, users can directly use Qwen3-Coder-Next-Eagle3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Qwen3-Coder-Next-Eagle3 install url in huggingface.co:

https://huggingface.co/thoughtworks/Qwen3-Coder-Next-Eagle3

Url of Qwen3-Coder-Next-Eagle3

Qwen3-Coder-Next-Eagle3 huggingface.co Url

Provider of Qwen3-Coder-Next-Eagle3 huggingface.co

thoughtworks
ORGANIZATIONS

Other API from thoughtworks