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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docling_ibm_models-4.0.2.tar.gz | 77.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docling_ibm_models-4.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 147.0 kB
Release files / docling_ibm_models-4.0.2.tar.gz
| Download URL | docling_ibm_models-4.0.2.tar.gz |
|---|---|
| Size | 77.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfc2e265d9ee5dc7bc4fe001916851adedba1d8020584d170b35da2d79321f8d
|
|
BLAKE2b-256 checksum How to use checksums |
8ee1ae8c897ccf2f7137ae4ea07af2631b816b38b7382a792095077dc20907ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency logRelease files / docling_ibm_models-4.0.2-py3-none-any.whl
| Download URL | docling_ibm_models-4.0.2-py3-none-any.whl |
|---|---|
| Size | 69.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
821d343a5d90cc8613029013b7634a18cb600f58c563c6c9ea029974aed80b10
|
|
BLAKE2b-256 checksum How to use checksums |
95d1acb1fff3b414f80d25ec4c83fc61fc0e668ab40a83689b28b7806772f8f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 3, 2026.
Transparency log