Upload Qwen_Qwen3.5-4B-Base_0.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("image-text-to-text", model="Qwen/Qwen3.5-4B-Base")messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] },]pipe(text=messages)```
ERROR: Traceback (most recent call last): File "/tmp/Qwen_Qwen3.5-4B-Base_0CJEJUx.py", line 36, in <module> pipe(text=messages) ~~~~^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/43950be932da7f1c/lib/python3.13/site-packages/transformers/pipelines/image_text_to_text.py", line 283, in __call__ return super().__call__(Chat(text), **kwargs) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/43950be932da7f1c/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1267, in __call__ return self.run_single(inputs, preprocess_params, forward_params, postprocess_params) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/43950be932da7f1c/lib/python3.13/site-packages/transformers/pipelines/base.py", line 1273, in run_single model_inputs = self.preprocess(inputs, **preprocess_params) File "/tmp/.cache/uv/environments-v2/43950be932da7f1c/lib/python3.13/site-packages/transformers/pipelines/image_text_to_text.py", line 330, in preprocess model_inputs = self.processor.apply_chat_template( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ inputs.messages, ^^^^^^^^^^^^^^^^ ...<4 lines>... return_dict=True, ^^^^^^^^^^^^^^^^^ ).to(dtype=self.dtype) ^ File "/tmp/.cache/uv/environments-v2/43950be932da7f1c/lib/python3.13/site-packages/transformers/processing_utils.py", line 1666, in apply_chat_template raise ValueError( "Cannot use apply_chat_template because this processor does not have a chat template." )ValueError: Cannot use apply_chat_template because this processor does not have a chat template.Qwen_Qwen3.5-4B-Base_0.txtAdded+45