Hands-On with IBM Granite Docling V2: Building a Local Document Intelligence Studio A developer built IBM Granite Docling V2 Studio, a modular Python application combining a Streamlit interface, a Click/Rich CLI, a hardware compatibility advisor and a DocLang XML schema validator to run IBM's Granite Docling V2 vision-language models locally. The two models convert page images directly into DocLang/DocTags markup preserving reading order, headings, tables, formulas and normalized bounding boxes in one pass, with the 500M variant reaching 94.9% DocLayNet accuracy at up to 18.5 pages per second and the 2.5B flagship reaching 96.5%. Both ship with native MLX variants for Apple Silicon and use a density-aware patch router that allocates more visual tokens to tables and equations. Implementating sample application of Granite Docling V2. Introduction Modern enterprise data rarely arrives in neat, structured JSON payloads. It lives inside multi-column PDFs, scanned invoices, financial tables with merged headers, and scientific papers dense with LaTeX formulas. Traditional Optical Character Recognition OCR pipelines tackle these documents through brittle, multi-stage heuristics—stitching together separate layout detectors, bounding-box heuristics, table parsers, and text recognizers. When a single stage misinterprets a column break or a nested cell, the downstream Retrieval-Augmented Generation RAG or agentic workflow inherits corrupted context. Enter IBM Granite Docling V2 —a purpose-built family of Vision-Language Models VLMs engineered specifically for end-to-end document understanding and structural conversion. Rather than treating a page as a bag of disconnected text boxes, Granite Docling V2 ingests page images directly and generates DocLang / DocTags , a semantic markup representation that preserves reading order, hierarchical headings, tables, mathematical formulas, figures, and normalized 0, 1000 spatial bounding boxes in a single unified pass. In this release, IBM provides two complementary model sizes tailored to distinct hardware envelopes and latency-accuracy trade-offs: - ibm-granite/granite-docling-v2-500m https://huggingface.co/ibm-granite/granite-docling-v2-500m : A compact, ultra-fast 500M-parameter 0.54B VLM capable of processing up to 18.5 pages per second while achieving 94.9% accuracy on DocLayNet benchmarks. With an estimated footprint of ~1.8 GB RAM/VRAM, it fits comfortably on everyday developer laptops and edge nodes. - ibm-granite/granite-docling-v2-2b https://huggingface.co/ibm-granite/granite-docling-v2-2b : The 2.5B-parameter flagship model engineered for maximum fidelity 96.5% DocLayNet accuracy . Requiring ~5.5 GB RAM/VRAM, it excels on intricate multi-page layouts, dense financial tables, complex mathematical notation, and multilingual documents. Both models introduce a density-aware patch router that dynamically allocates visual attention tokens to dense regions like tables and equations while conserving compute on whitespace. Both also ship with native MLX variants -mlx alongside standard Hugging Face weights for local Apple Silicon execution. To evaluate these two models side by side and turn them into a practical local developer utility, I built IBM Granite Docling V2 Studio —a modular Python application featuring a Streamlit web interface, a Click/Rich command-line tool, a hardware compatibility advisor, and a DocLang XML schema validator. Excerpts from Huggin Face for Docling Granite V2 Granite Docling V2 500M Granite Docling V2 500M is the small, fast member of the Granite Docling V2 family. It converts a page image into DocLang , a markup language that records each element's type, position and reading order along with its content. One generation gives you headings, paragraphs, lists, tables with merged and header cells, LaTeX formulas, code, pictures with their captions and the text printed inside them, and page headers and footers. You can export the result to Markdown, HTML or JSON with docling-core https://github.com/docling-project/docling-core . It succeeds SmolDocling https://huggingface.co/docling-project/SmolDocling-256M-preview and Granite-Docling 258M https://huggingface.co/ibm-granite/granite-docling-258M , from the Docling team at IBM. - 🏆 Accuracy above its size : 94.9% content 1 − NED pooled over 16,205 pages from nine benchmarks, ahead of Nemotron 3.5 Parse 0.6B and Unlimited-OCR 2 3.3B . The edit distance falls from 20.6% with Granite-Docling 258M to 5.1%, four times lower. - 🔀 Adaptive vision budget : a learned density router reads 64 tokens per tile on ordinary pages and re-encodes dense pages, such as newspapers or small CJK print, at 256 tokens per tile. - 🧱 Structure is part of the output : every element carries its type and bounding box. Tables keep their full cell structure, and inline math, sub- and superscripts are marked inside the text. - 🖼️ Pictures are read, not skipped : each picture keeps its type, its caption and the text printed inside it; the