2.0.6怎么使用cuda? #2822
-
|
windows环境下,我记得老版本在magic-pdf.json里可以设置"device-mode": "cuda",现在2.0.6版本的json文件里没有这个项目了。 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
2025-06-28 21:26:23.556 | WARNING | mineru.backend.vlm.predictor::35 - sglang is not installed. If you are not using sglang, you can ignore this warning. CPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\cpu\nms_kernel.cpp:112 [kernel] Traceback (most recent call last): File "", line 198, in _run_module_as_main File "D:\anaconda_envs\envs\MinerU\Scripts\mineru.exe_main_.py", line 10, in File "D:\anaconda_envs\envs\MinerU\Lib\site-packages\click\core.py", line 1442, in call
File "D:\anaconda_envs\envs\MinerU\Lib\site-packages\ultralytics\engine\model.py", line 555, in predict NotImplementedError: Could not run 'torchvision::nms' with arguments from the 'CUDA' backend. This could be because the operator doesn't exist for this backend, or was omitted during the selective/cust CPU: registered at C:\actions-runner_work\vision\vision\pytorch\vision\torchvision\csrc\ops\cpu\nms_kernel.cpp:112 [kernel] -> Cannot close object, library is destroyed. This may cause a memory leak! |
Beta Was this translation helpful? Give feedback.
-
|
可能torchvision和torch不匹配吧,你装torch的时候带上torchvision |
Beta Was this translation helpful? Give feedback.
-
|
解决了。mineru 2.0.6 暂时不支持pytorch的cuda12.8版本(我安装的版本)。把pytorch降级到对应cuda12.6的版本后就没有报错了。 |
Beta Was this translation helpful? Give feedback.


用nvidia-smi命令看下驱动版本,可能是驱动太老了