Image-Text-to-Text
MLX
Safetensors
qwen3_5
mlx-vlm
apple-silicon
quantized
document-parsing
ocr
layout-analysis
table-recognition
handwriting
african-languages
conversational
8-bit precision
Run this model with HF Jobs
Run VisualInference/Soma-1X-lite-MLX-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/VisualInference/Soma-1X-lite-MLX-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/VisualInference/Soma-1X-lite-MLX-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/VisualInference/Soma-1X-lite-MLX-8bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use VisualInference/Soma-1X-lite-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VisualInference/Soma-1X-lite-MLX-8bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("VisualInference/Soma-1X-lite-MLX-8bit") config = load_config("VisualInference/Soma-1X-lite-MLX-8bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use VisualInference/Soma-1X-lite-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Soma-1X-lite-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "VisualInference/Soma-1X-lite-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use VisualInference/Soma-1X-lite-MLX-8bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Soma-1X-lite-MLX-8bit"
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:8080/v1 hermes config set model.default VisualInference/Soma-1X-lite-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use VisualInference/Soma-1X-lite-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "VisualInference/Soma-1X-lite-MLX-8bit"
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:8080/v1 \ --custom-model-id "VisualInference/Soma-1X-lite-MLX-8bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: loss and text checks on nine pages
Browse files27 unmodified lines28293031323334353637383940414243444538 unmodified lines84858687888990919293949527 unmodified lines2.48 GiB of weights, for any Mac with 8 GB of memory or more.The language model is quantized to 8-bit affine, groups of 64. The vision tower is kept in bf16, as in the original, becausereading small print depends on it. Its output on the test page matches the bf16 reference token for token, except one bounding-box coordinate that moved by one unit on the 0-1000 grid.| Build | Weights | Bits per weight (language model) | Decode | Prompt | Peak memory, one A4 page ||---|---|---|---|---|---|| [original](https://huggingface.co/AminiTech/Soma-1X-lite), bf16 in MLX | 4.12 GiB | 16 | 99 tok/s | 3,366 tok/s | 5.24 GiB || [4bit](https://huggingface.co/VisualInference/Soma-1X-lite-MLX-4bit) | 1.60 GiB | 4.5 | 249 tok/s | 4,822 tok/s | 3.04 GiB || **8bit** (this repo) | 2.48 GiB | 8.5 | 161 tok/s | 5,124 tok/s | 3.82 GiB || [6bit](https://huggingface.co/VisualInference/Soma-1X-lite-MLX-6bit) | being built | 6.5 | | | |Measured on a MacBook Pro (M5 Max, 36 GB), mlx 0.32.5, mlx-vlm commit `bb224121`, greedy decoding, on one synthetic A4 pagerendered at 1240 x 1754 (3,297 prompt tokens, about 320 output tokens). Sizes are in GiB, the unit Mac memory comes in.Bits per weight include the group scales.## Use38 unmodified lines## What was checked- **Document page.** A synthetic A4 page with a running header, a heading, English prose, a Yoruba sentence with tone marksand dots below, a Hausa line, a 3 x 4 table and a page number. All three builds return the header, heading, prose, Yoruba andtable values correctly. All three, bf16 included, drop the Hausa hooked letters ɓ and ƙ on this page (ɗ survives), so that isthe model on this font, not the quantization.- **Image read.** A picture of the text `MLX 42` with a red circle and a blue square: read and described correctly.- **Not measured yet:** olmOCR-Bench, OmniParse-Bench and the African-language CER set on these builds. Coming.## Limitations27 unmodified lines28293031323334353637383940414243444538 unmodified lines8485868788899091929394959697989910010127 unmodified lines2.48 GiB of weights, for any Mac with 8 GB of memory or more.The language model is quantized to 8-bit affine, groups of 64. The vision tower is kept in bf16, as in the original, becausereading small print depends on it. On nine test pages it returns the same text as bf16, character for character, and the same blocks; only some box coordinates move by a unit or two on the 0-1000 grid. Its loss against bf16 is within noise.| Build | Weights | Bits per weight (language model) | Decode | Prompt | Peak memory, one A4 page | Loss vs bf16, nats per token | Text vs bf16 ||---|---|---|---|---|---|---|---|| [original](https://huggingface.co/AminiTech/Soma-1X-lite), bf16 in MLX | 4.12 GiB | 16 | 99 tok/s | 3,366 tok/s | 5.24 GiB | reference (0.0364) | reference || [4bit](https://huggingface.co/VisualInference/Soma-1X-lite-MLX-4bit) | 1.60 GiB | 4.5 | 249 tok/s | 4,822 tok/s | 3.04 GiB | +0.021 ± 0.008 | 0.34% of characters differ || **8bit** (this repo) | 2.48 GiB | 8.5 | 161 tok/s | 5,124 tok/s | 3.82 GiB | +0.0002 ± 0.0008 | identical || [6bit](https://huggingface.co/VisualInference/Soma-1X-lite-MLX-6bit) | being built | 6.5 | | | | | |Measured on a MacBook Pro (M5 Max, 36 GB), mlx 0.32.5, mlx-vlm commit `bb224121`, greedy decoding. Speed and memory: onesynthetic A4 page rendered at 1240 x 1754 (3,297 prompt tokens, about 320 output tokens). Loss and text: nine pages, below.Sizes are in GiB, the unit Mac memory comes in. Bits per weight include the group scales.## Use38 unmodified lines## What was checked- **Loss against bf16.** Nine synthetic A4 pages (English, French, Swahili, Afrikaans and Yoruba prose, an invoice,lab results, tables, five typefaces). The bf16 build's greedy output for each page, 2,759 tokens in all, is scoredteacher-forced under every build with the trained prompts. Differences are mean nats per token against bf16, with a95% bootstrap interval over pages. bf16 gives its own output 0.0364 nats per token.- **Text against bf16.** Each build's greedy output, tags stripped, compared with bf16's by edit distance.- **Document page.** One more A4 page with a running header, a heading, English prose, a Yoruba sentence with tone marksand dots below, a Hausa line, a 3 x 4 table and a page number. All three builds return the header, heading, prose, Yoruba andtable values correctly. All three, bf16 included, drop the Hausa hooked letters ɓ and ƙ on this page (ɗ survives), so that isthe model on this font, not the quantization.- **Image read.** A picture of the text `MLX 42` with a red circle and a blue square: read and described correctly.- **Not measured yet:** comparison with the Transformers reference, olmOCR-Bench, OmniParse-Bench and the African-language CER set on these builds. Coming.## Limitations
README.md+18-12