Not all weights deserve the same treatment
A transformer model's weights aren't equally sensitive to quantization. Embedding layers, the LM head (the projection back to vocab), and the attention output projections are typically more sensitive than the bulk of the feed-forward MLP weights. Quantizing everything to 4 bits is the simple choice; quantizing the sensitive layers at higher precision while keeping the bulk at 4 bits is the smarter choice — same average bits per weight, less quality loss.
This is what mixed-precision quantization means. mlx-lm exposes pre-baked recipes via the --quant-predicate flag.
The recipes mlx-lm ships
mixed_2_6— most layers at 2-bit, sensitive ones at 6-bit. The most aggressive size reduction; quality loss noticeable.mixed_3_4— most layers at 3-bit, sensitive ones at 4-bit. Tighter than full Q4, quality usually competitive.mixed_3_6— most layers at 3-bit, sensitive ones at 6-bit. Aggressive but with stronger headroom on the sensitive layers.mixed_4_6— most layers at 4-bit (default Q4), sensitive ones bumped to 6-bit. The closest "safer Q4" recipe.
The naming convention is mixed_X_Y where X is the bulk bit-width and Y is the sensitive-layer bit-width. The exact policy for which layers get the higher precision is baked into mlx-lm's predicate registry.
Group size, revisited
Group size (--q-group-size) is orthogonal to mixed precision. Smaller groups (32) give better quality but larger files; larger groups (128) give smaller files at some quality cost. The default 64 is a reasonable middle. For mixed-precision conversions you usually keep group size at 64 and let the bit-width predicate do the differentiation.
When to reach for mixed-precision
- You're at the memory ceiling and want to fit a slightly bigger model than full Q4 allows.
mixed_3_4ormixed_2_6can push effective bits down further. - You're disappointed with full Q4 quality on a specific task and want to recover some accuracy without going all the way to Q8.
mixed_4_6is the natural step. - You're deploying at scale and small per-model size savings compound across many machines.
For a single-user laptop deployment, full Q4 is usually fine. Mixed-precision is the lever you reach for when you have a measured reason — not the default starting point.