Upload tencent_Youtu-VL-4B-Instruct_0.txt with huggingface_hub
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("image-text-to-text", model="tencent/Youtu-VL-4B-Instruct", trust_remote_code=True)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/tencent_Youtu-VL-4B-Instruct_04o0wIC.py", line 26, in <module> pipe = pipeline("image-text-to-text", model="tencent/Youtu-VL-4B-Instruct", trust_remote_code=True) File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 836, in pipeline model = load_model( adapter_path if adapter_path is not None else model, ...<4 lines>... **model_kwargs, ) File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/pipelines/base.py", line 268, in load_model raise ValueError( f"Could not load model {model} with any of the following classes: {class_tuple}. See the original errors:\n\n{error}\n" )ValueError: Could not load model tencent/Youtu-VL-4B-Instruct with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForImageTextToText'>,). See the original errors:
while loading with AutoModelForImageTextToText, an error is thrown:Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/pipelines/base.py", line 232, in load_model model = model_class.from_pretrained(model, **kwargs) File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 375, in from_pretrained raise ValueError( ...<2 lines>... )ValueError: Unrecognized configuration class <class 'transformers_modules.tencent.Youtu_hyphen_VL_hyphen_4B_hyphen_Instruct.f0cd60da8a235a408b268400acc0ab5954ca19a0.configuration_youtu_vl.YoutuVLConfig'> for this kind of AutoModel: AutoModelForImageTextToText.Model type should be one of AriaConfig, AyaVisionConfig, BlipConfig, Blip2Config, ChameleonConfig, Cohere2VisionConfig, DeepseekVLConfig, DeepseekVLHybridConfig, Emu3Config, Ernie4_5_VL_MoeConfig, EvollaConfig, FastVlmConfig, Florence2Config, FuyuConfig, Gemma3Config, Gemma3nConfig, GitConfig, Glm46VConfig, Glm4vConfig, Glm4vMoeConfig, GotOcr2Config, IdeficsConfig, Idefics2Config, Idefics3Config, InstructBlipConfig, InstructBlipVideoConfig, InternVLConfig, JanusConfig, Kosmos2Config, Kosmos2_5Config, Lfm2VlConfig, LightOnOcrConfig, Llama4Config, LlavaConfig, LlavaNextConfig, LlavaNextVideoConfig, LlavaOnevisionConfig, Mistral3Config, MllamaConfig, Ovis2Config, PaddleOCRVLConfig, PaliGemmaConfig, PerceptionLMConfig, Pix2StructConfig, PixtralVisionConfig, Qwen2_5_VLConfig, Qwen2VLConfig, Qwen3VLConfig, Qwen3VLMoeConfig, ShieldGemma2Config, SmolVLMConfig, T5Gemma2Config, UdopConfig, VideoLlama3Config, VideoLlavaConfig, VipLlavaConfig, VisionEncoderDecoderConfig.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/pipelines/base.py", line 248, in load_model model = model_class.from_pretrained(model, **fp32_kwargs) File "/tmp/.cache/uv/environments-v2/6b4e7abd035cf45f/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 375, in from_pretrained raise ValueError( ...<2 lines>... )ValueError: Unrecognized configuration class <class 'transformers_modules.tencent.Youtu_hyphen_VL_hyphen_4B_hyphen_Instruct.f0cd60da8a235a408b268400acc0ab5954ca19a0.configuration_youtu_vl.YoutuVLConfig'> for this kind of AutoModel: AutoModelForImageTextToText.Model type should be one of AriaConfig, AyaVisionConfig, BlipConfig, Blip2Config, ChameleonConfig, Cohere2VisionConfig, DeepseekVLConfig, DeepseekVLHybridConfig, Emu3Config, Ernie4_5_VL_MoeConfig, EvollaConfig, FastVlmConfig, Florence2Config, FuyuConfig, Gemma3Config, Gemma3nConfig, GitConfig, Glm46VConfig, Glm4vConfig, Glm4vMoeConfig, GotOcr2Config, IdeficsConfig, Idefics2Config, Idefics3Config, InstructBlipConfig, InstructBlipVideoConfig, InternVLConfig, JanusConfig, Kosmos2Config, Kosmos2_5Config, Lfm2VlConfig, LightOnOcrConfig, Llama4Config, LlavaConfig, LlavaNextConfig, LlavaNextVideoConfig, LlavaOnevisionConfig, Mistral3Config, MllamaConfig, Ovis2Config, PaddleOCRVLConfig, PaliGemmaConfig, PerceptionLMConfig, Pix2StructConfig, PixtralVisionConfig, Qwen2_5_VLConfig, Qwen2VLConfig, Qwen3VLConfig, Qwen3VLMoeConfig, ShieldGemma2Config, SmolVLMConfig, T5Gemma2Config, UdopConfig, VideoLlama3Config, VideoLlavaConfig, VipLlavaConfig, VisionEncoderDecoderConfig.
tencent_Youtu-VL-4B-Instruct_0.txtAdded+58