Docling IBM models
AI modules to support the Docling PDF document conversion project.
- TableFormer is an AI module that recognizes the structure of a table and the bounding boxes of the table content.
Install
The package provides two variants which allow to seemlessly switch between opencv-python and opencv-python-headless.
# Option 1: with opencv-python-headless
pip install "docling-ibm-models[opencv-python-headless]"
# Option 2: with opencv-python
pip install "docling-ibm-models[opencv-python]"
Pipeline Overview
Datasets
Below we list datasets used with their description, source, and "TableFormer Format". The TableFormer Format is our processed version of the version of the original format to work with the dataloader out of the box, and to augment the dataset when necassary to add missing groundtruth (bounding boxes for empty cells).
| Name | Description | URL |
|---|---|---|
| PubTabNet | PubTabNet contains heterogeneous tables in both image and HTML format, 516k+ tables in the PubMed Central Open Access Subset | PubTabNet |
| FinTabNet | A dataset for Financial Report Tables with corresponding ground truth location and structure. 112k+ tables included. | FinTabNet |
| TableBank | TableBank is a new image-based table detection and recognition dataset built with novel weak supervision from Word and Latex documents on the internet, contains 417K high-quality labeled tables. | TableBank |
Models
TableModel04:
TableModel04rs (OTSL) is our SOTA method that using transformers in order to predict table structure and bounding box.
Configuration file
Example configuration can be found inside test tests/test_tf_predictor.py
These are the main sections of the configuration file:
dataset: The directory for prepared data and the parameters used during the data loading.model: The type, name and hyperparameters of the model. Also the directory to save/load the trained checkpoint files.train: Parameters for the training of the model.predict: Parameters for the evaluation of the model.dataset_wordmap: Very important part that contains token maps.
Model weights
You can download the model weights and config files from the links:
Inference Tests
You can run the inference tests for the models with:
python -m pytest tests/
This will also generate prediction and matching visualizations that can be found here:
tests\test_data\viz\
Visualization outlines:
Light Pink: border of recognized tableGrey: OCR cellsGreen: prediction bboxesRed: OCR cells matched with predictionBlue: Post processed, matchBold Blue: column headerBold Magenta: row headerBold Brown: section row (if table have one)
Metadata
Release files for docling-ibm-models 4.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docling_ibm_models-4.0.4.tar.gz | 77.7 kB | With provenance | Details for docling_ibm_models-4.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docling_ibm_models-4.0.4-py3-none-any.whl | Python 3 | none | any | Details for docling_ibm_models-4.0.4-py3-none-any.whl |
Total release size: 147.1 kB
Release files / docling_ibm_models-4.0.4.tar.gz
| Download URL | docling_ibm_models-4.0.4.tar.gz |
|---|---|
| Size | 77.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f10cbcd2986ab3f55ac87890bda04353c10d312074433f1c8885cc33b33c3c13
|
|
BLAKE2b-256 checksum How to use checksums |
d612e4bc8e9c5304187b7adfca37deabda3f1a27f3a7834dd7d4d15f5c00de97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / docling_ibm_models-4.0.4-py3-none-any.whl
| Download URL | docling_ibm_models-4.0.4-py3-none-any.whl |
|---|---|
| Size | 69.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5236a13d440135aa074e211981529424f7fd15acf7938c38431381e623430a3e
|
|
BLAKE2b-256 checksum How to use checksums |
c469b0f364a2906952a5741b5261659689bc8387f447db54cb3c26d411223ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for docling-ibm-models 4.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for docling_ibm_models-4.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.