1.0 KiB
1.0 KiB
MinerU SGLang
This service runs MinerU with the SGLang backend.
Start Services
-
SGLang backend server:
docker compose --profile sglang-server up -d -
Document parse API:
docker compose --profile api up -d -
Gradio WebUI:
docker compose --profile gradio up -d
Test SGLang backend
pip install mineru
mineru -p demo.pdf -o ./output -b vlm-sglang-client -u http://localhost:30000
Services
mineru-sglang-server: The SGLang backend server.mineru-api: The document parsing API.mineru-gradio: The Gradio WebUI.
Configuration
MINERU_DOCKER_IMAGE: The Docker image for MinerU SGLang, default isalexsuntop/mineru-sglang:2.2.2.MINERU_PORT_OVERRIDE_SGLANG: The host port for the SGLang server, default is30000.MINERU_PORT_OVERRIDE_API: The host port for the API service, default is8000.MINERU_PORT_OVERRIDE_GRADIO: The host port for the Gradio WebUI, default is7860.