File size: 1,763 Bytes
8be3d1b
a52b94c
8be3d1b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9b9dff0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Traceback (most recent call last):
  File "/tmp/InternRobotics_VLAC_0gp4Ver.py", line 15, in <module>
    model = AutoModel.from_pretrained("InternRobotics/VLAC", trust_remote_code=True, torch_dtype="auto")
  File "/tmp/.cache/uv/environments-v2/c49290f3fbdea1ed/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 586, 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/c49290f3fbdea1ed/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 569, 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/c49290f3fbdea1ed/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 432, 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/c49290f3fbdea1ed/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 392, in get_cached_module_file
    modules_needed = check_imports(resolved_module_file)
  File "/tmp/.cache/uv/environments-v2/c49290f3fbdea1ed/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 224, in check_imports
    raise ImportError(
    ...<2 lines>...
    )
ImportError: This modeling file requires the following packages that were not found in your environment: einops, timm. Run `pip install einops timm`