Image-Text-to-Text
Transformers
ONNX
Safetensors
English
idefics3
conversational

Issue with AutoProcessor for ds4sd/SmolDocling-256M-preview

#2
by dr-red - opened

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?

Docling org

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

asnassar changed discussion status to closed

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

Docling org

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.

@dr-red oh sorry, you too ^^

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment