[ROCm][Bugfix] Register MRV2 sampler JIT warmups (#58092)

Signed-off-by: Andreas Karatzas <akaratza@amd.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Andreas Karatzas
2026-09-23 03:17:13 -05:00
committed by GitHub
co-authored by OpenAI Codex
parent 26879f3260
commit 96e203b08e
4 changed files with 114 additions and 0 deletions
+9
View File
@@ -442,6 +442,15 @@ class GPUModelRunner(LoRAModelRunnerMixin):
self.vllm_config, self.req_states, self.is_pooling_model, config_processors
)
if self.is_last_pp_rank and not self.is_pooling_model:
from vllm.v1.sample.ops.topk_topp_sampler import (
register_top_k_top_p_warmups,
)
# V2 bypasses TopKTopPSampler, which registers native warmups.
# CUDA also needs these for its FlashInfer fallback paths.
with self.jit_warmup_registry.activate():
register_top_k_top_p_warmups()
sampler_kwargs: dict[str, Any] = {
"vllm_config": self.vllm_config,
"max_num_reqs": self.max_num_reqs,