Soma-1X Lite GGUF

GGUF builds of Soma-1X Lite, Amini's 2-billion-parameter vision-language model for document parsing, for local inference with llama.cpp and Ollama on a single GPU or on a CPU.

For model details, benchmarks and examples, see the main model card.

Files

File Size Description
Soma-1X-lite-Q8_0.gguf 2.0 GB 8-bit weights. Recommended for most uses.
Soma-1X-lite-BF16.gguf 3.8 GB Full-precision weights, unchanged from the original model.
mmproj-Soma-1X-lite-F16.gguf 0.7 GB Vision encoder. Required with either model file.
Modelfile Ollama configuration, including the system prompt.
system_prompt.txt, user_prompt.txt The prompts the model was trained with.

In our checks against the original model running in Hugging Face Transformers, both builds produced near-identical output. Lower-bit quantisations (4-bit) degraded layout detection in our tests and are not provided.

Soma-1X Lite expects its system prompt (system_prompt.txt) and instruction (user_prompt.txt), with thinking disabled.

llama.cpp

Requires a recent build of llama.cpp with Qwen3.5 support. The -hf option downloads the model and the vision encoder.

llama-server -hf AminiTech/Soma-1X-lite-GGUF:Q8_0 \
    --jinja \
    --ctx-size 32768 \
    --image-min-tokens 64 \
    --image-max-tokens 16384 \
    --chat-template-kwargs '{"enable_thinking": false}' \
    --port 8080

The same command runs on a CPU when no GPU is available.

Send a document parsing request using the OpenAI Python SDK:

import base64
from huggingface_hub import hf_hub_download
from openai import OpenAI

MODEL_ID = "AminiTech/Soma-1X-lite-GGUF"

client = OpenAI(
    base_url="http://localhost:8080/v1",
    api_key="EMPTY",
)

# The prompts the model was trained with
def read_prompt(name):
    with open(hf_hub_download(MODEL_ID, name), encoding="utf-8") as f:
        return f.read()

SYSTEM_PROMPT = read_prompt("system_prompt.txt")
USER_PROMPT = read_prompt("user_prompt.txt")

with open("document.png", "rb") as f:
    image_base64 = base64.b64encode(f.read()).decode("utf-8")

response = client.chat.completions.create(
    model="soma-1x-lite",
    messages=[
        {"role": "system", "content": SYSTEM_PROMPT},
        {
            "role": "user",
            "content": [
                {
                    "type": "image_url",
                    "image_url": {
                        "url": f"data:image/png;base64,{image_base64}"
                    },
                },
                {
                    "type": "text",
                    "text": USER_PROMPT,
                },
            ],
        },
    ],
    temperature=0.0,
    max_tokens=16384,
)

print(response.choices[0].message.content)

Ollama

Download the model, the vision encoder and the Modelfile, then create the model:

hf download AminiTech/Soma-1X-lite-GGUF \
    Soma-1X-lite-Q8_0.gguf mmproj-Soma-1X-lite-F16.gguf Modelfile \
    --local-dir soma-1x-lite
cd soma-1x-lite
ollama create soma-1x-lite -f Modelfile

The Modelfile sets the system prompt, a temperature of 0 and a 32K context. To use the full-precision weights, download Soma-1X-lite-BF16.gguf and change the first FROM line.

Parse a page from the command line:

ollama run soma-1x-lite --think=false "Parse the page into layout blocks with their text. ./document.png"

Or through the Ollama API:

import base64
import requests

with open("document.png", "rb") as f:
    image_base64 = base64.b64encode(f.read()).decode("utf-8")

response = requests.post(
    "http://localhost:11434/api/chat",
    json={
        "model": "soma-1x-lite",
        "stream": False,
        "think": False,
        "messages": [
            {
                "role": "user",
                "content": "Parse the page into layout blocks with their text.",
                "images": [image_base64],
            }
        ],
    },
)

print(response.json()["message"]["content"])

Always disable thinking (--think=false on the command line, "think": false in the API). Otherwise Ollama returns the output in the thinking field and leaves the message content empty.

Licence

Soma-1X Lite is released under the Apache License 2.0.

Citation

@misc{soma1xlite2026,
  title  = {Soma-1X Lite: A 2B Model for Document Intelligence},
  author = {{Amini}},
  year   = {2026},
  url    = {https://huggingface.co/AminiTech/Soma-1X-lite}
}
Downloads last month
-
GGUF
Model size
2B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for AminiTech/Soma-1X-lite-GGUF

Finetuned
Qwen/Qwen3.5-2B
Quantized
(1)
this model