Signal-3.8-27B-Terse-Coder (MLX, mixed-precision, with MTP)
Mixed-precision MLX quantization of Signal-3.8-27B-Terse-Coder, with the MTP head and multimodal vision tower kept.
- Base model: mradermacher/Signal-3.8-27B-Terse-Coder-GGUF (upstream: vwdubb/Signal-3.8-27B-Terse-Coder)
- Total weights 13.93 GB, quantized weights average ~3.8 bpw (measured 3.815)
- Plain affine quantization (per-group scale + bias), round-to-nearest, no DWQ / distillation
- Recipe copied from
Qwen3.8-27B-MLX-AD-3.80bpw-DWQ-13.7GB-fp16
Model specs (Qwen3.5 multimodal architecture)
| Item | Value |
|---|---|
| Total parameters | 27.78B (27.29B quantized + 0.49B fp16) |
| Layers | 64 (16 full attention + 48 linear attention; full attention every 4th layer) |
| hidden / intermediate | 5120 / 17408 |
| Context length | 256K (262144) |
| Vocabulary size | 248,320 |
| Vision tower | 27-layer ViT (hidden 1152, patch 16, spatial merge 2), fp16 (not quantized) |
| MTP | 1 layer (66.4M params), separate file model-mtp.safetensors |
Quantization scheme
| Component | Quantization |
|---|---|
| Default (up_proj, q_proj, etc.) | 3-bit, group 64 |
| embed_tokens / lm_head / gate_proj | 3-bit, group 128 |
| mlp.down_proj | 3-bit; 5-bit on layers 0–7 and 56–63 |
| Full attention k_proj / v_proj | 8-bit |
| Full attention o_proj | 4-bit |
| Linear attention in_proj_qkv / in_proj_z / out_proj | 4-bit |
| Linear attention in_proj_a / in_proj_b | fp16 (not quantized) |
| Vision tower (all) | fp16 (not quantized) |
| MTP linears (all) | 4-bit, group 64 |
Bits distribution across quantized weights (share of quantized params):
| bits | share |
|---|---|
| 3-bit | 70.5% |
| 4-bit | 23.7% |
| 5-bit | 5.2% |
| 8-bit | 0.6% |
Design rationale:
- k/v get 8-bit: attention k/v are the most quantization-sensitive
- down_proj gets 5-bit on the first and last 8 layers: protects quality of early layers and the final output
- in_proj_a/b are only 48×5120, not worth quantizing — kept fp16
- gate weights are evenly distributed, so group 128 is acceptable
Files
| File | Size |
|---|---|
| model-00001-of-00003.safetensors | 4.53 GB |
| model-00002-of-00003.safetensors | 4.52 GB |
| model-00003-of-00003.safetensors | 4.64 GB |
| model-mtp.safetensors | 239 MB |
Usage
pip install mlx-lm
# generate / chat
mlx_lm.generate --model <this-repo> --prompt "..."
mlx_lm.chat --model <this-repo>
- Multimodal: the vision tower is included (fp16), usable with mlx multimodal inference
- MTP: weights are included in
model-mtp.safetensors. If your mlx-lm version supports MTP speculative decoding (--draft-tokens) for this architecture, you can enable it
Quality demo (one-shot)
Same prompt for both: "Write an animated svg for a pelican riding a motorcycle.", generated in one shot at different reasoning efforts:
| medium | xhigh |
|---|---|
The xhigh version adds <title>/<desc>, reusable <defs> cloud symbols, and animateTransform, with a noticeably more complete scene.
Notes
- Norm weights are stored in MLX (+1) form
- Quantized tensors account for 82.6% of the stored bytes
- License inherited from upstream: Apache-2.0