mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-06 11:07:08 +08:00
fix set forward context error
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
28e7c30b01
commit
44ead56ad5
@ -2031,7 +2031,12 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
|
||||
|
||||
# Run the model.
|
||||
# Use persistent buffers for CUDA graphs.
|
||||
self.maybe_setup_kv_connector(scheduler_output)
|
||||
with set_forward_context(attn_metadata,
|
||||
vllm_config=self.vllm_config,
|
||||
num_tokens=num_input_tokens or 1,
|
||||
num_tokens_across_dp=num_tokens_after_padding,
|
||||
skip_cuda_graphs=skip_cuda_graphs):
|
||||
self.maybe_setup_kv_connector(scheduler_output)
|
||||
model_output = self._run_model(
|
||||
attn_metadata=attn_metadata,
|
||||
num_scheduled_tokens=num_input_tokens,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user