3 items β’ Updated β’ 9
π’ New Release:
Weβve released
granite-docling-258M, the successor to SmolDocling. It will now receive updates and support, check it out!
π SmolDocling
SmolDocling-256M-preview
SmolDocling is a multimodal Image-Text-to-Text model designed for efficient document conversion. It retains Docling's most popular features while ensuring full compatibility with Docling through seamless support for DoclingDocuments.
This model was presented in the paper SmolDocling: An ultra-compact vision-language model for end-to-end multi-modal document conversion.
π Features:
- π·οΈ DocTags for Efficient Tokenization β Introduces DocTags an efficient and minimal representation for documents that is fully compatible with DoclingDocuments.
- π OCR (Optical Character Recognition) β Extracts text accurately from images.
- π Layout and Localization β Preserves document structure and document element bounding boxes.
- π» Code Recognition β Detects and formats code blocks including identation.
- π’ Formula Recognition β Identifies and processes mathematical expressions.
- π Chart Recognition β Extracts and interprets chart data.
- π Table Recognition β Supports column and row headers for structured table extraction.
- πΌοΈ Figure Classification β Differentiates figures and graphical elements.
- π Caption Correspondence β Links captions to relevant images and figures.
- π List Grouping β Organizes and structures list elements correctly.
- π Full-Page Conversion β Processes entire pages for comprehensive document conversion including all page elements (code, equations, tables, charts etc.)
- π² OCR with Bounding Boxes β OCR regions using a bounding box.
- π General Document Processing β Trained for both scientific and non-scientific documents.
- π Seamless Docling Integration β Import into Docling and export in multiple formats.
- π¨ Fast inference using VLLM β Avg of 0.35 secs per page on A100 GPU.
π§ Coming soon!
- π Better chart recognition π οΈ
- π One shot multi-page inference β±οΈ
- π§ͺ Chemical Recognition
- π Datasets
β¨οΈ Get started (code examples)
You can use transformers, vllm, or onnx to perform inference, and Docling to convert results to variety of output formats (md, html, etc.):
π» Local inference on Apple Silicon with MLX: see here
DocTags
π Image descriptionDocTags create a clear and structured system of tags and rules that separate text from the document's structure. This makes things easier for Image-to-Sequence models by reducing confusion. On the other hand, converting directly to formats like HTML or Markdown can be messyβit often loses details, doesnβt clearly show the documentβs layout, and increases the number of tokens, making processing less efficient. DocTags are integrated with Docling, which allows export to HTML, Markdown, and JSON. These exports can be offloaded to the CPU, reducing token generation overhead and improving efficiency.
Supported Instructions
| Description | Instruction | Comment |
| Full conversion | Convert this page to docling. | DocTags represetation |
| Chart | Convert chart to table. | (e.g., <chart>) |
| Formula | Convert formula to LaTeX. | (e.g., <formula>) |
| Code | Convert code to text. | (e.g., <code>) |
| Table | Convert table to OTSL. | (e.g., <otsl>) OTSL: Lysak et al., 2023 |
| Actions and Pipelines | OCR the text in a specific location: <loc_155><loc_233><loc_206><loc_237> | |
| Identify element at: <loc_247><loc_482><10c_252><loc_486> | ||
| Find all 'text' elements on the page, retrieve all section headers. | ||
| Detect footer elements on the page. |
π Datasets
Model Summary
- Developed by: Docling Team, IBM Research
- Model type: Multi-modal model (image+text)
- Language(s) (NLP): English
- License: Apache 2.0
- Architecture: Based on Idefics3 (see technical summary)
- Finetuned from model: Based on SmolVLM-256M-Instruct
Repository: Docling
Paper: arXiv
Project Page: Hugging Face
Citation:
@misc{nassar2025smoldoclingultracompactvisionlanguagemodel,
title={SmolDocling: An ultra-compact vision-language model for end-to-end multi-modal document conversion},
author={Ahmed Nassar and Andres Marafioti and Matteo Omenetti and Maksym Lysak and Nikolaos Livathinos and Christoph Auer and Lucas Morin and Rafael Teixeira de Lima and Yusik Kim and A. Said Gurbuz and Michele Dolfi and Miquel FarrΓ© and Peter W. J. Staar},
year={2025},
eprint={2503.11576},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2503.11576},
}
Demo: HF Space
- Downloads last month
- 19,736
Safetensors
Model size
0.3B params
Tensor type
BF16
Β·
Model tree for docling-project/SmolDocling-256M-preview
Base model
HuggingFaceTB/SmolLM2-135M Quantized
HuggingFaceTB/SmolLM2-135M-Instruct Quantized
HuggingFaceTB/SmolVLM-256M-Instruct