custom_code_execution_files / Keye-VL-8B-Preview_0.txt
ariG23498's picture
ariG23498 HF Staff
Upload Keye-VL-8B-Preview_0.txt with huggingface_hub
4381670 verified
Traceback (most recent call last):
File "/tmp/Keye-VL-8B-Preview_0yPrrkq.py", line 12, in <module>
model = AutoModel.from_pretrained("Kwai-Keye/Keye-VL-8B-Preview", trust_remote_code=True)
File "/tmp/.cache/uv/environments-v2/f64622993fb28786/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 582, 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/f64622993fb28786/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/f64622993fb28786/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/f64622993fb28786/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: einops. Run `pip install einops`