Flintglass PrismParse-2B

Flintglass PrismParse-2B is an ultra-compact, Apache-2.0 2.2B Vision-Language Document Parsing & OCR specialist built on Qwen/Qwen3.5-2B (4.2 GB BF16, ~1.5 GB Q4_K_M GGUF). Designed for edge, CPU, Apple Silicon, and high-throughput RAG document ingestion pipelines, PrismParse-2B outperforms the 4Γ— larger Qwen/Qwen3.5-9B on scientific PDF table extraction (79.58% Cell F1 / 90.98% HTML 1-NED vs. 76.81% / 70.92%) and printed/handwritten math LaTeX OCR (95.07% 1-NED / 57.04% Exact Match vs. 92.52% / 46.65%), while achieving 100% valid JSON on receipts and invoices (87.27% CORD-v2 F1, 91.45% Invoices F1).


Zero-Leakage 5-Benchmark Evaluation (2,244 Held-Out Document Images)

Model (All Apache 2.0) Avg 5-Bench CORD-v2 Receipts (Field F1 / Valid JSON) Invoices (Field F1 / Valid JSON) PubTabNet Tables (Cell F1 / HTML 1-NED) LaTeX-OCR Math (1-NED / Exact) DocVQA (ANLS)
Qwen/Qwen3.5-2B (Base) 49.65% 2.87% / 99.0% 3.08% / 100% 61.99% / 64.50% 90.71% / 37.68% 89.62%
Qwen/Qwen3.5-4B (Base) 53.83% 7.75% / 100% 3.60% / 78.9% 72.84% / 67.84% 91.59% / 40.67% 93.36%
Qwen/Qwen3.5-9B (Base, 4Γ— larger) 54.06% 4.64% / 100% 2.35% / 76.3% 76.81% / 70.92% 92.52% / 46.65% 94.00%
flintglass/PrismParse-2B (2.2B) 88.44% 87.27% / 100% 91.45% / 100% 79.58% / 90.98% 95.07% / 57.04% 88.82%
flintglass/PrismParse-4B (4.5B) 90.05% 87.61% / 100% 91.18% / 100% 83.95% / 93.00% 95.80% / 59.33% 91.69%

Quickstart

import torch
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor

model_id = "flintglass/PrismParse-2B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
    model_id, torch_dtype=torch.bfloat16, device_map="auto"
)

image = Image.open("receipt.jpg").convert("RGB")
prompt = (
    "Extract all structured fields from this receipt image as a single valid JSON object "
    "(with keys such as menu, sub_total, total). Output ONLY valid JSON with no markdown or extra text."
)

messages = [{"role": "user", "content": [{"type": "image", "image": image}, {"type": "text", "text": prompt}]}]
inputs = processor.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True,
    return_dict=True, return_tensors="pt", enable_thinking=False
).to(model.device)

out = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

See flintglass/PrismParse-4B for the full prompt reference table, LaTeX printed/handwritten breakdown, and permissive data provenance.

License

Apache 2.0. Built by Flintglass Labs.

Downloads last month
37
Safetensors
Model size
2B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for flintglass/PrismParse-2B

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(786)
this model
Quantizations
1 model

Collection including flintglass/PrismParse-2B