[BugFix][Model Runner V2][Spec Decode] Fix decode instance's multi-layer MTP kv caches during P/D (#55055)
Signed-off-by: Giancarlo Delfin <gdelfin@inferact.ai>
This commit is contained in:
@@ -296,15 +296,7 @@ class GPUModelRunner(LoRAModelRunnerMixin):
|
||||
self.is_pooling_model = self.model_config.runner_type == "pooling"
|
||||
self.pooling_runner: PoolingRunner | None = None
|
||||
|
||||
# Multi-module MTP feeds its modules the next num_speculative_steps prefill
|
||||
# tokens during chunked prefill. Other speculators only read the immediate
|
||||
# next one.
|
||||
num_prefill_lookahead = (
|
||||
self.num_speculative_steps
|
||||
if self.speculative_config is not None
|
||||
and self.speculative_config.use_multi_module_mtp()
|
||||
else 1
|
||||
)
|
||||
num_prefill_lookahead = max(1, vllm_config.num_prefill_lookahead_tokens)
|
||||
|
||||
self.step_timing = StepTimingCollector()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user