Granite Docling

Granite-Docling-258M

by IBM watsonx · Current open-weight model

IBM Granite-Docling-258M is a compact Apache 2.0 vision-language model specialized for converting document images into structured DocTags. It preserves layout while recognizing text, tables, formulas, charts, code, and document elements, and can be deployed locally through Docling and compatible inference runtimes.

Text Reasoning Coding
Granite-Docling-258M is a compact multimodal model from IBM Research that turns document pages into structured, machine-readable representations. Instead of producing only plain OCR text, it can represent layout and document elements such as headings, tables, formulas, charts, code blocks, captions, and footnotes. Its output can be processed through Docling and exported to Markdown, HTML, JSON, or DoclingDocument objects.
Outputs

What Granite-Docling-258M can produce

Text
Inputs

What it can understand

Text Images Multimodal
Capabilities

Support features

Structured output
Model profile

Performance characteristics

4/10 Reasoning
3/10 Coding
9/10 Speed
9/10 Cost efficiency
Specifications

Technical details

Family Granite Docling
Type Multimodal
Context window 8K tokens
Max output tokens 8K tokens
Release date September 17, 2025
Status Current open-weight model
Knowledge cutoff notes

IBM does not publish a separate authoritative knowledge-cutoff date for Granite-Docling-258M. The model is specialized for visual document conversion and is not presented as a general world-knowledge language model.

Model notes

Granite-Docling-258M is an approximately 258-million-parameter multimodal Image-Text-to-Text model developed by IBM Research. Its canonical Hugging Face identifier is ibm-granite/granite-docling-258M. The model builds on IDEFICS3, using a SigLIP2 Base Patch16 512 vision encoder, a pixel-shuffle projector, and a Granite 165M language model. It produces textual DocTags rather than native image, audio, or video output. DocTags can be converted into Markdown, HTML, JSON, and DoclingDocument representations through the Docling ecosystem. IBM's model documentation lists an 8,192-token context window, while the model card and official examples show generation configurations up to 8,192 new tokens. Experimental Japanese, Arabic, and Chinese support is available, but the model is optimized primarily for English and Latin-script document workflows. Editorial scores are comparative estimates for this model's specialization, local efficiency, and document-processing use case, not IBM benchmark fields.

COST

Pricing

Input No official IBM hosted API input price; open-weight model intended for local or compatible third-party deployment
Output No official IBM hosted API output price; open-weight model intended for local or compatible third-party deployment
Model guide

Granite-Docling-258M: IBM’s Compact Model for Layout-Preserving Document Conversion

Granite-Docling-258M is IBM Research’s 258-million-parameter open-weight vision-language model for converting document images into structured DocTags. It is specialized for OCR, layout preservation, tables, formulas, charts, code, and document indexing rather than general-purpose chat or broad image understanding.

What Granite-Docling-258M does

Granite-Docling-258M is an open-weight vision-language model designed specifically for document conversion and understanding. Its main input is a document page image, optionally combined with a text instruction. Its main output is textual DocTags: structured markup that describes both the content on the page and its layout.

This focus distinguishes the model from a general chatbot or a broad image-question-answering system. Granite-Docling-258M is intended to turn PDFs, scans, and other page images into data that software can index, search, transform, or pass to downstream document workflows.

The model is provided by IBM Research and is distributed through the IBM Granite Hugging Face organization under the identifier ibm-granite/granite-docling-258M. The supplied research identifies it as a current open-weight model released on September 17, 2025, under the Apache 2.0 license.

DocTags and document structure

Traditional OCR often extracts words while losing important relationships between page elements. Granite-Docling-258M is designed to preserve more of that structure. Its DocTags representation can describe reading order, headings, tables, charts, mathematical formulas, code, captions, footnotes, and other document elements.

DocTags are textual rather than visual output, but they are intended to be consumed by document-processing software. Through the Docling ecosystem, the result can be loaded into a DoclingDocument object or exported to formats such as Markdown, HTML, and JSON. This makes the model useful when the destination is a searchable corpus, structured dataset, retrieval-augmented generation system, or enterprise document pipeline.

For example, a page containing a heading, two paragraphs, a table, and a formula can be converted into an output that records those elements separately instead of presenting them as one undifferentiated text block. The exact quality of the result depends on the source image, document complexity, runtime, and inference configuration.

Architecture and technical profile

Granite-Docling-258M contains approximately 258 million parameters. It builds on the IDEFICS3 architecture and combines a SigLIP2 Base Patch16 512 vision encoder with a pixel-shuffle projector and a Granite 165M language model. IBM reports that the model was trained with its nanoVLM framework using publicly available data and internally constructed synthetic data.

The training data included examples for document pages, code, mathematical formulas, and charts. IBM also incorporated DocTags into supervised fine-tuning data to improve the model’s familiarity with the target format and help it converge on structured document outputs.

The model’s documented context window is 8,192 tokens. IBM’s documentation and examples also describe configurations with up to 8,192 newly generated tokens. These are token limits rather than guarantees about how much usable text a particular page will produce; image resolution, prompt content, and runtime configuration still affect practical behavior.

Supported inputs and outputs

CategoryGranite-Docling-258M
Text inputSupported, generally as an instruction or prompt accompanying document processing
Image inputSupported; document page images are the primary visual input
Audio inputNot supported
Video inputNot supported
Text outputSupported; the primary output is textual DocTags
Native image, audio, or video outputNot supported
Structured document outputDocTags can be converted into Markdown, HTML, JSON, and DoclingDocument representations

Structured document export should not be confused with a general-purpose hosted JSON mode. The supplied research does not verify a separate provider-managed JSON-mode feature. Instead, structured formats are produced through the model’s DocTags workflow and the surrounding Docling tooling.

Core document capabilities

  • OCR and text extraction: Converts text in document images into machine-readable output.
  • Layout preservation: Represents the organization and reading order of page content rather than extracting only a flat text stream.
  • Tables: Recognizes tables and can represent them in structured downstream formats.
  • Formulas: Handles inline and block mathematical formulas.
  • Code: Recognizes code displayed in documents and converts it to text.
  • Charts: Can convert chart content into structured tables.
  • Document elements: Identifies elements such as headings, captions, footnotes, and other parts of a page.
  • Limited structure questions: Supports some document-element identification and document-structure question answering.

IBM also describes experimental support for Japanese, Arabic, and Chinese documents. The supplied research cautions that these multilingual workflows have not been validated to the same level as the model’s primary English and Latin-script use cases.

How to deploy the model

The recommended integration path is the open-source Docling library, which can download and use Granite-Docling-258M as part of a vision-language document-conversion pipeline. Direct inference is also available through Transformers-compatible classes, vLLM, MLX-based tooling, and compatible local runtimes.

Because the model is open-weight rather than primarily offered as an IBM per-token service, deployment responsibility rests with the user or the selected inference provider. Hardware, image resolution, batching, quantization, and runtime implementation can materially affect memory use, latency, and throughput. The model’s relatively small parameter count makes local inference more practical than deployment of much larger vision-language systems, but the supplied research does not establish a universal hardware requirement or guaranteed latency.

Speed, cost, and capability trade-offs

Granite-Docling-258M’s main trade-off is specialization. It is small and designed for a narrow but valuable task: converting documents into structured representations. That makes it a potentially efficient choice for local batch processing, private document workflows, and applications where sending pages to a hosted API is undesirable.

It should not automatically be compared with large general-purpose multimodal models on broad reasoning or open-ended visual understanding. Larger models may be more appropriate when an application needs extensive conversational reasoning, complex visual interpretation outside documents, or general knowledge. Granite-Docling-258M instead prioritizes document structure, a compact footprint, and integration with Docling.

The supplied editorial assessment rates its speed at 9 out of 10 and cost efficiency at 9 out of 10 for its intended use case. These are comparative editorial estimates, not IBM-published benchmark results. The same assessment rates reasoning at 4 out of 10 and coding at 3 out of 10, reflecting the model’s document-conversion specialization rather than a lack of ability to recognize formulas or code embedded in documents.

Pricing and API availability

IBM does not list an official per-token hosted API input or output price for this checkpoint in the supplied research. Granite-Docling-258M is an open-weight model intended for local deployment or use through compatible third-party inference infrastructure.

As a result, there is no verified IBM monthly subscription or token price to quote. The effective cost depends on the hardware, cloud instance, inference service, processing volume, and serving configuration chosen by the user. This can be advantageous for predictable batch workloads, but it also means that the user must manage deployment or select a separate provider.

Limitations and unsupported features

Granite-Docling-258M is not a general-purpose chat model. IBM recommends broader Granite Vision models for general image-text tasks. The model may produce inaccurate, biased, or incomplete results, particularly when pages are visually difficult, contain unusual layouts, or fall outside its best-supported document patterns.

Its experimental multilingual support should be evaluated carefully before production use. Japanese, Arabic, and Chinese processing is documented as experimental, while the model is optimized primarily for English and Latin-script workflows.

The model does not provide native image, audio, or video generation. The supplied research also does not verify tool calling, function calling, streaming, batch APIs, web search, or audio and video processing. It should therefore be selected for document conversion, not for agentic workflows that require built-in external tools.

When to choose Granite-Docling-258M

Choose Granite-Docling-258M when the central requirement is converting document pages into structured data while retaining layout information. It is especially suitable for:

  • OCR pipelines where reading order and page structure matter;
  • table, chart, and formula extraction;
  • document indexing and search preparation;
  • retrieval-augmented generation preprocessing;
  • conversion of documents into Markdown, HTML, JSON, or DoclingDocument objects;
  • local or private document processing;
  • batch workflows that benefit from a compact open-weight model.

Choose another type of model when the primary task is open-ended conversation, broad image understanding, audio or video analysis, image generation, or complex tool-using automation. A larger general-purpose multimodal model may offer stronger reasoning outside the document domain, while a hosted OCR service may be simpler if managed infrastructure and predictable API operations are more important than local control.

Overall assessment

Granite-Docling-258M is best understood as a focused document-conversion component rather than a small general-purpose assistant. Its value comes from combining page-image understanding with DocTags output and Docling-compatible structured exports. For teams that need layout-aware OCR and can operate local or compatible inference infrastructure, its compact size and Apache 2.0 licensing are important practical advantages.

Its limitations are equally important: there is no verified IBM hosted token price, no broad chat positioning, no native non-text output, and only experimental support for some languages. The model is a strong candidate when structured document conversion is the goal, but a poor fit when document processing is only one part of a wider multimodal or agentic application.


Answers to Frequently Asked Questions

What are the main limitations of Granite-Docling-258M?
Granite-Docling-258M is specialized for document conversion rather than general-purpose chat or broad multimodal reasoning. It does not support native image, audio, or video output, and Japanese, Arabic, and Chinese processing is experimental. Results may also be inaccurate on visually difficult or unusual documents.
Does Granite-Docling-258M have an official IBM API price?
No verified IBM per-token hosted API price or monthly subscription is listed for this checkpoint. It is primarily intended for local deployment or use through compatible third-party inference infrastructure, so costs depend on hardware, cloud resources, processing volume, and serving configuration.
How can Granite-Docling-258M be deployed?
The model can be used through the open-source Docling library, Transformers-compatible classes, vLLM, MLX-based tooling, and other compatible local runtimes. Users are responsible for selecting and managing the required hardware or inference provider.
What is Granite-Docling-258M designed to do?
Granite-Docling-258M is an open-weight vision-language model designed to convert document page images into structured textual DocTags while preserving layout, reading order, headings, tables, formulas, charts, code, captions, and footnotes.
What formats can Granite-Docling-258M produce?
Its primary output is textual DocTags, which can be processed through the Docling ecosystem and exported as Markdown, HTML, JSON, or DoclingDocument representations.


Sources 5
AI Provider

About IBM watsonx