Numen Quant (NQ) 4-bit build of openbmb/MiniCPM5-1B, quantized for Apple silicon with MLX.
This model is a modified version of openbmb/MiniCPM5-1B: its weights have been modified and quantized to 4-bit (group size 64) by Numen. The architecture, tokenizer and chat template are unchanged. Distributed under the Apache License 2.0 (see LICENSE), as is the original.
pip install -U mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("numen-tech/MiniCPM5-1B-4bit-NQ")
messages = [{"role": "user", "content": "Hello"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, verbose=True))
| model | wino | boolq | arc-c | arc-e | hella | obqa | piqa | siqa | mean |
|---|---|---|---|---|---|---|---|---|---|
| BF16 (original) | 56.1 | 72.7 | 38.2 | 62.4 | 48.7 | 33.4 | 66.9 | 40.4 | 52.36 |
| MLX affine 4-bit | 56.2 | 68.7 | 34.5 | 58.8 | 46.0 | 30.6 | 66.9 | 37.9 | 49.95 |
| NQ 4-bit | 54.4 | 72.2 | 36.8 | 62.0 | 47.0 | 33.6 | 67.6 | 39.7 | 51.65 |
Zero-shot, lm-evaluation-harness 0.4.13 via mlx_lm.evaluate; acc_norm where the task defines it, acc otherwise. Single run per model; per-task standard errors are 0.5–2.1 points. MLX affine 4-bit is mlx_lm.convert -q --q-bits 4 --q-group-size 64 from the same checkpoint.
openbmb/MiniCPM5-1B