Skip to content

Commit f8d26df

Browse files
p88hnjhill
andcommitted
Apply suggestions from code review
Signed-off-by: Staszek Pasko <[email protected]> Co-authored-by: Nick Hill <[email protected]> Signed-off-by: Staszek Pasko <[email protected]>
1 parent 678cba1 commit f8d26df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vllm/v1/serial_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ def _decode_mm_items(self, obj: list) -> list[MultiModalKwargsItem]:
213213
for v in item:
214214
v["data"] = self._decode_nested_tensors(v["data"])
215215
# Reconstruct the field processor using MultiModalFieldConfig
216-
field = v["field"]
217-
ctor = getattr(MultiModalFieldConfig, field[0])
218-
v["field"] = ctor(None, *field[1:]).field
216+
factory_meth_name, *field_args = v["field"]
217+
factory_meth = getattr(MultiModalFieldConfig, factory_meth_name)
218+
v["field"] = factory_meth(None, *field_args).field
219219
elems.append(MultiModalFieldElem(**v))
220220
all.append(MultiModalKwargsItem.from_elems(elems))
221221
return all

0 commit comments

Comments
 (0)