Upload p-e-w_gemma-3-12b-it-heretic_0.txt with huggingface_hub
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("image-text-to-text", model="p-e-w/gemma-3-12b-it-heretic")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/a2b1707762f698b7/lib/python3.13/site-packages/transformers/image_processing_base.py", line 354, in get_image_processor_dict resolved_image_processor_file = resolved_image_processor_files[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/p-e-w_gemma-3-12b-it-heretic_01lzhRU.py", line 26, in <module> pipe = pipeline("image-text-to-text", model="p-e-w/gemma-3-12b-it-heretic") File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1197, in pipeline raise e File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1188, in pipeline processor = AutoProcessor.from_pretrained(processor, _from_pipeline=task, **hub_kwargs, **model_kwargs) File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/models/auto/processing_auto.py", line 396, in from_pretrained return processor_class.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, trust_remote_code=trust_remote_code, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/processing_utils.py", line 1394, in from_pretrained args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs) File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/processing_utils.py", line 1453, in _get_arguments_from_pretrained args.append(attribute_class.from_pretrained(pretrained_model_name_or_path, **kwargs)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/models/auto/image_processing_auto.py", line 494, in from_pretrained raise initial_exception File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/models/auto/image_processing_auto.py", line 476, in from_pretrained config_dict, _ = ImageProcessingMixin.get_image_processor_dict( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, image_processor_filename=image_processor_filename, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/a2b1707762f698b7/lib/python3.13/site-packages/transformers/image_processing_base.py", line 361, in get_image_processor_dict raise OSError( ...<4 lines>... )OSError: Can't load image processor for 'p-e-w/gemma-3-12b-it-heretic'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'p-e-w/gemma-3-12b-it-heretic' is the correct path to a directory containing a preprocessor_config.json filep-e-w_gemma-3-12b-it-heretic_0.txtAdded+59