Views
No views yet
openbmb/MiniCPM5-1B on AX650 / NPU3.axllm runtime together with the compiled text .axmodel files.prefill_len=128, kv_cache_len=2047, and prefill_max_token_num=1280.bin/axllm binary for board-side deployment.axllm runtime. TTFT stands for time to first token. In this table, TTFT is measured end-to-end from request arrival at axllm serve to the first generated token.128-token prefill chunk. To avoid one-time startup effects, each TTFT row excludes the first request for that prompt pattern.| Scenario | Input tokens | Prefill chunks | TTFT | Decode |
|---|---|---|---|---|
| Text smoke prompt | 24 | 1 x 128 | 160.34 ms avg (159.40-161.28 ms) | n/a (single-token reply) |
| Short front-end prompt | 14 | 1 x 128 | 157.76 ms avg (157.68-157.84 ms) | n/a (short reply) |
| Multi-turn text prompt | 40 | 1 x 128 | 159.89 ms avg (159.19-160.59 ms) | n/a (short reply) |
| Long text generation reference | 30 | 1 x 128 | 159.91 ms avg (159.34-160.49 ms) | 17.96 token/s avg |
prefill_len=128kv_cache_len=2047prefill_max_token_num=1280Long text generation reference row is the recommended sustained text-only decode figure for this package. Very short replies under-report decode speed because EOS and response-tail overhead become relatively larger.| Item | Value |
|---|---|
Flash total (24 text axmodels + post axmodel + embedding bin) | 1.42 GiB (1456.71 MiB) |
Package flash total (excluding .git/) | 1.43 GiB (1464.24 MiB) |
Runtime CMM requirement | Board-dependent; validate on your target AX650 CMM pool |
max_token_len=2047, prefill_len=128, and prefill_max_token_num=1280. This README does not present one board's remain_cmm(...) value as a package-wide memory requirement, because the absolute remaining CMM pool depends on the board's global memory layout.1.
2├── README.md
3├── bin/
4│ ├── axllm
5│ └── axllm.version.json
6├── config.json
7├── post_config.json
8├── minicpm5_tokenizer.txt
9├── model.embed_tokens.weight.bfloat16.bin
10├── llama_p128_l0_together.axmodel
11├── ...
12├── llama_p128_l23_together.axmodel
13└── llama_post.axmodelaxllm binary reads the root-level runtime files directly, so no extra path arguments are required when you serve the repository root.axllm1mkdir -p AXERA-TECH/MiniCPM5-1B
2cd AXERA-TECH/MiniCPM5-1B
3hf download AXERA-TECH/MiniCPM5-1B --local-dir .axllmchmod +x ./bin/axllmaxllm from the public repository:1git clone -b axllm https://github.com/AXERA-TECH/ax-llm.git
2cd ax-llm
3./install.shcurl -fsSL https://raw.githubusercontent.com/AXERA-TECH/ax-llm/axllm/install.sh | bashaxllm binary from GitHub Actions:
https://github.com/AXERA-TECH/ax-llm/actions?query=branch%3Aaxllm
Then run:1chmod +x axllm
2sudo mv axllm /usr/bin/axllmbin/axllm binary for AX650.1chmod +x ./bin/axllm
2./bin/axllm serve . --port 8000AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX20471curl http://127.0.0.1:8000/health
2curl http://127.0.0.1:8000/v1/models1{
2 "concurrency": 0,
3 "max_concurrency": 1,
4 "status": "healthy"
5}1{
2 "data": [
3 {
4 "created": 1780908633,
5 "id": "AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047",
6 "object": "model",
7 "owned_by": "openai-api"
8 }
9 ],
10 "object": "list"
11}config.json sets enable_thinking=false.1curl http://127.0.0.1:8000/v1/chat/completions \
2 -H 'Content-Type: application/json' \
3 -d '{
4 "model": "AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047",
5 "messages": [
6 {
7 "role": "user",
8 "content": "中国的首都是哪里?请只回答城市名。"
9 }
10 ],
11 "max_tokens": 32,
12 "temperature": 0
13 }'1{
2 "choices": [
3 {
4 "message": {
5 "role": "assistant",
6 "content": "北京"
7 },
8 "finish_reason": "stop"
9 }
10 ],
11 "model": "AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047",
12 "object": "chat.completion"
13}enable_thinking=true:1curl http://127.0.0.1:8000/v1/chat/completions \
2 -H 'Content-Type: application/json' \
3 -d '{
4 "model": "AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047",
5 "messages": [
6 {
7 "role": "user",
8 "content": "中国的首都是哪里?请简短思考后给最终答案。"
9 }
10 ],
11 "enable_thinking": true,
12 "max_tokens": 384,
13 "temperature": 0
14 }'1{
2 "choices": [
3 {
4 "message": {
5 "role": "assistant",
6 "content": "<think>\n...\n</think>\n\n中国的首都是北京。"
7 },
8 "finish_reason": "stop"
9 }
10 ],
11 "model": "AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047",
12 "object": "chat.completion"
13}1{
2 "chat_template_kwargs": {
3 "enable_thinking": true
4 }
5}<think>...</think> markup so front ends can render reasoning and final answer separately. Follow-up turns also keep the official MiniCPM5 template behavior: previous assistant reasoning content is not reinserted into the next user prompt.lite_webuiaxllm serve, use AXERA-TECH/lite_webui.http://<board-ip>:8000 and the model name to AXERA-TECH/MiniCPM5-1B-AX650-C128-P1152-CTX2047.139953715