Run MiniCPM5-1B or MiniCPM5-2B in LM Studio (desktop GUI) using either the GGUF runtime (cross-platform) or the MLX runtime (Apple Silicon, faster). Includes OpenAI-compatible local server. Use when the user mentions "LM Studio", desktop GUI inference, "lms" CLI, or wants a no-code chat UI for MiniCPM5.
90%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Desktop GUI + OpenAI-compatible local server. On Apple Silicon ships two runtimes:
| Runtime | Format | When to use |
|---|---|---|
| GGUF (llama.cpp engine) | F16 / Q8_0 / Q4_K_M | cross-platform, same artifact as Ollama; Q4_K_M build |
| MLX (Apple Silicon only) | bf16 / 4-bit | ~60 % faster, automatic think/answer split via reasoning_content; Q4 build |
| Var | Example | Default |
|---|---|---|
| Runtime | gguf or mlx | mlx on Apple Silicon, gguf elsewhere |
QUANT | Q4_K_M (GGUF) or 4bit (MLX) | Q4_K_M / 4bit |
MODEL_NAME | minicpm5-2b | minicpm5-2b |
brew install --cask lm-studio
open -a "LM Studio" # accept EULA + pick model source⚠️ The first launch MUST be GUI —
lms(CLI) refuses withCannot find LM Studio installationuntil LM Studio has run interactively at least once.
mkdir -p ~/.lmstudio/models/openbmb/MiniCPM5-2B-GGUF
huggingface-cli download openbmb/MiniCPM5-2B-GGUF MiniCPM5-2B-${QUANT}.gguf \
--local-dir ~/.lmstudio/models/openbmb/MiniCPM5-2B-GGUF/
LMS="/Applications/LM Studio.app/Contents/Resources/app/.webpack/lms"
"$LMS" server start # binds 127.0.0.1:1234
"$LMS" load minicpm5-2b --gpu max --context-length 8192 -y
"$LMS" ps # verify the model is loadedThe MLX runtime needs an MLX-format checkpoint. The published MiniCPM5-2B MLX repo is openbmb/MiniCPM5-2B-MLX (4-bit affine); there is no separate -bf16 / -4bit variant. Either drop that one in as-is, or convert locally from openbmb/MiniCPM5-2B (see minicpm5-deploy-mlx). Then:
# Option A — use the official pre-quantized repo
huggingface-cli download openbmb/MiniCPM5-2B-MLX \
--local-dir ~/.lmstudio/models/openbmb/MiniCPM5-2B-MLX
# Option B — drop a locally converted directory in
mkdir -p ~/.lmstudio/models/openbmb/MiniCPM5-2B-MLX-${QUANT}
cp -r ./minicpm5-mlx-${QUANT}/* ~/.lmstudio/models/openbmb/MiniCPM5-2B-MLX-${QUANT}/
"$LMS" server start
"$LMS" load minicpm5-2b-mlx${QUANT:+-${QUANT}} --gpu max -ycurl http://127.0.0.1:1234/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "minicpm5-2b",
"messages": [{"role":"user","content":"1+1=?"}],
"temperature": 1.0, "top_p": 0.95, "max_tokens": 64
}'Expected: "2" in the reply.
For the MLX runtime, a think prompt produces output split into message.reasoning_content (the <think> block) and message.content (the final answer) automatically — that's an MLX-runtime feature, not a model setting.
LM Studio 0.4.13's chat-completion endpoint does not propagate chat_template_kwargs.enable_thinking to the GGUF runtime. Instead:
"messages": [
{"role":"user","content":"1+1=?"},
{"role":"assistant","content":"<think>\n\n</think>\n\n"}
]minicpm5-deploy-ollama is leanerminicpm5-deploy-vllmminicpm5-deploy-llama-cpp (llama-server)OpenBMB/MiniCPM
316cfb1
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.