Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)12k · #11538

minicpm5-deploy-vllm

Was er macht

Dieser Skill führt deine KI durch den Betrieb von MiniCPM5 mit vLLM, einem Server für viele Anfragen auf NVIDIA-GPUs. Er ist für Teams gedacht, die eine API im Produktionsstil für das Modell wollen.

Wann du ihn nutzt

  • ✓Wenn du eine API mit hohem Durchsatz für MiniCPM5 auf einer NVIDIA-GPU willst.
  • ✓Wenn du einen REST-Endpunkt im OpenAI-Stil für deine eigene App brauchst.
  • ✓Wenn du das Modell vom Test in den Produktivbetrieb überführst.

Link zum Skill

https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-vllm/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-vllm/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Hilf mir, mit vLLM einen MiniCPM5-API-Server auf meiner NVIDIA-GPU zu starten, damit meine App Anfragen senden kann.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Skill installiert vLLM, startet einen Server mit dem Modell und den Einstellungen deiner Wahl, wartet, bis er bereit ist, und prüft ihn mit einer Testanfrage.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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

Häufige Fragen

Welche Modellgrößen werden unterstützt?

Der Skill deckt MiniCPM5-1B und MiniCPM5-2B ab, jeweils im Format BF16 oder FP16.

Woran erkenne ich, dass der Server bereit ist?

Warte auf die Meldung Application startup complete im Protokoll.

Kann ich den Speicherbedarf senken?

Ja. Der Skill lässt dich die Kontextlänge und den GPU-Speicheranteil senken, wenn die Karte klein oder geteilt ist.

Details

Originalbeschreibung des Autors

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

Beliebtheit

GitHub-Sterne
12k
Platz im Ranking
#11538
Lizenz
Apache-2.0
Aktualisiert
21.9.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills