How to use from
OpenClaw
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "numen-tech/MiniCPM5-2B-4bit-NQ"
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "numen-tech/MiniCPM5-2B-4bit-NQ" \
  --custom-provider-id mlx-lm \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

MiniCPM5-2B-4bit-NQ

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

Modifications

This model is a modified version of openbmb/MiniCPM5-2B: 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-2B-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) 61.3 82.4 43.9 72.6 59.5 36.2 72.9 44.2 59.12
MLX affine 4-bit 60.2 81.7 42.2 69.1 57.6 34.8 71.4 43.0 57.50
NQ 4-bit 61.4 82.5 42.7 70.2 57.6 37.0 72.4 43.9 58.47

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.2 points. MLX affine 4-bit is mlx_lm.convert -q --q-bits 4 --q-group-size 64 from the same checkpoint.

Downloads last month
45
Safetensors
Model size
3B 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-2B-4bit-NQ

Quantized
(147)
this model

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