IBM released Granite-Docling v2 on November 30, 2026, and you can run the 2B model locally today: an 8 GB NVIDIA card, a Mac with MLX, or vLLM if you have a lot of PDFs. It converts a page image straight to structured markup that Docling turns into Markdown, it's Apache 2.0, and Docling 2.155.0 already ships a preset for it.
There's one trap. If you upgrade Docling and run docling --pipeline vlm the way you did for v1, you still get v1. So here are the commands that actually load v2, my memory math, and a closer look at IBM's 96.5% benchmark number, which tells you less than it seems to.
What Granite-Docling v2 is
It's an image-text-to-text model. You give it one page as an image, and it gives back the whole page as structured markup: text, tables, formulas, code, pictures with captions, each with a bounding box. docling-core then turns that into Markdown, HTML or JSON.
granite-docling-v2-2b shipped alongside a smaller sibling, granite-docling-v2-500m. The 2B is a finetune of Granite 4.0 1B with a 468M-parameter vision encoder bolted on.
The name undersells it a little. The parameter table on the model card adds up to 2.48B, or 2.68B if you count the speculative decoding (MTP) heads that ship in the same checkpoint. On disk it's 5.37 GB of BF16 weights.
Granite-Docling v2 vs v1: what changed
| Granite-Docling 258M (v1) | Granite-Docling v2 2B | |
|---|---|---|
| Released | Sept 17, 2025 | Nov 30, 2026 |
| Parameters | 258M | 2.48B (+208M MTP heads) |
| LLM backbone | Granite 165M | Granite 4.0 1B |
| Output format | DocTags | DocLang 0.9 |
| Prompt | Convert this page to docling. | <doclang> |
| Languages | English, plus experimental Japanese, Arabic, Chinese | 12 tagged (en, zh, ja, ko, ar, de, es, fr, it, nl, pl, pt) |
| Pooled content 1−NED | 79.4% | 96.5% |
| H100 throughput | 12.9 pages/s | 6.8 pages/s (10.1 with MTP) |
| License | Apache 2.0 | Apache 2.0 |
Things the table hides:
- The output format changed. DocTags is gone, replaced by DocLang, an XML vocabulary now run by a working group under LF AI & Data (IBM, NVIDIA, Red Hat, ABBYY, HumanSignal). Every tag and every coordinate is a single token. If you wrote a DocTags parser for v1, it won't read v2 output.
- You can ask for part of a page.
<doclang> [<table>]returns only tables, and<doclang> [<table>, <formula>]returns tables and formulas. That's handy if your RAG pipeline already handles prose and only struggles with tables. - It won't chat. The card says it "does not follow free-form instructions or answer questions." The prompt syntax is strict too: one space after
<doclang>, tasks separated by,. Get the spacing wrong and quality drops. - It's slower without speculative decoding. The bigger model alone does 6.8 pages/s against v1's 12.9. MTP gets it to 10.1, still below v1. If you want v1 speed, the 500M does 14.2 pages/s (18.5 with MTP) and scores 94.9%.
- Handwriting got much better, "though printed text remains more accurate," per the card.
The 96.5% benchmark comes with a footnote
IBM's headline number is 96.5% content 1−NED pooled across 16,205 pages from nine benchmarks. That beats every model on its list, including dots.mocr (94.6%), MinerU 2.5 Pro (94.4%), Nemotron 3.5 Parse (92.9%) and Chandra (90.3%).
The footnote says the scores were measured against ground truth that IBM converted to DocLang and "revised by hand," and they are "not comparable" with official leaderboards. Two of the nine benchmarks, DocLayNet v2 and Creative Layouts, are IBM-internal held-out sets. The card isn't even consistent with itself: the accuracy-vs-speed chart caption says 20,502 pages from ten benchmarks.
I don't think anyone is cheating. Comparing outputs in different formats is hard, and someone has to normalize them. But the target format is the one this model was trained to emit, and the ruler was set by the team that built the model. MinerU 2.5 Pro still wins on OmniDocBench 1.6 (97.2 vs 96.2), and dots.mocr wins on DocLayNet v1 and MDPBench. Treat the 96.5% as a reason to try it on your own PDFs, and keep what you have until it wins there.
How much VRAM Granite-Docling v2 needs
The card gives one memory figure, for MLX: about 6 GB in bfloat16, about 4 GB for an 8-bit copy.
For NVIDIA cards there's no official number, so here's the arithmetic. The weights are 5.37 GB. Per config.json the decoder has 24 layers, 4 KV heads and 128-dim heads (2048 hidden / 16 attention heads), so the BF16 KV cache costs about 48 KB per token. The reply budget is 16,384 tokens, about 0.8 GB. The page image adds prompt tokens on top: a comment in Docling's preset code puts the largest page (a 55-tile spread) at about 14.2k prompt tokens, which is why the vLLM config allows 32,768 tokens of context. Worst case, that's around 1.5 GB of cache.
So budget roughly 6.5 to 7 GB plus activations for one page. An 8 GB card should do one page at a time. A 6 GB card won't fit BF16 weights plus a dense page. IBM hasn't published any of this for CUDA, so treat it as my estimate.
Two caveats for older or smaller hardware:
- The v1 card documented a bug where older GPUs without bfloat16 support (the Colab T4 was the example) produced nothing but
!!!!. The workaround was float32. The v2 card doesn't list it as a known issue, but if you hit it, float32 doubles the weights to about 10.7 GB. A T4 has 16 GB, so it still fits. - There are no CPU numbers anywhere. Transformers will load it on CPU, but a 2.5B decoder generating up to 16k tokens per page will be slow. I'd use it for a few pages and nothing like a batch.
The easy way: Docling CLI 2.155.0+
Docling 2.155.0 (released November 30, 2026) added two presets, granite_docling_v2_500m and granite_docling_v2_2b. 2.154.0 doesn't have them, so check your version first.
pip install -U "docling[vlm]>=2.155.0" docling --pipeline vlm --vlm-model granite_docling_v2_2b document.pdf The trap: docling --pipeline vlm without --vlm-model still defaults to granite_docling, the v1 258M model, even on 2.155.0. If you have v1 commands in scripts, upgrading Docling changes nothing until you add the model name. The CLI snippet on the Hugging Face card doesn't help either. It's inside an HTML comment marked "preset name and minimum Docling version to confirm", so the rendered card doesn't show it.
Partial-page prompts work from the CLI too: --doclang-tasks table,layout limits the output to those elements. The Docling model catalog lists the requirements for the Transformers engine as Python 3.11+ and Transformers 5.23.0+. With vLLM you need a release after 0.34.0, and with MLX you need mlx-vlm 0.8.1+. Docling handles PDF rendering and the DocLang-to-Markdown step for you, which is the main reason to start here.
Run it with transformers
If you want the raw model in your own loop, you need transformers 5.23.0 or newer:
pip install "transformers>=5.23.0" torch torchvision pillow docling-core import torch from PIL import Image from transformers import AutoModelForImageTextToText, AutoProcessor model_id = "ibm-granite/granite-docling-v2-2b" processor = AutoProcessor.from_pretrained(model_id) model = AutoModelForImageTextToText.from_pretrained(model_id, dtype=torch.bfloat16, device_map="cuda") image = Image.open("page.png").convert("RGB") messages = [{"role": "user", "content": [ {"type": "image", "image": image}, {"type": "text", "text": "<doclang>"}, ]}] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device, dtype=torch.bfloat16) output = model.generate(**inputs, max_new_tokens=16384, do_sample=False) doclang = processor.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False) doclang = doclang.removesuffix(processor.tokenizer.eos_token) Keep skip_special_tokens=False. With the default, the decoder strips every tag and coordinate and you get a flat blob of text, which defeats the point.
Then convert to Markdown:
from docling_core.transforms.deserializer.doclang import DocLangDocDeserializer document = DocLangDocDeserializer().deserialize_str(doclang) document.save_as_markdown("page.md") The model takes images, not PDFs. IBM's examples render pages with pypdfium2 at 144 DPI.
Run it on a Mac with MLX
pip install "mlx-vlm>=0.8.1" pillow docling-core mlx_vlm.generate --model ibm-granite/granite-docling-v2-2b \ --image page.png --prompt "<doclang>" --max-tokens 16384 --temperature 0 There's also an official granite-docling-v2-2b-mlx repo. To make your own 8-bit copy (about 4 GB), use mlx_vlm.convert --hf-path ibm-granite/granite-docling-v2-2b --mlx-path ./granite-docling-v2-2b-8bit -q --q-bits 8. The card claims about 1.9× faster single-page greedy decoding with speculative decoding, but the drafter isn't in an mlx-vlm release yet. You have to install it from git (Neywa-Labs/mlx-vlm).
For volume, use vLLM (nightly)
The throughput numbers above come from vllm serve on one H100 80GB, with MTP speculative decoding for the 10.1 figure. It needs nightly wheels for now, and note that this command pins transformers to exactly 5.23.0:
pip install -U vllm --pre "transformers==5.23.0" \ --extra-index-url https://wheels.vllm.ai/nightly vllm serve ibm-granite/granite-docling-v2-2b \ --model-impl transformers \ --max-model-len 32768 \ --max-num-batched-tokens 16384 \ --limit-mm-per-prompt '{"image": 1}' \ --speculative-config '{"method": "mtp", "num_speculative_tokens": 3}' \ --api-server-count 8 Send one page per request, keep 64 or more in flight, and pass "skip_special_tokens": False in extra_body. --api-server-count 8 assumes about 32 CPU cores. On a workstation, drop it.
No GGUF, no llama.cpp yet
The model tree lists four quantizations: IBM's own MLX repo, an AutoRound build, an LLM Compressor build, and a third-party "sub-1-bit" build whose own table reports a vision-encoder cosine similarity of 0.855 against the original. None of them is a GGUF. If you live in Ollama or LM Studio, you're waiting for llama.cpp support, and I wouldn't feed that sub-1-bit build anything important.
Should Granite-Docling v2 go in your RAG pipeline?
If you're paying per page for a hosted parser, or you've given up on tables because PyMuPDF flattens them, yes, try it this week. An Apache 2.0 model that fits in roughly 6 GB and can be told to return only tables is hard to ignore. If you already run MinerU or dots.mocr and they work on your documents, IBM's self-graded leaderboard isn't a reason to migrate. Run 50 of your ugliest pages through both and diff the Markdown.
If you're on v1 through the Docling CLI, upgrade to 2.155.0 and add --vlm-model granite_docling_v2_2b (or granite_docling_v2_500m if speed matters more) rather than hand-rolling a transformers loop.
What are you using to get PDFs into your RAG pipeline right now: a hosted API, Unstructured, MinerU, plain pdfplumber? And would a ~2.5B local model actually replace it, or is table extraction still where all of these fall apart for you?
Sources
- granite-docling-v2-2b model card (params, benchmarks, code, MLX memory, config.json)
- Granite Docling V2 blog post, Hugging Face
- Granite Docling V2 technical report, arXiv 2611.37727
- granite-docling-v2-500m model card
- granite-docling-258M (v1) model card
- Docling model catalog
- DocLang spec
