mineru

by apecloud

Helm chartv0.1.0App 3.4.2Verified publisher

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-chat chart (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 bundles mineru-vl-utils (logits processor included) and mineru-openai-server serves 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):

  1. vlm_server_url = http://<release>-mineru-openai-server:30000
  2. vlm_model_name = the exact id returned by GET http://<release>-mineru-openai-server:30000/v1/models after startup. Never guess this value; a mismatch must fail fast (acceptance item 10).
  3. Backend vlm-http-client or hybrid-http-client; ApeMind sends only server_url to 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:

  1. Record the exact MinerU full or lite image tag and digest used for the run.
  2. Start the vLLM endpoint and record GET /v1/models.
  3. 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
  4. Parse a document with backend vlm-http-client.
  5. Parse a document with backend hybrid-http-client.
  6. Confirm ApeMind posts only server_url to MinerU /tasks; do not post a model-name form field.
  7. Exercise legacy backend aliases vlm-auto-engine and hybrid-auto-engine.
  8. Exercise both effort modes medium and high.
  9. Exercise nested ZIP input and verify middle_json output is available.
  10. 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmineru is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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