skillfed

docling-ibm-models

This package contains the AI models used by the Docling PDF conversion package

docling-ibm-models v3.14.0 3.5M downloads/30d#2,595 on PyPI208
Permissive license MIT Active released

What it is and what it does

This package provides pre-trained neural networks for understanding document structure, with two main components: TableFormer, which identifies table boundaries and cell structure in document images, and a Layout model that detects tables and other page elements. It wraps transformer-based models trained on datasets including PubTabNet, FinTabNet, and TableBank, designed to integrate with document conversion pipelines.

The package depends on torch, transformers, and huggingface_hub to load and run inference. You install it with an optional choice between opencv-python and opencv-python-headless, then instantiate predictors and call them on image data. Models are downloaded from huggingface_hub on first use.

Use it for:

  • Extract table structure and cell locations from scanned PDF pages for downstream OCR or data extraction.
  • Detect and segment page layout regions to guide document parsing and conversion.
  • Batch process document images to identify which pages contain tables before specialized recognition.
  • Build a document conversion pipeline that preserves table formatting when converting PDFs to structured formats.
  • Analyze financial or scientific documents where accurate table extraction is critical for data integrity.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides AI models for table structure recognition and page layout detection to support PDF document conversion.

Yes, if you are building a document processing pipeline that needs table and layout detection. The package is actively maintained, has no known vulnerabilities, and integrates with the broader ecosystem. The MIT license poses no barrier. Install friction is low, though torch and transformers are substantial dependencies—acceptable for ML workloads but not for lightweight applications. Suitable for production use.

Install

docling-ibm-models on PyPI

pip

pip install docling-ibm-models

uv

uv add docling-ibm-models

poetry

poetry add docling-ibm-models

Installing docling-ibm-models

Before you install

Low friction install with a pure-Python wheel. Active maintenance with a release 3 days old. Requires 13 runtime dependencies including torch, transformers, and huggingface_hub, which are substantial but standard for ML inference workloads.

License in practice

MIT license permits commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install "docling-ibm-models[opencv-python-headless]"

from docling_ibm_models import LayoutPredictor
predictor = LayoutPredictor.from_pretrained()
result = predictor.predict(image)

Requires Python 3.10 or later. torch and torchvision are heavy dependencies; accelerate is optional but recommended for inference speed.

Verify before relying

  • Whether pre-trained model weights are automatically downloaded or require manual setup beyond huggingface_hub.
  • Performance characteristics (inference latency, memory footprint) for typical document sizes.
  • Whether CPU-only inference is supported or CUDA is required.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 13 — torch, torchvision, jsonlines, Pillow, tqdm, huggingface_hub, safetensors, pydantic, docling-core, transformers, numpy, rtree, accelerate
Maintenance actively maintained — 3 days since the last release
Last repo commit
First released
Downloads 3,514,585/month — #2,595 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: docling_ibm_models-3.14.0-py3-none-any.whl

Keywords: docling, convert, document, pdf, layout model, segmentation, table structure, table former

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

Tags

table structure recognitionpdf layout detectiondocument segmentation aitable extraction modelspage layout analysistable bounding box detectiondocument layout models
document-processingtable-extractionlayout-detection

More Artificial Intelligence packages

Further reading