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 bf471bc commit f3abdabCopy full SHA for f3abdab
python/sglang/srt/managers/io_struct.py
@@ -297,6 +297,9 @@ def _normalize_image_data(self, num):
297
self.modalities.append("image")
298
elif len(self.image_data[i]) > 1:
299
self.modalities.append("multi-images")
300
+ else:
301
+ # Ensure len(self.modalities) == len(self.image_data)
302
+ self.modalities.append(None)
303
# Expand parallel_sample_num
304
self.image_data = self.image_data * self.parallel_sample_num
305
self.modalities = self.modalities * self.parallel_sample_num
0 commit comments