Download source/docs/user_guide/algorithms/index.md from khazic/spec-b300: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/khazic/spec-b300/resolve/main/source/docs/user_guide/algorithms/index.md
- Command line
-
hf download hf://khazic/spec-b300/source/docs/user_guide/algorithms/index.md
-
curl -L -o index.md https://huggingface.co/khazic/spec-b300/resolve/main/source/docs/user_guide/algorithms/index.md
Algorithms
Speculators supports six speculative decoding algorithms. All are lossless -- they produce output from the same distribution as the target model.
Eagle-3
Predicts draft tokens autoregressively using Llama-style draft layers. The more established algorithm with mature support in both Speculators and vLLM.
P-EAGLE
Extends Eagle-3 with parallel multi-token prediction across multiple depths, using COD sampling for memory-efficient training.
DFlash
Predicts all draft tokens in a single forward pass using block-based prediction with Qwen3-style draft layers. Newer, with support improving rapidly.
DFlash2
Adds local dynamic convolutions and a predecessor-conditioned candidate selector to DFlash while retaining one parallel draft-model forward pass. Experimental training support.
DSpark
Extends DFlash with a Markov head for intra-block token dependencies and a confidence head predicting per-position acceptance. Newer, with support improving rapidly.
MTP
Finetunes the model's native multi-token prediction head on domain-specific data. Available for models with built-in MTP support (e.g. Qwen3-Next, Qwen3.5).
Choosing an Algorithm
Most algorithms can be paired with any supported verifier model. DFlash2 requires the verifier's full vocabulary. For help choosing between them, see the Decision Guide.
Adding New Algorithms
See the Developer Guide for instructions on adding custom algorithms to Speculators.