arXiv Open Access 2025

Efficient Speculative Decoding for Llama at Scale: Challenges and Solutions

Bangsheng Tang Carl Chengyan Fu Fei Kou Grigory Sizov Haoci Zhang +33 lainnya
Lihat Sumber

Abstrak

Speculative decoding is a standard method for accelerating the inference speed of large language models. However, scaling it for production environments poses several engineering challenges, including efficiently implementing different operations (e.g., tree attention and multi-round speculative decoding) on GPU. In this paper, we detail the training and inference optimization techniques that we have implemented to enable EAGLE-based speculative decoding at a production scale for Llama models. With these changes, we achieve a new state-of-the-art inference latency for Llama models. For example, Llama4 Maverick decodes at a speed of about 4 ms per token (with a batch size of one) on 8 NVIDIA H100 GPUs, which is 10% faster than the previously best known method. Furthermore, for EAGLE-based speculative decoding, our optimizations enable us to achieve a speed-up for large batch sizes between 1.4x and 2.0x at production scale.

Topik & Kata Kunci

Penulis (38)

B

Bangsheng Tang

C

Carl Chengyan Fu

F

Fei Kou

G

Grigory Sizov

H

Haoci Zhang

J

Jason Park

J

Jiawen Liu

J

Jie You

Q

Qirui Yang

S

Sachin Mehta

S

Shengyong Cai

X

Xiaodong Wang

X

Xingyu Liu

Y

Yunlu Li

Y

Yanjun Zhou

W

Wei Wei

Z

Zhiwei Zhao

Z

Zixi Qi

A

Adolfo Victoria

A

Aya Ibrahim

B

Bram Wasti

C

Changkyu Kim

D

Daniel Haziza

F

Fei Sun

G

Giancarlo Delfin

E

Emily Guo

J

Jialin Ouyang

J

Jaewon Lee

J

Jianyu Huang

J

Jeremy Reizenstein

L

Lu Fang

Q

Quinn Zhu

R

Ria Verma

V

Vlad Mihailescu

X

Xingwen Guo

Y

Yan Cui

Y

Ye Hu

Y

Yejin Lee

Format Sitasi

Tang, B., Fu, C.C., Kou, F., Sizov, G., Zhang, H., Park, J. et al. (2025). Efficient Speculative Decoding for Llama at Scale: Challenges and Solutions. https://arxiv.org/abs/2508.08192

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2025
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓