Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
Update installation instructions in English and Chinese README files for MinerU 4.0
myhlolifdbd2a264629
diff --git a/README_en.md b/README_en.mdindex d5ecfea0..80c5f745 100644--- a/README_en.md+++ b/README_en.md@@ -56,12 +56,22 @@ PDF and images support all four tiers. Office, OpenDocument, EPUB, OFD, HTML, anPython `>=3.10,<3.15`. Install MinerU 4.0 stable in a virtual environment:```bash-uv pip install -U "mineru>=4.0,<5"+pip install uv+uv venv .mineru --python 3.12++# Linux/macOS+source .mineru/bin/activate+# Windows (PowerShell)+.\.mineru\Scripts\Activate.ps1+```++```bash+uv pip install -U "mineru>=4.0"mineru-kit parse document.pdf -o document.md --tier standardmineru-kit webui```-Use `mineru[torch]>=4.0,<5` for Torch small models or `mineru[full]>=4.0,<5` for higher-throughput deployment (Linux: vLLM; Windows: LMDeploy). Optional engines have additional Python, device, and driver constraints.+The default install works out of the box: small models run ONNX CPU inference and the VLM runs llama.cpp in Vulkan mode, which offers good compatibility on the vast majority of devices. If the device has an NVIDIA GPU, install `mineru[full]>=4.0` for the best throughput. Note that on Windows the GPU build of torch must be installed separately, while on macOS the default install is already the best-throughput package and `[full]` is not needed.For the document library and agent reading, use `mineru parse document.pdf --json`. It defaults to the first 10 PDF pages; continue with returned locators. Stateless `mineru-kit parse` defaults to all pages.diff --git a/README_zh.md b/README_zh.mdindex bf56223d..4a76d0c3 100644--- a/README_zh.md+++ b/README_zh.md@@ -56,12 +56,22 @@ PDF 和图片支持四档解析;Office、OpenDocument、EPUB、OFD、HTML、CSPython `>=3.10,<3.15`,在虚拟环境中安装 4.0 正式版:```bash-uv pip install -U "mineru>=4.0,<5"+pip install uv+uv venv .mineru --python 3.12++# Linux/macOS+source .mineru/bin/activate+# Windows (PowerShell)+.\.mineru\Scripts\Activate.ps1+```++```bash+uv pip install -U "mineru>=4.0"mineru-kit parse document.pdf -o document.md --tier standardmineru-kit webui```-Torch 小模型使用 `mineru[torch]>=4.0,<5`;高吞吐部署使用 `mineru[full]>=4.0,<5`(Linux:vLLM,Windows:LMDeploy)。可选引擎还受各自 Python、设备及驱动支持范围约束。+默认安装即可开箱即用:小模型使用 ONNX CPU 推理,VLM 以 llama.cpp Vulkan 模式运行,在绝大多数设备上都有良好的兼容性。如果设备配备 NVIDIA GPU,可安装 `mineru[full]>=4.0` 获得最佳吞吐;注意 Windows 的 GPU 版本 torch 需要单独安装,而 macOS 默认安装已是最佳吞吐包,无需额外安装 `[full]`。文档库与 Agent 阅读使用 `mineru parse document.pdf --json`;PDF 默认前 10 页,后续按返回的 locator 继续。无状态转换使用 `mineru-kit parse`,默认全部页。