[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:
co-authored by
OpenAI Codex
parent
26879f3260
commit
96e203b08e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user