|
|
@@ -509,10 +509,13 @@ If you need to use **sglang to accelerate VLM model inference**, you can choose
|
|
|
```bash
|
|
|
uv pip install -e .[all]
|
|
|
```
|
|
|
-- Build the Docker image:
|
|
|
+- Build image using Dockerfile:
|
|
|
```bash
|
|
|
wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/global/Dockerfile
|
|
|
docker build -t mineru-sglang:latest -f Dockerfile .
|
|
|
+ ```
|
|
|
+ Start Docker container:
|
|
|
+ ```bash
|
|
|
docker run --gpus all \
|
|
|
--shm-size 32g \
|
|
|
-p 30000:30000 \
|
|
|
@@ -520,6 +523,11 @@ If you need to use **sglang to accelerate VLM model inference**, you can choose
|
|
|
mineru-sglang:latest \
|
|
|
mineru-sglang-server --host 0.0.0.0 --port 30000
|
|
|
```
|
|
|
+ Or start using Docker Compose:
|
|
|
+ ```bash
|
|
|
+ wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/compose.yaml
|
|
|
+ docker compose -f compose.yaml up -d
|
|
|
+ ```
|
|
|
|
|
|
> [!TIP]
|
|
|
> The Dockerfile uses `lmsysorg/sglang:v0.4.7-cu124` as the default base image. If necessary, you can modify it to another platform version.
|