File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,16 @@ def sort_beams_key(x: BeamSearchSequence) -> float:
536536 tokenizer .eos_token_id ,
537537 length_penalty )
538538
539+ # TODO - fix handling of multimodal data for beam search; we pass it
540+ # through in the async version on the abstract EngineClient, but not
541+ # here.
542+ if any ("multi_modal_data" in prompt
543+ and prompt ["multi_modal_data" ] is not None
544+ for prompt in prompts ):
545+ logger .warning (
546+ "Multimodal data appears to have been provided, but is not"
547+ " currently being passed through in LLM.beam_search()!" )
548+
539549 tokenizer = self .get_tokenizer ()
540550 # generate 2 * beam_width candidates at each step
541551 # following the huggingface transformers implementation
You can’t perform that action at this time.
0 commit comments