Unverified Commit c86a07d5 authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Merge pull request #3093 from myhloli/dev

fix: update docker deployment instructions for service profiles
parents 107308ac 1895f671
...@@ -26,7 +26,7 @@ MinerU's Docker uses `lmsysorg/sglang` as the base image, so it includes the `sg ...@@ -26,7 +26,7 @@ MinerU's Docker uses `lmsysorg/sglang` as the base image, so it includes the `sg
> >
> If your device doesn't meet the above requirements, you can still use other features of MinerU, but cannot use `sglang` to accelerate VLM model inference, meaning you cannot use the `vlm-sglang-engine` backend or start the `vlm-sglang-server` service. > If your device doesn't meet the above requirements, you can still use other features of MinerU, but cannot use `sglang` to accelerate VLM model inference, meaning you cannot use the `vlm-sglang-engine` backend or start the `vlm-sglang-server` service.
## Start Docker Container: ## Start Docker Container
```bash ```bash
docker run --gpus all \ docker run --gpus all \
...@@ -60,7 +60,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml ...@@ -60,7 +60,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
### Start sglang-server service ### Start sglang-server service
connect to `sglang-server` via `vlm-sglang-client` backend connect to `sglang-server` via `vlm-sglang-client` backend
```bash ```bash
docker compose -f compose.yaml --profile mineru-sglang-server up -d docker compose -f compose.yaml --profile sglang-server up -d
``` ```
>[!TIP] >[!TIP]
>In another terminal, connect to sglang server via sglang client (only requires CPU and network, no sglang environment needed) >In another terminal, connect to sglang server via sglang client (only requires CPU and network, no sglang environment needed)
...@@ -72,7 +72,7 @@ connect to `sglang-server` via `vlm-sglang-client` backend ...@@ -72,7 +72,7 @@ connect to `sglang-server` via `vlm-sglang-client` backend
### Start Web API service ### Start Web API service
```bash ```bash
docker compose -f compose.yaml --profile mineru-api up -d docker compose -f compose.yaml --profile api up -d
``` ```
>[!TIP] >[!TIP]
>Access `http://<server_ip>:8000/docs` in your browser to view the API documentation. >Access `http://<server_ip>:8000/docs` in your browser to view the API documentation.
...@@ -81,7 +81,7 @@ connect to `sglang-server` via `vlm-sglang-client` backend ...@@ -81,7 +81,7 @@ connect to `sglang-server` via `vlm-sglang-client` backend
### Start Gradio WebUI service ### Start Gradio WebUI service
```bash ```bash
docker compose -f compose.yaml --profile mineru-gradio up -d docker compose -f compose.yaml --profile gradio up -d
``` ```
>[!TIP] >[!TIP]
> >
......
...@@ -25,7 +25,7 @@ Mineru的docker使用了`lmsysorg/sglang`作为基础镜像,因此在docker中 ...@@ -25,7 +25,7 @@ Mineru的docker使用了`lmsysorg/sglang`作为基础镜像,因此在docker中
> >
> 如果您的设备不满足上述条件,您仍然可以使用MinerU的其他功能,但无法使用`sglang`加速VLM模型推理,即无法使用`vlm-sglang-engine`后端和启动`vlm-sglang-server`服务。 > 如果您的设备不满足上述条件,您仍然可以使用MinerU的其他功能,但无法使用`sglang`加速VLM模型推理,即无法使用`vlm-sglang-engine`后端和启动`vlm-sglang-server`服务。
## 启动 Docker 容器 ## 启动 Docker 容器
```bash ```bash
docker run --gpus all \ docker run --gpus all \
...@@ -58,7 +58,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml ...@@ -58,7 +58,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
### 启动 sglang-server 服务 ### 启动 sglang-server 服务
并通过`vlm-sglang-client`后端连接`sglang-server` 并通过`vlm-sglang-client`后端连接`sglang-server`
```bash ```bash
docker compose -f compose.yaml --profile mineru-sglang-server up -d docker compose -f compose.yaml --profile sglang-server up -d
``` ```
>[!TIP] >[!TIP]
>在另一个终端中通过sglang client连接sglang server(只需cpu与网络,不需要sglang环境) >在另一个终端中通过sglang client连接sglang server(只需cpu与网络,不需要sglang环境)
...@@ -70,7 +70,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml ...@@ -70,7 +70,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
### 启动 Web API 服务 ### 启动 Web API 服务
```bash ```bash
docker compose -f compose.yaml --profile mineru-api up -d docker compose -f compose.yaml --profile api up -d
``` ```
>[!TIP] >[!TIP]
>在浏览器中访问 `http://<server_ip>:8000/docs` 查看API文档。 >在浏览器中访问 `http://<server_ip>:8000/docs` 查看API文档。
...@@ -79,7 +79,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml ...@@ -79,7 +79,7 @@ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
### 启动 Gradio WebUI 服务 ### 启动 Gradio WebUI 服务
```bash ```bash
docker compose -f compose.yaml --profile mineru-gradio up -d docker compose -f compose.yaml --profile gradio up -d
``` ```
>[!TIP] >[!TIP]
> >
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment