Qwen3.5-4B-LayerFit-MLX-3bit

Qwen/Qwen3.5-4B, Qwen's 4B model with image input, for Apple Silicon, built with LayerFit™: a per-layer search that spends the bits where the model needs them most. 2.5 GB on disk, text and image input.

Build Size Suggested Mac memory
netprojects/Qwen3.5-4B-LayerFit-MLX-3bit (this build) 2.5 GB 8 GB
netprojects/Qwen3.5-4B-LayerFit-MLX-4bit 3.0 GB 8 GB

LayerFit: same size, closer to the original

A standard quant gives every layer the same bits. LayerFit measures how much each part of the model suffers at low bits (attention, the linear-attention blocks and the MLP of every layer, the embeddings and the output head), then fills the same size budget where it helps most:

Same size, same test Top-1 agreement with bf16 Error (KL) GSM8K (20)
Standard 3-bit (same bits in every layer) 72.8% 0.4052 15/20
LayerFit 3-bit 79.0% 0.2372 (41% lower) 17/20

Our harness: language-model weights against our bf16 MLX conversion, held-out passages in several languages, GSM8K with thinking off. The exact recipe is in layerfit-recipe.json. Measured on a MacBook Pro M5 Max, 28 November 2026.

What the original model scores

Published by Qwen for Qwen3.5-4B (full precision): LiveCodeBench v6 55.8, OJBench 24.1, BFCL-V4 50.3, TAU2-Bench 79.9. See the original card for the setup.

Use

pip install -U mlx-vlm
python -m mlx_vlm.generate --model netprojects/Qwen3.5-4B-LayerFit-MLX-3bit --max-tokens 4096 \
  --prompt "Write a Python function that checks if a string is a palindrome."

OpenAI-compatible server:

python -m mlx_vlm.server --model netprojects/Qwen3.5-4B-LayerFit-MLX-3bit --port 8080
  • The model thinks before it answers (<think> ... </think>) by default.
  • See the original card for the recommended sampling settings.
  • Images: add --image path/to/file.png to mlx_vlm.generate.

Tested with mlx-vlm 0.7.11 on a MacBook Pro M5 Max.

Licence

Apache-2.0, as Qwen/Qwen3.5-4B. LICENSE is the licence text; NOTICE describes the conversion.

All LayerFit builds, one pick per model: [LayerFit MLX builds](https://huggingface.co/collections/netprojects/layerfit-mlx-builds-6b0ad24ace6f450872d036e5).

Built by Paris Michalas, NetProjects. LayerFit™ is a NetProjects trademark. Not affiliated with Qwen.

Downloads last month
24
Safetensors
Model size
5B params
Tensor type
U32
·
BF16
·
F32
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for netprojects/Qwen3.5-4B-LayerFit-MLX-3bit

Finetuned
Qwen/Qwen3.5-4B
Quantized
(723)
this model

Collection including netprojects/Qwen3.5-4B-LayerFit-MLX-3bit