vllm.v1.worker.gpu.spec_decode.dflash.cudagraph
¶
Classes:
-
DFlashCudaGraphManager–DFlash CudaGraphManager for the parallel-drafting query forward,
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
Source code in vllm/v1/worker/gpu/spec_decode/dflash/cudagraph.py
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.