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.

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: default
  • rope_theta: 10000000
  • mrope_section: [11, 11, 10]
  • partial_rotary_factor: 0.25
  • mrope_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: red 0.99962 / blue 0.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 second with 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 at c97cb5866993c97f8ad0774b784a1ca048f5f816. The renderer reproduces the publisher's prompt code. The 27B copy uses image_max_pixels=1806336.
  • Runtime: mlx-vlm 0.8.3.
Downloads last month
-
Safetensors
Model size
27B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for vanch007/SingVL-S1-27B-MLX-8bit

Quantized
(3)
this model