[Core] Warm up runner-owned Triton kernels before the first request (#49903)

This commit is contained in:
Nick Hill
2026-07-28 07:58:02 -07:00
committed by GitHub
parent 1e81853afc
commit 0d0504b54c
7 changed files with 183 additions and 189 deletions
+3 -3
View File
@@ -150,7 +150,7 @@ def _copy_mamba_state_block(
tl.store(tail_dst + tail_off, tail_data, mask=tail_mask)
@triton.jit
@triton.jit(do_not_specialize=["num_reqs"])
def postprocess_mamba_fused_kernel(
# Decision inputs (per-request)
num_accepted_tokens_ptr,
@@ -280,7 +280,7 @@ def postprocess_mamba_fused_kernel(
)
@triton.jit
@triton.jit(do_not_specialize=["num_reqs"])
def preprocess_mamba_align_fused_kernel(
idx_mapping_ptr,
state_idx_ptr,
@@ -326,7 +326,7 @@ def preprocess_mamba_align_fused_kernel(
tl.store(num_accepted_tokens_ptr + req_indices, 1, mask=mask & should_reset)
@triton.jit
@triton.jit(do_not_specialize=["num_reqs"])
def precopy_mamba_align_fused_kernel(
# Per-request-slot inputs (indexed by req_idx via idx_mapping), produced by
# the V2 fused align preprocess kernel for the current step: