Upload internlm_JanusCoder-14B_0.txt with huggingface_hub
Browse files12345678910111213141516171819202122232425262728```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("image-text-to-text", model="internlm/JanusCoder-14B")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/internlm_JanusCoder-14B_0LN9mk0.py", line 19, in <module> pipe = pipeline("image-text-to-text", model="internlm/JanusCoder-14B") File "/tmp/.cache/uv/environments-v2/eb3259cb7eb95fbe/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1197, in pipeline raise e File "/tmp/.cache/uv/environments-v2/eb3259cb7eb95fbe/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1190, in pipeline raise TypeError( ...<3 lines>... )TypeError: Processor was loaded, but it is not an instance of `ProcessorMixin`. Got type `<class 'transformers.models.qwen2.tokenization_qwen2_fast.Qwen2TokenizerFast'>` instead. Please check that you specified correct pipeline task for the model and model has processor implemented and saved.internlm_JanusCoder-14B_0.txtAdded+28