Upload nvidia_NVIDIA-Nemotron-Nano-12B-v2-VL-FP8_0.txt with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("image-text-to-text", model="nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8")messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] },]pipe(text=messages)```
ERROR: Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/2bdff7a515a609ef/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_0FB05xA.py", line 19, in <module> pipe = pipeline("image-text-to-text", model="nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-FP8") File "/tmp/.cache/uv/environments-v2/2bdff7a515a609ef/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline config = AutoConfig.from_pretrained( model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs ) File "/tmp/.cache/uv/environments-v2/2bdff7a515a609ef/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/2bdff7a515a609ef/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_0.txtAdded+47