minicpm5-deploy-llama-cpp

minicpm5-deploy-llama-cpp is a skill for Claude Code, Codex from OpenBMB/MiniCPM. It costs 87 tokens per session (1,186 once invoked), scanned A, original, Apache-2.0.

A guide for running the MiniCPM5-1B language model with llama.cpp, a native tool for running language models on CPUs and consumer GPUs. It uses released GGUF model files, which are packaged for local inference.

In plain words
What is it for?
Use it to run MiniCPM5-1B with llama-cli or llama-server, choose F16, Q8_0, or Q4_K_M files, and configure context length and GPU layer usage.
Why use it?
Local model setup can involve installing the runtime, choosing a model size, and selecting CPU or GPU settings. This guide provides the required commands and deployment options.

Skill for Claude CodeCodex

About the project

MiniCPM is a family of compact language models, including MiniCPM5-1B, designed to run locally on devices with limited resources. Developers use it for on-device assistants, reasoning, code, tool use, deployment, and fine-tuning, while the repository also includes a desktop-pet example. The catalogue entries support deployment and fine-tuning workflows for the models.

OpenBMB/MiniCPM · 10,308 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/openbmb/minicpm/minicpm5-deploy-llama-cpp
Any agent
npx skills add OpenBMB/MiniCPM --skill minicpm5-deploy-llama-cpp
Clone the repo
git clone --depth 1 https://github.com/OpenBMB/MiniCPM

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for minicpm5-deploy-llama-cpp

README.md
[![agentmods](https://agentmods.dev/badge/skills/openbmb/minicpm/minicpm5-deploy-llama-cpp.svg)](https://agentmods.dev/skills/openbmb/minicpm/minicpm5-deploy-llama-cpp)
Your own site
<a href="https://agentmods.dev/skills/openbmb/minicpm/minicpm5-deploy-llama-cpp"><img src="https://agentmods.dev/badge/skills/openbmb/minicpm/minicpm5-deploy-llama-cpp.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,186 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00087 $0.01186
Opus 5 $0.00044 $0.00593
Sonnet 5 $0.00017 $0.00237
Haiku 4.5 $0.00009 $0.00119

Measured 5d ago against content hash d656c4199982, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

minicpm5-deploy-llama-cpp scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://github.com/ggerganov/llama.cpp/releases/latest/download/llama-cli-linux.tar.gz | tar -xz
skills/minicpm5-deploy-llama-cpp/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy MiniCPM5-1B 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-1B-GGUF required
QUANT Q4_K_M (657 MB, recommended) / Q8_0 (1.1 GB) / F16 (2.1 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-1B-${QUANT}.gguf --local-dir .

3a. Interactive chat (CLI)

llama-cli -m MiniCPM5-1B-${QUANT}.gguf \
    -n 2048 --temp 0.7 --top-p 0.95 -ngl ${NGL} -c ${CTX}

3b. OpenAI-compatible HTTP server

llama-server -m MiniCPM5-1B-${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-1B",
        "messages": [{"role":"user","content":"1+1=?"}],
        "temperature": 0.7, "top_p": 0.95, "max_tokens": 64
    }'

Expected: "2" in the reply.

Sampling defaults

Mode --temp --top-p
Think 0.9 0.95
No-think 0.7 0.95

Choosing a quant

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 111 lines · 87 tokens per session scan A d656c4199982

Subscribe to this mod's changes

minicpm5-deploy-llama-cpp is a skill published in the GitHub repository OpenBMB/MiniCPM (10,308 stars, last pushed yesterday), licensed Apache-2.0. It adds 87 tokens to every session and 1,186 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tensorrt-llm

High-throughput LLM inference on NVIDIA GPUs.

NousResearch/hermes-agent · 18 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-tuning

Agent Platform Model Tuning. Use when you need to fine-tune open models or Gemini models using Agent Platform infrastructure. Don't use for model training outside Agent Platform, model deployment to endpoints (use agent-platform-deploy), or managing serving endpoints (use agent-platform-endpoint-management).

google/skills · 64 tokens

gke-inference

Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for generic batch jobs or HPC task queues (use gke-batch-hpc instead).

google/skills · 74 tokens

agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model…

google/skills · 64 tokens

modal

Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.

K-Dense-AI/scientific-agent-skills · 65 tokens