mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-11 05:17:09 +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.
|
# Run the model.
|
||||||
# Use persistent buffers for CUDA graphs.
|
# 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(
|
model_output = self._run_model(
|
||||||
attn_metadata=attn_metadata,
|
attn_metadata=attn_metadata,
|
||||||
num_scheduled_tokens=num_input_tokens,
|
num_scheduled_tokens=num_input_tokens,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user