Qendrim Beka

Speculative Decoding

Draft a few tokens and check them together

A small model drafts and a large one checks, at 2.27x the large model’s throughput on one laptop. My adaptive controller lost to a tuned fixed length, at 0.92x.

Python, PyTorch, Transformers, Metal