Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我已经设置为GPU模式了,看起来速度也更快了,但是为什么CPU占用一直100%,GPU几乎不占用? #1864

Open
g123413927 opened this issue Mar 7, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@g123413927
Copy link

Description of the bug | 错误描述

有人能告诉我,这个是合理的吗?

How to reproduce the bug | 如何复现

就是随便弄了个pdf拿来解析

Operating system | 操作系统

Windows

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

1.0.x

Device mode | 设备模式

cuda

@g123413927 g123413927 added the bug Something isn't working label Mar 7, 2025
@ldbacf
Copy link

ldbacf commented Mar 8, 2025

是不是没改magic-pdf的device 配置,默认是cpu,你改为cuda试试

@fancy-long
Copy link

我有改magic-pdf里的cpu到cuda,也能看到转换时的提示有说明“gpu_memory: 12 GB, batch_ratio: 4”
但是和这个issue题主遇到的情况一样。

@xcvil
Copy link

xcvil commented Mar 10, 2025

我也有这种问题 #1844 我想讨论一下那些进程/工具会占用CPU呢

@fancy-long
Copy link

我执行完“README_Windows_CUDA_Acceleration_zh_CN.md”中的第九步为ocr开启cuda加速后,cpu的情况就好些了,虽然有提高CPU占用,但不会被拉满了,猜测可能是完成第九步前大部分工作还是CPU干的,GPU只是辅助。完成第九步后就可以将大部分工作给GPU做了。

这是我完成第九步后执行magic-pdf时CPU、GPU的占用的情况

Image

@YaoAIPro
Copy link

模型是使用GPU的,但是之前的数据预处理是使用CPU的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants