Docling OCRIndependent Docling guide

Pipeline · VLM

Docling's VLM Pipeline: One Model Instead of Five

The standard Docling pipeline is a committee: layout model, reading-order model, table model, OCR engine. The VLM pipeline replaces the committee with a single vision-language model that reads the page image and writes the document. Fewer moving parts, different failure modes.

Updated 2026-10-26 · 3 min read

The short version

  • –Enable it with --pipeline vlm and pick a model with --vlm-model, e.g. granite_docling.
  • –Granite Docling is small (~258M parameters) and has MLX acceleration on Apple Silicon, which makes local VLM parsing practical rather than theoretical.
  • –VLM output is a rendered document, not a validated cell grid — it is more prone to confidently wrong numbers than TableFormer plus OCR.
  • –The standard pipeline still wins on dense financial tables; the VLM pipeline wins on messy, multi-format pages and handwriting.
  • –Always verify numbers before they enter a calculation, whichever pipeline produced them.

Running it

CLI
# one model reads the page and writes markdown
docling convert paper.pdf --to md --pipeline vlm --vlm-model granite_docling

# over HTTP
curl -X POST http://localhost:5001/v1/convert/source \
  -H 'Content-Type: application/json' \
  -d '{
    "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2206.01062"}],
    "options": { "to_formats": ["md"], "pipeline": "vlm", "vlm_model": "granite_docling" }
  }'

Model identifiers available to --vlm-model depend on your Docling version — check the model catalog or docling convert --help. The pipeline names themselves are stable: legacy, standard, native, vlm, asr.

What actually changes

Standard pipelineVLM pipeline
ModelsLayout + reading order + table structure + OCR engineOne vision-language model
InputPage image and/or text layerRendered page image
OutputDoclingDocument with typed items, cell grids, per-cell bounding boxesDocument text/structure as generated by the model
StrengthDense tables, precise cell geometry, provenanceMessy layouts, mixed content, handwriting, unusual scripts
WeaknessFails on pages that do not look like documentsCan produce fluent, plausible, wrong numbers
CostFast on CPU with RapidOCR; GPU helpsHeavier per page; small models keep it viable
DeterminismDeterministic for a given model setSampling settings and model version affect output

Granite Docling and why small matters here

The VLM pipeline becomes practical when the model is small enough to run on the machine you already have. Granite Docling is in that class — roughly 258 million parameters, with MLX acceleration for Apple Silicon, so a laptop can process pages without a datacentre.

Small also means less capacity for the things that break document models: extremely dense tables, tiny superscripts, multi-column footnotes. That trade is the whole story of this pipeline. It is very good at pages that are hard to describe structurally, and it is not automatically better at pages that are easy to describe but hard to read precisely.

When to choose VLM

  • Forms and handwriting. Pages with handwriting, stamps, annotations and mixed direction text are where a VLM's "just read it" approach beats a structural pipeline.
  • Multi-format scrapbooks. Annual reports with photos, infographics and pull-quotes confuse layout models; a VLM treats them as content.
  • Languages without good OCR packs. A VLM may handle a script your Tesseract install cannot.
  • Experiments. If you want to know whether a document class is tractable at all, VLM output in two minutes is a useful signal.

Choose the standard pipeline when the output feeds a number: reconciliations, valuations, credit decisions. Cell-level geometry and an OCR pass you can inspect are worth more there than fluency.

When not to

  • Dense financial tables. A 40-column balance sheet needs cell boundaries, and TableFormer is built for exactly that.
  • High-volume batch jobs. Per-page VLM cost adds up in a way CPU OCR does not.
  • Audit requirements. If you must show which cell on which page produced a value, you want structured table items with bounding boxes.
  • Reproducibility. Pin the model, the version and the decoding settings, or the same document can produce different text on different days.

A defensible way to decide

Take twenty pages from your own corpus — the hard ones, not the clean ones. Run both pipelines. Then score the outputs on the things you actually need:

1

Numbers correct?

Pick ten values per page and compare against the source by hand. This is the only metric that matters if the output feeds a decision.

2

Structure usable?

Can you recover rows and columns without re-reading the page? A beautiful Markdown blob is not a table.

3

Cost per page

Time and compute for both pipelines on the same hardware. Multiply by your monthly volume before deciding.

4

Failure visibility

When it is wrong, does it look wrong? A pipeline whose mistakes are obvious is safer than one whose mistakes are fluent.

The third option nobody mentions

Most people evaluating Docling VLM are not building a document pipeline — they are trying to get one document converted. In that case the comparison is not standard versus VLM, it is an afternoon of environment work versus a browser upload.

The Docling to Excel guide covers what to do with the output once you have it, including the checks that make a spreadsheet trustworthy.

Frequently asked questions

What is the Docling VLM pipeline?+

An alternative pipeline where a vision-language model reads each page image and generates the document, instead of running separate layout, table and OCR models. Enable it with --pipeline vlm.

What VLM does Docling use by default?+

There is no default VLM — you select one with --vlm-model. granite_docling is the documented small model, with MLX acceleration on Apple Silicon. Check the model catalog for what your version supports.

Is the VLM pipeline more accurate than the standard one?+

Not uniformly. It tends to do better on messy and handwritten pages and worse on dense tables where cell-level geometry matters. Measure on your own documents.

Do I need a GPU for Docling VLM?+

A small model like Granite Docling can run without a datacentre GPU, and MLX accelerates it on Apple Silicon. Larger VLMs effectively require a GPU; measure pages per minute before committing.

Can I mix pipelines per document type?+

Yes — route by page characteristics, e.g. tables to the standard pipeline and handwritten forms to the VLM pipeline. Record which pipeline produced each output so results stay comparable.

Try it online

Run the same pipeline in the browser — no install, no uploads stored.

Try it in the browser

Keep reading