Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: add Windows CUDA acceleration troubleshooting section to documentation

myhloli1efbe6ef6dd5
diff --git a/README.md b/README.md
index 78be8607..d75663ab 100644
--- a/README.md
+++ b/README.md
@@ -271,6 +271,7 @@ uv pip install -e .[all]
> [!TIP]
> `mineru[all]` includes all core features, compatible with Windows / Linux / macOS systems, suitable for most users.
+> If CUDA acceleration is unavailable after installing on Windows, see the [Windows CUDA acceleration FAQ](https://opendatalab.github.io/MinerU/faq/#windows-cuda-acceleration).
> If you need to specify the inference framework for the VLM model, or only intend to install a lightweight client on an edge device, please refer to the documentation [Extension Modules Installation Guide](https://opendatalab.github.io/MinerU/quick_start/extension_modules/).
---
diff --git a/README_zh-CN.md b/README_zh-CN.md
index d45deb8e..b3c7c427 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -272,6 +272,7 @@ uv pip install -e .[all] -i https://mirrors.aliyun.com/pypi/simple
> [!TIP]
> `mineru[all]`包含所有核心功能,兼容Windows / Linux / macOS系统,适合绝大多数用户。
+> 如果您在 Windows 上安装后无法使用 CUDA 加速,请参考 [Windows CUDA 加速 FAQ](https://opendatalab.github.io/MinerU/zh/faq/#windows-cuda-acceleration)。
> 如果您需要指定vlm模型的推理框架,或是仅准备在边缘设备安装轻量版client端,可以参考文档[扩展模块安装指南](https://opendatalab.github.io/MinerU/zh/quick_start/extension_modules/)。
---
diff --git a/docs/en/faq/index.md b/docs/en/faq/index.md
index 0877424e..7b7fe4b2 100644
--- a/docs/en/faq/index.md
+++ b/docs/en/faq/index.md
@@ -4,8 +4,34 @@ If your question is not listed, try using [DeepWiki](https://deepwiki.com/openda
For unresolved problems, join our [Discord](https://discord.gg/Tdedn9GTXq) or [WeChat](https://mineru.net/community-portal/?aliasId=3c430f94) community for support.
+??? question "What should I do if inference is slow after installing directly on Windows?"
+
+ ### What should I do if inference is slow after installing directly on Windows? {#windows-cuda-acceleration}
+
+ If inference is slow after a direct Windows installation, CUDA acceleration dependencies are usually not installed correctly. Choose the solution based on your GPU architecture:
+
+ - Volta / Turing / Ampere / Ada Lovelace GPUs, such as V100, 20 series, T4, 30 series, and 40 series: install CUDA-enabled `torch` and `torchvision` directly. Go to the [PyTorch official website](https://pytorch.org/get-started/locally/) and select the Windows installation command that matches your CUDA version.
+ - Blackwell GPUs, such as the RTX 50xx series: install the `lmdeploy 0.11.1 + cu128` Windows wheel. Set `PYTHON_VERSION` to your current Python version, for example `310` / `311` / `312` / `313` for Python 3.10 / 3.11 / 3.12 / 3.13.
+
+ ```powershell
+ $env:LMDEPLOY_VERSION = "0.11.1"
+ $env:PYTHON_VERSION = "312"
+
+ $wheel = "https://github.com/InternLM/lmdeploy/releases/download/v$($env:LMDEPLOY_VERSION)/lmdeploy-$($env:LMDEPLOY_VERSION)+cu128-cp$($env:PYTHON_VERSION)-cp$($env:PYTHON_VERSION)-win_amd64.whl"
+ pip install $wheel --extra-index-url https://download.pytorch.org/whl/cu128
+ ```
+
+ If you are using a Blackwell GPU and have already installed the cu128 version of `torch`, define `$wheel` first and then run the following command to avoid downloading a lower-version `torch` again:
+
+ ```powershell
+ pip install $wheel --no-dependencies
+ ```
+
+
??? question "Encountered the error `ImportError: libGL.so.1: cannot open shared object file: No such file or directory` in Ubuntu 22.04 on WSL2"
+ ### Encountered the error `ImportError: libGL.so.1: cannot open shared object file: No such file or directory` in Ubuntu 22.04 on WSL2 {#wsl2-ubuntu2204-libgl}
+
The `libgl` library is missing in Ubuntu 22.04 on WSL2. You can install the `libgl` library with the following command to resolve the issue:
```bash
@@ -17,6 +43,8 @@ For unresolved problems, join our [Discord](https://discord.gg/Tdedn9GTXq) or [W
??? question "Missing text information in parsing results when installing and using on Linux systems."
+ ### Missing text information in parsing results when installing and using on Linux systems. {#linux-missing-text-cjk-fonts}
+
MinerU uses `pypdfium2` instead of `pymupdf` as the PDF page rendering engine in versions >=2.0 to resolve AGPLv3 license issues. On some Linux distributions, due to missing CJK fonts, some text may be lost during the process of rendering PDFs to images.
To solve this problem, you can install the noto font package with the following commands, which are effective on Ubuntu/Debian systems:
```bash
diff --git a/docs/en/quick_start/index.md b/docs/en/quick_start/index.md
index 9e9aaf79..ce02fcdf 100644
--- a/docs/en/quick_start/index.md
+++ b/docs/en/quick_start/index.md
@@ -119,6 +119,7 @@ uv pip install -e .[all]
> [!TIP]
> `mineru[all]` includes all core features, compatible with Windows / Linux / macOS systems, suitable for most users.
+> If CUDA acceleration is unavailable after installing on Windows, see the [Windows CUDA acceleration FAQ](../faq/index.md#windows-cuda-acceleration).
> If you need to specify the inference framework for the VLM model, or only intend to install a lightweight client on an edge device, please refer to the documentation [Extension Modules Installation Guide](https://opendatalab.github.io/MinerU/quick_start/extension_modules/).
---
diff --git a/docs/zh/faq/index.md b/docs/zh/faq/index.md
index e4a198de..87085c78 100644
--- a/docs/zh/faq/index.md
+++ b/docs/zh/faq/index.md
@@ -4,8 +4,34 @@
如果您仍然无法解决问题,您可通过[Discord](https://discord.gg/Tdedn9GTXq)或[WeChat](https://mineru.net/community-portal/?aliasId=3c430f94)加入社区,与其他用户和开发者交流。
+??? question "Windows 直接安装后推理速度很慢怎么办?"
+
+ ### Windows 直接安装后推理速度很慢怎么办? {#windows-cuda-acceleration}
+
+ Windows 直接安装后如果推理速度很慢,通常是 CUDA 加速相关依赖未正确安装。请根据显卡架构选择对应方案:
+
+ - Volta / Turing / Ampere / Ada Lovelace 架构显卡,例如 V100、20 系、T4、30 系、40 系:直接安装支持 CUDA 的 `torch` 和 `torchvision` 即可。请前往 [PyTorch 官网](https://pytorch.org/get-started/locally/) 选择适合您 CUDA 版本的 Windows 安装命令。
+ - Blackwell 架构显卡,例如 RTX 50xx 系列:安装 `lmdeploy 0.11.1 + cu128` 的 Windows wheel。请将 `PYTHON_VERSION` 设置为当前 Python 版本,例如 Python 3.10 / 3.11 / 3.12 / 3.13 分别填写 `310` / `311` / `312` / `313`。
+
+ ```powershell
+ $env:LMDEPLOY_VERSION = "0.11.1"
+ $env:PYTHON_VERSION = "312"
+
+ $wheel = "https://github.com/InternLM/lmdeploy/releases/download/v$($env:LMDEPLOY_VERSION)/lmdeploy-$($env:LMDEPLOY_VERSION)+cu128-cp$($env:PYTHON_VERSION)-cp$($env:PYTHON_VERSION)-win_amd64.whl"
+ pip install $wheel --extra-index-url https://download.pytorch.org/whl/cu128
+ ```
+
+ 如果 Blackwell 架构显卡环境中已经安装过 cu128 版本的 `torch`,则在定义好 `$wheel` 后只需执行以下命令,避免重新下载低版本 `torch`:
+
+ ```powershell
+ pip install $wheel --no-dependencies
+ ```
+
+
??? question "在WSL2的Ubuntu22.04中遇到报错`ImportError: libGL.so.1: cannot open shared object file: No such file or directory`"
+ ### 在WSL2的Ubuntu22.04中遇到报错`ImportError: libGL.so.1: cannot open shared object file: No such file or directory` {#wsl2-ubuntu2204-libgl}
+
WSL2的Ubuntu22.04中缺少`libgl`库,可通过以下命令安装`libgl`库解决:
```bash
@@ -16,6 +42,8 @@
??? question "在 Linux 系统安装并使用时,解析结果缺失部份文字信息。"
+ ### 在 Linux 系统安装并使用时,解析结果缺失部份文字信息。 {#linux-missing-text-cjk-fonts}
+
MinerU在>=2.0的版本中使用`pypdfium2`代替`pymupdf`作为PDF页面的渲染引擎,以解决AGPLv3的许可证问题,在某些Linux发行版,由于缺少CJK字体,可能会在将PDF渲染成图片的过程中丢失部份文字。
为了解决这个问题,您可以通过以下命令安装noto字体包,这在Ubuntu/debian系统中有效:
```bash
@@ -26,4 +54,4 @@
```
也可以直接使用我们的[Docker部署](../quick_start/docker_deployment.md)方式构建镜像,镜像中默认包含以上字体包。
- 参考:[#2915](https://github.com/opendatalab/MinerU/issues/2915)
\ No newline at end of file
+ 参考:[#2915](https://github.com/opendatalab/MinerU/issues/2915)
diff --git a/docs/zh/quick_start/index.md b/docs/zh/quick_start/index.md
index 0ed34f5e..fff9acf6 100644
--- a/docs/zh/quick_start/index.md
+++ b/docs/zh/quick_start/index.md
@@ -124,6 +124,7 @@ uv pip install -e .[all] -i https://mirrors.aliyun.com/pypi/simple
> [!TIP]
> `mineru[all]`包含所有核心功能,兼容Windows / Linux / macOS系统,适合绝大多数用户。
+> 如果您在 Windows 上安装后无法使用 CUDA 加速,请参考 [Windows CUDA 加速 FAQ](../faq/index.md#windows-cuda-acceleration)。
> 如果您需要指定vlm模型的推理框架,或是仅准备在边缘设备安装轻量版client端,可以参考文档[扩展模块安装指南](https://opendatalab.github.io/MinerU/zh/quick_start/extension_modules/)。
---