EAGLE-3 head for Qwen2.5-3B-Instruct
A draft head for speculative decoding of Qwen/Qwen2.5-3B-Instruct
(revision aa8e72537993ba99e69dfaafa59ed015b17504d1) in vLLM.
Code, measurements and the full experiment log: https://github.com/artyomsavov/llm-speculative-serving
Training
- speculators 0.9.0a0 (git
05f9ba2), EAGLE-3, one decoder layer, draft vocabulary 32,000. - Data: 10,000 UltraChat dialogs whose answers were regenerated by Qwen2.5-3B-Instruct itself; 9,618 left after preparation.
- Three epochs, then three more at lr 3e-4 from the best checkpoint. About two and a half hours on one RTX 5070 Ti.
Use with vLLM 0.29.0
VLLM_USE_V2_MODEL_RUNNER=0 vllm serve Qwen/Qwen2.5-3B-Instruct --dtype half --attention-backend TRITON_ATTN \
--speculative-config '{"method":"eagle3","model":"<local path to this repo>","num_speculative_tokens":1,"attention_backend":"TRITON_ATTN"}'
This is the configuration that was measured. One draft token per step is the measured optimum; two were slower.
Measured effect
RTX 5070 Ti 16 GB, FP16 target, 512-token prompts, 256-token answers, mean acceptance length 1.52.
| Clients | 1 | 2 | 4 | 8 | 16 | 32 | 64 |
|---|---|---|---|---|---|---|---|
| Output tok/s vs no head | +20% | +22% | +22% | +22% | +18% | +11% | โ4% |
The head helps at low concurrency and stops paying when the batch fills the GPU. On an FP8-quantised target it is slower than FP8 alone at 32 and 64 clients.
Quality with the head (subsamples): GSM8K 0.580 against 0.585 without it, IFEval 0.580 against 0.585, MMLU-Pro 134.4 against 136.7 correct of 350 (seven runs each; the cause of the difference is not established).
Licence
The checkpoint contains the embedding matrix of Qwen2.5-3B-Instruct, so it is distributed under the same Qwen Research License as the base model.
- Downloads last month
- 46