Skip to main content

Speculative decoding

Inferlets that implement custom draft strategies on top of Pie's Speculator trait. For the runtime-managed paths — the built-in n-gram drafter and a model's native MTP head — see System speculation; the text-completion-spec inferlet under Chat and generation shows the n-gram path.

Running on the dummy driver?

The dummy driver samples a fresh random token for every slot, so every draft is rejected and these inferlets run in 1-token-per-step fallback — they complete correctly but no speedup is observable.

InferletWhat it shows
jacobi-decodingParallel Jacobi decoding (custom drafter).
cacheback-decodingCache-based drafter via n-gram matching.