[VLM] Merged multi-modal processor for Pixtral (#12211)
Signed-off-by: remi <remi@mistral.ai> Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk> Co-authored-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
co-authored by
DarkLight1337
parent
74bc397b0a
commit
61c6a5a796
+1
-1
@@ -845,7 +845,7 @@ def is_list_of(
|
||||
assert_never(check)
|
||||
|
||||
|
||||
def flatten_2d_lists(lists: list[list[T]]) -> list[T]:
|
||||
def flatten_2d_lists(lists: Iterable[Iterable[T]]) -> list[T]:
|
||||
"""Flatten a list of lists to a single list."""
|
||||
return [item for sublist in lists for item in sublist]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user