LayerFit™: our own method for small MLX builds that stay closer to the original
Paris Michalas, Partner, NetProjects™ (Internet Projects Ltd)

LayerFit™ is NetProjects™' own method for building small MLX models for Macs with Apple Silicon. We designed and built it ourselves: it is not a third-party tool or a standard MLX option. In one line: bits where they matter. Same size, closer to the original. Ready to run locally.
As of 30 November 2026 there are 60 public LayerFit builds on our Hugging Face organisation, across 20 models: Alibaba Cloud's Qwen3.8-27B and five coding-agent adaptations of it, Google's Gemma 4, Qwen3.6-35B-A3B, Thinking Machines' Inkling 2 Mini, and small 4B to 9B models that fit a Mac with 8 GB of memory. The live list is always here: https://huggingface.co/models?author=netprojects&search=LayerFit
LayerFit now has a permanent page, kept current, with the method, the numbers and every build: https://netprojects.com/layerfit
Why layers need different bits
To fit a large model on a laptop, you store its weights with fewer bits. A plain 2-bit, 3-bit or 4-bit build squeezes every layer the same way. But layers are not equal: some lose a lot when squeezed, others barely notice. Giving every layer the same bits wastes space on the robust ones and starves the sensitive ones.
How LayerFit works
- Measure: we squeeze each part of each layer on its own (the MLP, attention and linear-attention blocks, the embeddings and the output head) and measure how far the output moves from the original model.
- Budget: we set a size target for a Mac, for example 9.1 GB for a Mac with 16 GB of memory.
- Search: we spend the bits where they matter. Sensitive parts keep 4 to 8 bits; robust ones drop to 2 or 3. Each recipe is scored against the original, and it must beat a standard build of the same size before we publish it.
- Keep the format: the result is a normal MLX build. There is no custom runtime: it loads in stock mlx-lm, mlx-vlm and LM Studio like any other build.
Every recipe ships in its repository, as layerfit-recipe.json or quant-recipe.json, so anyone can see exactly which bits went where.
Same size, closer to the original
Qwen3.8-27B, LayerFit against a standard build of exactly the same size. Our harness uses the language-model weights only, 32 passages of 512 tokens across English, other languages, code, tool calls and maths, scored against our own MLX bf16 conversion; GSM8K-50 is 50 grade-school maths questions with thinking off.
| Size | Standard build | LayerFit build |
|---|---|---|
| 4-bit, 16.5 GB | 92.7% top-1, 44/50 | 94.0% top-1, 38% lower error, 46/50 |
| 3-bit, 13.1 GB | 84.4% top-1, 44/50 | 88.6% top-1, 38% lower error, 45/50 |
| 2.5-bit, 11.5 GB | 75.9% top-1, 41/50 | 83.4% top-1, 52% lower error, 46/50 |
| 2-bit, 9.1 GB | 68.2% top-1, 30/50 | 76.7% top-1, 46% lower error, 46/50 |
Top-1 is how often the build picks the same next token as the bf16 model; error is the KL divergence from it. The headline: at 2-bit, a 27B model that fits a 16 GB Mac scores 46/50 on GSM8K-50, against 30/50 for a standard 2-bit build of the same size.
The coding-agent builds of Qwen3.8-27B (harness-hub's super-adapter merge and its pi, think-pi, Hermes Agent and OpenCode adaptations) reuse the recipe LayerFit found for the Qwen3.8-27B base, re-checked on each model. They show the same pattern: 34% to 52% lower error than a standard build at the same size. Each card has its own table.
Inkling 2 Mini, Thinking Machines' looped mixture-of-experts model, at 4-bit and the same 16.5 GB as a plain 4-bit build: the LayerFit build picks the same next token as Thinking Machines' own code 98.6% of the time, against 95.9%, and its KL divergence from that code is 0.0023 against 0.0291, 92% lower. These are the figures for the 4-bit files we published on 29 November 2026.
Speed, indicative only, on an M5 Max that was not otherwise idle: Qwen3.8-27B LayerFit 4-bit decodes at 33 tokens a second, or 60 with its multi-token prediction (MTP) head; the 2-bit build decodes at 46 tokens a second.
All of these comparisons are our own measurements with our own harness, against our bf16 conversion (or Thinking Machines' code for Inkling 2 Mini). They are not official benchmarks; for the makers' own results, see the original model cards.
Which build fits my Mac
Each pick leaves room for macOS and a long prompt: the download is at most about 60% of the Mac's memory. For the Qwen3.8-27B family, including the coding-agent builds:
| Your Mac | LayerFit build |
|---|---|
| 16 GB | 2-bit, 9.1 GB (text only) |
| 16 GB, stretch | 2.5-bit, 11.5 GB |
| 24 GB | 3-bit, 13.1 GB |
| 32 GB | 4-bit, 16.5 GB |
| 48 GB and up | A standard 6-bit or 8-bit build; LayerFit adds little there |
For a Mac with 8 GB, the small LayerFit builds fit: Qwen3.5-4B at 2.5 GB (3-bit) or 3.0 GB (4-bit), Qwen3.5-9B 3-bit at 4.8 GB, NVIDIA's Nemotron Dory 1.0 4B 3-bit at 1.7 GB, and, tightly, Ornith-1.5-9B 3-bit at 4.8 GB.
Every LayerFit build so far
Sizes are on disk, as listed on each model card.
| Model | Original by | LayerFit builds |
|---|---|---|
| Qwen3.8-27B | Alibaba Cloud (Qwen team) | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB (text only) |
| Qwen3.8-27B super-adapter | harness-hub | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB |
| Qwen3.8-27B pi-adapted | harness-hub | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB |
| Qwen3.8-27B think-pi-adapted | harness-hub | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.3 GB |
| Qwen3.8-27B hermes-adapted | harness-hub | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB |
| Qwen3.8-27B opencode-adapted | harness-hub | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB |
| Inkling 2 Mini | Thinking Machines | 4-bit 16.5 GB · 3-bit 14.1 GB · 2.5-bit 10.8 GB · 2-bit 9.5 GB, each plus a 0.64 GB draft |
| Gemma 4 31B it | 4-bit 18.4 GB · 3-bit 14.6 GB · 2.5-bit 14.1 GB | |
| Gemma 4 26B-A4B it | 4-bit 15.4 GB · 3-bit 12.2 GB · 2.5-bit 10.5 GB | |
| Gemma 4 12B it | 4-bit 6.8 GB | |
| Qwen3.6-35B-A3B | Alibaba Cloud (Qwen team) | 4-bit 21.6 GB · 3-bit 16.1 GB · 2.5-bit 13.7 GB · 2-bit 10.3 GB (text only) |
| Qwen Concept 27B | Concept Country | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.1 GB |
| Arete-27B | Nous Research | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB · 2-bit 9.3 GB |
| DaisyRose-27B | RadixArk | 4-bit 16.5 GB · 3-bit 13.1 GB · 2.5-bit 11.5 GB |
| Hy-MT3-30B-A3B (translation) | Tencent | 4-bit 16.9 GB · 3-bit 13.2 GB |
| SenseNova-Loop-9B | SenseNova | 4-bit 6.4 GB · 3-bit 5.3 GB |
| Ornith-1.5-9B | Ornith team | 4-bit 5.9 GB · 3-bit 4.8 GB |
| Qwen3.5-9B | Alibaba Cloud (Qwen team) | 3-bit 4.8 GB |
| Qwen3.5-4B | Alibaba Cloud (Qwen team) | 4-bit 3.0 GB · 3-bit 2.5 GB |
| Nemotron Dory 1.0 4B | NVIDIA | 3-bit 1.7 GB |
Each model card links to the other sizes of the same model:
- Qwen3.8-27B: https://huggingface.co/netprojects/Qwen3.8-27B-LayerFit-MLX-4bit
- Qwen3.8-27B super-adapter: https://huggingface.co/netprojects/Qwen3.8-27B-super-adapter-LayerFit-MLX-4bit
- Qwen3.8-27B pi-adapted: https://huggingface.co/netprojects/Qwen3.8-27B-pi-adapted-LayerFit-MLX-4bit
- Qwen3.8-27B think-pi-adapted: https://huggingface.co/netprojects/Qwen3.8-27B-think-pi-adapted-LayerFit-MLX-4bit
- Qwen3.8-27B hermes-adapted: https://huggingface.co/netprojects/Qwen3.8-27B-hermes-adapted-LayerFit-MLX-4bit
- Qwen3.8-27B opencode-adapted: https://huggingface.co/netprojects/Qwen3.8-27B-opencode-adapted-LayerFit-MLX-4bit
- Inkling 2 Mini: https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-4bit
- Gemma 4 31B it: https://huggingface.co/netprojects/gemma-4-31B-it-LayerFit-MLX-4bit
- Gemma 4 26B-A4B it: https://huggingface.co/netprojects/gemma-4-26B-A4B-it-LayerFit-MLX-4bit
- Gemma 4 12B it: https://huggingface.co/netprojects/gemma-4-12B-it-LayerFit-MLX-4bit
- Qwen3.6-35B-A3B: https://huggingface.co/netprojects/Qwen3.6-35B-A3B-LayerFit-MLX-4bit
- Qwen Concept 27B: https://huggingface.co/netprojects/Qwen-Concept-27B-LayerFit-MLX-4bit
- Arete-27B: https://huggingface.co/netprojects/Arete-27B-LayerFit-MLX-4bit
- DaisyRose-27B: https://huggingface.co/netprojects/DaisyRose-27B-LayerFit-MLX-4bit
- Hy-MT3-30B-A3B: https://huggingface.co/netprojects/Hy-MT3-30B-A3B-LayerFit-MLX-4bit
- SenseNova-Loop-9B: https://huggingface.co/netprojects/SenseNova-Loop-9B-LayerFit-MLX-4bit
- Ornith-1.5-9B: https://huggingface.co/netprojects/Ornith-1.5-9B-LayerFit-MLX-4bit
- Qwen3.5-9B: https://huggingface.co/netprojects/Qwen3.5-9B-LayerFit-MLX-3bit
- Qwen3.5-4B: https://huggingface.co/netprojects/Qwen3.5-4B-LayerFit-MLX-4bit
- Nemotron Dory 1.0 4B: https://huggingface.co/netprojects/Nemotron-Dory-1.0-4B-LayerFit-MLX-3bit
Honest limits
- LayerFit is for small builds, from 2 to 4 bits. At 6-bit and 8-bit a standard build already stays close to the original, LayerFit adds little, and the model cards say so.
- Only repositories with LayerFit in the name are LayerFit builds. Our older 2.5-bit and 3-bit builds of DaisyRose-27B, Arete-27B and the coding-agent models without it in the name were tuned per layer by hand, and our small GGUF files use an importance matrix; neither is LayerFit.
- The 2-bit builds of the Qwen3.8-27B family and Qwen3.6-35B-A3B are text only: the vision tower is left out so they fit.
- Our checks are short and run on one machine: a fixed set of passages, 50 maths questions and a few tool-calling, coding and reasoning prompts. Speeds are indicative.
Always up to date
We keep these builds current on Hugging Face. When a maker releases a new version of a 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 here were taken from the model cards on 30 November 2026; the cards carry the current figures, and the live list of every LayerFit build is at https://huggingface.co/models?author=netprojects&search=LayerFit
Links
- Every LayerFit build, live: https://huggingface.co/models?author=netprojects&search=LayerFit
- LayerFit MLX builds collection, one pick per model: https://huggingface.co/collections/netprojects/layerfit-mlx-builds-6b0ad24ace6f450872d036e5
- NetProjects™ MLX builds collection: https://huggingface.co/collections/netprojects/netprojects-mlx-builds-6ae3b2683a59a1b4fc4c0c3a
- NetProjects™ on Hugging Face: https://huggingface.co/netprojects
- All our AI ports: https://netprojects.com/ai
Credits
LayerFit™ and the LayerFit builds are by NetProjects™ (Internet Projects Ltd). The original models are by their makers, under their own licences, which each of our repositories carries. Not affiliated with Google, Alibaba Cloud or the Qwen team, Nous Research, RadixArk, Concept Country, Tencent, SenseNova, the Ornith team or DeepReinforce, NVIDIA, Thinking Machines or harness-hub.
NetProjects™ and LayerFit™ are trade marks of Internet Projects Ltd.
Paris Michalas is a partner at NetProjects™, the trading name 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.