TensorPlay AI
Open navigation
Blog

MegaLM × OXR: 1.46× End-to-End Document Parsing Throughput on a Single RTX 3090

We are excited to announce OXR document parsing support in MegaLM, the high-performance inference engine built on TensorPlay. MegaLM serves as an alternative to vLLM for PDF-to-Markdown conversion without changes to the application pipeline, model weights, or numerical precision.

Performance

We evaluate the complete document parsing pipeline on a 14-page IEEE paper, measuring the time from PDF submission to the final Markdown output.

MegaLM completes three measured runs in 16.71, 16.73, and 16.70 seconds, with a spread of just 30 ms. The resulting Markdown achieves 99.93% text similarity across the two backends, with matching body text, tables, and paragraph order.

MetricvLLM 0.25.1MegaLM
End-to-end latency24.43 s16.71 s
Parsing throughput0.573 pages/s0.838 pages/s
Processed pages1414
Markdown characters87,33087,323
OXR document parsing performance
OXR document parsing performance

OXR Integration

OXR's page-level reading-order requests contain approximately 10K context tokens, making concurrent document parsing a demanding workload for request scheduling and KV cache management.

This integration improves generation configuration compatibility and introduces KV cache-aware request admission, enabling MegaLM to serve concurrent long-context requests within a constrained GPU memory budget, without changes to the OXR application pipeline.

OXR pipeline with MegaLM and vLLM
OXR pipeline with MegaLM and vLLM

Benchmark Setup

Both backends use the same IEEE PDF, OXR API, D-FINE layout analysis service, and BF16 model weights. Serving configurations are identical: 16,384-token maximum context length, 0.70 GPU memory utilization, and 16 maximum concurrent sequences. Results report the median of three measured runs after one warmup per backend.

These results apply to the evaluated document and deployment configuration. Output similarity is not a measure of OCR accuracy.

This integration demonstrates MegaLM's capabilities beyond isolated model benchmarks, extending to long-context inference and end-to-end document understanding. We welcome the community to evaluate MegaLM on more real-world workloads.

Resources

Ask DeepWiki