Views
No views yet
openbmb/MiniCPM5-1B on AX650 / NPU3.axllm runtime together with the compiled text .axmodel files.prefill_len=256, kv_cache_len=16383, and prefill_max_token_num=12544.bin/axllm binary for board-side deployment.V3.16.0:libax_interpreter.so V3.16.0libax_engine.so V3.16.0CTX16K profile, use AX650 SDK V3.16.0 or later.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.256-token prefill chunks. To avoid one-time startup effects, the reported TTFT excludes the first request for this prompt pattern.| Scenario | Input tokens | Prefill chunks | TTFT | Decode |
|---|---|---|---|---|
| Long text generation reference | 1915 | 8 x 256 | 2635.85 ms avg | 6.19 token/s avg |
prefill_len=256kv_cache_len=16383prefill_max_token_num=12544Long text generation reference row is the recommended sustained text-only decode figure for this package.| Item | Value |
|---|---|
Package flash total (excluding .git/) | 4.59 GiB (4699 MiB) |
Runtime CMM footprint (reference startup) | 4.51 GiB (4614 MiB) |
1.
2├── README.md
3├── config.json
4├── post_config.json
5├── bin/
6│ ├── axllm
7│ └── axllm.version.json
8├── minicpm5_tokenizer.txt
9├── model.embed_tokens.weight.bfloat16.bin
10├── llama_p256_l0_together.axmodel
11├── ...
12├── llama_p256_l23_together.axmodel
13└── llama_post.axmodelaxllm binary reads the root-level runtime files directly, so serving the repository root is sufficient.axllm1mkdir -p AXERA-TECH/MiniCPM5-1B-C256-P12K-CTX16K
2cd AXERA-TECH/MiniCPM5-1B-C256-P12K-CTX16K
3hf download AXERA-TECH/MiniCPM5-1B-C256-P12K-CTX16K --local-dir .axllmchmod +x ./bin/axllm1git 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/axllm1chmod +x ./bin/axllm
2./bin/axllm serve . --port 8000AXERA-TECH/MiniCPM5-1B-AX650-C256-P12K-CTX16K1curl http://127.0.0.1:8000/health
2curl http://127.0.0.1:8000/v1/modelsconfig.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-C256-P12K-CTX16K",
5 "messages": [
6 {
7 "role": "user",
8 "content": "请用一句话回答:AX650 是什么平台?"
9 }
10 ],
11 "max_tokens": 64,
12 "temperature": 0
13 }'1{
2 "choices": [
3 {
4 "message": {
5 "role": "assistant",
6 "content": "AX650 是一个基于 ARM 架构的嵌入式系统平台。"
7 },
8 "finish_reason": "stop"
9 }
10 ]
11}enable_thinking=true to enable explicit reasoning output for a single request.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-C256-P12K-CTX16K",
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}lite_webuiaxllm serve, use AXERA-TECH/lite_webui.http://<board-ip>:8000 and the model name to AXERA-TECH/MiniCPM5-1B-AX650-C256-P12K-CTX16K.139953715