LM Studio: DFlash and DSpark setup and speed comparison
Learn to configure speculative decoding in LM Studio and compare results: LFM improves modestly, while a Gemma 4 test runs slower with DFlash.
Player not loading? Watch on YouTube
This tutorial shows how to configure DFlash and DSpark speculative decoding in LM Studio. A small drafter proposes tokens for the main model to verify. The presenter uses animations to compare these methods with multi-token prediction (MTP).
The presenter specifies LM Studio 0.24.22 or higher and llama.cpp engine 2.29.1 or newer. Setup covers checking app updates, enabling developer mode, updating the runtime and choosing model load parameters manually. He warns that a drafter may work only with a specific version of the main model.
For the LFM test, he identifies the drafter as LFM 2.5 1.2B, then calls the selected main model LFM 2 1.2B. He reports roughly 200 tokens per second without drafting and 219 to 227 with DSpark, at about 54% token acceptance. A repetition prompt reaches about 74% acceptance. These observations come from the demonstrated prompts and do not establish a general speed improvement.
A Gemma 4 12B test reaches 47 tokens per second without drafting, then runs slower with DFlash enabled. The presenter discusses hardware and configuration as possible performance factors, including weight splitting and tensor parallelism on dual GPUs. He considers MTP more reliable at the time of recording and describes DFlash and DSpark compatibility as still maturing.