Analysis
SoMarkAI Releases Code and Weights for OXR, a 1.3B Document Parser Built for Self-Hosted RAG and Agent Pipelines
SoMarkAI released the code and weights for OXR, a 1.3B document parsing model for self-hosted RAG and agent pipelines, with Markdown and JSON output.

SHANGHAI, China, October 20, 2026. SoMarkAI today released the code and weights for OXR (Optical Everything Recognition), a 1.3-billion-parameter document parsing model that converts PDFs and document images into Markdown or JSON with layout coordinates and reading order. The release targets organizations that need structured document data for retrieval-augmented generation (RAG) and AI agents and want to keep their files on their own hardware.
OXR runs on a single NVIDIA GPU with BF16 support. 24 GB of VRAM is enough for low-concurrency testing, and 48 GB or more is recommended for long documents or higher concurrency. An all-in-one Docker image starts the full stack, and a free hosted API with no signup is available for evaluation.
How it works

The OXR pipeline: layout analysis, then recognition and reading order in one model. Source: SoMark.
SoMarkAI attributes OXR's accuracy and speed to two parts working together: the model architecture and a recursive self-improvement (RSI) post-training loop.
On the architecture side, layout analysis runs as a separate, replaceable model, and OXR predicts text recognition and reading order in the same pass. Teams whose documents need different regions or categories can plug in their own layout model and keep OXR's recognition and reading order. The model recognizes 13 element types, with tables output as HTML or Markdown, formulas as LaTeX, chemical equations in mhchem notation and chemical structures as SMILES.
On the training side, the RSI loop runs in three stages on unlabeled documents. A general vision-language model judges OXR's outputs as correct, wrong or uncertain, with disagreement across repeated predictions marking unstable samples as uncertain. It writes down possible reasons for the wrong and uncertain samples and clusters similar reasons into reason clusters. It then generates training data aimed at those clusters, and only data that passes rule-based validation enters training, so the data needs no human annotation. To the team's knowledge, OXR is the first document parser trained this way. SoMarkAI describes the loop in a technical blog post.
In SoMarkAI's comparison against published scores, OXR ranks first on olmOCR-Bench (87.84), OmniDocBench (97.18) and DocParsingBench (87.76). In an end-to-end speed test of 21 models on the same 100 OmniDocBench pages, each on one NVIDIA RTX PRO 6000, OXR took 100.972 seconds, against 134.778 seconds for the next fastest, OvisOCR2. The evaluation setup is published in the repository.

End-to-end parsing time for 21 models on one RTX PRO 6000. Source: SoMark.
Deployment
The model is served on vLLM through an out-of-tree plugin shipped with the weights, so it works with the official vLLM Docker image or CLI without recompiling. A parsing API coordinates the model and layout services and includes a local demo page and API documentation. Weights are available on Hugging Face and ModelScope.
Availability and license
OXR is available now under a custom license based on Apache 2.0. Commercial use is free for organizations below USD 2 million in total funding or annual revenue. Above either threshold a commercial license from SoMarkAI is required, and offering a competing hosted API is not permitted.
- GitHub: https://github.com/SoMarkAI/OXR
- Hugging Face: https://huggingface.co/SoMarkAI/OXR-1.0
- Free API and demo: https://free-oxr.somark.ai
About SoMarkAI
SoMarkAI is a document-parsing company headquartered in Shanghai. It builds models and APIs that turn PDFs and document images into structured data for AI applications.
Media Contact
Daisy Jiang
Email: daisy.jiang@soulcode.cn
上海市宝山区上大路668号环上大科技园0号基地317
About the author
SoMarkAI
SoMarkAI is a document-parsing company headquartered in Shanghai. It builds models and APIs that turn PDFs and document images into structured data for AI applications. This article is contributed by the SoMarkAI team.
Keep reading
More from Tech Forum

Seedance 2.5 Pricing Runs 52% Above Seedance 2.0 on the API
Seedance 2.5 costs about 52% more per second than Seedance 2.0 on ByteDance's API. We compare 2.5, 2.0, Fast and Mini pricing on BytePlus and Runway.
Gavin Foss / October 28, 2026

Nomad AI Fleet Management Seed Funding Toronto
Toronto-based Nomad successfully closes a $2M seed funding round to enhance the Nomad AI Fleet Management platform's capabilities.
Claire Bergeron / November 9, 2026

Supermarket Fridge Cyberattack Spreads Across Europe
Hackers switched supermarket freezers to defrost overnight on Nov. 2, hitting about 83 stores across Belgium, Sweden, Ireland and beyond. What we know.
Derek Fung / November 3, 2026