[Bugfix] Pass vllm_config to kv_connector_no_forward in NPUModelRunner (#4970)

### What this PR does / why we need it?

The newest version crashes in PD separation scenarios because the
function is missing the `vllm_config` parameter.

- vLLM version: v0.12.0
- vLLM main:
ad32e3e19c

Signed-off-by: Jade Zheng <zheng.shoujian@outlook.com>
This commit is contained in:
Jade Zheng
2025-12-12 22:36:23 +08:00
committed by GitHub
parent fa367e3b1a
commit 45889a6185

View File

@@ -1444,7 +1444,8 @@ class NPUModelRunner(GPUModelRunner):
)
# Return empty ModelRunnerOuptut if there's no work to do.
return EMPTY_MODEL_RUNNER_OUTPUT
return self.kv_connector_no_forward(scheduler_output)
return self.kv_connector_no_forward(scheduler_output,
self.vllm_config)
if self.dynamic_eplb:
self.eplb_updator.forward_before()