[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:
co-authored by
Claude Opus 5
parent
78fdf4efb8
commit
861a299adc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user