Skip to content

vllm.v1.worker.gpu.spec_decode.dflash.config

Classes:

DFlashSpeculatorConfig

Bases: DraftModelSpeculatorConfig

Attributes:

num_query_tokens property

Query tokens per request in one draft forward pass.

sample_from_anchor property

Whether the anchor query also predicts a draft token.

False (the default) is the fill-in layout: the anchor is the bonus token and one mask query per draft token follows it. True is the anchor-first layout, where every query predicts the next token. Read from dflash_config, falling back to the top level of the HF config, where some checkpoints set it as DSpark does. False without a draft model config.

Raises:

  • ValueError –

    If dflash_config and the top level set different values.