CoolFace
Datasetpublic

model-metadata/custom_code_execution_files

sourceHugging Faceupdated 11mo agoView on Hugging Face
1likes4.2kdownloads
vikhyatk_moondream2_0.txt35 linesDownload Raw Back to root
1Traceback (most recent call last):2  File "/tmp/vikhyatk_moondream2_0OEJSSq.py", line 13, in <module>3    pipe = pipeline("image-text-to-text", model="vikhyatk/moondream2", trust_remote_code=True)4  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline5    config = AutoConfig.from_pretrained(6        model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs7    )8  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1302, in from_pretrained9    config_class = get_class_from_dynamic_module(10        class_ref, pretrained_model_name_or_path, code_revision=code_revision, **kwargs11    )12  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 569, in get_class_from_dynamic_module13    final_module = get_cached_module_file(14        repo_id,15    ...<8 lines>...16        repo_type=repo_type,17    )18  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 432, in get_cached_module_file19    get_cached_module_file(20    ~~~~~~~~~~~~~~~~~~~~~~^21        pretrained_model_name_or_path,22        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^23    ...<8 lines>...24        _commit_hash=commit_hash,25        ^^^^^^^^^^^^^^^^^^^^^^^^^26    )27    ^28  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 392, in get_cached_module_file29    modules_needed = check_imports(resolved_module_file)30  File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 224, in check_imports31    raise ImportError(32    ...<2 lines>...33    )34ImportError: This modeling file requires the following packages that were not found in your environment: PIL. Run `pip install PIL`35