MiniCPM5-1B-4bit-NQ

Numen Quant (NQ) 4-bit build of openbmb/MiniCPM5-1B, quantized for Apple silicon with MLX.

Modifications

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.

Use with mlx

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))

Evaluation

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.

Downloads last month
52
Safetensors
Model size
1B params
Tensor type
U32
ยท
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for numen-tech/MiniCPM5-1B-4bit-NQ

Quantized
(103)
this model

Collection including numen-tech/MiniCPM5-1B-4bit-NQ