feat: add README

This commit is contained in:
Sun-ZhenXing
2025-09-24 14:16:10 +08:00
parent 232517b58f
commit 70f39867cf
65 changed files with 1695 additions and 103 deletions

View File

@@ -1,26 +1,45 @@
# MinerU SGLang
SGLang backend server:
[English](./README.md) | [中文](./README.zh.md)
```bash
docker compose --profile sglang-server up -d
```
This service runs MinerU with the SGLang backend.
Document parse API:
## Start Services
```bash
docker compose --profile api up -d
```
- **SGLang backend server**:
Gradio WebUI:
```bash
docker compose --profile sglang-server up -d
```
```bash
docker compose --profile gradio up -d
```
- **Document parse API**:
Test SGLang backend:
```bash
docker compose --profile api up -d
```
- **Gradio WebUI**:
```bash
docker compose --profile gradio up -d
```
## Test SGLang backend
```bash
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 is `alexsuntop/mineru-sglang:2.2.2`.
- `MINERU_PORT_OVERRIDE_SGLANG`: The host port for the SGLang server, default is `30000`.
- `MINERU_PORT_OVERRIDE_API`: The host port for the API service, default is `8000`.
- `MINERU_PORT_OVERRIDE_GRADIO`: The host port for the Gradio WebUI, default is `7860`.