Upload tencent_Youtu-VL-4B-Instruct_1.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627```CODE: # Load model directlyfrom transformers import AutoModelForCausalLMmodel = AutoModelForCausalLM.from_pretrained("tencent/Youtu-VL-4B-Instruct", trust_remote_code=True, dtype="auto")```
ERROR: Traceback (most recent call last): File "/tmp/tencent_Youtu-VL-4B-Instruct_1U3OsCc.py", line 25, in <module> model = AutoModelForCausalLM.from_pretrained("tencent/Youtu-VL-4B-Instruct", trust_remote_code=True, dtype="auto") File "/tmp/.cache/uv/environments-v2/33281116f25cd2ab/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 354, in from_pretrained model_class = get_class_from_dynamic_module( class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs ) File "/tmp/.cache/uv/environments-v2/33281116f25cd2ab/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 572, in get_class_from_dynamic_module final_module = get_cached_module_file( repo_id, ...<7 lines>... repo_type=repo_type, ) File "/tmp/.cache/uv/environments-v2/33281116f25cd2ab/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 410, in get_cached_module_file modules_needed = check_imports(resolved_module_file) File "/tmp/.cache/uv/environments-v2/33281116f25cd2ab/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 258, in check_imports raise ImportError( ...<2 lines>... )ImportError: This modeling file requires the following packages that were not found in your environment: cv2, pydensecrf. Run `pip install cv2 pydensecrf`tencent_Youtu-VL-4B-Instruct_1.txtAdded+27