What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

Soma-1X Lite is Amini's 2B open OCR model: located block output, strong African-language diacritics, self-hosted on one GPU. What it does, what its benchmarks mean, and how to serve and test it.

Ashley Innocent

Ashley Innocent

1 December 2026

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

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:

Schema: a page image goes to Soma-1X Lite on your own GPU, which returns located block tags; text blocks feed your text pipeline, table blocks arrive as HTML for a database, and signature and stamp boxes drive redaction

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:

  1. They’re self-reported. Amini ran the evaluations. Independent reruns will matter more than the launch chart.
  2. 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.
  3. 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.
Sequence: you give the coding agent one prompt; it imports the spec and creates the environment and test case with Apidog CLI, runs the test, the CLI sends the page to the local vLLM server, checks the block output and the agent reports pass or fail

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.

Apidog CLI on a sandbox project: the OpenAPI import of the Soma-1X Lite chat completions spec, then the real endpoint and environment lists the agent checks before creating its test

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:

Look elsewhere, or test carefully first, if you:

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.

Explore more

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Anthropic's quantum algorithm targets the module lattices behind ML-KEM, but reviewers put its cost far beyond 2^1000 operations. Here's what it means for your API's post-quantum TLS.

1 December 2026

Google Workspace API Terms for AI Agents: What Changes in 2027

Google Workspace API Terms for AI Agents: What Changes in 2027

Google's Workspace AI Tools Addendum moves AI agents onto Workspace MCP servers or the CLI from February 1, 2027, caps derived data at 30 days, bans training and adds user confirmations. Here's what it says and what to change.

1 December 2026

What Happens If P = NP? What It Would Mean for API Security

What Happens If P = NP? What It Would Mean for API Security

No proof of P = NP or fast factoring exists. Here's what each would break in an API stack, from TLS to JWTs and webhooks, and how to test your algorithm allowlist now.

30 November 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

What Is Soma-1X Lite? The 2B Open OCR Model That Reads Handwriting and African Languages