IuvenisSapiens / ComfyUI_Qwen2-VL-Instruct

The successful integration of Qwen2-VL-Instruct into the ComfyUI platform has enabled a smooth operation, supporting (but not limited to) text-based queries, video queries, single-image queries, and multi-image queries for generating captions or responses.
Apache License 2.0
68 stars 8 forks source link

No chat template is set for this processor. #8

Open CraneCooker opened 2 months ago

CraneCooker commented 2 months ago

dear there, how to setup chat template in ComfyUI ? below is the ComfyUI error message:

Error occurred when executing Qwen2_VQA:

No chat template is set for this processor. Please either set the chat_template attribute, or provide a chat template as an argument. See https://huggingface.co/docs/transformers/main/en/chat_templating for more information.

File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 317, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 192, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Qwen2-VL-Instruct\nodes.py", line 162, in inference text = self.processor.apply_chat_template( File "D:\stable_diffusion\ComfyUI-aki\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\processing_utils.py", line 986, in apply_chat_template raise ValueError(

Close