Skip to content

vllm.model_executor.warmup.flashinfer_autotune_cache

FlashInfer autotune cache helpers.

Functions:

_normalize_cache_config_for_hash(cache_config)

Normalize cache config for hashing

flashinfer_autotune_filename(dp_rank, rank)

Per-rank cache filename, shared by the engine reader and D2D exchange.

flashinfer_autotune_root()

Root directory of the FlashInfer autotune cache (no runner needed).

get_flashinfer_mm_encoder_autotune_config(vllm_config)

Return the multimodal config when encoder autotuning is enabled.

resolve_flashinfer_autotune_v2_root()

Placement root for FlashInfer's managed autotune store.

Unlike resolve_flashinfer_autotune_file, no vLLM-side identity (config hash, flashinfer version, arch) is folded into the path: the managed store keys entries per op and hashes the software/hardware environment itself. None selects FlashInfer's default root.

resolve_rank_flashinfer_autotune_file(runner)

The per-rank variant of resolve_flashinfer_autotune_file.