ariG23498 HF Staff commited on
Commit
34098e3
·
verified ·
1 Parent(s): 54b5004

Upload nvidia_omnivinci_1.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. nvidia_omnivinci_1.txt +37 -0
nvidia_omnivinci_1.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Load model directly
3
+ from transformers import AutoModel
4
+ model = AutoModel.from_pretrained("nvidia/omnivinci", trust_remote_code=True, torch_dtype="auto")
5
+ ```
6
+
7
+ ERROR:
8
+ Traceback (most recent call last):
9
+ File "/tmp/nvidia_omnivinci_1WDbFYo.py", line 16, in <module>
10
+ model = AutoModel.from_pretrained("nvidia/omnivinci", trust_remote_code=True, torch_dtype="auto")
11
+ File "/tmp/.cache/uv/environments-v2/8038d2e724327129/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained
12
+ config, kwargs = AutoConfig.from_pretrained(
13
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
14
+ pretrained_model_name_or_path,
15
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16
+ ...<4 lines>...
17
+ **kwargs,
18
+ ^^^^^^^^^
19
+ )
20
+ ^
21
+ File "/tmp/.cache/uv/environments-v2/8038d2e724327129/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1346, in from_pretrained
22
+ config_class = get_class_from_dynamic_module(
23
+ class_ref, pretrained_model_name_or_path, code_revision=code_revision, **kwargs
24
+ )
25
+ File "/tmp/.cache/uv/environments-v2/8038d2e724327129/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module
26
+ final_module = get_cached_module_file(
27
+ repo_id,
28
+ ...<8 lines>...
29
+ repo_type=repo_type,
30
+ )
31
+ File "/tmp/.cache/uv/environments-v2/8038d2e724327129/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file
32
+ modules_needed = check_imports(resolved_module_file)
33
+ File "/tmp/.cache/uv/environments-v2/8038d2e724327129/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports
34
+ raise ImportError(
35
+ ...<2 lines>...
36
+ )
37
+ ImportError: This modeling file requires the following packages that were not found in your environment: einops, whisper. Run `pip install einops whisper`