AIAnytime / AIAnytime/SmolDocling-OCR-App
how to load model from local disk
- 主要言語
- Python
- スター
- 260
- フォーク
- 42
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
i download model from huggingface, and change model path as like:
` processor = AutoProcessor.from_pretrained("/home/ds4sd/SmolDocling-256M-preview")
model = AutoModelForVision2Seq.from_pretrained(
"home/ds4sd/SmolDocling-256M-preview",
torch_dtype=torch.float32, # Using simpler dtype
).to(device)`
when i try to run, error occurs:
Error loading model: 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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。