-
|
mineru-router 这个新功能在api接口里也没找到,deepwiki也没更新搜不到,这是咋用的呢,是接口还是独立的服务呢?有没有它的文档地址。 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
快速使用: # 自动检测所有 GPU,一键启动
mineru-router --host 0.0.0.0 --port 8002 --local-gpus auto
# 也可以聚合已有的远程 mineru-api 服务
mineru-router --host 0.0.0.0 --port 8002 \
--upstream-url http://server-a:8000 \
--upstream-url http://server-b:8001 \
--local-gpus none启动后,它暴露的 API 接口和 工作原理: 默认 文档位置: To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
mineru-router是 MinerU 3.0(2026-03-28 发布)新增的一个独立 HTTP 服务,用于在多个mineru-api工作进程之间做负载均衡和编排,实现一键多 GPU 部署 [1]。它不是单独的 pip 包,而是pip install mineru后自动注册的 CLI 命令,入口在mineru/cli/router.py[2]。快速使用:
[3] [4]
启动后,它暴露的 API 接口和
mineru-api完全一致(/tasks、/file_parse、/health等),可以直接作为mineru-api的替代使用 [5]。访问http://<host>:<port>/docs即可查看 Swagger 文档。工作原理: 默认
--local-gpus auto模式下,router 会自动检测可用 CUDA 设备,每个 GPU 启动一个mineru-api子进程,自动做健康检查和故障重启,并按负载分数…