Speculative Decoding
Overview This post is divided into six parts; they are: • Draft and Verify • Sampling-Based Speculative Decoding • Assisted Generation with a Draft Model • Measuring Acceptance and Speedup • Other Ways to Draft Tokens • When Speculation Helps Draft and Verify Speculative decoding involves two models: a draft model (usually a smaller model that is faster to run) and a target model (usually a…
We haven't written up this one. Machine Learning Mastery has the full story — the link below goes straight to it.
Source: machinelearningmastery.com