The study compared the performance of the Magnitude engine, which uses the DFlash speculative decoding mechanism, against Ollama on an RTX 3060 GPU with 12 GB of VRAM. Using the Qwen3.5 4B model, Magnitude completed requests in an average of 11.23 seconds, while Ollama took 34.60 seconds. DFlash utilizes a small diffusion model as a drafter to predict blocks of tokens in parallel, which the main model then verifies.

Disabling DFlash increased the average execution time from 11.23 to 37.52 seconds, a 3.34-fold slowdown. Performance gains varied significantly by task type: for long generation tasks, the speedup was substantial, while for tasks with very long input contexts, the overhead of the drafter sometimes outweighed the benefits. In one specific case involving a technical explanation, DFlash was 7% slower than the baseline.

DFlash requires additional VRAM, increasing usage by approximately 1 GiB compared to the baseline of 4906 MiB. The Magnitude engine also employs Kernel Autotuning to optimize GPU operations. It tests various configurations for specific operations and saves the best results in a KernelCache. Out of 56 autotuning decisions analyzed, 50 defaulted to standard configurations, while 6 utilized alternative optimized candidates.

The analysis of the KernelCache revealed that the attention_decode operation saw the most significant performance improvement. In one test case, an alternative configuration reduced execution time from 505.86 microseconds to 209.11 microseconds, a 2.42-fold improvement. This optimization involved adjusting the number of warps and modifying matrix and register usage parameters.