Downloads · 30 days
125
68% of all-time downloads
SirSahOl/MiniCPM5-2B-chat-mlx-8bit
MiniCPM5-2B-chat-mlx-8bit is a text generation model from SirSahOl. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
8-bit MLX conversion of openbmb/MiniCPM5-2B optimized for Apple Silicon native GPU inference.
Downloads · 30 days
125
68% of all-time downloads
All-time downloads
183
Public
Parameters
2.5B
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.7 GB · 100%
How the weights are stored.
U322.5B · 100%
From the Hugging Face model README
8-bit MLX conversion of openbmb/MiniCPM5-2B optimized for Apple Silicon native GPU inference.
Converted by: SirSahOl
Source Model: openbmb/MiniCPM5-2B
Framework: MLX by Apple
Quantization: 8-bit (Average 8.25 bits per weight)
Format: safetensors
License: apache-2.0
pip install mlx-lm
# Chat interactively
mlx_lm.chat --model SirSahOl/MiniCPM5-2B-chat-mlx-8bit
# Generate text
mlx_lm.generate --model SirSahOl/MiniCPM5-2B-chat-mlx-8bit --prompt "Write a short poem about artificial intelligence."
from mlx_lm import load, generate
model, tokenizer = load("SirSahOl/MiniCPM5-2B-chat-mlx-8bit")
messages = [
{"role": "user", "content": "Explain quantum superposition in simple terms."}
]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
print(response)
| Metric | 4-bit | 8-bit | 16-bit |
|---|---|---|---|
| Tokens/sec | 35.25 | 20.35 | 6.53 |
| TTFT | 28.38 ms | 49.23 ms | 179.1 ms |
| Peak Memory | 443.7 MB | 47.8 MB | 29.5 MB |
Benchmarked on Apple M1 with 8GB unified memory. Average over 5 runs with 256 max tokens.
Evaluate your hardware budget and choose the optimal precision:
| Variant | Disk Size | VRAM Footprint | Target Apple Silicon Hardware | Key Advantage |
|---|---|---|---|---|
| 4-bit MLX | ~1.5 GB | ~1.5 GB | M1 / M2 / M3 / M4 (8GB+) | Maximum generation speed and lowest RAM overhead. |
| 8-bit MLX (This Repository) | ~2.6 GB | ~2.6 GB | M1 / M2 / M3 / M4 Pro/Max (16GB+) | Balanced accuracy and generation speed; near-lossless reasoning. |
| 16-bit MLX | ~4.8 GB | ~4.8 GB | M2 / M3 / M4 Max/Ultra (32GB+) | Full unquantized precision; reference evaluation quality. |
| Your Hardware | Recommended Quantization |
|---|---|
| M1/M2/M3/M4 (8GB – 16GB) | 4-bit — Best balance of speed, low memory, and multitasking capability |
| M1/M2/M3/M4 Pro/Max (18GB – 36GB) | 8-bit — Higher quality reasoning with comfortable memory headroom |
| M1/M2/M3/M4 Max/Ultra (36GB – 192GB) | 16-bit — Unquantized full precision, zero quality degradation |
General guidance:
| Variant | Link |
|---|---|
| 4-bit | SirSahOl/MiniCPM5-2B-chat-mlx-4bit |
| 8-bit | SirSahOl/MiniCPM5-2B-chat-mlx-8bit |
| 16-bit | SirSahOl/MiniCPM5-2B-chat-mlx-16bit |
To prevent runaway loops and ensure correct conversational turn-taking, configure custom stop tokens in your local inference runtime:
<|im_start|><|im_end|><|endoftext|><|im_start|>system\n<|im_end|>\n<|im_start|>user\n<|im_end|>\n<|im_start|>assistant\nFROM SirSahOl/MiniCPM5-2B-chat-mlx-8bit
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"
PARAMETER temperature 0.7
ollama create minicpm5-2b-chat-mlx-8bit -f Modelfile
ollama run minicpm5-2b-chat-mlx-8bit
| Property | Value |
|---|---|
| Source Model | openbmb/MiniCPM5-2B |
| Quantization | 8-bit |
| mlx-lm Version | 0.31.3 |
| Conversion Time | 47.59s |
| Output Size | 2.5 GB |
| Date | 2026-09-22T07:05:54.399633+00:00 |
To reproduce this conversion:
pip install mlx-lm==0.31.3
python3 -m mlx_lm convert --hf-path /Users/z4/.cache/huggingface/hub/models--openbmb--MiniCPM5-2B/snapshots/12a3808a956f869c767195e9266b59c4d21d92e2 --mlx-path output/MiniCPM5-2B-mlx-8bit -q --q-bits 8
This model conversion inherits the license of the source model: apache-2.0.
See the original model card for full license details.
| Version | Date | Changes |
|---|---|---|
| v1.0 | 2026-09-22 | Initial conversion |
Converted with MLX Foundry — a professional pipeline for converting models to Apple MLX format.