Skip to content

vllm.v1.worker.gpu.spec_decode.dflash.cudagraph

Classes:

DFlashCudaGraphManager

Bases: CudaGraphManager

DFlash CudaGraphManager for the parallel-drafting query forward, building its own attention metadata from scratch.

Methods:

  • capture –

    prepare_forward(num_reqs, attn_metadata) is captured ahead of the

capture(forward_fn, input_buffers, block_tables, attn_groups, kv_cache_config, max_model_len, causal, prepare_forward, progress_bar_desc='Capturing CUDA graphs')

prepare_forward(num_reqs, attn_metadata) is captured ahead of the query forward.