Upload nvidia_NVIDIA-Nemotron-Parse-v1.1_0.txt with huggingface_hub
Browse files
nvidia_NVIDIA-Nemotron-Parse-v1.1_0.txt
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Use a pipeline as a high-level helper
|
| 3 |
+
from transformers import pipeline
|
| 4 |
+
|
| 5 |
+
pipe = pipeline("image-text-to-text", model="nvidia/NVIDIA-Nemotron-Parse-v1.1", trust_remote_code=True)
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
ERROR:
|
| 9 |
+
Traceback (most recent call last):
|
| 10 |
+
File "/tmp/nvidia_NVIDIA-Nemotron-Parse-v1.1_06lWIou.py", line 26, in <module>
|
| 11 |
+
pipe = pipeline("image-text-to-text", model="nvidia/NVIDIA-Nemotron-Parse-v1.1", trust_remote_code=True)
|
| 12 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 922, in pipeline
|
| 13 |
+
config = AutoConfig.from_pretrained(
|
| 14 |
+
model, _from_pipeline=task, code_revision=code_revision, **hub_kwargs, **model_kwargs
|
| 15 |
+
)
|
| 16 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1350, in from_pretrained
|
| 17 |
+
return config_class.from_pretrained(pretrained_model_name_or_path, **kwargs)
|
| 18 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 19 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/configuration_utils.py", line 640, in from_pretrained
|
| 20 |
+
return cls.from_dict(config_dict, **kwargs)
|
| 21 |
+
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
|
| 22 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/configuration_utils.py", line 808, in from_dict
|
| 23 |
+
config = cls(**config_dict)
|
| 24 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/nvidia/NVIDIA_hyphen_Nemotron_hyphen_Parse_hyphen_v1_dot_1/5934e4862c6f0e08107f95c592409929c825730c/hf_nemotron_parse_config.py", line 113, in __init__
|
| 25 |
+
vision_auto_config = get_class_from_dynamic_module(*encoder["auto_map"]["AutoConfig"].split("--")[::-1])
|
| 26 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module
|
| 27 |
+
final_module = get_cached_module_file(
|
| 28 |
+
repo_id,
|
| 29 |
+
...<8 lines>...
|
| 30 |
+
repo_type=repo_type,
|
| 31 |
+
)
|
| 32 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 467, in get_cached_module_file
|
| 33 |
+
get_cached_module_file(
|
| 34 |
+
~~~~~~~~~~~~~~~~~~~~~~^
|
| 35 |
+
pretrained_model_name_or_path,
|
| 36 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 37 |
+
...<8 lines>...
|
| 38 |
+
_commit_hash=commit_hash,
|
| 39 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 40 |
+
)
|
| 41 |
+
^
|
| 42 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file
|
| 43 |
+
modules_needed = check_imports(resolved_module_file)
|
| 44 |
+
File "/tmp/.cache/uv/environments-v2/b6ecda825d5459a1/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports
|
| 45 |
+
raise ImportError(
|
| 46 |
+
...<2 lines>...
|
| 47 |
+
)
|
| 48 |
+
ImportError: This modeling file requires the following packages that were not found in your environment: open_clip. Run `pip install open_clip`
|