Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

FastDraft: How to Train Your Draft (2411.11055v1)

Published 17 Nov 2024 in cs.CL

Abstract: Speculative Decoding has gained popularity as an effective technique for accelerating the auto-regressive inference process of LLMs. However, Speculative Decoding entirely relies on the availability of efficient draft models, which are often lacking for many existing LLMs due to a stringent constraint of vocabulary incompatibility. In this work we introduce FastDraft, a novel and efficient approach for pre-training and aligning a draft model to any LLM by incorporating efficient pre-training, followed by fine-tuning over synthetic datasets generated by the target model. We demonstrate FastDraft by training two highly parameter efficient drafts for the popular Phi-3-mini and Llama-3.1-8B models. Using FastDraft, we were able to produce a draft with approximately 10 billion tokens on a single server with 8 Intel$\circledR$ Gaudi$\circledR$ 2 accelerators in under 24 hours. Our results show that the draft model achieves impressive results in key metrics of acceptance rate, block efficiency and up to 3x memory bound speed up when evaluated on code completion and up to 2x in summarization, text completion and instruction tasks. We validate our theoretical findings through benchmarking on the latest Intel$\circledR$ Core${\tiny \text{TM}}$ Ultra, achieving a wall-clock time speedup of up to 2x, indicating a significant reduction in runtime. Due to its high quality, FastDraft unlocks LLMs inference on AI-PC and other edge-devices.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Ofir Zafrir (5 papers)
  2. Igor Margulis (1 paper)
  3. Dorin Shteyman (4 papers)
  4. Guy Boudoukh (5 papers)
X Twitter Logo Streamline Icon: https://streamlinehq.com