minicpm5-deploy-llama-cpp
하는 일
이 스킬은 여러 시스템에서 작동하는 가벼운 프로그램인 llama.cpp로 MiniCPM5를 실행하도록 AI를 안내합니다. CPU만 있는 컴퓨터, 일반 소비자용 그래픽 카드가 있는 컴퓨터, Python이 없는 환경의 사용자를 위한 스킬입니다.
사용하는 경우
- ✓강력한 그래픽 카드가 없는 컴퓨터에서 MiniCPM5를 실행하고 싶을 때.
- ✓터미널에서 채팅하려고 llama-cli를, 로컬 서버를 위해 llama-server를 사용하고 싶을 때.
- ✓Python이 없지만 모델을 실행하고 싶은 경우.
스킬 링크
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-llama-cpp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“llama.cpp로 제 컴퓨터에서 MiniCPM5를 실행해서 터미널에서 채팅할 수 있게 도와주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 llama.cpp를 설치하고, 고른 크기의 GGUF 모델 파일을 내려받은 뒤, 터미널 채팅이나 로컬 서버를 시작합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Deploy MiniCPM5-1B and MiniCPM5-2B with llama.cpp
CPU / edge / consumer-GPU deployment via the released GGUF artifacts. The artifacts work directly with vanilla llama.cpp and every downstream runtime (Ollama / LM Studio / llama-cpp-python).
Required input
| Var | Example | Default |
|---|---|---|
GGUF_REPO |
openbmb/MiniCPM5-2B-GGUF |
required; openbmb/MiniCPM5-1B-GGUF also works |
QUANT |
Q4_K_M (1.56 GB, recommended) / Q8_0 (2.68 GB) / F16 (5.04 GB) |
Q4_K_M |
NGL |
99 (all layers on GPU) / 0 (CPU only) |
99 if NVIDIA GPU, else 0 |
CTX |
8192 (default) up to 131072 (128 K) |
8192 |
Steps
1. Install llama.cpp
# macOS
brew install llama.cpp
# Linux / cross-platform: pre-built binary
curl -fsSL https://github.com/ggerganov/llama.cpp/releases/latest/download/llama-cli-linux.tar.gz | tar -xz
# OR build from source:
git clone --depth=1 https://github.com/ggerganov/llama.cpp.git && cd llama.cpp
mkdir build && cd build
cmake .. -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release # CPU-only: omit GGML_CUDA=ON
cmake --build . --config Release -j $(nproc) --target llama-cli llama-server
2. Download the GGUF
mkdir -p ~/minicpm5 && cd ~/minicpm5
huggingface-cli download ${GGUF_REPO} MiniCPM5-2B-${QUANT}.gguf --local-dir .
3a. Interactive chat (CLI)
llama-cli -m MiniCPM5-2B-${QUANT}.gguf \
-n 2048 --temp 1.0 --top-p 0.95 --min-p 0.0 -ngl ${NGL} -c ${CTX}
3b. OpenAI-compatible HTTP server
llama-server -m MiniCPM5-2B-${QUANT}.gguf \
--port 8080 -ngl ${NGL} -c ${CTX} --jinja
4. Validate
curl http://localhost:8080/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, "min_p": 0.0, "max_tokens": 64
}'
Expected: "2" in the reply.
In llama.cpp, the default min_p=0.05 can lead to repetitive output: it filters out tokens whose probability is below 5% of the highest-probability token, potentially discarding the exact tokens needed to break out of a repetition loop. To prevent this, we set min_p=0.0.
Sampling defaults
| Mode | --temp |
--top-p |
--min-p |
|---|---|---|---|
| MiniCPM5-2B Think | 1.0 | 0.95 | 0.0 |
| MiniCPM5-1B Think | 0.9 | 0.95 | 0.0 |
| MiniCPM5-1B No-think | 0.7 | 0.95 | 0.0 |
Choosing a quant
| Quant | Disk | Quality |
|---|---|---|
| F16 | 5.04 GB | reference |
| Q8_0 | 2.68 GB | ~indistinguishable from F16 |
| Q4_K_M | 1.56 GB | small drop, ideal for laptops |
Common pitfalls
- Slow on CPU + large context: drop
-c 131072to-c 8192if you don't need 128 K.
Building your own GGUF (advanced)
If you've trained your own MiniCPM5-1B or MiniCPM5-2B variant, build a GGUF with:
python convert_hf_to_gguf.py /path/to/your-fp16-hf --outfile out/F16.gguf --outtype f16
llama-quantize out/F16.gguf out/Q4_K_M.gguf Q4_K_M
Trained a LoRA adapter (not a full model) and want to apply it at runtime with --lora instead of baking it in? Convert it to a GGUF adapter — see minicpm5-finetune-gguf-lora.
When NOT to use
- NVIDIA GPU + want OpenAI-compatible serving →
minicpm5-deploy-vllm - Apple Silicon native →
minicpm5-deploy-mlxis faster - Just want one-line desktop run →
minicpm5-deploy-ollama - Want a desktop GUI →
minicpm5-deploy-lmstudio
Reference
자주 묻는 질문
어떤 모델 파일을 골라야 하나요?
기본값으로 Q4_K_M을 추천하고, 더 큰 옵션으로 Q8_0과 F16을 언급합니다.
그래픽 카드를 쓸 수 있나요?
네. 모든 레이어를 GPU에 올리거나 CPU만 사용하는 설정이 있습니다.
컨텍스트는 얼마나 쓸 수 있나요?
기본값은 8192이고, 최대는 131072, 즉 128K라고 설명합니다.
상세 정보
작성자의 원본 설명
Run MiniCPM5-1B or MiniCPM5-2B with llama.cpp using the released GGUF artifacts (F16 / Q8_0 / Q4_K_M). Use when the user wants CPU-only / consumer-GPU / cross-platform native deployment, asks for "llama.cpp", "llama-cli", "llama-server", "GGUF", or has no Python available.
repo: OpenBMB/MiniCPM
인기도
- GitHub 스타
- 12k
- 순위
- #11531
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
minicpm5-deploy-litert
12k에이전트가 Google의 LiteRT-LM 런타임과 하나의 모델 파일로 컴퓨터나 Android 휴대폰에서 MiniCPM5 모델을 실행하도록 돕습니다.
minicpm5-deploy-lmstudio
12k에이전트가 채팅 창이 있는 데스크톱 앱 LM Studio에서 MiniCPM5 모델을 실행하고, OpenAI 방식의 로컬 서버를 시작하도록 돕습니다.
minicpm5-deploy-mlx
12k에이전트가 Apple의 MLX 프레임워크로 Apple Silicon Mac에서 MiniCPM5 모델을 직접 실행해, 빠른 로컬 채팅과 텍스트 생성을 하도록 돕습니다.
minicpm5-deploy-ollama
12k에이전트에게 GGUF 파일과 몇 가지 간단한 명령으로 Mac 또는 Linux 노트북에서 Ollama로 MiniCPM5를 실행하는 방법을 가르칩니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.