MinerU 4 Torch models

This repository contains the small models that MinerU uses for PDF and image parsing with the torch backend. Basic uses this bundle. Standard also uses a vision-language model, selected separately. MinerU model configuration

Models

Task Weights
Page layout analysis PP-DocLayoutV2 路 Layout/PP-DocLayoutV2/model.safetensors
Text detection and recognition PP-OCRv6 Tiny Det 路 OCR/paddleocr/ch_PP-OCRv6_tiny_det_infer.safetensors
PP-OCRv6 Small Rec 路 OCR/paddleocr/ch_PP-OCRv6_small_rec_infer.safetensors
Seal text detection PP-OCRv4 路 OCR/paddleocr/seal_PP-OCRv4_det_infer.pth. MinerU uses the text recognizer above to read the detected regions.
Formula recognition PP-FormulaNet plus-M 路 MFR/pp_formulanet_plus_m/PP-FormulaNet_plus-M.pth
Table classification and structure Table/PP-LCNet_x1_0_table_cls.onnx classifies the table. Table/unet.onnx handles ruled tables and Table/slanet-plus.onnx recognizes borderless table structure.

MinerU loads the layout, OCR and formula weights with PyTorch. The three table models run with ONNX Runtime and are byte-for-byte identical to the copies in the ONNX bundle. The original models retain their respective licenses and attribution.

Download and verify

With MinerU 4 installed, run the following commands to download this bundle from Hugging Face and check the local files.

mineru-kit models download MinerU-4_models_torch --source huggingface
mineru-kit models verify MinerU-4_models_torch

To use this backend when parsing a document, set model.small_backend to torch in the MinerU configuration. The weights are also available on ModelScope.

Model updates

SLANet Plus 路 2026-11-23

In Table/slanet-plus.onnx, 16 inputs to the ONNX Loop body now have unique names. Across eight single-image and batch test inputs, ONNX Runtime CPU produced byte-identical cell coordinates and structure probabilities before and after the change. Original issue

File SHA-256 路 f74953de6868a1da7117407ef3a51ff877a97bad72e9368a857c8c274e1f5d69

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Spaces using opendatalab/MinerU-4_models_torch 2