thoughtworks/GLM-4.7-Flash-Eagle3

Model

2

stars

9

commits

4

linked in READMEs

Apr 12, 2026

updated

draft-model
eagle3
endpoints_compatible
glm
llama
safetensors
speculative-decoding
text-generation
text-generation-inference
transformers

README

EAGLE3 Draft Model for GLM-4.7-Flash

An EAGLE3 draft model that accelerates inference for zai-org/GLM-4.7-Flash (30B MoE, ~3B active) through speculative decoding.

1.66x mean speedup at B=1 across 4 benchmarks on a single H200.


Results

Verified 2026-04-12 on 1x NVIDIA H200 144GB, TP=1, FlashInfer, temp=0, max_tokens=512.

B=1 (single request)

DatasetBaseline tok/sEagle3 tok/sSpeedupAccept RateAccept Length
HumanEval (75)130.2231.81.78x57.1%3.42
Terminal-Bench (112)128.0220.21.72x62.9%3.77
MT-Bench (154)129.2207.11.60x47.9%2.88
SWEBench-Verified (75)127.4194.41.53x51.7%3.10
Mean128.7213.41.66x54.9%3.29

B=32 (32 concurrent requests)

DatasetBaseline tok/sEagle3 tok/sSpeedup
SWEBench-Verified1,415.31,830.41.29x
HumanEval1,595.81,851.51.16x
MT-Bench1,489.91,627.91.09x
Terminal-Bench1,479.41,614.01.09x
Mean1,495.11,731.01.16x

Protocol: B=1: 5 warmup + 20 measured (sequential). B=32: 15 warmup + 60 measured (32 concurrent). Metrics from server-side Prometheus.


Architecture

ParameterValue
TypeLlamaForCausalLMEagle3
Hidden Size2048
Heads / KV Heads16 / 4 (GQA)
Head Dimension128
Intermediate Size8192
Layers1
Vocab Size154,880 (draft: 32,000)
Size278 MB

Training

54K samples (45% ShareGPT, 35% UltraChat, 20% PerfectBlend). 3 epochs, LR=1e-4, max_length=1024, batch_size=1. Trained with --target-model-backend sglang via SpecForge.

Best training accuracy (acc_0): 79.2%. Note: training accuracy does not predict inference accept rate — there is a 30-60pp gap.


Usage

Benchmarked with our SGLang fork (tails-mpt/sglang, commit 63291f7f51). Upstream SGLang may produce different speedups due to scheduling overhead differences.

python -m sglang.launch_server \
  --model-path zai-org/GLM-4.7-Flash \
  --speculative-algorithm EAGLE3 \
  --speculative-draft-model-path thoughtworks/GLM-4.7-Flash-Eagle3 \
  --speculative-num-steps 3 \
  --speculative-num-draft-tokens 6 \
  --speculative-eagle-topk 4 \
  --tp 1 --trust-remote-code --port 30000 \
  --enable-metrics --mem-fraction-static 0.65

Pinned dependencies: sgl-kernel 0.3.18.post2, flashinfer 0.6.6, torch 2.9.1+cu126.

Verify accept rate > 0% after startup to confirm the draft model loaded correctly.


Citation

@article{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 others},
  journal={arXiv preprint arXiv:2503.01840},
  year={2025}
}

Contributors

lujangusface

9 commits

thoughtworks/GLM-4.7-Flash-Eagle3

Model

2

stars

9

commits

4

linked in READMEs

Apr 12, 2026

updated

draft-model
eagle3
endpoints_compatible
glm
llama
safetensors
speculative-decoding
text-generation
text-generation-inference
transformers

README

EAGLE3 Draft Model for GLM-4.7-Flash

An EAGLE3 draft model that accelerates inference for zai-org/GLM-4.7-Flash (30B MoE, ~3B active) through speculative decoding.

1.66x mean speedup at B=1 across 4 benchmarks on a single H200.


Results

Verified 2026-04-12 on 1x NVIDIA H200 144GB, TP=1, FlashInfer, temp=0, max_tokens=512.

B=1 (single request)

DatasetBaseline tok/sEagle3 tok/sSpeedupAccept RateAccept Length
HumanEval (75)130.2231.81.78x57.1%3.42
Terminal-Bench (112)128.0220.21.72x62.9%3.77
MT-Bench (154)129.2207.11.60x47.9%2.88
SWEBench-Verified (75)127.4194.41.53x51.7%3.10
Mean128.7213.41.66x54.9%3.29

B=32 (32 concurrent requests)

DatasetBaseline tok/sEagle3 tok/sSpeedup
SWEBench-Verified1,415.31,830.41.29x
HumanEval1,595.81,851.51.16x
MT-Bench1,489.91,627.91.09x
Terminal-Bench1,479.41,614.01.09x
Mean1,495.11,731.01.16x

Protocol: B=1: 5 warmup + 20 measured (sequential). B=32: 15 warmup + 60 measured (32 concurrent). Metrics from server-side Prometheus.


Architecture

ParameterValue
TypeLlamaForCausalLMEagle3
Hidden Size2048
Heads / KV Heads16 / 4 (GQA)
Head Dimension128
Intermediate Size8192
Layers1
Vocab Size154,880 (draft: 32,000)
Size278 MB

Training

54K samples (45% ShareGPT, 35% UltraChat, 20% PerfectBlend). 3 epochs, LR=1e-4, max_length=1024, batch_size=1. Trained with --target-model-backend sglang via SpecForge.

Best training accuracy (acc_0): 79.2%. Note: training accuracy does not predict inference accept rate — there is a 30-60pp gap.


Usage

Benchmarked with our SGLang fork (tails-mpt/sglang, commit 63291f7f51). Upstream SGLang may produce different speedups due to scheduling overhead differences.

python -m sglang.launch_server \
  --model-path zai-org/GLM-4.7-Flash \
  --speculative-algorithm EAGLE3 \
  --speculative-draft-model-path thoughtworks/GLM-4.7-Flash-Eagle3 \
  --speculative-num-steps 3 \
  --speculative-num-draft-tokens 6 \
  --speculative-eagle-topk 4 \
  --tp 1 --trust-remote-code --port 30000 \
  --enable-metrics --mem-fraction-static 0.65

Pinned dependencies: sgl-kernel 0.3.18.post2, flashinfer 0.6.6, torch 2.9.1+cu126.

Verify accept rate > 0% after startup to confirm the draft model loaded correctly.


Citation

@article{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 others},
  journal={arXiv preprint arXiv:2503.01840},
  year={2025}
}

Contributors

lujangusface

9 commits