Skip to content
NetProjects™
Menu

Insights

Qwen3.5-4B on a Mac with 8 GB: two LayerFit™ MLX builds, 2.5 GB and 3.0 GB

NetProjects™

Qwen3.5-4B is a 4-billion-parameter dense model from Alibaba Cloud's Qwen3.5 generation, released with open weights under the Apache-2.0 licence. It is a vision-language model with 32 layers, in which three Gated DeltaNet linear-attention layers alternate with one full-attention layer, it thinks before it answers by default, and its context window is 262,144 tokens, which Qwen says can be extended to about 1 million.

For the full-precision model, Qwen reports 79.1 on MMLU-Pro, 76.2 on GPQA Diamond, 55.8 on LiveCodeBench v6, 50.3 on BFCL-V4 and 79.9 on TAU2-Bench. These are Qwen's figures for its original weights; we have not reproduced them.

We publish two LayerFit™ MLX builds of Qwen3.5-4B, with text and image input: a 3-bit build at 2.5 GB and a 4-bit build at 3.0 GB. Both are for Macs with 8 GB of memory.

Always up to date. We keep these builds current on Hugging Face. When Alibaba Cloud's Qwen team releases a new version of the model, or LayerFit™ finds a better recipe, we rebuild, re-test and publish it there, so the links on this page always point to the latest version. The numbers in this article were measured on 28 November 2026; the model cards on Hugging Face carry the current figures.

What we released

LayerFit™ is NetProjects™' own method for building small MLX models for Macs with Apple Silicon. It measures how much each part of a model suffers when squeezed to few bits (such as the attention, MLP or expert blocks of every layer, the embeddings and the output head), then spends the bits where they matter. A standard build gives every layer the same bits; a LayerFit™ recipe is only published if it beats a standard build of the same size. The recipe ships in each repository as layerfit-recipe.json, so anyone can see which bits went where, and the result is a normal MLX build that stock mlx-lm, mlx-vlm and LM Studio load. How it works: https://netprojects.com/layerfit.

Hugging FaceSizeSuggested Mac memory
netprojects/Qwen3.5-4B-LayerFit-MLX-3bit2.5 GB8 GB
netprojects/Qwen3.5-4B-LayerFit-MLX-4bit3.0 GB8 GB

Same size, closer to the original

Our harness scores the language-model weights against our own MLX bf16 conversion, on held-out passages in several languages, with GSM8K (20 questions, thinking off). Top-1 is how often the build picks the same next token as bf16; error is the KL divergence from it.

Same size, same testSame next token as bf16Error (KL)GSM8K (20)
Standard 3-bit (same bits in every layer)72.8%0.405215/20
LayerFit™ 3-bit79.0%0.2372 (41% lower)17/20
Standard 4-bit (same bits in every layer)88.4%0.061119/20
LayerFit™ 4-bit89.7%0.0500 (18% lower)19/20

Try it

On a Mac with Apple Silicon, install mlx-vlm. The model thinks before it answers by default; the Qwen card has the recommended sampling settings.

pip install -U mlx-vlm
python -m mlx_vlm.generate --model netprojects/Qwen3.5-4B-LayerFit-MLX-4bit --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-4bit --port 8080

For images, add the image option with a path to the file. Our cards were tested with mlx-vlm 0.7.11 on a MacBook Pro M5 Max.

Honest limits

  • Qwen's benchmark figures above are Qwen's, for the original model. We did not run them on our builds.
  • Our measure is closeness to our own bf16 MLX conversion. At 4-bit the gain is small (89.7% against 88.4% top-1 agreement), and the GSM8K score is the same, 19/20; the larger gain is at 3-bit.
  • A 4B model at 3-bit is squeezed hard: the 3-bit build picks a different next token from the original at about one position in five. Choose the 4-bit build if your Mac has room.
  • GSM8K is 20 questions, so a gap of two is small.
  • We did not score image understanding, and we give no speed figures. All figures come from one MacBook Pro M5 Max.

Licence

Qwen3.5-4B and our builds are under the Apache-2.0 licence. Each of our repositories carries Qwen's licence text, and a notice that describes the conversion.

Links

Credits

Qwen3.5-4B is by Alibaba Cloud's Qwen team, under the Apache-2.0 licence. The MLX builds are by NetProjects™ (Internet Projects Ltd), made with LayerFit™. Not affiliated with Alibaba Cloud or the Qwen team.

NetProjects™ and LayerFit™ are trade marks of Internet Projects Ltd.

This article was drafted with AI assistance, then edited and approved by people on our team. You can read more about how we use AI at https://netprojects.com/standards/ai.