Instructions to use AminiTech/Soma-1X-lite-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AminiTech/Soma-1X-lite-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf AminiTech/Soma-1X-lite-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf AminiTech/Soma-1X-lite-GGUF:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AminiTech/Soma-1X-lite-GGUF:BF16
Use Docker
docker model run hf.co/AminiTech/Soma-1X-lite-GGUF:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use AminiTech/Soma-1X-lite-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AminiTech/Soma-1X-lite-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AminiTech/Soma-1X-lite-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/AminiTech/Soma-1X-lite-GGUF:BF16
- Ollama
How to use AminiTech/Soma-1X-lite-GGUF with Ollama:
ollama run hf.co/AminiTech/Soma-1X-lite-GGUF:BF16
- Unsloth Desktop
- Pi
How to use AminiTech/Soma-1X-lite-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AminiTech/Soma-1X-lite-GGUF:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AminiTech/Soma-1X-lite-GGUF with Docker Model Runner:
docker model run hf.co/AminiTech/Soma-1X-lite-GGUF:BF16
- Lemonade
How to use AminiTech/Soma-1X-lite-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AminiTech/Soma-1X-lite-GGUF:BF16
Run and chat with the model
lemonade run user.Soma-1X-lite-GGUF-BF16
List all available models
lemonade list
- Hermes Agent
How to use AminiTech/Soma-1X-lite-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default AminiTech/Soma-1X-lite-GGUF:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AminiTech/Soma-1X-lite-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AminiTech/Soma-1X-lite-GGUF:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AminiTech/Soma-1X-lite-GGUF:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
- -
8-bit
16-bit