[Misc] Clean up deadcode for legacy processing pipeline (#24153)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2025-09-03 08:34:29 +00:00
committed by GitHub
parent 70549c1245
commit 9c99e4871f
2 changed files with 1 additions and 7 deletions
+1 -4
View File
@@ -378,10 +378,7 @@ def group_mm_inputs_by_modality(
elif len(mm_input) == 1:
return next(iter(mm_input.keys()))
# FIXME(Isotr0py): Modality of mm_input from legacy pipeline is empty,
# this is used to make InternVL with legacy pipeline still work with v1.
else:
return ""
raise AssertionError("This line should be unreachable.")
return [
list(group) for _, group in groupby(mm_inputs, key=modality_group_func)