Downloads · 30 days
22
11% of all-time downloads
small-models-for-glam/index-card-extractor-4b-v0.1
index-card-extractor-4b-v0.1 is a image-text-to-text model from small-models-for-glam. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Research preview (v0.1). An independent research fine-tune — not an official NuMind release. Built on (and credited to) NuExtract-3 via the basemodel metadata. First-pass extractor for human review, not production gro…
Downloads · 30 days
22
11% of all-time downloads
All-time downloads
193
Public
Parameters
4.5B
9.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors9.3 GB · 100%
From the Hugging Face model README
Research preview (v0.1). An independent research fine-tune — not an official NuMind release. Built on (and credited to) NuExtract-3 via the
base_modelmetadata. First-pass extractor for human review, not production ground truth.
A 4B open vision-language model that turns historical index-card images into structured JSON, following a schema you provide at inference — including schemas it was never trained on. A domain-adapted NuExtract-3 (Qwen3.5-4B base, Apache-2.0), fine-tuned (LoRA) on archival card collections from libraries and archives.
Hand it a card image and a JSON template / Pydantic schema, get back JSON shaped to that schema. It keeps NuExtract-3's general schema-following (it follows unseen schemas), and adds strong domain knowledge of handwritten/typed catalogue, vital-record and manuscript cards.
| collection | metric | this model | reference |
|---|---|---|---|
| Teklia (FR handwritten deaths) | exact field-F1 | 0.887 | NuExtract-3 zero-shot 0.24 |
| NLS Advocates (manuscript catalogue) | retrieval score | 0.726 | Qwen3-VL-8B zero-shot 0.760 |
| NLS Advocates | manuscript-number F1 | 0.952 | Qwen3-VL-8B 0.886 |
| Southborough (EN handwritten deaths) | macro field-F1 | 0.750¹ | — (new collection) |
| Rubenstein (UNSEEN schema) | valid-JSON / key-conformance | 1.000 / 1.000 | base 0.733 / 1.000 |
¹ The Southborough test set is agent-labelled, not human-verified → relative to those labels, not gold. Teklia and NLS numbers are against human-grade ground truth.
Notably, on the manuscript-number field (the load-bearing retrieval field) the 4B model exceeds the 8B that generated part of its training labels — though on overall NLS retrieval the 8B (0.760) still leads this model (0.726).
numind/NuExtract3. No RL — GRPO was
evaluated and found not to help this task (see write-up).Libraries, archives and museums digitising card catalogues / index drawers into ingestible structured records. Define the schema your catalogue needs; run the model per collection. Best used as a first-pass extractor with human review, not unattended ground truth.
Works exactly like NuExtract-3 — pass a card image plus a template (or a Pydantic schema), get JSON shaped to it. Both interfaces are retained, including on schemas the model never trained on (verified: 100% valid, schema-conforming JSON on a held-out collection, better coverage than base).
import json
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(MODEL_ID, trust_remote_code=True, device_map="auto")
processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)
template = { # your collection's schema — define whatever fields you need
"name": "verbatim-string",
"date_of_death": "string",
"cause_of_death": "string",
"age": "string",
"birthplace": "string",
}
messages = [{"role": "user", "content": [{"type": "image", "image": card_image}]}]
text = processor.apply_chat_template(
messages, template=json.dumps(template, indent=2),
enable_thinking=False, add_generation_prompt=True, tokenize=False,
)
# ... processor(text, images=...) -> model.generate(...) -> JSON shaped to `template`
Use greedy / non-thinking decoding (reasoning mode was trained out). A Pydantic schema works via
Model.model_json_schema() → NuExtract template (see the NuExtract-3 card / numind utils).
Full pipeline, scorer, eval scripts and per-collection schemas are in the project write-up. The evidence here suggests a collaborative, multi-institution index-card GT corpus could yield one strong shared open model for GLAM card digitisation — adding collections improved this model's ability to follow unseen schemas. Contributions of labelled card collections welcome.