Issue with AutoProcessor for ds4sd/SmolDocling-256M-preview
I’m trying to load the processor for ds4sd/SmolDocling-256M-preview using AutoProcessor, but I encounter the following error:
Code:
from transformers import AutoProcessor
processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
Error:
ValueError: Unrecognized processing class in ds4sd/SmolDocling-256M-preview. Can't instantiate a processor, a tokenizer, an image processor or a feature extractor for this model. Make sure the repository contains the files of at least one of those processing classes.
How can I fix it?
I don't know how you're getting this error unless you have an empty directory maybe at the path you are on. This definitely works, check the demo https://huggingface.co/spaces/ds4sd/SmolDocling-256M-Demo
I’m trying to load the processor for ds4sd/SmolDocling-256M-preview using AutoProcessor, but I encounter the following error:
Code:from transformers import AutoProcessor processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
Error:
ValueError: Unrecognized processing class in ds4sd/SmolDocling-256M-preview. Can't instantiate a processor, a tokenizer, an image processor or a feature extractor for this model. Make sure the repository contains the files of at least one of those processing classes.
How can I fix it?
Hi man, same problem here, did you succeed in the last 48h ? :D
Which transformers version are you on? I see same problem on different models: https://huggingface.co/jadechoghari/vfusion3d/discussions/7
@Shadokado
Check to see if you have the primary docling
package installed. If so it will pin your transformers
version below the required version for this model.