minicpm5-deploy-vllm
하는 일
이 스킬은 NVIDIA GPU에서 많은 요청을 처리하도록 만든 서버인 vLLM으로 MiniCPM5를 실행하도록 AI를 안내합니다. 모델을 위한 실서비스 수준의 API를 원하는 팀을 위한 스킬입니다.
사용하는 경우
- ✓NVIDIA GPU에서 MiniCPM5용 대용량 API가 필요할 때.
- ✓자신의 앱을 위해 OpenAI 방식의 REST 엔드포인트가 필요할 때.
- ✓모델을 테스트 단계에서 실서비스로 옮기는 경우.
스킬 링크
https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-vllm/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“앱이 요청을 보낼 수 있도록 NVIDIA GPU에서 vLLM으로 MiniCPM5 API 서버를 시작해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 vLLM을 설치하고, 모델과 선택한 설정으로 서버를 시작한 뒤, 준비될 때까지 기다리고, 테스트 요청으로 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Deploy MiniCPM5-1B and MiniCPM5-2B with vLLM
OpenAI-compatible server for the BF16 / FP16 MiniCPM5-1B or MiniCPM5-2B checkpoint.
Required input
| Var | Example | Default |
|---|---|---|
MODEL_PATH |
openbmb/MiniCPM5-2B |
required; openbmb/MiniCPM5-1B also works |
PORT |
8000 |
8000 |
GPU_ID |
0 |
0 |
CTX_LEN |
131072 (128 K) |
131072; lower if VRAM tight |
MEM_FRAC |
0.85 |
0.85; lower on shared GPUs |
Steps
1. Install (once)
pip install "vllm>=0.21" # latest (CUDA 13.x driver hosts)
# pip install "vllm==0.10.1.1" # fallback for CUDA 12.x driver hosts
2. Launch
CUDA_VISIBLE_DEVICES=${GPU_ID} vllm serve "${MODEL_PATH}" \
--served-model-name MiniCPM5-2B \
--dtype bfloat16 \
--max-model-len ${CTX_LEN} \
--gpu-memory-utilization ${MEM_FRAC} \
--port ${PORT}
Wait for Application startup complete in the log.
3. Validate
curl http://localhost:${PORT}/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,
"chat_template_kwargs": {"enable_thinking": true}
}'
Expected: choices[0].message.content contains a coherent answer.
Sampling defaults
{"temperature": 1.0, "top_p": 0.95, "chat_template_kwargs": {"enable_thinking": true}} // MiniCPM5-2B Think
{"temperature": 0.9, "top_p": 0.95, "chat_template_kwargs": {"enable_thinking": true}} // MiniCPM5-1B Think
{"temperature": 0.7, "top_p": 0.95, "chat_template_kwargs": {"enable_thinking": false}} // MiniCPM5-1B No-think
Common pitfalls
(free / total) < MEM_FRAChard error: lower--gpu-memory-utilization(e.g. 0.5 on a shared GPU).- OOM at startup with 128 K: drop
--max-model-lento 32768 or 8192.
Tool calling (plugin)
The vLLM-side MiniCPM5 XML parser (PR #43175) merged to main on 2026-05-27 but is not in any pip release yet (v0.22.0 was cut before the merge). Use the bridge plugin shipped at tool_parsers/minicpm5xml_tool_parser.py in this repo:
vllm serve "${MODEL_PATH}" \
--served-model-name MiniCPM5-2B \
--dtype bfloat16 --max-model-len ${CTX_LEN} --port ${PORT} \
--enable-auto-tool-choice \
--tool-parser-plugin /path/to/MiniCPM/tool_parsers/minicpm5xml_tool_parser.py \
--tool-call-parser minicpm5
Drop --tool-parser-plugin once vLLM ships a release containing the parser natively.
When NOT to use
- One-shot Python script →
minicpm5-deploy-transformers - Apple Silicon / no NVIDIA GPU →
minicpm5-deploy-llama-cpp/minicpm5-deploy-mlx - High-concurrency batch eval w/ prefix cache or tool calling →
minicpm5-deploy-sglang
Reference
자주 묻는 질문
어떤 모델 크기를 지원하나요?
MiniCPM5-1B와 MiniCPM5-2B를 다루며, 둘 다 BF16 또는 FP16 형식입니다.
서버가 준비되었는지 어떻게 아나요?
로그에 「Application startup complete」 메시지가 나타날 때까지 기다리면 됩니다.
메모리 사용량을 줄일 수 있나요?
네. 카드가 작거나 여럿이 함께 쓰는 경우 컨텍스트 길이와 GPU 메모리 비율을 낮출 수 있습니다.
상세 정보
작성자의 원본 설명
Serve MiniCPM5-1B or MiniCPM5-2B via vLLM as an OpenAI-compatible HTTP server. Use when the user wants high-throughput production serving on NVIDIA GPU, asks for "vLLM", "OpenAI server", "REST API for MiniCPM5", or "production deployment".
repo: OpenBMB/MiniCPM
인기도
- GitHub 스타
- 12k
- 순위
- #11538
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
minicpm5-deploy-litert
12k에이전트가 Google의 LiteRT-LM 런타임과 하나의 모델 파일로 컴퓨터나 Android 휴대폰에서 MiniCPM5 모델을 실행하도록 돕습니다.
minicpm5-deploy-llama-cpp
12k에이전트에게 llama.cpp와 미리 만들어진 GGUF 파일로 CPU나 가정용 그래픽 카드에서 MiniCPM5 모델을 실행하는 방법을 보여 줍니다.
minicpm5-deploy-lmstudio
12k에이전트가 채팅 창이 있는 데스크톱 앱 LM Studio에서 MiniCPM5 모델을 실행하고, OpenAI 방식의 로컬 서버를 시작하도록 돕습니다.
minicpm5-deploy-mlx
12k에이전트가 Apple의 MLX 프레임워크로 Apple Silicon Mac에서 MiniCPM5 모델을 직접 실행해, 빠른 로컬 채팅과 텍스트 생성을 하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.