| Traceback (most recent call last): |
| File "/tmp/vikhyatk_moondream2_0vgzNSQ.py", line 13, in <module> |
| pipe = pipeline("image-text-to-text", model="vikhyatk/moondream2", trust_remote_code=True) |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 931, in pipeline |
| config = AutoConfig.from_pretrained( |
| model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs |
| ) |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1211, in from_pretrained |
| config_class = get_class_from_dynamic_module( |
| class_ref, pretrained_model_name_or_path, code_revision=code_revision, **kwargs |
| ) |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 570, in get_class_from_dynamic_module |
| final_module = get_cached_module_file( |
| repo_id, |
| ...<8 lines>... |
| repo_type=repo_type, |
| ) |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 433, in get_cached_module_file |
| get_cached_module_file( |
| ~~~~~~~~~~~~~~~~~~~~~~^ |
| pretrained_model_name_or_path, |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ...<8 lines>... |
| _commit_hash=commit_hash, |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ) |
| ^ |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 393, in get_cached_module_file |
| modules_needed = check_imports(resolved_module_file) |
| File "/tmp/.cache/uv/environments-v2/2a90239f0d4c576b/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 225, in check_imports |
| raise ImportError( |
| ...<2 lines>... |
| ) |
| ImportError: This modeling file requires the following packages that were not found in your environment: PIL. Run `pip install PIL` |
|
|