How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
# Warning: Pipeline type "image-to-text" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# 'pip install "transformers<5.0.0'
from transformers import pipeline

pipe = pipeline("image-to-text", model="Riksarkivet/trocr-base-handwritten-hist-swe-1")
# Load model directly
from transformers import AutoTokenizer, AutoModelForMultimodalLM

tokenizer = AutoTokenizer.from_pretrained("Riksarkivet/trocr-base-handwritten-hist-swe-1")
model = AutoModelForMultimodalLM.from_pretrained("Riksarkivet/trocr-base-handwritten-hist-swe-1")
Quick Links
A newer version of this model is available: Riksarkivet/trocr-base-handwritten-hist-swe-2
README.md exists but content is empty.
Downloads last month
57
Safetensors
Model size
0.4B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Riksarkivet/trocr-base-handwritten-hist-swe-1

Finetuned
(36)
this model

Collection including Riksarkivet/trocr-base-handwritten-hist-swe-1