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

exe版不自动调用GPU #688

Closed
4 tasks done
xy3xy3 opened this issue Feb 25, 2025 · 6 comments
Closed
4 tasks done

exe版不自动调用GPU #688

xy3xy3 opened this issue Feb 25, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@xy3xy3
Copy link

xy3xy3 commented Feb 25, 2025

在提问之前...

  • 我已经搜索了现有的 issues
  • 我在提问题之前至少花费了 5 分钟来思考和准备
  • 我已经认真且完整的阅读了 wiki
  • 我已经认真检查了问题和网络环境无关(包括但不限于Google不可用,模型下载失败)

使用的环境

- OS:windows
- Python:3.12.0
- pdf2zh:1.9.1

描述你的问题

使用的pdf2zh-awv1.9.1-win64.zip
211 MB
但是不会自动调用GPU在翻译过程中,cuda已经安装

Image

Image

如何复现

1.启动exe
2.开始翻译
3.打开任务管理器,发现只占用CPU 无GPU占用

预期行为

使用GPU加速识别

相关 Logs


原始PDF文件

No response

还有别的吗?

No response

@xy3xy3 xy3xy3 added the bug Something isn't working label Feb 25, 2025
@awwaawwa
Copy link
Collaborator

符合预期

@awwaawwa
Copy link
Collaborator

exe确实没有这种先进功能。并且短期内也不准备搞

@awwaawwa
Copy link
Collaborator

#690

我挂个issue看有没有好心人给做吧。

@xy3xy3
Copy link
Author

xy3xy3 commented Feb 25, 2025

符合预期

Image

Image

请问为什么

conda activate PDFMathTranslate
pdf2zh --dir D:/BaiduSyncdisk/大三下/编译原理/ppt -s openai:doubao-1-5-lite-32k-250115 -t 4

在conda环境下我用包来也不调用GPU?
此时我cd了目录,应该不会错误调用到exe文件,而是调用conda环境的包

@awwaawwa
Copy link
Collaborator

onnxruntime的gpu支持是单独的包,请另行安装

@awwaawwa
Copy link
Collaborator

另外可能需要改代码才能用上GPU

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

2 participants