Upload nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142```CODE: # Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8", torch_dtype="auto")```
ERROR: Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 757, in resolve_trust_remote_code answer = input( f"{error_message} You can inspect the repository content at https://hf.co/{model_name}.\n" f"You can avoid this prompt in future by passing the argument `trust_remote_code=True`.\n\n" f"Do you wish to run the custom code? [y/N] " )EOFError: EOF when reading a line
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1lCIMjW.py", line 18, in <module> model = AutoModel.from_pretrained("nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8", torch_dtype="auto") File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained config, kwargs = AutoConfig.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... **kwargs, ^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1341, in from_pretrained trust_remote_code = resolve_trust_remote_code( trust_remote_code, pretrained_model_name_or_path, has_local_code, has_remote_code, upstream_repo ) File "/tmp/.cache/uv/environments-v2/c325d41be7923305/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 769, in resolve_trust_remote_code raise ValueError( ...<2 lines>... )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 . You can inspect the repository content at https://hf.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8.Please pass the argument `trust_remote_code=True` to allow custom code to be run.nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_1.txtAdded+42