minicpm5-deploy-lmstudio
Fungsinya
Skill ini memandu AI Anda menjalankan MiniCPM5 di LM Studio, aplikasi desktop dengan layar chat. Skill ini ditujukan untuk orang yang menginginkan aplikasi chat tanpa perlu menulis kode.
Kapan dipakai
- βSaat Anda ingin aplikasi chat desktop untuk MiniCPM5 tanpa menulis kode.
- βSaat Anda memakai Mac Apple Silicon dan ingin runtime MLX yang lebih cepat di LM Studio.
- βSaat Anda ingin server lokal LM Studio menjawab permintaan dari aplikasi lain.
Link skill
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-lmstudio/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBantu saya menyiapkan MiniCPM5 di LM Studio agar saya bisa chat dengannya di Mac saya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memasang LM Studio, memuat berkas model dalam format GGUF atau MLX, memulai server lokal, dan memastikan model menjawab.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Deploy MiniCPM5-1B and MiniCPM5-2B with LM Studio
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 |
Required input
| 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 |
Steps
1. Install LM Studio + complete onboarding
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.
2A. GGUF runtime path
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 loaded
2B. MLX runtime path (Apple Silicon, recommended on Mac)
The 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 -y
3. Validate
curl 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.
Think vs nothink (MiniCPM5-1B)
LM Studio 0.4.13's chat-completion endpoint does not propagate chat_template_kwargs.enable_thinking to the GGUF runtime. Instead:
- Default = think mode for both runtimes.
- For nothink with the GGUF runtime, prepend the closing think block manually:
and the model continues from there."messages": [ {"role":"user","content":"1+1=?"}, {"role":"assistant","content":"<think>\n\n</think>\n\n"} ] - MLX runtime: think/answer are auto-split, you don't need to do anything.
Common pitfalls
- MLX runtime not available: only on Apple Silicon. On Intel Mac / Windows / Linux LM Studio, only the GGUF runtime works.
When NOT to use
- Just want CLI / scripted runs β
minicpm5-deploy-ollamais leaner - Production server β
minicpm5-deploy-vllm - No GUI desired β
minicpm5-deploy-llama-cpp(llama-server)
Reference
Pertanyaan umum
Apa perbedaan GGUF dan MLX di sini?
GGUF berjalan di berbagai sistem, sedangkan MLX hanya untuk Mac Apple Silicon dan disebut lebih cepat.
Mengapa saya harus membuka LM Studio terlebih dahulu?
Skill memperingatkan bahwa peluncuran pertama harus dilakukan di jendela aplikasi, karena alat baris perintah membutuhkan aplikasi yang pernah berjalan sekali.
Apakah skill memulai server lokal?
Ya. Skill memulai server lokal yang kompatibel dengan OpenAI di komputer Anda sendiri.
Detail
Deskripsi asli dari pembuat
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.
repo: OpenBMB/MiniCPM
Popularitas
- Bintang GitHub
- 12k
- Peringkat
- #11532
- Lisensi
- Apache-2.0
- Diperbarui
- 21/9/2026
Komentar
- β¦
Skill lain dari repositori ini
minicpm5-deploy-litert
12kMembantu agent Anda menjalankan model MiniCPM5 di komputer atau ponsel Android dengan runtime LiteRT-LM dari Google, memakai satu berkas model.
minicpm5-deploy-llama-cpp
12kMenunjukkan kepada agent Anda cara menjalankan model MiniCPM5 dengan llama.cpp di CPU atau kartu grafis rumahan, memakai berkas GGUF siap pakai.
minicpm5-deploy-mlx
12kMengajari agent Anda menjalankan model MiniCPM5 secara native di Mac Apple Silicon dengan framework MLX dari Apple, untuk chat dan pembuatan teks lokal yang cepat.
minicpm5-deploy-ollama
12kMengajari agent Anda menjalankan MiniCPM5 dengan Ollama di laptop Mac atau Linux, memakai berkas GGUF dan beberapa perintah sederhana.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.