Skip to content

Commit

Permalink
Fix modality for image inputs (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Oct 6, 2024
1 parent f7cce75 commit 91877a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sglang/srt/managers/schedule_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def from_dict(obj, vocab_size):
]
ret.image_sizes = obj["image_sizes"]
# Only when pixel values is not None we have modalities
ret.modalities = obj["modalities"]
ret.modalities = obj["modalities"] or ["image"]
return ret


Expand Down

0 comments on commit 91877a9

Please sign in to comment.