Built by IBM's Docling team, Granite Docling V2 is the first DocLang-native vision-language model (VLM) family: two models trained to read a page and write it back out in DocLang directly.

Diagram titled 'Any page in. DocLang out.' A sample page on the left is labeled by element type — heading, text, table, picture, formula, caption. An arrow through Granite Docling V2 leads to the resulting DocLang XML on the right, with matching tags for each element.
Granite Docling V2 reads page images and natively outputs DocLang.

Convert documents with it today

The family ships in two sizes. The 2B model is the most accurate, built to capture page layout precisely and handle dense pages, tables, and formulas — the complexity of papers, reports, forms, and slides. The 500M model is built for scale: it converts 18.49 pages per second on a single GPU, with accuracy close to the 2B model's, looking closer only where a page actually needs it. Pick the size that fits your throughput and accuracy budget — both run through Transformers, vLLM, or MLX.

A single <doclang> prompt reads a full page; task-specific prompts such as <ocr>, <table>, <formula>, and <layout> target one element type at a time.

State of the art, by design

Using DocLang, Granite Docling V2 tops the field among document-conversion models — the 2B model outperforms competing models more than twice its size. The comparison ran across ten independent benchmarks, with ground truth re-annotated so every model, DocLang-native or not, is held to the same standard.

Getting there took more than scale. Both models go through a staged training process — starting from general vision-language alignment, moving into document-specific pretraining and fine-tuning, and finishing with reinforcement learning on the model's own generated DocLang — each stage closing the gap between what the model predicts and an actually valid, well-formed DocLang page. The technical report walks through the full pipeline and the per-benchmark results.

Try the models on Hugging Face, play with them in the online playground, or read the technical report for training and evaluation details.