xailon-parser 1, 0.8b

The model part of xailon-parser 1, a document parser: this model and a parsing pipeline around it, served behind an OpenAI-compatible API.

One checkpoint: LightOnOCR-3-0.8B by LightOn with our training merged into its weights (bf16, 1.7 GB; sha256 of model.safetensors, first 16: 43be0e67c21fbbe2). No adapters: the same model reads the pages, re-reads charts and re-reads scanned text for its formatting. Served with vLLM:

hf download infinialabs-ai/xailon-parser-0.8b --exclude 'mlx/*' --local-dir xailon-parser-0.8b
cd xailon-parser-0.8b && vllm serve . --served-model-name xailon-parser-1-0.8b --trust-remote-code

The model alone does not reproduce the results below. Those come from the whole parser: the model plus the pipeline around it, whose code is not public.

On Apple silicon (MLX)

mlx/ is the same model for MLX, Apple's machine-learning framework: converted to MLX in bf16, not quantized (1.7 GB; sha256 of mlx/model.safetensors, first 16: 7beefcc25fa00cc5). On a Mac with Apple silicon, serve it with mlx-vlm:

pip install mlx-vlm==0.7.11
hf download infinialabs-ai/xailon-parser-0.8b --include 'mlx/*' --local-dir xailon-parser-0.8b
python -m mlx_vlm.server --model xailon-parser-0.8b/mlx --port 8000

How it was checked: the same page and reading through the original (transformers) and through MLX, token by token: the same next token at 100% of positions on 8 pages (5 DocLayNet pages, 3 chart pages). Through the whole parser on MLX (MLX's CUDA backend, the same mlx-vlm code a Mac runs on Metal), 6 of the 8 pages read in 25โ€“68 s each; one chart page was still being read after 20 minutes and was stopped, and has not yet been compared with vLLM on the same page. Speed on a Mac is not measured yet.

Training

All on LightOnOCR-3-0.8B, each step merged into the weights in fp32 and rounded once to bf16:

  1. Charts: reinforcement learning (GRPO), 60 steps, LoRA rank 16, 8 charts ร— 8 readings per step. The reward compares the table the model reads off a chart with the chart's known data.
  2. Formatting and pages together: one supervised pass on text crops with marked spans (bold, italic, underline, strikethrough, highlight, superscript, subscript; half degraded like scans), mixed with whole pages read by the model itself at 5 megapixels (its own answers, so page reading is kept while formatting is learned).
  3. Charts and layout: 40 more GRPO steps, half synthetic charts (scored against their data), half DocLayNet training pages (scored on the blocks' boxes, classes and text).

No benchmark page was used in training.

Results (the whole parser)

ParseBench, full set (2,078 pages) Overall Table Chart Text Formatting Layout
LightOnOCR-3-0.8B alone, no pipeline stages 74.3 84.7 64.3 88.6 66.0 68.1
xailon-parser 1, 0.8b 78.3 86.3 66.9 89.1 77.4 71.7
xailon-parser 1, 0.8b + DeepSeek V4.1 Flash for charts and layout 80.4 86.4 75.9 89.1 77.4 73.1

In the last row the pipeline also calls a large model: DeepSeek V4.1 Flash corrects each chart's table and relabels the layout's blocks.

  • ParseBench: our own runs of every page of the public set, scored with ParseBench's code at commit 9af4102e. They are not leaderboard submissions. Our two rows are one run, the same readings. Another run of the same weights scored 78.1; run to run, it moves by a few tenths.

Limits

  • Dense charts: values read off an axis are often approximate. The big-model recipe corrects many of them.
  • Scans are harder: formatting on scanned pages scores well below digital PDFs, where the pipeline uses the PDF's own fonts.
  • Layout follows the base model's conventions: several paragraphs are often one block, and headings set in plain bold are often read as text.

Licence

Apache-2.0. The base model, LightOnOCR-3-0.8B by LightOn, is Apache-2.0 too; see NOTICE.

Downloads last month
56
Safetensors
Model size
0.9B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for infinialabs-ai/xailon-parser-0.8b

Finetuned
(6)
this model
Quantizations
1 model