Skip to content

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

docs(README): update system requirements and GPU support

myhloli298305dd4f87
diff --git a/README.md b/README.md
index c386a4f2..69beba17 100644
--- a/README.md
+++ b/README.md
@@ -215,7 +215,7 @@ There are three different ways to experience MinerU:
</tr>
<tr>
<td colspan="3">Python Version</td>
- <td colspan="3">3.10(Please make sure to create a Python 3.10 virtual environment using conda)</td>
+ <td colspan="3">3.10~3.12</td>
</tr>
<tr>
<td colspan="3">Nvidia Driver Version</td>
@@ -225,8 +225,8 @@ There are three different ways to experience MinerU:
</tr>
<tr>
<td colspan="3">CUDA Environment</td>
- <td>Automatic installation [12.1 (pytorch) + 11.8 (paddle)]</td>
- <td>11.8 (manual installation) + cuDNN v8.7.0 (manual installation)</td>
+ <td>11.8/12.4/12.6</td>
+ <td>11.8/12.4/12.6</td>
<td>None</td>
</tr>
<tr>
@@ -236,11 +236,11 @@ There are three different ways to experience MinerU:
<td>None</td>
</tr>
<tr>
- <td rowspan="2">GPU Hardware Support List</td>
- <td colspan="2">GPU VRAM 8GB or more</td>
- <td colspan="2">2080~2080Ti / 3060Ti~3090Ti / 4060~4090<br>
- 8G VRAM can enable all acceleration features</td>
- <td rowspan="2">None</td>
+ <td rowspan="2">GPU/MPS Hardware Support List</td>
+ <td colspan="2">GPU VRAM 6GB or more</td>
+ <td colspan="2">All GPUs with Tensor Cores produced from Volta(2017) onwards.<br>
+ More than 6GB VRAM </td>
+ <td rowspan="2">apple slicon</td>
</tr>
</table>
@@ -257,9 +257,9 @@ Synced with dev branch updates:
#### 1. Install magic-pdf
```bash
-conda create -n mineru python=3.10
+conda create -n mineru 'python<3.13' -y
conda activate mineru
-pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com
+pip install -U "magic-pdf[full]"
```
#### 2. Download model weight files
@@ -284,7 +284,7 @@ You can modify certain configurations in this file to enable or disable features
{
// other config
"layout-config": {
- "model": "doclayout_yolo" // Please change to "layoutlmv3" when using layoutlmv3.
+ "model": "doclayout_yolo"
},
"formula-config": {
"mfd_model": "yolo_v8_mfd",
@@ -292,7 +292,7 @@ You can modify certain configurations in this file to enable or disable features
"enable": true // The formula recognition feature is enabled by default. If you need to disable it, please change the value here to "false".
},
"table-config": {
- "model": "rapid_table", // Default to using "rapid_table", can be switched to "tablemaster" or "struct_eqtable".
+ "model": "rapid_table",
"sub_model": "slanet_plus", // When the model is "rapid_table", you can choose a sub_model. The options are "slanet_plus" and "unitable"
"enable": true, // The table recognition feature is enabled by default. If you need to disable it, please change the value here to "false".
"max_time": 400
@@ -308,7 +308,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
- [Windows 10/11 + GPU](docs/README_Windows_CUDA_Acceleration_en_US.md)
- Quick Deployment with Docker
> [!IMPORTANT]
-> Docker requires a GPU with at least 8GB of VRAM, and all acceleration features are enabled by default.
+> Docker requires a GPU with at least 6GB of VRAM, and all acceleration features are enabled by default.
>
> Before running this Docker, you can use the following command to check if your device supports CUDA acceleration on Docker.
>
@@ -330,7 +330,7 @@ If your device has NPU acceleration hardware, you can follow the tutorial below
### Using MPS
-If your device uses Apple silicon chips, you can enable MPS acceleration for certain supported tasks (such as layout detection and formula detection).
+If your device uses Apple silicon chips, you can enable MPS acceleration for your tasks.
You can enable MPS acceleration by setting the `device-mode` parameter to `mps` in the `magic-pdf.json` configuration file.
@@ -341,10 +341,6 @@ You can enable MPS acceleration by setting the `device-mode` parameter to `mps`
}
```
-> [!TIP]
-> Since the formula recognition task cannot utilize MPS acceleration, you can disable the formula recognition feature in tasks where it is not needed to achieve optimal performance.
->
-> You can disable the formula recognition feature by setting the `enable` parameter in the `formula-config` section to `false`.
## Usage
diff --git a/README_zh-CN.md b/README_zh-CN.md
index 446d7ee5..6c3d728d 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -288,7 +288,7 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
{
// other config
"layout-config": {
- "model": "doclayout_yolo" // 使用layoutlmv3请修改为“layoutlmv3"
+ "model": "doclayout_yolo"
},
"formula-config": {
"mfd_model": "yolo_v8_mfd",
@@ -296,7 +296,7 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
"enable": true // 公式识别功能默认是开启的,如果需要关闭请修改此处的值为"false"
},
"table-config": {
- "model": "rapid_table", // 默认使用"rapid_table",可以切换为"tablemaster"和"struct_eqtable"
+ "model": "rapid_table",
"sub_model": "slanet_plus", // 当model为"rapid_table"时,可以自选sub_model,可选项为"slanet_plus"和"unitable"
"enable": true, // 表格识别功能默认是开启的,如果需要关闭请修改此处的值为"false"
"max_time": 400
@@ -312,7 +312,7 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
- [Windows10/11 + GPU](docs/README_Windows_CUDA_Acceleration_zh_CN.md)
- 使用Docker快速部署
> [!IMPORTANT]
-> Docker 需设备gpu显存大于等于8GB,默认开启所有加速功能
+> Docker 需设备gpu显存大于等于6GB,默认开启所有加速功能
>
> 运行本docker前可以通过以下命令检测自己的设备是否支持在docker上使用CUDA加速
>
@@ -332,7 +332,7 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
[NPU加速教程](docs/README_Ascend_NPU_Acceleration_zh_CN.md)
### 使用MPS
-如果您的设备使用Apple silicon 芯片,您可以在部分支持的任务(layout检测/公式检测)中开启mps加速:
+如果您的设备使用Apple silicon 芯片,您可以开启mps加速:
您可以通过在 `magic-pdf.json` 配置文件中将 `device-mode` 参数设置为 `mps` 来启用 MPS 加速。
@@ -343,10 +343,6 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple
}
```
-> [!TIP]
-> 由于公式识别任务无法开启mps加速,您可在不需要识别公式的任务关闭公式识别功能以获得最佳性能。
->
-> 您可以通过将 `formula-config` 部分中的 `enable` 参数设置为 `false` 来禁用公式识别功能。
## 使用