thoughtworks / Llama-3.1-8B-Instruct-Eagle3

huggingface.co
Total runs: 72
24-hour runs: 0
7-day runs: 1
30-day runs: 45
Model's Last Updated: March 29 2026
text-generation

Introduction of Llama-3.1-8B-Instruct-Eagle3

Model Details of Llama-3.1-8B-Instruct-Eagle3

EAGLE3 Draft Head — Llama-3.1-8B-Instruct

A speculative decoding draft head for meta-llama/Llama-3.1-8B-Instruct , trained using the EAGLE3 method on Google Cloud TPU with the SpecJAX framework.

EAGLE3 draft heads accelerate autoregressive generation by proposing multiple tokens per step that a target model then verifies in parallel — typically achieving 2-3x throughput gains with no change in output quality.

Usage
SGLang (GPU)

Llama-3.1 EAGLE3 is natively supported in SGLang.

python -m sglang.launch_server \
    --model meta-llama/Llama-3.1-8B-Instruct \
    --speculative-algorithm EAGLE3 \
    --speculative-draft-model-path thoughtworks/Llama-3.1-8B-Instruct-Eagle3 \
    --speculative-num-steps 5 \
    --speculative-eagle-topk 4 \
    --dtype bfloat16
sglang-jax (TPU)

Llama-3.1 EAGLE3 is natively supported in sglang-jax. Note: sglang-jax's EAGLE3 pipeline is functional but not yet performance-optimized.

python -m sgl_jax.launch_server \
    --model-path meta-llama/Llama-3.1-8B-Instruct \
    --speculative-algorithm EAGLE3 \
    --speculative-draft-model-path thoughtworks/Llama-3.1-8B-Instruct-Eagle3 \
    --speculative-eagle-topk 1 \
    --speculative-num-steps 3 \
    --speculative-num-draft-tokens 4 \
    --tp-size 4 --dtype bfloat16
Python (SGLang client)
import sglang as sgl

llm = sgl.LLM(
    model="meta-llama/Llama-3.1-8B-Instruct",
    speculative_algorithm="EAGLE3",
    speculative_draft_model_path="thoughtworks/Llama-3.1-8B-Instruct-Eagle3",
    speculative_num_steps=5,
    speculative_eagle_topk=4,
    dtype="bfloat16",
)

Note : Access to meta-llama/Llama-3.1-8B-Instruct requires accepting Meta's Llama 3.1 Community License on the model page.

Training Details
Parameter Value
Framework SpecJAX — pure JAX, no Flax/PyTorch
Hardware Google Cloud TPU v4-32 (4 hosts x 4 chips, TP=4, DP=4)
Dataset 54K mixed: ShareGPT (45%) + UltraChat-200K (35%) + Open-PerfectBlend (20%)
Epochs 3
Steps 4,983 per epoch
Optimizer AdamW, cosine LR decay, 3% warmup
Learning rate 3e-4
Batch size B=4, sequence length T=2048, gradient accumulation 2
TTT length 7 (multi-step speculative rollout)
Training time ~2.5 hours
Precision bfloat16
Training Method

This model uses EAGLE3 's Test-Time Training (TTT) objective with a rollout length of 7. At each training step, the draft head autoregressively proposes 7 tokens; the target model provides ground-truth hidden states and logits for all positions; a geometric loss (0.8^k weighting) trains the draft to match the target at each position.

Performance

Token acceptance rates on generic instruction-following data (ShareGPT-style prompts):

Position Acceptance Rate
acc_0 (1st draft token) 60.5%
acc_1 58.2%
acc_2 57.2%

Measured on held-out evaluation data. Actual throughput gains depend on hardware, prompt distribution, and runtime version.

Model Architecture

The draft head is a single-layer transformer that operates on the target model's hidden states:

Parameter Value
Architecture LlamaForCausalLM (1 decoder layer)
Hidden size 4096
Attention heads 32 (GQA: 8 KV heads)
Vocabulary size 128,256 (full target vocab)
Draft vocab size 32,000 (top tokens by training frequency)
Parameters ~350M
Limitations
  • Trained on English-dominant instruction data; performance may degrade on non-English inputs or highly domain-specific content.
  • Acceptance rates are measured on generic chat data and will vary by prompt distribution.
  • This is a v1 checkpoint trained on generic data. A v2 with target-model-regenerated training data is planned.
License

This model is released under the Meta Llama 3.1 Community License . Usage is subject to Meta's acceptable use policy.

References
@article{li2025eagle3,
  title={EAGLE3: Scalable Speculative Decoding with Training-Free Multi-Draft Speculation},
  author={Li, Yuhui and Wei, Fangyun and Zhang, Chao and Zhang, Hongyang},
  journal={arXiv preprint arXiv:2503.01840},
  year={2025}
}

Runs of thoughtworks Llama-3.1-8B-Instruct-Eagle3 on huggingface.co

72
Total runs
0
24-hour runs
2
3-day runs
1
7-day runs
45
30-day runs

More Information About Llama-3.1-8B-Instruct-Eagle3 huggingface.co Model

More Llama-3.1-8B-Instruct-Eagle3 license Visit here:

https://choosealicense.com/licenses/llama3.1

Llama-3.1-8B-Instruct-Eagle3 huggingface.co

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

Llama-3.1-8B-Instruct-Eagle3 huggingface.co Url

https://huggingface.co/thoughtworks/Llama-3.1-8B-Instruct-Eagle3

thoughtworks Llama-3.1-8B-Instruct-Eagle3 online free

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

thoughtworks Llama-3.1-8B-Instruct-Eagle3 online free url in huggingface.co:

https://huggingface.co/thoughtworks/Llama-3.1-8B-Instruct-Eagle3

Llama-3.1-8B-Instruct-Eagle3 install

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

Llama-3.1-8B-Instruct-Eagle3 install url in huggingface.co:

https://huggingface.co/thoughtworks/Llama-3.1-8B-Instruct-Eagle3

Url of Llama-3.1-8B-Instruct-Eagle3

Llama-3.1-8B-Instruct-Eagle3 huggingface.co Url

Provider of Llama-3.1-8B-Instruct-Eagle3 huggingface.co

thoughtworks
ORGANIZATIONS

Other API from thoughtworks