Instructions to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Use Docker
docker model run hf.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
- Unsloth Desktop
- Pi
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
- Lemonade
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Run and chat with the model
lemonade run user.MiniCPM5-2B-AX8860-llama.cpp-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download run.sh from AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/resolve/main/run.sh
- Command line
-
hf download hf://AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/run.sh
-
curl -L -o run.sh https://huggingface.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/resolve/main/run.sh
1.24 kB
| # MiniCPM5-2B (Q8_0, MXFP8 kernels) on AX8860 (llama.cpp + ggml-axera). | |
| # ./run.sh "<prompt>" [n] greedy text completion, n tokens (default 512) | |
| # ./run.sh -c multi-turn chat | |
| # ./run.sh -s [port] OpenAI-compatible server | |
| # | |
| # Override CTX, CTXCP, GGUF or GGML_AXERA_KERNEL_DIR from the environment. | |
| set -u | |
| H=$(cd "$(dirname "$0")" && pwd) | |
| chmod +x "$H"/bin/* 2>/dev/null | |
| export LD_LIBRARY_PATH=/opt/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} | |
| export GGML_AXERA_KERNEL_DIR=${GGML_AXERA_KERNEL_DIR:-$H/kernels} | |
| G=${GGUF:-$H/MiniCPM5-2B-Q8_0.gguf} | |
| M="-m $G -ngl 99" | |
| CTX=${CTX:-16384} | |
| CTXCP=${CTXCP:-8} | |
| case "${1:-}" in | |
| -s) | |
| exec "$H/bin/llama-server" $M -c "$CTX" -b 4096 -ub 4096 -np 1 -ctxcp "$CTXCP" \ | |
| --cache-ram 4096 --jinja --chat-template-file "$H/chat_template.jinja" \ | |
| --reasoning "${REASONING:-auto}" --host 0.0.0.0 --port "${2:-8080}" | |
| ;; | |
| -c) | |
| exec "$H/bin/llama-completion" $M -c "$CTX" -b 4096 -ub 4096 -cnv \ | |
| --jinja --chat-template-file "$H/chat_template.jinja" --reasoning "${REASONING:-auto}" | |
| ;; | |
| *) | |
| exec "$H/bin/llama-completion" $M -c "$CTX" -b 4096 -ub 4096 \ | |
| -p "${1:-The capital of France is}" -n "${2:-512}" --temp 0 -no-cnv | |
| ;; | |
| esac | |