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 kernels/manifest.json from AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp: direct link, hf CLI and curl.
- Browser
- Download file 26.2 kB
-
https://huggingface.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/resolve/main/kernels/manifest.json
- Command line
-
hf download hf://AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/kernels/manifest.json
-
curl -L -o manifest.json https://huggingface.co/AXERA-TECH/MiniCPM5-2B-AX8860-llama.cpp/resolve/main/kernels/manifest.json
26.2 kB
{
"format": 1,
"model": "cpm5",
"context": 131072,
"cores": 4,
"params": {},
"kernels": {
"prefill": {
"file": "cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel",
"in": [
{
"name": "x",
"bytes": 1048576,
"dtype": 9,
"shape": [
256,
2048
]
},
{
"name": "position_ids",
"bytes": 1024,
"dtype": 6,
"shape": [
256
]
},
{
"name": "indptr",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "indices",
"bytes": 2048,
"dtype": 6,
"shape": [
512
]
},
{
"name": "last_page_len",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "cache_location",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "valid_tokens",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "head_on",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "out_row",
"bytes": 16,
"dtype": 6,
"shape": [
4
]
},
{
"name": "nout",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "norm_w",
"bytes": 8192,
"dtype": 3,
"shape": [
2048
]
},
{
"name": "w_lm",
"bytes": 267386880,
"dtype": 11,
"shape": [
130560,
2048
]
},
{
"name": "s_lm",
"bytes": 8355840,
"dtype": 1,
"shape": [
130560,
64
]
},
{
"name": "b0_attn_cos",
"bytes": 33554432,
"dtype": 3,
"shape": [
1,
131072,
64
]
},
{
"name": "b0_attn_sin",
"bytes": 33554432,
"dtype": 3,
"shape": [
1,
131072,
64
]
},
{
"name": "b0_attn_w_k",
"bytes": 22020096,
"dtype": 11,
"shape": [
42,
256,
2048
]
},
{
"name": "b0_attn_w_norm_attn",
"bytes": 172032,
"dtype": 9,
"shape": [
42,
2048
]
},
{
"name": "b0_attn_w_o",
"bytes": 176160768,
"dtype": 11,
"shape": [
42,
2048,
2048
]
},
{
"name": "b0_attn_w_q",
"bytes": 176160768,
"dtype": 11,
"shape": [
42,
2048,
2048
]
},
{
"name": "b0_attn_w_scale2_k",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_o",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_q",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_v",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale_k",
"bytes": 688128,
"dtype": 1,
"shape": [
42,
256,
64
]
},
{
"name": "b0_attn_w_scale_o",
"bytes": 5505024,
"dtype": 1,
"shape": [
42,
2048,
64
]
},
{
"name": "b0_attn_w_scale_q",
"bytes": 5505024,
"dtype": 1,
"shape": [
42,
2048,
64
]
},
{
"name": "b0_attn_w_scale_v",
"bytes": 688128,
"dtype": 1,
"shape": [
42,
256,
64
]
},
{
"name": "b0_attn_w_v",
"bytes": 22020096,
"dtype": 11,
"shape": [
42,
256,
2048
]
},
{
"name": "b0_attn_w_zeropoint_k",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_o",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_q",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_v",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_input_permutation",
"bytes": 1344,
"dtype": 6,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w1",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
6144,
2048
]
},
{
"name": "b0_mlp_w2",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
6144,
2048
]
},
{
"name": "b0_mlp_w3",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
2048,
6144
]
},
{
"name": "b0_mlp_w_norm",
"bytes": 172032,
"dtype": 9,
"shape": [
42,
2048
]
},
{
"name": "b0_mlp_w_scale1",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
6144,
64
]
},
{
"name": "b0_mlp_w_scale2",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
6144,
64
]
},
{
"name": "b0_mlp_w_scale2_1",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale2_2",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale2_3",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale3",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
2048,
192
]
},
{
"name": "b0_mlp_w_zp_scale1",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_w_zp_scale2",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_w_zp_scale3",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_kv0",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv1",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv2",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv3",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv4",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv5",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv6",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv7",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv8",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv9",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv10",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv11",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv12",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv13",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv14",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv15",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv16",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv17",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv18",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv19",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv20",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv21",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv22",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv23",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv24",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv25",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv26",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv27",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv28",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv29",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv30",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv31",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv32",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv33",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv34",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv35",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv36",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv37",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv38",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv39",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv40",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv41",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
}
],
"out": [
{
"name": "output",
"bytes": 1048576,
"dtype": 9,
"shape": [
256,
2048
]
},
{
"name": "ids",
"bytes": 16,
"dtype": 6,
"shape": [
4
]
},
{
"name": "top_logits",
"bytes": 16,
"dtype": 3,
"shape": [
4
]
},
{
"name": "logits",
"bytes": 2088960,
"dtype": 3,
"shape": [
4,
130560
]
}
]
},
"decode": {
"file": "cpm5_decode1_mx8_kvc_c131072_npu4.axmodel",
"in": [
{
"name": "x",
"bytes": 4096,
"dtype": 9,
"shape": [
1,
2048
]
},
{
"name": "position_ids",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "indptr",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "indices",
"bytes": 2048,
"dtype": 6,
"shape": [
512
]
},
{
"name": "last_page_len",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "cache_location",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "head",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "topk_on",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "norm_w",
"bytes": 8192,
"dtype": 3,
"shape": [
2048
]
},
{
"name": "w_lm",
"bytes": 267386880,
"dtype": 11,
"shape": [
130560,
2048
]
},
{
"name": "s_lm",
"bytes": 8355840,
"dtype": 1,
"shape": [
130560,
64
]
},
{
"name": "bias",
"bytes": 522240,
"dtype": 3,
"shape": [
130560
]
},
{
"name": "mul_pos",
"bytes": 522240,
"dtype": 3,
"shape": [
130560
]
},
{
"name": "mul_neg",
"bytes": 522240,
"dtype": 3,
"shape": [
130560
]
},
{
"name": "temp",
"bytes": 4,
"dtype": 3,
"shape": [
1
]
},
{
"name": "b0_attn_cos",
"bytes": 33554432,
"dtype": 3,
"shape": [
1,
131072,
64
]
},
{
"name": "b0_attn_sin",
"bytes": 33554432,
"dtype": 3,
"shape": [
1,
131072,
64
]
},
{
"name": "b0_attn_w_k",
"bytes": 22020096,
"dtype": 11,
"shape": [
42,
256,
2048
]
},
{
"name": "b0_attn_w_norm_attn",
"bytes": 172032,
"dtype": 9,
"shape": [
42,
2048
]
},
{
"name": "b0_attn_w_o",
"bytes": 176160768,
"dtype": 11,
"shape": [
42,
2048,
2048
]
},
{
"name": "b0_attn_w_q",
"bytes": 176160768,
"dtype": 11,
"shape": [
42,
2048,
2048
]
},
{
"name": "b0_attn_w_scale2_k",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_o",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_q",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale2_v",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_attn_w_scale_k",
"bytes": 688128,
"dtype": 1,
"shape": [
42,
256,
64
]
},
{
"name": "b0_attn_w_scale_o",
"bytes": 5505024,
"dtype": 1,
"shape": [
42,
2048,
64
]
},
{
"name": "b0_attn_w_scale_q",
"bytes": 5505024,
"dtype": 1,
"shape": [
42,
2048,
64
]
},
{
"name": "b0_attn_w_scale_v",
"bytes": 688128,
"dtype": 1,
"shape": [
42,
256,
64
]
},
{
"name": "b0_attn_w_v",
"bytes": 22020096,
"dtype": 11,
"shape": [
42,
256,
2048
]
},
{
"name": "b0_attn_w_zeropoint_k",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_o",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_q",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_attn_w_zeropoint_v",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_input_permutation",
"bytes": 1344,
"dtype": 6,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w1",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
6144,
2048
]
},
{
"name": "b0_mlp_w2",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
6144,
2048
]
},
{
"name": "b0_mlp_w3",
"bytes": 528482304,
"dtype": 11,
"shape": [
42,
2048,
6144
]
},
{
"name": "b0_mlp_w_norm",
"bytes": 172032,
"dtype": 9,
"shape": [
42,
2048
]
},
{
"name": "b0_mlp_w_scale1",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
6144,
64
]
},
{
"name": "b0_mlp_w_scale2",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
6144,
64
]
},
{
"name": "b0_mlp_w_scale2_1",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale2_2",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale2_3",
"bytes": 1344,
"dtype": 3,
"shape": [
42,
8
]
},
{
"name": "b0_mlp_w_scale3",
"bytes": 16515072,
"dtype": 1,
"shape": [
42,
2048,
192
]
},
{
"name": "b0_mlp_w_zp_scale1",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_w_zp_scale2",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_mlp_w_zp_scale3",
"bytes": 1344,
"dtype": 9,
"shape": [
42,
16
]
},
{
"name": "b0_kv0",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv1",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv2",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv3",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv4",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv5",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv6",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv7",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv8",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv9",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv10",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv11",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv12",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv13",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv14",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv15",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv16",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv17",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv18",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv19",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv20",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv21",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv22",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv23",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv24",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv25",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv26",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv27",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv28",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv29",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv30",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv31",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv32",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv33",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv34",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv35",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv36",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv37",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv38",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv39",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv40",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
},
{
"name": "b0_kv41",
"bytes": 134217728,
"dtype": 9,
"shape": [
512,
2,
256,
2,
128
]
}
],
"out": [
{
"name": "output",
"bytes": 4096,
"dtype": 9,
"shape": [
1,
2048
]
},
{
"name": "ids",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "top_logits",
"bytes": 4,
"dtype": 3,
"shape": [
1
]
},
{
"name": "values",
"bytes": 4096,
"dtype": 3,
"shape": [
1024
]
},
{
"name": "kids",
"bytes": 4096,
"dtype": 6,
"shape": [
1024
]
},
{
"name": "vmax",
"bytes": 4,
"dtype": 3,
"shape": [
1
]
},
{
"name": "sumexp",
"bytes": 4,
"dtype": 3,
"shape": [
1
]
},
{
"name": "logits",
"bytes": 522240,
"dtype": 3,
"shape": [
1,
130560
]
}
]
}
}
}
{
"format": 1,
"model": "cpm5",
"context": 131072,
"cores": 4,
"params": {},
"kernels": {
"prefill": {
"file": "cpm5_prefill256_mx8_kvc_c131072_npu4.axmodel",
"in": [
{
"name": "x",
"bytes": 1048576,
"dtype": 9,
"shape": [
256,
2048
]
},
{
"name": "position_ids",
"bytes": 1024,
"dtype": 6,
"shape": [
256
]
},
{
"name": "indptr",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "indices",
"bytes": 2048,
"dtype": 6,
"shape": [
512
]
},
{
"name": "last_page_len",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "cache_location",
"bytes": 8,
"dtype": 6,
"shape": [
2
]
},
{
"name": "valid_tokens",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "head_on",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "out_row",
"bytes": 16,
"dtype": 6,
"shape": [
4
]
},
{
"name": "nout",
"bytes": 4,
"dtype": 6,
"shape": [
1
]
},
{
"name": "norm_w",
"bytes": 8192,
"dtype": 3,
"shape": [
2048
]
},
{