본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)12k · #11538

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-vllm/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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_FRAC hard error: lower --gpu-memory-utilization (e.g. 0.5 on a shared GPU).
  • OOM at startup with 128 K: drop --max-model-len to 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

docs/deployment/vllm.md

자주 묻는 질문

어떤 모델 크기를 지원하나요?

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬