报错
File "/root/.cache/huggingface/modules/transformers_modules/glm-4v-9b/tokenization_chatglm.py", line 209, in handle_single_conversation
assert input_image is None, "Multiple images are not supported"
AssertionError: Multiple images are not supported
System Info / 系統信息
123
Who can help? / 谁可以帮助到您?
@zRzRzRzRzRzRzR
Information / 问题信息
Reproduction / 复现过程
兄弟,我这里输入两张图片提示我不支持多张图片,请问怎么才能同时支持两页的pdf+一句提示词
代码 inputs = tokenizer.apply_chat_template([{"role": "user", "image": image, "content": query},{"role": "user", "image": image2, "content": content}], add_generation_prompt=True, tokenize=True, return_tensors="pt", return_dict=True) # chat mode
报错 File "/root/.cache/huggingface/modules/transformers_modules/glm-4v-9b/tokenization_chatglm.py", line 209, in handle_single_conversation assert input_image is None, "Multiple images are not supported" AssertionError: Multiple images are not supported
Expected behavior / 期待表现
请问怎么才能同时支持两页的pdf+一句提示词