Why We Evaluated MinerU 2.5

Our reason for evaluating MinerU 2.5 was straightforward: PDF ingestion can exhaust memory before retrieval gets a chance to fail. A queue of scanned manuals, dense tables, and mathematical papers is a different infrastructure problem from extracting text out of clean digital PDFs.

One vLLM initialization: GPU memoryModel weights 2.16 GiBPeak activation 0.56 GiBNon-Torch memory 0.04 GiBCUDA graphs 0.41 GiBAvailable KV-cache memory 12.28 GiB

This single initialization shows why model weights alone are not a deployment memory budget; it does not establish a universal runtime peak.

We wanted to answer three purchasing questions: how much GPU memory to reserve, whether vLLM materially improves completed-document throughput, and whether persistent workers justify their idle cost.

We could not complete a local GPU benchmark: the required GPU hardware and verified model runtime were unavailable. We keep the benchmark observations below tied to their hardware and workload conditions, distinguish cost arithmetic from measurements, and identify the acceptance tests still needed before deployment.

Under the hood, MinerU2.5 is a 1.2B-parameter vision-language model with two-stage document parsing. In our evaluation of the two-stage architecture, we distinguish global layout analysis on downsampled images from fine-grained recognition on native-resolution crops for text, formulas, and tables.

That distinction matters. A document page is not necessarily one uniform inference request. Layout analysis and recognition can generate different workloads, and pages with many content regions can behave differently from sparse pages.

Our preliminary verdict is therefore narrower than “small model, cheap parser.” MinerU is a credible candidate for difficult document ingestion, but model weight size is not a deployment memory budget, and vLLM is not an automatic end-to-end speed multiplier.

We also keep parsing separate from downstream RAG configuration. Our Chonkie review addresses chunking decisions; no chunking strategy can recover a table or reading order that ingestion has already damaged.

Proposed Setup and Benchmark Workflow

We would start with one GPU, local PDFs, cached public model assets, and no API credentials. However, we would not start by copying commands from current MinerU documentation into an assumed 2.5.0 environment.

We found an important version boundary in the supplied material: the current memory-check page includes tiers, DocVortex, and migration navigation for newer releases. The model name MinerU2.5-2509-1.2B, the MinerU application version, and the mineru-vl-utils version are separate identifiers. We cannot safely treat them as interchangeable.

For direct model inference, we have a concrete setup path in the model card:

python3 -m venv .venv . .venv/bin/activate # Exploratory installation, not a production dependency lock. python -m pip install "mineru-vl-utils[vllm]" # Capture the resolved environment before testing. python -m pip freeze > requirements.resolved.txt nvidia-smi 

We would validate that environment against the selected GPU, driver, and CUDA stack before freezing it. An unpinned install is useful for exploration, not a reproducible benchmark specification.

The model-card integration uses MinerUClient, a vLLM LLM, and MinerULogitsProcessor, then calls two_step_extract on a page image. We would preserve that document-specific integration rather than assume that a generic chat-completions server implements the complete PDF workflow.

For full-document benchmarking, our stronger reference is RayOrch’s MinerU scale workload. Its execution path renders actual PDFs, uses persistent vLLM GPU actors, and writes Markdown, layout JSON, extracted images, and completion markers.

The entry point is concrete:

# Requires a prepared Ray environment, workload dependencies, # local model assets, and paths visible to the workers. python -m rayorch.benchmarks.mineru_scale \ --input /shared/pdfs \ --input-limit 2 \ --model /shared/models/MinerU2.5-2509-1.2B \ --output /shared/results/mineru-smoke \ --artifact-dir /shared/results/mineru-smoke-reports \ --render-replicas 1 \ --ocr-replicas 1 \ --assemble-replicas 1 \ --gpus-per-ocr-actor 1 \ --batch-size 32 \ --input-batch-size 2 \ --max-active-input-batches 1 \ --gpu-memory-utilization 0.64 \ --ray-address auto 

We treat those settings as a proposed screening configuration, not a verified fit recommendation. The command does not install Flash-MinerU, download models, create a Ray cluster, or make paths shared automatically. We would verify the workload checkout and its dependency manifest first.

Our first acceptance check would be complete output, not a plausible Markdown preview:

<output>/<pdf-stem>/ _SUCCESS vlm/ <pdf-stem>.md layout.json images/ 

In this workload, we would only accept a document as committed after its completion marker validates. We would also use fresh output directories for performance candidates: resume can otherwise make a repeated benchmark appear faster by skipping work.

The following runnable worked example uses fixed reference values, not a GPU. Its output is illustrative accounting, not simulated evidence of a successful MinerU deployment:

import json pages = 867 pipeline_seconds = 136.860 startup_seconds = 551.215 gpu_count = 4 assumed_gpu_hour_price = 2.00 pipeline_rate = pages / pipeline_seconds serial_total = startup_seconds + pipeline_seconds serial_rate = pages / serial_total gpu_cost = ( gpu_count * assumed_gpu_hour_price * serial_total / 3600 ) print(json.dumps({ "kind": "reference_arithmetic_not_a_local_benchmark", "pipeline_pages_per_second": round(pipeline_rate, 3), "if_startup_and_pipeline_are_serial": { "seconds": round(serial_total, 3), "pages_per_second": round(serial_rate, 3), "gpu_only_dollars_per_1000_pages": round( gpu_cost / pages * 1000, 3 ) } }, indent=2)) 

Illustrative stdout:

{ "kind": "reference_arithmetic_not_a_local_benchmark", "pipeline_pages_per_second": 6.335, "if_startup_and_pipeline_are_serial": { "seconds": 688.075, "pages_per_second": 1.26, "gpu_only_dollars_per_1000_pages": 1.764 } } 

We deliberately label the startup calculation as conditional. The reference lists startup separately; it does not fully establish the accounting boundary needed to call our sum measured end-to-end latency.

What We Could Not Verify

Our immediate roadblock was verification, not a reproduced runtime crash. We could not establish a controlled single-GPU VRAM curve or pipeline-versus-vLLM comparison from the available evidence. That prevents a responsible “buy this GPU” recommendation.

We separated CPU heap behavior from GPU memory first. In the official memory-check procedure, window-lifetime improvements are always active. MINERU_MALLOC_TRIM independently enables optional CPU heap trimming and is off by default.

We would not enable that variable as a CUDA OOM workaround. CPU heap trimming cannot release GPU KV cache, live results, model caches, another process’s memory, or objects retained through exception tracebacks. We also keep DocVortex worker reclamation outside the scope of this trimming change.

To evaluate trimming, we would follow the documented three-way comparison:

  • Pre-change source checkout, trimming disabled.
  • Updated source checkout, trimming disabled.
  • Updated source checkout, trimming enabled.

We would keep the host, environment, models, settings, and concurrency identical. Each group starts a fresh parser process, performs three warmup rounds, then measures twenty rounds while releasing the preceding result. We would alternate documents and include PDFs longer than the experiment’s window size.

We would require Linux/glibc measurements before claiming an RSS improvement or OOM fix. We would inspect parent and worker processes separately, collect USS where available, and remember that summed RSS can double-count shared pages. Sampling every 0.2 seconds can miss short peaks.

Our performance gate would also preserve the procedure’s caution: investigate a median slowdown above 5% with trimming disabled after excluding startup, concurrent work, and sampling noise; report enabled-trim overhead separately. Output fingerprint checks belong in separate runs because their serialization changes the workload.

We also rejected the equation “more reserved VRAM equals faster parsing.” In our evaluation of the 4090D configuration, we examined gpu_memory_utilization=0.64 and max_num_batched_tokens=512. We treat similar speeds across memory settings and pipeline-like performance as an unresolved observation, not a controlled result: we cannot establish a matched corpus, DPI, batch size, and hardware comparison.

The useful evidence is the engine log. We see approximately:

Component Value in the example log
Model weights 2.16 GiB
Peak activation 0.56 GiB
Non-Torch memory 0.04 GiB
CUDA graphs 0.41 GiB
Available KV-cache memory 12.28 GiB

We cannot treat those values as a universal memory footprint. They describe one initialization and configuration, not every document’s runtime peak.

Our engineering interpretation is that additional cache capacity only helps throughput when the workload can use it. If rendering, token scheduling, request supply, or assembly is limiting progress, reserving more memory need not improve completed-document speed.

We found another concrete warning in that log: a maximum sequence length of 16,384 was below a predefined worst-case multimodal token budget of 18,225. We would investigate the offending input and configuration before increasing the sequence limit, because raising that limit can alter memory requirements. We would not classify every inference failure as insufficient VRAM.

Finally, we would keep three batch controls distinct:

  • Pages per OCR RPC.
  • PDFs per input batch and active input batches.
  • vLLM token scheduling limits.

A 64-page RPC is not a promise of 64 simultaneously resident full-resolution pages, nor is it equivalent to max_num_batched_tokens=64.

Scale, Latency & Cost vs. Alternatives

In the RayOrch benchmark results, we observed 6.335 pages/s on 4 × H20 and 48.1738 pages/s on 64 × H20. We keep those observations specific to their different corpora, software versions, and actor layouts; neither establishes a single-GPU sizing chart.

Reference configuration Work completed Reported throughput Qualification we retain
4 × 96-GB H20, one OCR actor per GPU 48 PDFs, 867 pages, zero failed documents 6.335 pages/s Pipeline wall: 136.860 seconds; startup listed separately
64 × H20, two fractional OCR actors per GPU 3,690 PDFs, 174,744 pages, one failed document 48.1738 pages/s Different corpus, versions, and actor layout
Single A100, asynchronous engine model-card reference Concurrent inference 2.12 fps Not an established full-PDF ingestion SLA
Single 4090D discussion example Approximately 32 pages in 17.5 seconds Not adopted as a controlled result Incomplete comparison methodology

For the four-GPU run, we retain the software context: Ray 2.58.0, vLLM 0.10.0, Torch 2.7.1, and mineru-vl-utils 1.2.1. Its page batch limit was 64, average pages per OCR RPC were 48.17, and batch fill was 75.26%.

The 64-GPU reference used Ray 2.51.1, vLLM 0.11.0, and Torch 2.8.0+cu128. We would not divide the two throughput figures to declare scaling efficiency: the inputs and execution configurations changed.

Our deployment choices look like this:

Option Where we would evaluate it What blocks a decision
MinerU pipeline backend Baseline for the actual document mix No controlled comparison here against vLLM
MinerU with persistent vLLM workers Sustained queues and cross-document packing GPU fit, startup cost, packing, output quality
Direct text extraction Clean digital PDFs with usable text layers Reading order, tables, scans, formulas
Other open-source parsers Corpus-specific quality and operational comparison No matched performance measurements here
Managed parsing API Low volume or limited operations capacity Actual quote, privacy terms, retries, output parity

We would evaluate RAGFlow as a broader ingestion platform rather than pretend it is a drop-in inference engine; our RAGFlow deployment review covers that wider boundary.

For VRAM procurement, we would classify tiers as test candidates, not verified minimums:

VRAM tier Our decision
8–16 GB Unverified fit; no production capacity commitment
Around 24 GB Worth screening given the 4090D example; batch envelope remains unknown
48 GB Additional headroom candidate, not proven throughput uplift
80–96 GB Useful for larger-worker experiments; H20 results still do not establish a universal batch curve

We would first confirm that the workload fits in GPU memory, then test page batches of 32, 64, 96, and 128 where memory allows. We would increase active input batches until packing stops improving, then add render capacity only if inference waits for pages. On smaller cards, we would begin below those page counts if needed.

We would also avoid copying cluster defaults onto one node. The large reference actor plan requests 449 actor CPUs; insufficient capacity leaves actors pending rather than automatically shrinking the pools.

For economics, we start with explicit assumptions. At $2 per GPU-hour, four GPUs cost $8/hour. If 6.335 pages/s were sustained, GPU-only cost would be approximately $0.351 per 1,000 pages. Our conditional startup-inclusive example instead gives approximately $1.764 per 1,000 pages for that short job.

Neither figure includes CPUs, storage, retries, idle time, or engineering.

For a hypothetical API price of $5 per 1,000 pages and $500/month of operations overhead, the simplified warm-throughput break-even is:

500 / ((5.000 - 0.351) / 1000) ≈ 107,550 pages/month 

We would replace both prices with actual quotes and observed utilization. Our RunPod cold-start and billing review explains why short-job economics need a separate calculation.

Our Final Verdict: When to Deploy, When to Skip

We would advance MinerU 2.5 to a controlled deployment pilot, not approve a parsing cluster from these throughput figures alone.

We would deploy after confirming that:

  • Our scans, tables, formulas, and reading-order checks pass.
  • Our exact GPU survives representative high-resolution documents.
  • Persistent-worker throughput includes complete, validated output.
  • CPU RSS/USS and GPU memory are measured separately.
  • Pipeline and vLLM runs use the same corpus and output requirements.
  • Cold-start cost, retries, and idle capacity fit the business case.
  • Application, model, and dependency licenses have passed review; the model card identifies AGPL-3.0.

We would hold off if the purchasing decision depends on an unverified minimum-VRAM claim, if we need a guaranteed vLLM speedup over pipeline, or if low-volume clean PDFs do not justify a GPU service.

Our next experiment would be deliberately small: one GPU, a version-locked environment, a representative corpus, fresh output directories, and a memory-and-batch sweep with three repeat runs per candidate. We would record document latency distributions, completed pages per second, failures, peak memory, and output quality—not just inference tokens per second.

We keep the memory procedure, real-PDF workload, and vLLM configuration discussion beside that acceptance plan. Our conclusion is practical: MinerU deserves testing, but the safe purchase is the configuration our documents can sustain, not the largest cache our GPU can reserve.