Instructions to use migtissera/Tess-4-27B-EAGLE3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use migtissera/Tess-4-27B-EAGLE3 with Transformers:
# Load model directly from transformers import AutoTokenizer, LlamaForCausalLMEagle3 tokenizer = AutoTokenizer.from_pretrained("migtissera/Tess-4-27B-EAGLE3") model = LlamaForCausalLMEagle3.from_pretrained("migtissera/Tess-4-27B-EAGLE3") - Notebooks
- Google Colab
- Kaggle
Tess-4-27B Β· EAGLE-3 Draft
An EAGLE-3 speculative-decoding draft head for migtissera/Tess-4-27B β trained on-policy against Tess-4's own outputs, so it predicts this model, not its base.
Measured: 1.76Γ faster decoding on average β up to 2.4Γ on reasoning. Lossless: the target model verifies every token, so outputs are identical to non-speculative decoding.
Benchmarks
Single H100-80GB, greedy decoding, 10 held-out prompts Γ 1024 tokens each:
| Workload | Baseline | With EAGLE-3 | Speedup |
|---|---|---|---|
| Math / logic reasoning | 51.2 tok/s | 103β123 tok/s | 2.0β2.4Γ |
| Coding | 51.2 tok/s | 81β91 tok/s | 1.6β1.8Γ |
| Agentic planning | 51.2 tok/s | 83 tok/s | 1.6Γ |
| General chat | 51.2 tok/s | 80β87 tok/s | 1.6β1.7Γ |
| Overall | 51.2 tok/s | 90.2 tok/s | 1.76Γ |
Server-reported accept length: 1.5β2.2 tokens per verification step (conservative settings: topk=1, 4 draft tokens β tuning headroom remains).
Why this exists
Tess-4-27B inherits an MTP head from its base model, but fine-tuning shifts the output distribution, driving that head's acceptance to ~0% β it can't accelerate the fine-tune. This EAGLE-3 draft was trained against Tess-4 itself: ~4,700 on-policy samples (Tess-4's own reasoning + coding + agentic generations, including real multi-turn tool-call traces), 2 epochs, with the draft consuming fused hidden states from three depths of the frozen target.
Usage
SGLang (tested β )
python -m sglang.launch_server \
--model-path migtissera/Tess-4-27B \
--speculative-algorithm EAGLE3 \
--speculative-draft-model-path migtissera/Tess-4-27B-EAGLE3 \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4 \
--trust-remote-code
vLLM
vllm serve migtissera/Tess-4-27B \
--speculative-config '{"method": "eagle3", "model": "migtissera/Tess-4-27B-EAGLE3", "num_speculative_tokens": 4}' \
--trust-remote-code
(Benchmarked with SGLang; vLLM flags may vary by version.)
Details
- Architecture: 1-layer Llama-style EAGLE-3 head (hidden 5120, matching the target), draft vocab 32K mapped onto the target's 248K vocab. 1.22 GB. Input embeddings are not included β the serving engine shares them from the target model.
- Training: SpecForge (SGLang team), online mode, frozen target, single H100.
- Data: on-policy β the target generated every training token. Mix: agentic/coding prompts from the Tess-4 program, OpenCoder, GSM8K, UltraChat, plus real multi-turn tool-call traces.
- Lossless: speculative decoding never changes outputs; the target verifies every proposed token. Speedup depends on workload (structured/reasoning content accepts more).
License
Apache 2.0, matching Tess-4-27B.
Part of the Tess series by Migel Tissera.
- Downloads last month
- 128