-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
🔎 Search before asking | 提交之前请先搜索
- I have searched the MinerU Readme and found no similar bug report.
- I have searched the MinerU Issues and found no similar bug report.
- I have searched the MinerU Discussions and found no similar bug report.
🤖 Consult the online AI assistant for assistance | 在线 AI 助手咨询
- I have consulted the online AI assistant but was unable to obtain a solution to the issue.
Description of the bug | 错误描述
linux环境下docker方式部署
services:
mineru-sglang-server:
image: mineru-sglang:latest
container_name: mineru-sglang-server
restart: always
ports:
- 30000:30000
environment:
MINERU_MODEL_SOURCE: local
entrypoint: mineru-sglang-server
command:
--host 0.0.0.0
--port 30000
--mem-fraction-static 0.5
ulimits:
memlock: -1
stack: 67108864
ipc: host
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: [gpu]
mineru-api:
image: mineru-sglang:latest
container_name: mineru-api
restart: always
ports:
- 8900:8000
environment:
MINERU_MODEL_SOURCE: local
entrypoint: mineru-api
command:
--host 0.0.0.0
--port 8000
--backend vlm-sglang-client
--server-url http://mineru-sglang-server:30000
depends_on:
- mineru-sglang-server
mineru-gradio:
image: mineru-sglang:latest
container_name: mineru-gradio
restart: always
ports:
- 7860:7860
environment:
MINERU_MODEL_SOURCE: local
entrypoint: mineru-gradio
command:
--server-name 0.0.0.0
--server-port 7860
--enable-sglang-engine false
depends_on:
- mineru-sglang-server
请求报错
curl.exe -X POST http://192.168.1.3:8900/file_parse -H "Accept: application/json" -F "files=@d:\test.pdf"
{"error":"Failed to process file: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'"}
How to reproduce the bug | 如何复现
curl.exe -X POST http://192.168.1.3:8900/file_parse -H "Accept: application/json" -F "files=@d:\test.pdf"
{"error":"Failed to process file: mineru.cli.common.aio_do_parse() got multiple values for keyword argument 'backend'"}
Operating System Mode | 操作系统类型
Linux
Operating System Version| 操作系统版本
Ubuntu 22.04
Python version | Python 版本
3.10
Software version | 软件版本 (mineru --version)
2.0.x
Device mode | 设备模式
cuda