[VLM] Check required fields before initializing field config in DictEmbeddingItems (#13380)

This commit is contained in:
Cyrus Leung authored and GitHub committed 2025-02-17 01:36:07 -08:00
1 parent 238dfc8ac3
commit 7b623fca0b
5 files changed
+35 -22

No files matched your search

+2 -2
View File
@@ -184,8 +184,8 @@ llm = LLM("openbmb/MiniCPM-V-2_6", trust_remote_code=True, limit_mm_per_prompt={
mm_data = {
"image": {
"image_embeds": image_embeds,
# image_size_list is needed to calculate details of the sliced image.
"image_size_list": [image.size for image in images], # list of image sizes
# image_sizes is needed to calculate details of the sliced image.
"image_sizes": [image.size for image in images], # list of image sizes
}
}