[Warmup] Gemma 4 de-JITification (#55768)

Signed-off-by: LopezCastroRoberto <rocastro@redhat.com>
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Roberto L. Castro
2026-09-13 16:47:21 -04:00
committed by GitHub
co-authored by Codex
parent 586f652f8d
commit 186a1e6222
4 changed files with 288 additions and 28 deletions
+12 -6
View File
@@ -632,12 +632,18 @@ class GPUModelRunner(LoRAModelRunnerMixin):
draft_attn_layer_names = None
if isinstance(self.speculator, DraftModelSpeculator):
draft_attn_layer_names = self.speculator.draft_attn_layer_names
self.attn_groups, attn_cg_support, self.kernel_block_sizes = init_attn_backend(
self.kv_cache_config,
self.vllm_config,
self.device,
draft_layer_names=draft_attn_layer_names,
)
# Metadata builders select attention kernels that need JIT warmup.
with self.jit_warmup_registry.activate():
(
self.attn_groups,
attn_cg_support,
self.kernel_block_sizes,
) = init_attn_backend(
self.kv_cache_config,
self.vllm_config,
self.device,
draft_layer_names=draft_attn_layer_names,
)
additional_attn_cg_support = self.model_state.get_additional_cg_support()
attn_cg_support = attn_cg_support.narrow(*additional_attn_cg_support)
# The speculator clears the flag at load time when the checkpoint has