Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)12k · #11538

minicpm5-deploy-vllm

Ce qu’il fait

Ce skill guide votre IA dans l'exécution de MiniCPM5 avec vLLM, un serveur conçu pour de nombreuses requêtes sur GPU NVIDIA. Il s'adresse aux équipes qui veulent une API de style production pour le modèle.

Quand l’utiliser

  • ✓Quand vous voulez une API à fort volume pour MiniCPM5 sur un GPU NVIDIA.
  • ✓Quand vous avez besoin d'un point d'accès REST de style OpenAI pour votre propre application.
  • ✓Quand vous faites passer le modèle de la phase de test à un usage en production.

Lien du skill

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

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/OpenBMB/MiniCPM/blob/main/skills/minicpm5-deploy-vllm/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Aide-moi à démarrer un serveur d'API MiniCPM5 avec vLLM sur mon GPU NVIDIA pour que mon application puisse lui envoyer des requêtes.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Le skill installe vLLM, démarre un serveur avec le modèle et les réglages que vous choisissez, attend qu'il soit prêt et le vérifie avec une requête de test.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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

Questions fréquentes

Quelles tailles de modèle sont prises en charge ?

Le skill couvre MiniCPM5-1B et MiniCPM5-2B, tous deux au format BF16 ou FP16.

Comment savoir que le serveur est prêt ?

Attendez le message « Application startup complete » dans le journal.

Puis-je réduire la consommation de mémoire ?

Oui. Le skill permet de réduire la longueur de contexte et la fraction de mémoire GPU si la carte est petite ou partagée.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
12k
Position au classement
#11538
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires