mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-09-24 23:10:23 +08:00
Merge pull request #1239 from myhloli/dev
docs(windows): update CUDA installation guide
This commit is contained in:
@@ -65,16 +65,8 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
|
||||
1. **Overwrite the installation of torch and torchvision** supporting CUDA.
|
||||
|
||||
```
|
||||
pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118
|
||||
pip install --force-reinstall torch torchvision --index-url https://download.pytorch.org/whl/cu118
|
||||
```
|
||||
> [!IMPORTANT]
|
||||
> Ensure the following versions are specified in the command:
|
||||
>
|
||||
> ```
|
||||
> torch==2.3.1 torchvision==0.18.1
|
||||
> ```
|
||||
>
|
||||
> These are the highest versions we support. Installing higher versions without specifying them will cause the program to fail.
|
||||
|
||||
2. **Modify the value of `"device-mode"`** in the `magic-pdf.json` configuration file located in your user directory.
|
||||
|
||||
|
||||
@@ -66,18 +66,9 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
|
||||
**1.覆盖安装支持cuda的torch和torchvision**
|
||||
|
||||
```bash
|
||||
pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118
|
||||
pip install --force-reinstall torch torchvision --index-url https://download.pytorch.org/whl/cu118
|
||||
```
|
||||
|
||||
> [!IMPORTANT]
|
||||
> 务必在命令中指定以下版本
|
||||
>
|
||||
> ```bash
|
||||
> torch==2.3.1 torchvision==0.18.1
|
||||
> ```
|
||||
>
|
||||
> 这是我们支持的最高版本,如果不指定版本会自动安装更高版本导致程序无法运行
|
||||
|
||||
**2.修改【用户目录】中配置文件magic-pdf.json中"device-mode"的值**
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user