Jan Sverre Bauge

IBM Granite Docling V2 turns document pages into structured data

IBM Granite Docling V2 turns page images into structured DocLang. Here is how the open 2B and 500M models compare on accuracy, speed and practical use.

IBM Granite Docling V2 converting a document page into structured DocLang data
Granite Docling V2 converts page images into structured DocLang with models tuned for either accuracy or throughput.

Granite Docling V2 turns an entire document page into structured data in a single pass, and IBM has released the models with open weights under the Apache 2.0 license. That matters if you need to extract tables, formulas, code, pictures and ordinary text from PDFs without stitching together a long chain of OCR, layout analysis and post-processing tools.

The family consists of a 2B model that prioritizes accuracy and a 500M model that prioritizes speed. Both take a page image as input and produce DocLang, a compact format that preserves the type and position of each element as well as the reading order. The result can then be converted into formats including Markdown, HTML and JSON.

That combination is what makes this release useful. The models do not merely extract words. They try to preserve the document as a document. IBM’s own tests report strong results, but those figures are neither my own test nor an independent verdict. They are still good enough to put Granite Docling V2 on the shortlist for anyone building RAG systems, document archives or automated workflows.

What is Granite Docling V2?

Granite Docling V2 is a family of two compact vision-language models built for document conversion. According to IBM Research, the 2B and 500M models convert an image of a page directly into DocLang in one generation instead of passing it through several separate models.

A conventional document pipeline may use one stage for OCR, another to find columns and page elements, another to reconstruct tables, and a final stage to split the text into chunks. Every stage can introduce errors that the next stage inherits. Granite Docling V2 combines those tasks in one model generation. That does not magically solve every document problem, but it gives developers a simpler architecture to understand, validate and operate.

Both models are available under Apache 2.0 and work with common frameworks including Transformers, vLLM, MLX-VLM and Docling. That makes them far more valuable than a closed demo with a polished screenshot. You can inspect the models, run them on your own infrastructure and build around them without being tied to a single document API.

IBM has focused the Granite family on compact, practical models for some time. Docling V2 applies that approach to a clearly defined problem: making document pages understandable to the rest of an AI system. It is a narrower job than a general-purpose multimodal assistant, and that focus is a strength here.

DocLang preserves more than the words

DocLang is a structured, XML-like document language in which every element carries its type, coordinates and position in the reading order. The Granite Docling V2 technical report describes support for headings, paragraphs, nested lists, tables with full cell structure, formulas, code, pictures and captions.

The distinction matters in practice. Plain OCR may tell you which words appear on a page, but it may not tell you whether a value belongs in the correct table column, whether a piece of text is a caption, or which of two columns should be read first. Once that structure is lost, search, RAG and agent systems all start with poorer material.

DocLang represents coordinates on a 512 by 512 grid, and both tags and location coordinates use compact tokens. IBM says this lets the format use fewer tokens than HTML for the same page structure. That can shorten generation time, but the more important gain is that the output is strict enough for machine validation and rich enough for downstream processing.

DocLang is not intended to be the final format that a person has to read. IBM says Docling can convert a DocLang page without loss into Markdown, HTML or JSON. A task prompt can also request only tables, formulas or text with coordinates when the rest of the page is irrelevant.

Granite Docling V2 preserving tables, formulas and reading order in DocLang
DocLang preserves element types, coordinates and reading order instead of returning a flat wall of text.

The 2B model favors accuracy, while 500M favors speed

The choice between the two models looks fairly straightforward on paper. Granite Docling V2 2B scored 95.8% on IBM’s pooled content metric across 20,502 pages from ten benchmarks. With vLLM and multi-token prediction speculative decoding, it processed about 10.1 pages per second on one Nvidia H100.

The smaller Granite Docling V2 500M scored 94.0% and reached 18.5 pages per second in the same type of setup. Without the reported speculative decoding, throughput was 6.8 pages per second for 2B and 14.2 for 500M. That is a substantial difference when a system has millions of pages waiting in a queue.

The 500M model uses a learned density router that allocates more vision tokens to dense pages and fewer to ordinary ones. That makes sense: a page with one heading and two paragraphs should not require the same visual processing budget as a financial statement packed with notes and tables.

I would choose 2B when the quality of tables, formulas and reading order matters more than maximum throughput. The 500M model is more tempting for large archives, queues full of simple pages or systems where resource use must stay under control. The 1.8 percentage-point gap in IBM’s pooled metric does not tell you which model is best for your documents. That depends on the document type and which errors actually cost you something.

Granite Docling V2 comparison showing the accuracy of 2B and the speed of 500M
IBM’s measurements show the highest accuracy from 2B and the highest throughput from 500M. Your own documents should decide which tradeoff fits.

The benchmark numbers need the right label

A score of 95.8% does not mean that 95.8% of every document will be perfect. The metric is page-content accuracy calculated as one minus normalized edit distance, pooled across all pages. It includes text in table cells, formulas and code. A strong overall score can still hide failures that are serious in one particular workflow.

IBM used 20,502 pages from ten benchmarks for the accuracy evaluation. The throughput test used 2,078 ParseBench pages on one H100, with different concurrency levels and the recommended settings for each model. That is a broad and useful vendor result, but it remains a vendor result. I have not run these models myself.

The H100 numbers should not be read as the speed you will get from an ordinary PC or a small server. The 2B model card says the checkpoint needs about 6 GB in bfloat16 and roughly 4 GB as an 8-bit MLX version. That makes local operation realistic on hardware far more modest than an H100, but the resulting throughput will be different.

Use your own invoices, scanned forms, reports, two-column PDFs and awkward tables as the real test set. Measure missing elements, incorrect reading order, broken table cells and invalid DocLang output. A benchmark average is useful for selecting candidates. Your own documents determine whether the system is ready for work.

Where does it fit in a RAG pipeline?

Granite Docling V2 belongs near the beginning of a pipeline, before embedding, retrieval and agent work. The model converts a page into a structured document. The system can then select the relevant fields, split the content into meaningful chunks, export it to the required format and only then create embeddings or send it to a language model.

That is better than throwing a flat wall of OCR text into a vector database. A table row should not be separated at random from its column heading. A caption should stay connected to its picture. A formula should not dissolve into a handful of loose characters. Better document structure improves retrieval and reduces the amount of guessing that a later model has to do.

Local operation is also important for archives and businesses. Documents may contain contracts, personal information, financial data and internal records that should not be sent to a random external API. The Apache 2.0 license and support for familiar runtimes make it possible to keep both the model and the data inside your own infrastructure.

That does not remove the need for access control, logging and data governance. Local AI is not automatically secure AI. It does, however, let you decide where the documents are processed, how the output is stored and which agents are allowed to read it.

The limitations matter more than the model name

Granite Docling V2 works one page at a time. A complete document pipeline must still preserve the page sequence and handle elements that continue across pages. A table that carries over to the next page, cross-references and document logic spread across hundreds of pages are larger problems than reading a single page image.

IBM reports that the models improve substantially on the earlier Granite-Docling 258M across several languages and on handwriting, although printed text remains more accurate. The highlighted language gains include Chinese, Japanese, Korean, Hindi, Russian and Arabic. The available sources do not provide a separate Norwegian quality measurement, so I will not pretend that Norwegian document quality has been tested.

Charts are another boundary. Docling V2 can preserve a picture, its caption and text printed inside it, but IBM assigns more advanced extraction of data points from complex charts to Granite Vision 5.0. Document conversion and visual analysis are related jobs, but they are not the same job.

Then there is the unglamorous part that decides whether any of this survives production: validation, error routing and human review. A system that processes 18.5 pages per second can also produce mistakes very quickly. Critical fields should be checked against the source, while invalid DocLang or low-confidence output should send the page through another pass or into a manual queue.

This is a practical open model release

Granite Docling V2 addresses a concrete problem without requiring an entire document workflow to move into a closed cloud service. The 2B model prioritizes accuracy, the 500M model prioritizes throughput, and both produce a format that preserves more of the page than flat OCR text.

The important idea is that IBM treats structure as part of the content. It is easy to obsess over how many words OCR recognized while missing the table that fell apart or the paragraphs that arrived in the wrong order. For RAG systems and agents, those structural failures often cost far more than an ordinary typo.

These models are not complete document infrastructure in a box, and IBM’s benchmarks still need to be tested against real workloads. Even so, this is a strong candidate for anyone who wants local, controllable document conversion. Start with a representative document set, compare 2B and 500M on the errors that matter, and choose speed only after the quality is good enough.

Frequently asked questions

Can Granite Docling V2 run locally?

Yes. Both models have open weights under Apache 2.0 and support common local runtimes. IBM lists Transformers, vLLM, MLX-VLM and Docling, although actual speed depends on the hardware, quantization and server configuration.

How is DocLang different from ordinary OCR?

OCR primarily extracts characters and words. DocLang also preserves element types, coordinates and reading order, including structure for tables, formulas, code, pictures and captions. That gives RAG systems and agents richer, more controllable input.

Which Granite Docling V2 model should I choose?

Choose 2B when document accuracy matters most, and consider 500M when throughput and resource use carry more weight. IBM measured 95.8% for 2B and 94.0% for 500M, but your own document set should decide the choice.

Does Granite Docling V2 work with Norwegian documents?

The models are multilingual, but the available sources do not report a separate Norwegian quality measurement. That is not evidence of either good or poor support. Norwegian document types, scans, tables and characters need evaluation on a representative dataset.