In speculative decoding, the draft model is the smaller, faster model that proposes candidate tokens for a larger target model to verify. The pair works side by side and must share a tokenizer. section 12.3 section 12.7
The draft model is chosen to run quickly and generate several next tokens in advance. The target model then accepts or rejects each candidate, keeping only tokens it would have produced itself. section 12.3 section 12.3
Key constraints shape the setup:
- It should be much smaller than the target model. section 12.3
- It should come from the same family as the target model. section 12.3
- It must use the same tokenizer as the target model. section 12.3
LM Studio speculative decoding example
A 3B Instruct model is used as the target and a 1B Instruct model as the draft, both in 4-bit quantized form. The speculative decoding panel can visualize accepted draft tokens during generation. section 12.3 section 12.3
