Sponsored by
Designkit Free Background Remover
-Designkit offers free AI background removal for up to 100 images daily, with batch processing, custom backgrounds, and resizing.
A lightweight EAGLE3 draft head for
GLM-4.7-FP8
(~218B MoE, 160 experts, sigmoid top-8 routing, ~40B active parameters per token). Trained with
SpecForge
on 8x H200 GPUs using the
EAGLE-3
training-time test objective.
GLM-4.7 uses sigmoid top-8 routing — activating 8 out of 160 experts per token rather than the typical 1-2 in most MoE models. This preserves high representational capacity at the cost of increased compute, making speculative decoding especially valuable: the draft head is tiny relative to the 218B target.
Note
: Unlike other MoE models where narrow tree helps at B=32, GLM-4.7-FP8 performs marginally better with wide tree (1.16x vs 1.14x). Use wide tree for all 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"])
6 epochs on 54K mixed data (ShareGPT / UltraChat / PerfectBlend), LR=1e-4
Fine-tuning
3 epochs on regenerated data (target-model responses at temp=0.8), LR=5e-5
Optimizer
AdamW
Batch size
1 (per device)
max_length
1024
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 2, 46, 89 — early, middle, and late). 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.
Regenerated Data
The final fine-tuning stage uses training data where the assistant responses were generated by GLM-4.7 itself (at temp=0.8), rather than using generic ShareGPT/UltraChat responses. This aligns the draft model's predicted distribution with the target model's actual output, improving acceptance rates — especially at high batch sizes (B=32) where every accepted token matters more.
TP=8 required.
FP8 block constraint: shared_expert intermediate_size=512, and 512/8=64 is not divisible by block_n=128. TP=4 fails at this boundary.
Temperature sensitivity.
Best performance at temp=0 (greedy). MoE expert routing is non-deterministic at temp>0, which reduces draft acceptance rates. Deploy at temp=0 for coding and factual workloads.
FP8 quantization.
The target model runs in FP8. The draft head itself is bfloat16 but depends on the target's FP8 hidden states during inference.
Requires SGLang fork.
Upstream SGLang does not yet include all patches needed for Eagle3 on this model.
JIT deep_gemm incompatible.
Training requires
SGLANG_ENABLE_JIT_DEEPGEMM=0
to avoid kernel assertion failures.
@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 GLM-4.7-FP8-Eagle3 on huggingface.co
30
Total runs
0
24-hour runs
0
3-day runs
-2
7-day runs
14
30-day runs
More Information About GLM-4.7-FP8-Eagle3 huggingface.co Model
GLM-4.7-FP8-Eagle3 huggingface.co is an AI model on huggingface.co that provides GLM-4.7-FP8-Eagle3's model effect (), which can be used instantly with this thoughtworks GLM-4.7-FP8-Eagle3 model. huggingface.co supports a free trial of the GLM-4.7-FP8-Eagle3 model, and also provides paid use of the GLM-4.7-FP8-Eagle3. Support call GLM-4.7-FP8-Eagle3 model through api, including Node.js, Python, http.
GLM-4.7-FP8-Eagle3 huggingface.co is an online trial and call api platform, which integrates GLM-4.7-FP8-Eagle3's modeling effects, including api services, and provides a free online trial of GLM-4.7-FP8-Eagle3, you can try GLM-4.7-FP8-Eagle3 online for free by clicking the link below.
thoughtworks GLM-4.7-FP8-Eagle3 online free url in huggingface.co:
GLM-4.7-FP8-Eagle3 is an open source model from GitHub that offers a free installation service, and any user can find GLM-4.7-FP8-Eagle3 on GitHub to install. At the same time, huggingface.co provides the effect of GLM-4.7-FP8-Eagle3 install, users can directly use GLM-4.7-FP8-Eagle3 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.