mineru
by apecloud
MinerU document parsing service for ApeMind private deployment. Stateless GPU inference (PDF/image/DOCX/PPTX/XLSX → markdown/JSON). Default pins Apache-2.0 model variant (MinerU2.5-Pro-2605-1.2B).
About this chart
MinerU Deployment Notes
This chart deploys MinerU document parsing services for private ApeMind
deployments. The openaiServer profile is the MinerU VLM inference endpoint
used by MinerU http-client backends.
Instance B: MinerU VLM endpoint via openaiServer (decided option ①)
The private-vLLM design (issue #2607, design doc
docs/design/mineru-3x-upgrade-and-vllm-private-deployment.md) runs two model
instances:
- Instance A — chat/tool-use LLM: the separate
deploy/vllm-chatchart (Qwen3.6-27B-FP8, tool-call parser wired per its NOTES). - Instance B — MinerU VLM endpoint: this chart with
services.openaiServer.enabled=true. No extra vLLM chart is needed: the MinerU image bundlesmineru-vl-utils(logits processor included) andmineru-openai-serverserves its own model with a self-consistent served model name, which removes the model-name-mismatch 404 class that a bare vLLM instance would reintroduce.
Enable it:
services:
openaiServer:
enabled: true # renders Service <release>-mineru-openai-server:30000
Wire ApeMind to it (admin → parser integrations → MinerU self-hosted):
vlm_server_url=http://<release>-mineru-openai-server:30000vlm_model_name= the exactidreturned byGET http://<release>-mineru-openai-server:30000/v1/modelsafter startup. Never guess this value; a mismatch must fail fast (acceptance item 10).- Backend
vlm-http-clientorhybrid-http-client; ApeMind sends onlyserver_urlto MinerU/tasks(acceptance item 6).
Single-node co-location: each enabled GPU profile in this chart requests a
whole nvidia.com/gpu: 1, and deploy/vllm-chat does the same, so the
default dual-instance layout needs a node with two GPUs (sizing tiers in
design doc §4). Sharing one physical GPU requires MIG/time-slicing at the
cluster layer plus reduced --gpu-memory-utilization via extraArgs; treat
that as an advanced setup and validate it during the acceptance gate below.
External vLLM Acceptance Gate
When ApeMind is configured to use MinerU self-hosted backends
vlm-http-client or hybrid-http-client, the first real GPU deployment must
run a true-image parser smoke before it is accepted for customer traffic.
This smoke is intentionally separate from unit, compose, and kind tests because it requires an amd64 host with NVIDIA GPU, CUDA-capable runtime, MinerU images, and a real OpenAI-compatible vLLM endpoint.
Required evidence:
- Record the exact MinerU full or lite image tag and digest used for the run.
- Start the vLLM endpoint and record
GET /v1/models. - Confirm these three model names are identical:
- Admin parser integration
vlm_model_name - MinerU process
MINERU_VL_MODEL_NAME - vLLM served model returned by
/v1/models
- Admin parser integration
- Parse a document with backend
vlm-http-client. - Parse a document with backend
hybrid-http-client. - Confirm ApeMind posts only
server_urlto MinerU/tasks; do not post a model-name form field. - Exercise legacy backend aliases
vlm-auto-engineandhybrid-auto-engine. - Exercise both effort modes
mediumandhigh. - Exercise nested ZIP input and verify
middle_jsonoutput is available. - Deliberately configure a mismatched model name and confirm the path fails fast instead of silently parsing with the wrong model.
Do not mark a private vLLM deployment ready until this smoke result is attached to the deployment record or customer handoff notes.
Deploy mineru with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mineru on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmineru is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply