Teklia/IAM-line
Viewer • Updated • 10.4k • 3.56k • 23
How to use SonYiHF/Verus-OCR with Transformers:
# 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="SonYiHF/Verus-OCR") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("SonYiHF/Verus-OCR", dtype="auto")Verus-OCR is a scratch OCR model project by 8F-ai.
Status: training code is staged, but the first H200 Hugging Face Jobs launch was blocked by insufficient prepaid Jobs credits on the active account.
Requested first run:
h200Teklia/IAM-line, a real handwritten OCR datasetVerusOCRForCasualLMmax_position_embeddings: 8190Run after adding Jobs credits:
hf jobs uv run --flavor h200 --timeout 1h --secrets HF_TOKEN --label project=verus-ocr --label model=Verus-OCR --detach train_verus_ocr.py --repo-id SonYiHF/Verus-OCR --run-minutes 52 --max-steps 1600 --dataset-name Teklia/IAM-line --max-position-embeddings 8190
Use --repo-id 8F-ai/Verus-OCR once the active token has write access to the 8F-ai namespace.