Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
8dbfea6d
Unverified
Commit
8dbfea6d
authored
Dec 09, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Dec 09, 2024
Browse files
Merge pull request #1239 from myhloli/dev
docs(windows): update CUDA installation guide
parents
4355b6e0
ede7d361
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
19 deletions
+2
-19
docs/README_Windows_CUDA_Acceleration_en_US.md
docs/README_Windows_CUDA_Acceleration_en_US.md
+1
-9
docs/README_Windows_CUDA_Acceleration_zh_CN.md
docs/README_Windows_CUDA_Acceleration_zh_CN.md
+1
-10
No files found.
docs/README_Windows_CUDA_Acceleration_en_US.md
View file @
8dbfea6d
...
@@ -65,16 +65,8 @@ If your graphics card has at least 8GB of VRAM, follow these steps to test CUDA-
...
@@ -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.
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.
2.
**Modify the value of `"device-mode"`**
in the
`magic-pdf.json`
configuration file located in your user directory.
...
...
docs/README_Windows_CUDA_Acceleration_zh_CN.md
View file @
8dbfea6d
...
@@ -66,18 +66,9 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
...
@@ -66,18 +66,9 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
**1.覆盖安装支持cuda的torch和torchvision**
**1.覆盖安装支持cuda的torch和torchvision**
```
bash
```
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"的值**
**2.修改【用户目录】中配置文件magic-pdf.json中"device-mode"的值**
```
json
```
json
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment