Run this model with HF Jobs
Run vanch007/SingVL-S1-27B-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/vanch007/SingVL-S1-27B-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/vanch007/SingVL-S1-27B-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/vanch007/SingVL-S1-27B-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 vanch007/SingVL-S1-27B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use vanch007/SingVL-S1-27B-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("vanch007/SingVL-S1-27B-MLX-8bit") config = load_config("vanch007/SingVL-S1-27B-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 vanch007/SingVL-S1-27B-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 "vanch007/SingVL-S1-27B-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": "vanch007/SingVL-S1-27B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use vanch007/SingVL-S1-27B-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 "vanch007/SingVL-S1-27B-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 vanch007/SingVL-S1-27B-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vanch007/SingVL-S1-27B-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 "vanch007/SingVL-S1-27B-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 "vanch007/SingVL-S1-27B-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"
SingVL S1 27B โ MLX 8-bit
MLX affine RTN 8-bit conversion of inclusionAI/SingVL_S1_27B, pinned to revision 31cb3c0661f88addd272a686583411ab62bcac1d. License: Apache-2.0, inherited from the upstream model.
A sibling 4-bit conversion is at vanch007/SingVL-S1-27B-MLX-4bit.
What this is
SingVL is a typed decision model, not a general chat model. It answers named questions over text or JSON and up to four images, and returns:
- choice โ an option and a probability for each candidate
- noul โ the probability that a yes/no proposition is true
- score โ probabilities over 2โ10 ordered levels, plus the expected zero-based level
Its inference contract requires bidirectional full attention over the complete input, causal Gated DeltaNet (GDN), no KV cache, exact prompts, and the trained candidate token IDs.
Do not use mlx_vlm.generate. Use the bundled singvl_mlx.py adapter. A normal chat generate path will not implement this contract.
Weights
| Value | |
|---|---|
| Source parameters | 27,781,427,952 BF16 |
| Quantization | MLX-VLM RTN, affine, group size 64, no calibration |
| Language weights | 8-bit |
| Vision tower | BF16 (excluded by the MLX-VLM default predicate) |
| MTP head | dropped by the qwen3_5 sanitizer; not used for decision inference |
| Effective bits/weight (mlx-vlm report) | 8.627 |
| Weight files | 29,501,218,479 bytes (27.48 GiB), 6 safetensors shards |
| Folder size (this repo) | 29,521,060,359 bytes (27.49 GiB) |
| Converted with | mlx-vlm 0.8.3, mlx 0.32.5, transformers 5.25.0, on an Apple M3 Max 128 GB |
| Conversion wall time | 160.6 s |
Config patch
Upstream config.json stores RoPE as text_config.rope_scaling plus a sibling rope_theta: 10000000. mlx-vlm 0.8.3's Qwen3.5 TextConfig only reads rope_parameters. Without a patch, the model loads with the dataclass default rope_theta: 100000 (100ร too small).
This repository's config.json moves those same file values into text_config.rope_parameters:
type/rope_type:defaultrope_theta:10000000mrope_section:[11, 11, 10]partial_rotary_factor:0.25mrope_interleaved:true
Nothing else in the RoPE config was changed. After the patch, a loaded mlx-vlm TextConfig reports rope_theta=10000000.
Run (Apple Silicon, Python 3.12)
hf download vanch007/SingVL-S1-27B-MLX-8bit --local-dir ./SingVL-S1-27B-MLX-8bit
cd ./SingVL-S1-27B-MLX-8bit
pip install -r requirements-mlx.txt
python singvl_mlx.py --model . --request example-request.json
requirements-mlx.txt pins mlx==0.32.5, mlx-vlm==0.8.3, transformers==5.25.0, torch==2.10.0, and torchvision==0.25.0. PyTorch and torchvision are used only for the Hugging Face image processor, not as the inference engine.
For images, construct SingVLS1MLX(path, image_max_pixels=1806336) to match the 27B publisher default (PUBLIC_IMAGE_MAX_PIXELS). The bundled singvl_mlx.py already uses that default. The lutrafs 4B adapter used 1,638,400; do not reuse that value here.
The inference/ directory is the upstream PyTorch reference adapter. It is not the runtime for these quantized weights.
Validation (Apple M3 Max 128 GB)
Measured on this conversion, 2026-12-05. Full traces are in mlx-results-27b.json.
| 8-bit | |
|---|---|
| Load | 37.7 s, peak 27.48 GiB |
| Official card, text example (182 tokens) | 5.32 s |
| Official card, two-image example, implicit markers (189 tokens) | 5.76 s |
| Official card, two-image example, explicit markers (189 tokens) | 3.23 s |
| Peak MLX memory (vision request) | 27.90 GiB |
Official model-card text example (The color is red.):
- colour choice:
red0.99962 /blue0.00038 - noul (is the named colour red?): 0.98594
- redness score: 1.9896 on a 0โ2 scale; P(Clearly red) = 0.99278
Official two-image example (blue.png then red.png, "Which image is red?"):
- choice
secondwith P(second) = 0.99830, P(first) = 0.00170 - implicit and explicit
<image>markers produced the same probabilities
A 13-case behavioral suite (text colours, yes/no, arithmetic, Chinese shipping status, sentiment score, JSON, unicode cafรฉ, image order, image redness score) produced the expected decision on every case for this 8-bit checkpoint. Text requests after load took 1.44โ2.01 s (56โ69 tokens).
These are small behavioral checks, not a Decision Index run and not a calibration study.
No comparison against the official GGUF Q8_0 / Q4_K_M release, or against the official BF16 PyTorch reference, was run. llama.cpp was not installed on the conversion machine, and a local BF16 reference pass was not practical. The numbers above should not be read as a match to the publisher's Decision Index.
Credits
- Model: inclusionAI, Sing VL S1 27B, Apache-2.0.
- MLX decision adapter (
singvl_mlx.py,singvl_render.py): lutrafs/SingVL-S1-4B-MLX-8bit atc97cb5866993c97f8ad0774b784a1ca048f5f816. The renderer reproduces the publisher's prompt code. The 27B copy usesimage_max_pixels=1806336. - Runtime: mlx-vlm 0.8.3.
- Downloads last month
- -
8-bit
Model tree for vanch007/SingVL-S1-27B-MLX-8bit
Base model
inclusionAI/SingVL_S1_27B