EAGLE-3: Scaling up Inference Acceleration of Large Language Models via Training-Time Test
Paper • 2503.01840 • Published • 10
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Training dataset for the thomaskiefer/EAGLE3-Apertus-8B-Instruct-2509 speculative decoding draft model.
This dataset contains ~375k multi-turn conversations used to train an Eagle3 draft model for swiss-ai/Apertus-8B-Instruct-2509.
The prompts are sourced from:
The responses were regenerated using Apertus-8B-Instruct-2509 rather than using the original responses. This ensures the draft model learns to predict tokens from the target model's own output distribution, which is critical for effective speculative decoding.
JSONL format with the following structure:
{
"id": "unique_sha256_hash",
"conversations": [
{"role": "user", "content": "User message..."},
{"role": "assistant", "content": "Regenerated assistant response..."},
{"role": "user", "content": "Follow-up question..."},
{"role": "assistant", "content": "Regenerated follow-up response..."}
],
"status": "success"
}
| Field | Type | Description |
|---|---|---|
id |
string | SHA-256 hash identifier for the conversation |
conversations |
array | List of conversation turns with role and content |
status |
string | Processing status (success indicates valid sample) |
from datasets import load_dataset
dataset = load_dataset("thomaskiefer/EAGLE3-Apertus-8B-Instruct-2509-Data")
import json
conversations = []
with open("merged_train_regen.jsonl", "r") as f:
for line in f:
conversations.append(json.loads(line))
NUM_GPUS=4
TP_SIZE=1
torchrun \
--standalone \
--nproc_per_node $NUM_GPUS \
scripts/train_eagle3.py \
--target-model-path swiss-ai/Apertus-8B-Instruct-2509 \
--draft-model-config /path/to/configs/apertus-8b-eagle3.json \
--train-data-path /path/to/merged_train_regen.jsonl \
--output-dir /path/to/outputs/apertus-8b-eagle3 \
--num-epochs 10 \
--batch-size 1 \
--tp-size $TP_SIZE \
--learning-rate 1e-4 \
--max-length 4096 \
--chat-template apertus \
--cache-dir /path/to/cache \
--target-model-backend sglang
Apache 2.0
@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 Zhang, Hongyang},
journal={arXiv preprint arXiv:2503.01840},
year={2025}
}