[Bugfix][Model Runner V2] Route dummy tokens to MoE experts during profiling (#57270)

Signed-off-by: Robert Shaw <robertgshaw2@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Robert Shaw
2026-09-17 10:11:14 -04:00
committed by GitHub
co-authored by Claude Opus 5
parent 78fdf4efb8
commit 861a299adc
3 changed files with 30 additions and 1 deletions
+3
View File
@@ -1733,6 +1733,9 @@ class GPUModelRunner(LoRAModelRunnerMixin):
batch_desc.num_tokens,
self.input_buffers,
max_query_len=batch_desc.max_query_len,
# Profiling and warmup must route the dummy tokens to experts
# so MoE memory is measured and MoE kernels are exercised.
is_padding=not is_profile,
)
if self.pcp_manager is not None:
input_batch = self.pcp_manager.prepare_inputs_to_capture(input_batch)