Downloads · 30 days
119
9% of all-time downloads
docling-project/MarkushGrapher-2
MarkushGrapher-2 is a image-to-text model from docling-project. Use it when you need a caption or text from an image. It is set up for transformers. The card lists the license as apache-2.0.
<p align="center" <img src="markushgrapher2repobanner.png" alt="MarkushGrapher-2 Banner" width="100%" </p
Downloads · 30 days
119
9% of all-time downloads
All-time downloads
1.3K
Public
Repo size
12.6 GB
Likes
5
Public
Click a slice to open those files.
.pt6 GB · 64%
From the Hugging Face model README
MarkushGrapher-2 is an end-to-end multimodal model for recognizing chemical structures from patent document images. It jointly encodes vision, text, and layout information to convert Markush structure images into machine-readable CXSMILES representations.
MarkushGrapher-2 is a transformer-based model that integrates two complementary encoders:
The model also includes ChemicalOCR, a dedicated OCR module fine-tuned for chemical images, enabling fully end-to-end processing without external OCR dependencies.
*MolScribe: https://github.com/thomas0809/MolScribe
The input image is processed through two parallel pipelines:
The outputs of both pipelines are concatenated and fed to a text decoder that autoregressively generates a CXSMILES sequence describing the Markush backbone and a substituent table.
| Benchmark | MarkushGrapher-2 | MolParser-Base | MolScribe | MarkushGrapher-1 | DeepSeek-OCR | GPT-5 |
|---|---|---|---|---|---|---|
| M2S (103) | 56 | 39 | 21 | 38 | 0 | 3 |
| USPTO-M (74) | 55 | 30 | 7 | 32 | 0 | - |
| WildMol-M (10K) | 48.0 | 38.1 | 28.1 | - | 1.9 | - |
| IP5-M (1K) | 53.7 | 47.7 | 22.3 | - | 0.0 | - |
| Benchmark | MarkushGrapher-2 | MolParser-Base | MolScribe | MolGrapher |
|---|---|---|---|---|
| WildMol (10K) | 68.4 | 76.9 | 66.4 | 45.5 |
| JPO (450) | 71.0 | 78.9 | 76.2 | 67.5 |
| UOB (5.7K) | 96.6 | 91.8 | 87.4 | 94.9 |
| USPTO (5.7K) | 89.8 | 93.0 | 93.1 | 91.5 |
# Load the model checkpoint
from transformers import AutoModel
model = AutoModel.from_pretrained("docling-project/MarkushGrapher-2")
For full inference pipeline usage, see the MarkushGrapher repository.
Training and evaluation datasets are available at docling-project/MarkushGrapher-2-Datasets.
@inproceedings{strohmeyer2026markushgrapher2,
title = {MarkushGrapher-2: End-to-end Multimodal Recognition of Chemical Structures},
author = {Strohmeyer, Tim and Morin, Lucas and Meijer, Gerhard Ingmar and Weber, Valery and Nassar, Ahmed and Staar, Peter W. J.},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
year = {2026}
}
This model is released under the Apache 2.0 License.