File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ] = {}
You can’t perform that action at this time.
0 commit comments