Soma-1X Lite: Running a 2B Open OCR Model on Your Own GPU
Soma-1X Lite is a 2-billion-parameter open OCR model from Amini, released on November 25, 2026 under Apache 2.0. You give it a scanned page and it returns every element on that page (text, headings, tables, stamps, signatures) as tagged blocks with coordinates, in reading order. It's built for the documents general models stumble on: handwriting, faded archives and African languages with diacritics. And because it's 2B parameters, it runs on one GPU you control, so your records never leave your network.
What is Soma-1X Lite?
Soma-1X Lite is a small vision-language model for document intelligence. Amini fine-tuned it from Qwen3.5-2B with supervised fine-tuning, then reinforcement learning (GRPO with verifiable rewards for transcription fidelity and structure). It reads page images and emits structured, located blocks instead of a flat text dump. Weights are on Hugging Face.
The name comes from Swahili, where "soma" means "read." Amini's announcement frames the goal plainly: help countries go from paper archives to AI-ready data on their own hardware. The work started in Barbados, where the government's ROAD programme is digitising millions of pages of records on Atlantic slave societies, with geological maps and mineral records in Botswana in progress.
Its training data mixes Soma-Sim, a synthetic document engine that generates layouts, multilingual text, complex tables, handwriting and quality damage, with millions of government records processed in private environments.
What Soma-1X Lite outputs
Most OCR tools give you a string; Soma-1X Lite gives you a document map. Each page element becomes one <block> tag with a label and a bounding box, and the blocks come out in reading order.
Here are lines from the sample output on the model card, a French-language monthly weather station sheet (the table is trimmed for length):
<block label="text" box="783 25 916 39">Station : LOEKA - BUMBA</block> <block label="heading" box="405 29 571 43">FICHE D'ETAT MENSUEL</block> <block label="table" box="..."><table><tr><th>...</th></tr></table></block> <block label="signature" box="829 944 871 965"></block> A few details matter when you parse this:
- Boxes are
x0 y0 x1 y1on a 0 to 1000 grid over the page image, so you scale them by the image's width and height to get pixels. - Tables come back as HTML, which drops straight into pandas or a database loader.
- Equations come back as LaTeX.
- Signatures and stamps get their own located blocks, handy for redaction or verification.
The model uses 15 labels:
| Group | Labels |
|---|---|
| Text | text, heading, caption, footnote, annotation |
| Page furniture | page_header, page_footer |
| Visuals | image, chart, diagram, map |
| Authentication marks | stamp, signature |
| Structured | table, equation |
Use the trained prompts that ship in the model repo (system_prompt.txt and user_prompt.txt) as-is, set enable_thinking to false, and keep temperature at 0.
What Soma-1X Lite is good at
Handwriting and degraded archives
Amini's sample pages include a 1683 legal code, 1927 government correspondence and a 1932 administrative report. Soma-Sim generates handwriting and page damage on purpose, so the model meets these conditions in training.
Amini is also honest that this isn't solved. Its technical post lists historical and degraded documents as an area still in active work.
African languages with diacritics
This is the headline result. A model can score well on a benchmark and still strip the hooked letters from Hausa or the dots under Yoruba vowels, which changes the meaning of words. On Amini's internal test of 435 held-out pages across 10 African languages, Soma-1X Lite posted a 2.90% mean character error rate, the lowest of five open models, and was best in 7 of the 10 languages.
Diacritic retention is where the gap gets wide:
| Character class | Soma-1X Lite | Best other open model |
|---|---|---|
| Hausa hooked letters | 93% | 60% (Surya 2.5) |
| Yoruba dots below | 99% | 69% (LightOnOCR-3-4B) |
| Lingala open vowels | 87% | 25% (dots.mocr) |
Data that stays on your GPU
Ministries, hospitals, banks and law firms often can't send scans to a third-party API. With a 2B model you serve yourself, the page images, extracted text and model all stay inside your boundary.
Cost per page
Amini reports up to 15,000 pages per hour on one NVIDIA RTX PRO 6000. At an on-demand rate of about $3.36 per hour, that works out to roughly $0.22 per 1,000 pages, or about $224 for a million pages of GPU compute. Treat that as Amini's estimate from its own runs, not a quote.
Soma-1X Lite benchmarks, and how to read them
Here are the numbers Amini published:
| Benchmark | Soma-1X Lite | Notes |
|---|---|---|
| olmOCR-Bench | 84.7 | Overall score |
| OmniParse-Bench | 84.37 | Single pass |
| OmniParse-Bench + multi-pass harness | 86.53 | Re-processes hard regions; tables gain +5.0 |
| African-language CER (10 languages) | 2.90% | Internal 435-page set, open models only |
Three caveats keep these honest:
- They're self-reported. Amini ran the evaluations. Independent reruns will matter more than the launch chart.
- The API-model comparisons mix sources. Amini's olmOCR-Bench chart places Soma-1X Lite ahead of GPT-5.5, Claude Sonnet 5 and Gemini 3.8 Flash, but those three scores come from three different third-party evaluations (Unsiloed AI, Interfaze and the Nanonets IDP Leaderboard) with different harnesses. Open-weight scores come from the olmOCR-Bench leaderboard. That's a rough comparison, not a controlled one.
- The 86.53 isn't the raw model. It uses a separate multi-pass harness that re-runs complex tables and rotated pages. Compare like with like: 84.37 is the single-pass number.
The African-language set is internal and was compared only against open models (dots.mocr, LightOnOCR-3-4B, Chandra 2 and Surya 2.5), so it says nothing yet about closed APIs on the same pages.
How to run Soma-1X Lite
The model card documents four ways to serve it:
| Runtime | Best for | Endpoint |
|---|---|---|
| Transformers | Notebooks, quick experiments | None, in-process |
| vLLM | Production batch OCR | OpenAI-compatible /v1/chat/completions |
| SGLang | High-throughput serving | Port 30000 by default |
| llama.cpp / Ollama (GGUF) | Laptops, CPU-only boxes | Local |
For anything you'll call from other services, use vLLM. These are the flags from the model card:
pip install -U vllm openai huggingface_hub vllm serve AminiTech/Soma-1X-lite \ --served-model-name soma-1x-lite \ --host 127.0.0.1 --port 8000 \ --dtype bfloat16 \ --tensor-parallel-size 1 \ --max-model-len 32768 \ --gpu-memory-utilization 0.90 \ --default-chat-template-kwargs '{"enable_thinking": false}' Then call it with any OpenAI SDK: base URL http://localhost:8000/v1, API key EMPTY, model soma-1x-lite, temperature=0.0, max_tokens=16384, the contents of system_prompt.txt as the system message, and a user message holding the page as a base64 data:image/png URL plus the text of user_prompt.txt. For PDFs, the card's helper renders each page with PyMuPDF at a 1,792-pixel long edge before sending it.
Let your coding agent test the Soma-1X Lite endpoint with Apidog CLI
Once vLLM is up, you've got an HTTP API like any other. The follow-up work is easy to skip: save the request, check the response shape, and rerun it whenever the model version or a serving flag changes. Hand that to your coding agent (Claude Code, Codex or whichever you use) with Apidog CLI.
Setup. Install the CLI with npm install -g apidog-cli, log in once with apidog auth login, and run apidog skill install so your agent knows the commands. The installation guide covers tokens and CI.
One prompt:
Soma-1X Lite is running on vLLM at http://localhost:8000. Write an OpenAPI 3.1 spec for POST /v1/chat/completions (model soma-1x-lite, image_url content, temperature 0, max_tokens 16384) and import it into Apidog project <projectId>. Add a "Soma local" environment pointing at the server. Create a test case that sends samples/page-01.png and asserts a 200, a non-empty choices[0].message.content, and at least one <block label= tag. Run it against the local environment and report the result. Validate every JSON payload with cli-schema before you write. What the agent runs:
apidog import --project <projectId> --format openapi --file ./soma-ocr.openapi.yaml apidog endpoint list --project <projectId> apidog environment create "Soma local" --project <projectId> --base-url http://localhost:8000 apidog cli-schema get test-case-create apidog test-case create --project <projectId> --file ./soma-block-check.json apidog run --test-case <testCaseId> --project <projectId> -e <environmentId> -r cli apidog run executes on the machine that calls it, so it reaches localhost:8000 without exposing the server. Add --upload-report to share the run in the Apidog app. Below is the CLI on a sandbox project: the endpoint and environment lists are real output; the import needs your own spec file, so it's shown without output.
Put the same apidog run line in CI and every model or vLLM upgrade gets the same check. More patterns are in Apidog CLI in Claude Code and the apidog run reference.
If your team splits this across several people, Sharkly turns those agent runs into tasks on a shared board: assign "add a Yoruba sample page test" to a coding agent running on your own machine with your Claude Code or Codex plan, and review what it ships before it merges. It's free to start.
Who should use Soma-1X Lite?
It's a strong fit if you:
- Digitise archives, registries or government records and need layout, not just text.
- Process documents in Hausa, Yoruba, Lingala, Swahili, Wolof or other African languages where diacritics carry meaning.
- Can't send documents to an external API for legal or privacy reasons.
- Run high page volumes where per-page API pricing adds up.
Look elsewhere, or test carefully first, if you:
- Need guaranteed accuracy on dense multilevel tables and merged cells today. Amini lists complex tables and forms as an open area.
- Only process clean, born-digital PDFs. A text extractor is cheaper and exact.
- Want a hosted API with an SLA. Soma-1X Lite is weights only.
If you're comparing options, our write-ups on DeepSeek-OCR, Mistral OCR and GLM-OCR cover the main alternatives.
FAQ
Is Soma-1X Lite free? Yes. The weights are free on Hugging Face under Apache 2.0, including commercial use. You pay only for the GPU or CPU you run it on.
What base model is Soma-1X Lite built on? It's fine-tuned from Qwen3.5-2B, first with supervised fine-tuning and then with GRPO reinforcement learning using verifiable rewards.
Can Soma-1X Lite run without a GPU? Yes, through the GGUF builds in the AminiTech/Soma-1X-lite-GGUF repo with llama.cpp or Ollama. Expect far lower throughput than the 15,000 pages per hour Amini reports on an RTX PRO 6000.
Does Soma-1X Lite read handwriting? It was trained on synthetic handwriting and real archive pages, and Amini's samples include handwritten corrections. Amini also says historical and handwritten documents remain an area of active work, so test on your own pages.
Soma-1X Lite proves a 2B model can be a serious OCR engine when it's trained on the right documents. Pull the weights, run the trained prompts on 50 of your hardest pages, and let your agent keep the endpoint honest with a saved Apidog test.





