Skip to main content

providus-parse-tools

providus-parse-tools is the document pipeline of the model providus-vl-mini. It turns a page image into markdown and layout items. providus-parse-tools extends mineru-vl-utils by OpenDataLab. The MinerU client finds the layout regions and reads each region. This package adds the output format (markdown and layout items), output fixes and an HTTP server. providus-vl-mini is a fine-tune of MinerU2.5-Pro by OpenDataLab (Apache-2.0). We did not pretrain a model.

Install

pip install providus-parse-tools

The distribution name is providus-parse-tools. The Python import name is providus_parse.

from providus_parse.pipeline import ProvidusParser

To parse one page (the router address is the one from "Run the server" below):

from PIL import Image

parser = ProvidusParser("http://127.0.0.1:8000")
page = parser.parse_page(Image.open("page.png").convert("RGB"), pdf=open("page.pdf", "rb").read())  # pdf is optional
print(page.markdown)

Serve the model

The step-by-step guide is SERVING.md in this repo. The model repo has the same steps in serve/README.md.

providus-vl-mini is a fine-tune of MinerU2.5-Pro-2605-1.2B. Serve it and the base model with vLLM. Send the text crops to providus-vl-mini. Send all other requests (layout, tables, formulas, charts) to the base model. Then start the server in the next section and point --vllm at the router (port 8000).

Run the server

Start the vLLM servers and the router first (see the guide above). The router listens on port 8000: it sends the text crops to the merged model and all other requests to the base model. Point the parse server at the router, not at a single vLLM server. Then run:

python -m providus_parse.server --port 8100 --vllm http://127.0.0.1:8000

These environment variables set the client for the model server. Each has a default, so you need none of them:

  • PROVIDUS_VL_MAX_CONCURRENCY: the largest number of parallel requests to the model server. Default 100.
  • PROVIDUS_VL_TIMEOUT: the HTTP timeout for one request, in seconds. Default 600.
  • PROVIDUS_VL_RETRIES: the number of retries for a failed request. Default 3.

The ParseBench runs of the scores rendered the pages at 144 DPI. Send page images with the same size if you want comparable results.

Send POST /predict with the body {"image_base64": "<base64 of the page image>"}. For a PDF page, also send "pdf_base64": a one-page PDF of the same page. The server then uses its text layer. The answer has markdown, items, text_layer, image_width, image_height and status. text_layer gives the count of text blocks that use the layer text (used) and that keep the model's text (kept_model). If the page has a usable layer, bold_share gives the share of bold layer characters. The server log has one line per page with the three values. Each item has category, bbox (0 to 1 page coordinates), text and type (the mineru-vl-utils block type). The text of a Title item has no # marker. The markdown keeps the marker. If an error occurs, status is error and error gives the reason.

Output fixes

Each fix has a flag. Set PROVIDUS_FIX_<NAME>=0 to turn one off, or PROVIDUS_FIX_<NAME>=1 to turn one on. The defaults are the settings of the ParseBench runs (the scores of providus-vl-mini): you need no environment variable to repeat them. The fixes argument of ProvidusParser has priority over the environment.

Flag Default Effect
header_footer on Header, footer and page number text goes into the page markdown.
table_header on Table HTML gets <thead> and <th> rows.
table_header_first_row on A table without a rowspan in its first row also gets a header row.
image_block on The charts and images inside an image_block get their own request.
text_request_form on Text-region requests use the providus-vl-mini text form. Off turns off the three parts below.
text_prompt_newline on The text prompt keeps its trailing newline.
text_resize on The text crop is resized before the request.
text_no_penalty on The text request has no presence penalty and no frequency penalty.
chart_request_form on Chart and image requests get the resize and no penalties of the text form. The prompt does not change. Off turns off the two parts below.
chart_resize on The chart or image crop is resized as a text crop.
chart_no_penalty on The chart or image request has no presence penalty and no frequency penalty.
chart_caption on A chart gets its title or caption as <caption> in its table. The layout item of a chart has the plain cell text only.
text_layer on For a PDF page, text blocks use the PDF text layer when it agrees with the model's text. Off turns off the three parts below.
text_layer_marks on The layer fonts give the bold, italic and superscript marks.
text_layer_chars off On: the block gets the layer characters and marks. Off: only the marks move onto the model's words.
text_layer_headings on The layer font sizes of the titles give the heading levels (#, ##, ###).
heading_class off On: a short bold or large text line becomes a section_header.
para_split off On: a text block that uses the layer text gives one layout item per paragraph. The markdown does not change.

Text layer

textlayer.py reads the PDF text layer with pypdfium2 5.13.0 (Apache-2.0 or BSD-3-Clause; PDFium is BSD-3-Clause). Code, formula and table blocks keep the model's text. If an error occurs in the text layer path, the block keeps the model's text. The page does not fail.

Results

{{RESULTS}}

License and attribution

This package is Apache-2.0 (see LICENSE). Keep the NOTICE file when you redistribute it or a derivative. If you offer an online service with it and providus-vl-mini, please state in its interface or public documentation that it uses MinerU by OpenDataLab and providus-vl-mini by Providus AI (MinerU's project licence asks online services to say so; the credit to Providus AI is our request). providus-vl-mini is a fine-tune of MinerU2.5-Pro-2605-1.2B by OpenDataLab (Apache-2.0). We did not pretrain a model. To cite this work, use CITATION.cff. Please also cite the MinerU papers below.

Acknowledgements

  • OpenDataLab and the MinerU team: the MinerU2.5-Pro model and mineru-vl-utils. This work is built on them.
  • The ParseBench authors: the benchmark we measure with.
  • The vLLM project: model serving.
  • Hugging Face PEFT.

BibTeX

@article{wang2026mineru25pro,
  title   = {MinerU2.5-Pro: Pushing the Limits of Data-Centric Document Parsing at Scale},
  author  = {Wang, Bin and others},
  journal = {arXiv preprint arXiv:2604.04771},
  year    = {2026}
}

@article{niu2025mineru2,
  title   = {MinerU2.5: A Decoupled Vision-Language Model for Efficient High-Resolution Document Parsing},
  author  = {Niu, Junbo and others},
  journal = {arXiv preprint arXiv:2509.22186},
  year    = {2025}
}

@article{zhang2026parsebench,
  title   = {ParseBench: A Document Parsing Benchmark for AI Agents},
  author  = {Zhang, Boyang and others},
  journal = {arXiv preprint arXiv:2604.08538},
  year    = {2026}
}

Metadata

Release files for providus-parse-tools 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for providus-parse-tools 1.0.1
File Size Uploaded Provenance Actions
providus_parse_tools-1.0.1.tar.gz 46.5 kB Without provenance Details for providus_parse_tools-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for providus-parse-tools 1.0.1
File Interpreter ABI Platform Actions
providus_parse_tools-1.0.1-py3-none-any.whl Python 3 none any Details for providus_parse_tools-1.0.1-py3-none-any.whl

Total release size: 75.5 kB

Release files / providus_parse_tools-1.0.1.tar.gz

Download URL providus_parse_tools-1.0.1.tar.gz
Size 46.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b56bb0153f447a85b668edc2ef5ece3d2eecfbb2d0a2165daf126e2262272e8c
BLAKE2b-256 checksum
How to use checksums
0bfa251bfa9029c9c76498ed76401b1f22dc1b395b568b5bf0205a88d423ae42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / providus_parse_tools-1.0.1-py3-none-any.whl

Download URL providus_parse_tools-1.0.1-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9710ae9819b58cfd3691e3c307d0cd78b264e4fccb354cd1b02f78275ec8c24f
BLAKE2b-256 checksum
How to use checksums
96dd64e08283c54c7dc353dfcdfd0b170e0c5f77a4444398f8625be0175069b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for providus-parse-tools 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page