Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion vllm/worker/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ def __init__(self,
self.enable_prompt_adapter = (self.runner.prompt_adapter_config
is not None)
self.multi_modal_input_mapper = self.runner.multi_modal_input_mapper
self.decode_only = True

# Attention metadata inputs.
if self.attn_backend is not None:
Expand All @@ -477,6 +476,10 @@ def prepare(self,
finished_requests_ids: Optional[List[str]] = None) -> None:
self.finished_requests_ids = finished_requests_ids

# if the current batch is decode-only.
# will be set to False if there is any non-decode request.
self.decode_only = True

# Intermediate data (data in CPU before going to GPU) for
# the current sequence group.
self.inter_data_list: List[
Expand Down
Loading