3
框架组件
是否有支持mineru2的MinerU2.0-2505-0.9B模型的镜像
2025-06-23 17:17:11
195

使用

FROM image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.4.1-ubuntu22.04-dtk25.04-py3.10

RUN mkdir /app
WORKDIR /app

COPY app.py /app

RUN pip install -U "mineru[all]" -i https://mirrors.aliyun.com/pypi/simple

RUN mineru-models-download --help

ENV MINERU_MODEL_SOURCE=local

安装mineru,docker编译过程中报错

Downloading https://mirrors.aliyun.com/pypi/packages/34/26/3c6f12ffaefbfa0c453030d6e15941269b3a4ffcd267daec32d1a10dda96/flashinfer_python-0.2.6.post1.tar.gz (3.1 MB)
17:05:52 #9 855.0 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 5.7 MB/s eta 0:00:00
17:05:53 #9 855.5 Installing build dependencies: started
17:05:55 #9 857.9 Installing build dependencies: finished with status 'done'
17:05:55 #9 857.9 Getting requirements to build wheel: started
17:05:55 #9 858.0 Getting requirements to build wheel: finished with status 'done'
17:06:58 #9 858.0 Installing backend dependencies: started
17:06:58 #9 920.4 Installing backend dependencies: still running...
17:06:58 #9 920.7 Installing backend dependencies: finished with status 'done'
17:07:00 #9 920.8 Preparing metadata (pyproject.toml): started
17:07:00 #9 922.6 Preparing metadata (pyproject.toml): finished with status 'error'
17:07:00 #9 922.6 error: subprocess-exited-with-error
17:07:00 #9 922.6
17:07:00 #9 922.6 × Preparing metadata (pyproject.toml) did not run successfully.
17:07:00 #9 922.6 │ exit code: 1
17:07:00 #9 922.6 ╰─> [26 lines of output]
17:07:00 #9 922.6 No ROCm runtime is found, using ROCM_HOME='/opt/dtk'
17:07:00 #9 922.6 0 AOT ops found in /tmp/pip-install-fpu1cksc/flashinfer-python_a6c59ce35a2b4929bb82485844d24b4d/aot-ops
17:07:00 #9 922.6 Traceback (most recent call last):
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
17:07:00 #9 922.6 main()
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
17:07:00 #9 922.6 json_out["return_val"] = hook(**hook_input["kwargs"])
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
17:07:00 #9 922.6 return hook(metadata_directory, config_settings)
17:07:00 #9 922.6 File "/tmp/pip-install-fpu1cksc/flashinfer-python_a6c59ce35a2b4929bb82485844d24b4d/custom_backend.py", line 91, in prepare_metadata_for_build_wheel
17:07:00 #9 922.6 return orig.prepare_metadata_for_build_wheel(metadata_directory, config_settings)
17:07:00 #9 922.6 File "/tmp/pip-build-env-rik7qtjp/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
17:07:00 #9 922.6 self.run_setup()
17:07:00 #9 922.6 File "/tmp/pip-build-env-rik7qtjp/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 317, in run_setup
17:07:00 #9 922.6 exec(code, locals())
17:07:00 #9 922.6 File "", line 80, in
17:07:00 #9 922.6 File "", line 77, in get_cuda_version
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/subprocess.py", line 421, in check_output
17:07:00 #9 922.6 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/subprocess.py", line 503, in run
17:07:00 #9 922.6 with Popen(*popenargs, **kwargs) as process:
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/subprocess.py", line 971, in __init__
17:07:00 #9 922.6 self._execute_child(args, executable, preexec_fn, close_fds,
17:07:00 #9 922.6 File "/usr/local/lib/python3.10/subprocess.py", line 1863, in _execute_child
17:07:00 #9 922.6 raise child_exception_type(errno_num, err_msg, err_filename)
17:07:00 #9 922.6 FileNotFoundError: [Errno 2] No such file or directory: 'nvcc'
17:07:00 #9 922.6 [end of output]

全部评论(5)
只看楼主
潜水1号
1楼
您好 flashinfer 正在适配中 底层库适配完会第一时间放出来! 请您关注https://download.sourcefind.cn:65024/4/main/
2025/6/24
网
网友jgVyvA
回复 @潜水1号
所以目前海光还不支持mineru2.0?
2025/6/24
网
网友jgVyvA
回复 @潜水1号
能用cpu吗
2025/6/24
潜水1号
回复 @潜水1号
对的 很快了 这个包适配完就好了
2025/6/24
全部4条回复
没有更多内容了
--
楼主
Level.1
0 帖子
楼主热帖
暂无数据