Instructions to use AXERA-TECH/MiniCPM-V-4.6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AXERA-TECH/MiniCPM-V-4.6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AXERA-TECH/MiniCPM-V-4.6")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AXERA-TECH/MiniCPM-V-4.6", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AXERA-TECH/MiniCPM-V-4.6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AXERA-TECH/MiniCPM-V-4.6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXERA-TECH/MiniCPM-V-4.6", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AXERA-TECH/MiniCPM-V-4.6
- SGLang
How to use AXERA-TECH/MiniCPM-V-4.6 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AXERA-TECH/MiniCPM-V-4.6" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXERA-TECH/MiniCPM-V-4.6", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AXERA-TECH/MiniCPM-V-4.6" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AXERA-TECH/MiniCPM-V-4.6", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AXERA-TECH/MiniCPM-V-4.6 with Docker Model Runner:
docker model run hf.co/AXERA-TECH/MiniCPM-V-4.6
yongqiang commited on
Commit ·
83e0c42
1
Parent(s): 1aa6f87
Update axllm runtime to f1e288b
Browse files- bin/axllm +2 -2
- bin/axllm.version.json +3 -3
bin/axllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4ba064c0f07632274bdee7ad9d09baf2180ca85dd964d24d01c8fe22096b12a
|
| 3 |
+
size 2465672
|
bin/axllm.version.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
"binary": "bin/axllm",
|
| 3 |
"target": "AX650/AX650N aarch64",
|
| 4 |
"ax_llm_branch": "ax-minicpm-v-4-6",
|
| 5 |
-
"ax_llm_commit": "
|
| 6 |
"simplecv_commit": "7729953c7c75ffaea441f70e0a9eb62790f3eb2b",
|
| 7 |
"openai_api_cpp_commit": "f56cf8c296d1002f6602226db392325ba42f6775",
|
| 8 |
"tokenizer_axera_commit": "731018211a62dcb0d606d474af9e760a0c4c44a5",
|
| 9 |
"build_command": "./build.sh",
|
| 10 |
-
"sha256": "
|
| 11 |
"verified": {
|
| 12 |
-
"date": "2026-
|
| 13 |
"board": "AX650",
|
| 14 |
"command": "./bin/axllm serve . --port 18080",
|
| 15 |
"api_url": "http://10.168.232.217:18080/v1/chat/completions",
|
|
|
|
| 2 |
"binary": "bin/axllm",
|
| 3 |
"target": "AX650/AX650N aarch64",
|
| 4 |
"ax_llm_branch": "ax-minicpm-v-4-6",
|
| 5 |
+
"ax_llm_commit": "f1e288b4195c30dd7ba4e0f6fef93e850eaf838f",
|
| 6 |
"simplecv_commit": "7729953c7c75ffaea441f70e0a9eb62790f3eb2b",
|
| 7 |
"openai_api_cpp_commit": "f56cf8c296d1002f6602226db392325ba42f6775",
|
| 8 |
"tokenizer_axera_commit": "731018211a62dcb0d606d474af9e760a0c4c44a5",
|
| 9 |
"build_command": "./build.sh",
|
| 10 |
+
"sha256": "c4ba064c0f07632274bdee7ad9d09baf2180ca85dd964d24d01c8fe22096b12a",
|
| 11 |
"verified": {
|
| 12 |
+
"date": "2026-07-06",
|
| 13 |
"board": "AX650",
|
| 14 |
"command": "./bin/axllm serve . --port 18080",
|
| 15 |
"api_url": "http://10.168.232.217:18080/v1/chat/completions",
|