Granite-Docling-258M
IBM’s 258M-parameter layout-aware document model — Apache 2.0, runs on a laptop, pairs with the Docling pipeline.
| Params | Task type | License | Released | Access | Pricing |
|---|---|---|---|---|---|
| 258M | Document understanding (layout, tables, reading order) | Apache 2.0 | Aug 2025 | Self-host (Docling / transformers) | Free (your hardware) |
What it is
Granite-Docling-258M is IBM’s tiny open-weights document model, released August 2025 as part of the Docling project. It is a 258-million-parameter vision-language model whose entire job is structural: looking at a page and telling you where the title, body text, table, figure and caption live, in what reading order. It is not a general LLM and not a handwriting reader — it is a specialist, and it is astonishingly cheap to run.
Architecture and how it reads documents
Granite-Docling is an end-to-end multimodal model in the Idefics-class lineage: a compact vision encoder feeds a small Granite language backbone that emits structured document tokens (layout classes, bounding structure and text) in a single pass. In practice IBM ships it as one component inside the Docling toolkit, which composes it with PDF parsing, table structure recognition and export to markdown/JSON/HTML. Exact internals are hedged as of Nov 2026; the important architectural fact is that it replaces a cascade of heuristic rules with one tiny learned model.
Accuracy and table/handwriting handling
Per-parameter, it is one of the strongest doc-understanding models around — DocVQA-class results for a quarter-billion parameters, as of Nov 2026. Tables come through with correct structure on clean digital PDFs. Handwriting is essentially out of scope, and corrupted, skewed or noisy scans are not its home turf. For born-digital PDFs, contracts and reports, accuracy is genuinely good; for scanned archival paper, look elsewhere.
Strengths
- Runs anywhere. 258M params — a laptop CPU or modest GPU handles serious volume; no datacenter required.
- Apache 2.0. Cleanest possible license for commercial embedding and redistribution.
- Docling integration. Drops into a maintained open toolkit with exporters to markdown, JSON and HTML.
- Reading order and layout. Multi-column, figures, captions and footnotes come out in sane order.
Weaknesses
- Tiny capacity. Dense handwriting, severe skew, stamps and watermarks defeat it.
- Not a text-reconstruction monster. Complex nested tables and formula-heavy pages lag bigger document VLMs.
- English-centric training. Works on other languages but with thinner validation.
- Docling-shaped. Best consumed through the Docling pipeline; raw standalone use is more DIY.
Best for / avoid for
Best for: born-digital PDF corpora, contracts, reports and white papers; on-device or air-gapped parsing; high-volume reading-order extraction for RAG ingestion; embedded pipelines where a GPU per page is impossible.
Avoid for: archival scans, handwritten forms, dense mathematical typesetting, or anywhere you need a cloud-grade invoice schema out of the box.
Variants
Ships as the sole Granite-Docling member; the meaningful sibling is the upstream Docling pipeline itself, which pairs it with PDF backends, OCR engines (for image PDFs) and table-structure models. IBM positions it as a building block, not a product line.
Pricing and access
Free. Apache 2.0 weights on Hugging Face; no keys, quotas or telemetry. Hardware cost is a fraction of a single GPU, or none at all for CPU batch jobs. If you need hosted inference, IBM watsonx offers managed access, but that’s optional, not required.
How to run it
In practice, Docling renders each PDF page to an image, runs Granite-Docling for structure and (optionally) a bundled OCR engine for glyph recovery, then assembles the pieces into a DoclingDocument you can export as markdown, JSON, HTML or lossless CSV for tables. The pipeline is deterministic and debuggable — a luxury the end-to-end VLMs don’t offer.
The intended path is the Docling library:
from docling.document_converter import DocumentConverter
converter = DocumentConverter() # uses Granite-Docling under the hood
result = converter.convert("report.pdf")
print(result.document.export_to_markdown())
Direct transformers use is possible with trust_remote_code=True on ibm-granite/granite-docling-258M, but Docling wraps the fiddly parts (page rendering, token budget, export). For batch jobs, point Docling at a folder and let it grind overnight on a workstation. Keep expectations calibrated: if the PDF is a scan, enable an OCR backend inside Docling or pre-OCR with Surya/Tesseract.
Benchmarks snapshot
Models-data (as of Nov 2026): “Strong doc-understanding per-parameter (DocVQA class).” Approximate public figures: high scores on DocVQA-style benchmarks relative to its size, solid table-structure accuracy on clean inputs, and throughput an order of magnitude above billion-parameter VLMs. Exact numbers vary wildly by PDF quality; treat comparisons against DeepSeek-OCR and dots.ocr as apples-to-oranges — this model trades depth for speed and licensing freedom.
How it stacks up
vs DeepSeek-OCR / dots.ocr: the big open models crush it on hard pages; Granite-Docling crushes them on cost, size, licensing and CPU-friendliness. Pick based on page difficulty and hardware, not leaderboards.
vs Tesseract 5 / Surya / Marker: vs Tesseract, it understands layout instead of just glyphs; vs Surya/Marker, it’s smaller and Apache-clean but less battle-hardened on scans.
vs cloud APIs: clouds win on invoice/ID schemas, handwriting and SLAs; Granite-Docling wins on privacy, offline operation and zero recurring cost.
PeaBox fit
Granite-Docling is the default first stage for the PeaBox-Lab document pipelines: convert repo PDFs and specs to structured markdown locally, then hand off to the PeaBox AI Workbench for summarization and analysis. Air-gapped and fully open-source, which is exactly how we like our ingestion layers.
The practitioner’s take
If your documents are born-digital and your budget is zero, start here. Granite-Docling-258M is the rare case where “tiny” is a feature: Apache 2.0, laptop-runnable, Docling-integrated, and good enough that you may never need to rent a GPU for PDF triage again. It will not read your grandfather’s cursive, and it will not file your taxes, but as a layout-aware first pass it earns its keep daily.