minicpm5-deploy
Skill này làm gì
Skill này giúp AI chọn cách chạy model MiniCPM5 tốt nhất theo phần cứng và mục tiêu của bạn, rồi chỉ đến hướng dẫn tương ứng. Skill dành cho người đã biết muốn dùng MiniCPM5 nhưng chưa chọn công cụ.
Khi nào nên dùng
- ✓Khi bạn muốn chạy model MiniCPM5 và chưa chọn công cụ.
- ✓Khi bạn muốn biết MiniCPM5 nên chạy trên laptop, máy chủ GPU hay điện thoại.
- ✓Khi bạn yêu cầu AI phục vụ, chat hoặc đo hiệu năng một model MiniCPM5.
Liên kết skill
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi nên chạy MiniCPM5 trên laptop bằng cách nào?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hỏi model, phần cứng và mục tiêu của bạn, rồi chọn một hướng dẫn backend như vLLM, Ollama hoặc MLX và làm theo hướng dẫn đó.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Deploy MiniCPM5-1B and MiniCPM5-2B — backend router
You're being asked to deploy / serve / chat-with a MiniCPM5-1B or MiniCPM5-2B checkpoint. Your job is to pick exactly one backend skill below based on the user's hardware, format, and goal, then invoke that skill rather than improvising.
1. Required input from the user
Before picking a backend, you MUST know:
| Variable | Example | Where to ask |
|---|---|---|
MODEL_PATH |
HF id openbmb/MiniCPM5-2B or openbmb/MiniCPM5-1B or a local path |
"Which checkpoint? HF id or local path?" |
| Hardware | NVIDIA GPU / Apple Silicon / CPU only | infer from context, otherwise ask |
| Goal | "interactive chat" / "OpenAI server" / "Python script" / "benchmark" | infer from context |
Available checkpoints on Hugging Face
| Variant | HF repo | Use with |
|---|---|---|
| HF fp16 (recommended) | openbmb/MiniCPM5-2B or openbmb/MiniCPM5-1B |
transformers / vllm (no --quantization) / vllm-ascend / sglang / any minicpm5-finetune-* |
| GGUF F16 / Q8_0 / Q4_K_M | openbmb/MiniCPM5-2B-GGUF or openbmb/MiniCPM5-1B-GGUF |
minicpm5-deploy-llama-cpp / -ollama / -lmstudio |
| MLX (Apple Silicon) | openbmb/MiniCPM5-2B-MLX or openbmb/MiniCPM5-1B-MLX |
minicpm5-deploy-mlx |
LiteRT-LM .litertlm (Android / iOS / desktop / IoT, CPU + GPU) |
litert-community/MiniCPM5-2B or litert-community/MiniCPM5-1B |
minicpm5-deploy-litert |
If the user has a local copy, accept any directory path that contains config.json and model.safetensors (or the equivalent GGUF / MLX layout).
2. Decision matrix — pick exactly one
| User says / wants | Hardware | Format | → Skill to invoke |
|---|---|---|---|
| "Quick Python script" / "one-shot generation" / "no server" | any GPU or CPU | HF safetensors | minicpm5-deploy-transformers |
| "OpenAI server" / "production serving" / "high QPS" | NVIDIA GPU | HF safetensors | minicpm5-deploy-vllm |
| "vLLM-Ascend" / "Ascend NPU" / "CANN" / "torch_npu" | Huawei Ascend NPU | HF safetensors | minicpm5-deploy-vllm-ascend |
| "RadixAttention" / "prefix cache" / "batched eval" | NVIDIA GPU | HF safetensors | minicpm5-deploy-sglang |
| "GGUF" / "llama.cpp" / "llama-cli" / "CPU only" | any CPU + optional GPU | GGUF | minicpm5-deploy-llama-cpp |
| "Ollama" / "ollama run" / "Modelfile" | macOS / Linux laptop | GGUF | minicpm5-deploy-ollama |
| "LM Studio" / "desktop GUI" | macOS / Windows / Linux | GGUF or MLX | minicpm5-deploy-lmstudio |
| "MLX" / "Apple Silicon native" / "fastest on Mac" | Apple Silicon | MLX | minicpm5-deploy-mlx |
| "Android" / "on-device app" / "Edge Gallery" / "LiteRT" / "LiteRT-LM" / "litertlm" / "Raspberry Pi" | Android phone, iPhone, desktop or IoT board (CPU or GPU) | LiteRT-LM .litertlm |
minicpm5-deploy-litert |
If the user has not specified any of the above and asks "how do I run this?":
- CUDA box, want fastest server: pick
minicpm5-deploy-vllm. - Ascend NPU, want an OpenAI-compatible server: pick
minicpm5-deploy-vllm-ascend. - CUDA box, want minimal Python: pick
minicpm5-deploy-transformers. - Apple Silicon laptop: pick
minicpm5-deploy-ollama(easiest) orminicpm5-deploy-mlx(fastest). - Android phone, or an on-device app (Android / iOS): pick
minicpm5-deploy-litert. - CPU only / Windows / low-VRAM: pick
minicpm5-deploy-llama-cpp(Q4_K_M).
3. Invocation contract
Once you've picked a backend skill, invoke that skill with MODEL_PATH set. Do NOT inline the backend's commands here — each backend has its own pitfalls (mandatory flags, env-var pins, install order) that the dedicated skill handles. The user explicitly does NOT want you to "improvise" — read the picked sub-skill in full first.
4. Sanity check after deploy
Whichever backend you pick, after launch run this universal sanity check:
# Replace localhost:PORT with the backend's actual port (default in each sub-skill)
curl http://localhost:PORT/v1/chat/completions \
-H "Content-Type:
Câu hỏi thường gặp
Skill hỗ trợ những model MiniCPM5 nào?
Skill hỗ trợ MiniCPM5-1B và MiniCPM5-2B, có sẵn trên Hugging Face ở nhiều định dạng.
Cần cung cấp thông tin gì trước?
Vị trí model, loại phần cứng như GPU NVIDIA hoặc Apple Silicon, và mục tiêu như chat hoặc máy chủ.
Skill chỉ chọn một công cụ thôi à?
Đúng. Skill được đặt để chọn chính xác một hướng dẫn backend cho mỗi yêu cầu.
Chi tiết
Mô tả gốc của tác giả
Pick the right inference backend for a MiniCPM5-1B or MiniCPM5-2B checkpoint and route to a backend-specific cookbook skill. Use when the user wants to deploy / serve / chat-with / benchmark a MiniCPM5 model and has not yet committed to a specific engine, or when they say "deploy MiniCPM5", "run MiniCPM5", "serve MiniCPM5", "MiniCPM5 推理", "部署 MiniCPM5".
repo: OpenBMB/MiniCPM
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11539
- Giấy phép
- Apache-2.0
- Cập nhật
- 21/9/2026
Bình luận
- …
Thêm skill từ kho mã này
minicpm5-deploy-litert
12kGiúp agent chạy các model MiniCPM5 trên máy tính hoặc điện thoại Android bằng runtime LiteRT-LM của Google, chỉ với một file model.
minicpm5-deploy-llama-cpp
12kChỉ cho agent cách chạy model MiniCPM5 bằng llama.cpp trên CPU hoặc card đồ họa gia đình, dùng file GGUF có sẵn.
minicpm5-deploy-lmstudio
12kGiúp agent chạy các model MiniCPM5 trong LM Studio, ứng dụng desktop có cửa sổ chat, và khởi động máy chủ cục bộ kiểu OpenAI của nó.
minicpm5-deploy-mlx
12kGiúp agent chạy các model MiniCPM5 trực tiếp trên máy Mac Apple Silicon bằng framework MLX của Apple, để chat và sinh văn bản cục bộ nhanh.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.