We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62058d commit 73fbc9cCopy full SHA for 73fbc9c
vllm/multimodal/utils.py
@@ -503,8 +503,13 @@ def modality_group_func(mm_input: "MultiModalKwargs") -> Union[str, int]:
503
if len(mm_input.modalities) > 1:
504
return id(mm_input)
505
506
- # Otherwise return the modality string
507
- return list(mm_input.modalities)[0]
+ elif len(mm_input.modalities) == 1:
+ return list(mm_input.modalities)[0]
508
+
509
+ # FIXME(Isotr0py): Modality of mm_input from legacy pipeline is empty,
510
+ # this is used to make InternVL with legacy pipeline still work with v1.
511
+ else:
512
+ return ""
513
514
return [
515
list(group) for _, group in groupby(mm_inputs, key=modality_group_func)
0 commit comments