Skip to content

vllm.model_executor.warmup.qwen_triton_warmup

Warm up Qwen Triton kernels from the loaded model's compile keys.

Functions:

_warm_fused_gdn_decode_post_conv_mtp_kernel(device, config, x_dtype, num_spec_tokens, max_num_reqs)

Compile the ROCm Triton MTP decode kernels for every V tile size the request count can select, with the layer's packed QKVZ/BA layouts so the stride specializations match serving.

_warm_state_gather_scatter_kernels(device, config)

Compile the gather/scatter variants serving hits.

Triton specializes on 16-byte pointer alignment and stride == 1; mixed batches slice the indices/mask at num_decodes and spec-decode block tables give stride-2 indices, so warm each combination.

qwen_triton_warmup(runner, model_config)

Warm Qwen GDN Triton kernels reported by the JIT monitor.