Skip to content

Commit 593a352

Browse files
committed
update
Signed-off-by: yinpeiqi <[email protected]>
1 parent fa6ab51 commit 593a352

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vllm_omni/worker/gpu_ar_model_runner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,10 @@ def propose_draft_token_ids(sampled_token_ids):
292292
if isinstance(v, torch.Tensor) and v.shape[0] == hidden_states_cpu.shape[0]:
293293
mm_payload[k] = v.detach().to("cpu")[prev_logits_index : logits_index + 1].contiguous()
294294
elif isinstance(v, torch.Tensor) and v.shape[0] != hidden_states_cpu.shape[0]:
295-
logger.error(f"Error in merge multimodal outputs: Tensor dimension mismatch, \
296-
{v.shape} != {hidden_states_cpu.shape} for {k}")
295+
logger.error(
296+
f"Error in merge multimodal outputs: Tensor dimension mismatch, \
297+
{v.shape} != {hidden_states_cpu.shape} for {k}"
298+
)
297299
# Case 2: nested dict of tensors aligned on token dimension (e.g., selected_hidden_layers)
298300
elif isinstance(v, dict):
299301
sub_dict: dict[str, torch.Tensor] = {}

0 commit comments

Comments
 (0)