ariG23498 HF Staff commited on
Commit
db04611
·
verified ·
1 Parent(s): 468fd19

Upload nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1.txt with huggingface_hub

Browse files
nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1.txt ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ # Load model directly
3
+ from transformers import AutoModel
4
+ model = AutoModel.from_pretrained("nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8", torch_dtype="auto")
5
+ ```
6
+
7
+ ERROR:
8
+ Traceback (most recent call last):
9
+ File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 757, in resolve_trust_remote_code
10
+ answer = input(
11
+ f"{error_message} You can inspect the repository content at https://hf.co/{model_name}.\n"
12
+ f"You can avoid this prompt in future by passing the argument `trust_remote_code=True`.\n\n"
13
+ f"Do you wish to run the custom code? [y/N] "
14
+ )
15
+ EOFError: EOF when reading a line
16
+
17
+ During handling of the above exception, another exception occurred:
18
+
19
+ Traceback (most recent call last):
20
+ File "/tmp/nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1lCIMjW.py", line 18, in <module>
21
+ model = AutoModel.from_pretrained("nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8", torch_dtype="auto")
22
+ File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained
23
+ config, kwargs = AutoConfig.from_pretrained(
24
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
25
+ pretrained_model_name_or_path,
26
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
+ ...<4 lines>...
28
+ **kwargs,
29
+ ^^^^^^^^^
30
+ )
31
+ ^
32
+ File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1341, in from_pretrained
33
+ trust_remote_code = resolve_trust_remote_code(
34
+ trust_remote_code, pretrained_model_name_or_path, has_local_code, has_remote_code, upstream_repo
35
+ )
36
+ File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 769, in resolve_trust_remote_code
37
+ raise ValueError(
38
+ ...<2 lines>...
39
+ )
40
+ ValueError: The repository nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8 contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8 .
41
+ You can inspect the repository content at https://hf.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8.
42
+ Please pass the argument `trust_remote_code=True` to allow custom code to be run.