Soma-1X Lite: A compact 2B model for document parsing
2 min readupdated
Soma-1X Lite is a 2.21 billion parameter vision-language model (VLM) from Amini designed to transform document images into a structured, machine-readable format. Unlike traditional OCR (optical character recognition), it goes beyond simply reading text to preserve reading order, semantic element labels, and their coordinates on the page. The model converts complex tables into HTML and mathematical formulas into LaTeX format. Judging by the inference code, the AI model is built on the Qwen3.5 architecture and, given its compact size, is well-suited for deployment on your own infrastructure. It will be useful for RAG system developers, data engineers, and archive digitization specialists.
Key features
- Unified page layout: Detects 15 element types (text, headings, tables, formulas, charts, maps, stamps, and signatures) and returns
boxcoordinates on a 0–1000 grid. - High metrics at a small weight: Scores 84.7 points on olmOCR-Bench and 84.37 on OmniParse-Bench (and 86.53 in multi-pass mode).
- Multilingualism and handwritten text: Supports English, French, Spanish, and 10 African languages (average character error rate of 2.90%), handling archives and handwritten notes with ease.
- Open license and vLLM: Distributed under Apache 2.0 and runs as an OpenAI-compatible API server via vLLM.
What you can do
- Build a local data preparation pipeline for RAG: render PDF pages via PyMuPDF and extract clean text, HTML tables, and LaTeX formulas.
- Digitize complex archive forms, newspapers, and handwritten documents while preserving the layout of signatures, stamps, and footnotes.
- Set up your own document parsing service based on vLLM to avoid sending confidential files to external cloud APIs.
Example
from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration
import torch
MODEL_ID = "AminiTech/Soma-1X-lite"
model = Qwen3_5ForConditionalGeneration.from_pretrained(
MODEL_ID, torch_dtype=torch.bfloat16, device_map="auto"
).eval()
processor = AutoProcessor.from_pretrained(MODEL_ID)Read more
DetailsBenchmarks: 84.7 on olmOCR-Bench; 84.37 on OmniParse-Bench (86.53 with multi-pass inference, +5.0 on tables).
OCR quality: 2.90% character error rate (CER) across 435 pages in 10 African languages.
Training: Multi-stage fine-tuning pipeline (SFT + RLVR via GRPO) using the Soma-Sim synthetic engine.
Run details: Supports
max_new_tokens=16384 and up to 32,768 context tokens in vLLM; running requires the system and user prompts from the repository.









Comments