ibm-granite/granite-docling-v2-2b

The Granite Docling V2 2B from the IBM Docling team (uploaded on 11 23; total parameters 2.48B, plus an MTP head of 208M) succeeds SmolDocling and Granite-Docling 258M. It takes a single-page image as input and outputs DocLang (an XML document markup where each element includes its type, coordinates on a 512×512 grid, and reading order), covering tables with merged cells, LaTeX formulas, code, images with their captions and embedded text, headers, and footers; it can be losslessly converted to Markdown / HTML / JSON using docling-core. Annotation supports 12 languages including Chinese, Japanese, and Korean, and it can also read handwriting.

The Granite Docling V2 2B from the IBM Docling team (uploaded on 11 23; total parameters 2.48B, plus an MTP head of 208M) succeeds SmolDocling and Granite-Docling 258M. It takes a single-page image as input and outputs DocLang (an XML document markup where each element includes its type, coordinates on a 512×512 grid, and reading order), covering tables with merged cells, LaTeX formulas, code, images with their captions and embedded text, headers, and footers; it can be losslessly converted to Markdown / HTML / JSON using docling-core. Annotation supports 12 languages including Chinese, Japanese, and Korean, and it can also read handwriting.

Why it matters A single generation yields headings, tables, formulas, code, image captions, and coordinates, exportable to Markdown, HTML, and JSON; multilingual performance, including Chinese, is significantly better than the previous generation

Upvotes 86 · Likes 116 · Downloads 4

Reasons

  • Official statistics show a full-page text 1−NED of 96.5% across 16,205 pages on 9 benchmarks, higher than dots.mocr (94.6), MinerU 2.5 Pro (94.4), etc., while the previous generation 258M scored 79.4; ground truth was converted to DocLang by the official team and manually revised, and the official team notes these figures cannot be compared with original benchmark leaderboards
  • The official team states that on a single H100 GPU using vLLM + MTP speculative decoding, throughput is approximately 10 pages per second, compared to about 7 pages per second without it
  • Partial extraction is possible: using the prompt <doclang> [<table>] outputs only tables, [<table>, <formula>] outputs only tables and formulas, and [<detailed>] additionally generates image descriptions

Usage

  • transformers≥5.23.0: Use AutoModelForImageTextToText + AutoProcessor, write the text prompt as <doclang>, and decoding must use skip_special_tokens=False (otherwise tags and coordinates will be discarded); render PDFs to page images at 144 DPI first
  • vLLM (currently requires nightly build): vllm serve ibm-granite/granite-docling-v2-2b --model-impl transformers --max-model-len 32768 --speculative-config '{"method": "mtp", "num_speculative_tokens": 3}'; on Mac, use mlx-vlm≥0.8.1; export results using DocLangDocDeserializer from docling-core

Risks

  • It only accepts <doclang> and fixed-format task prompts, does not follow free-form instructions, and does not answer questions; handwriting accuracy remains lower than printed text; the V2 preset for the Docling command line has not yet been released
  • Evaluation ground truth and scoring procedures are defined solely by the official team; this entry has not been run

Open

Hugging Face Trending

Explore the latest AI Radar updates