Explorar o código

docs: update README files with Docker run command for GPU support

myhloli hai 5 meses
pai
achega
f51c1acc04
Modificáronse 2 ficheiros con 12 adicións e 0 borrados
  1. 6 0
      README.md
  2. 6 0
      README_zh-CN.md

+ 6 - 0
README.md

@@ -513,6 +513,12 @@ If you need to use **sglang to accelerate VLM model inference**, you can choose
   ```bash
   wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/global/Dockerfile
   docker build -t mineru-sglang:latest -f Dockerfile .
+  docker run --gpus all \
+    --shm-size 32g \
+    -p 30000:30000 \
+    --ipc=host \
+    mineru-sglang:latest \
+    mineru-sglang-server --host 0.0.0.0 --port 30000
   ```
   
 > [!TIP]

+ 6 - 0
README_zh-CN.md

@@ -503,6 +503,12 @@ uv pip install -e .[core] -i https://mirrors.aliyun.com/pypi/simple
   ```bash
   wget https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docker/china/Dockerfile
   docker build -t mineru-sglang:latest -f Dockerfile .
+  docker run --gpus all \
+    --shm-size 32g \
+    -p 30000:30000 \
+    --ipc=host \
+    mineru-sglang:latest \
+    mineru-sglang-server --host 0.0.0.0 --port 30000
   ```
   
 > [!TIP]