Instructions to use UGREENDEV/RK1828-VLM-MiniCPM-V-4 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 UGREENDEV/RK1828-VLM-MiniCPM-V-4 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 UGREENDEV/RK1828-VLM-MiniCPM-V-4 # Run inference directly in the terminal: llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4 # Run inference directly in the terminal: llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4
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 UGREENDEV/RK1828-VLM-MiniCPM-V-4 # Run inference directly in the terminal: ./build/bin/llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4
Use Docker
docker model run hf.co/UGREENDEV/RK1828-VLM-MiniCPM-V-4
- Llama new
- LM Studio
- Jan
- vLLM
How to use UGREENDEV/RK1828-VLM-MiniCPM-V-4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UGREENDEV/RK1828-VLM-MiniCPM-V-4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UGREENDEV/RK1828-VLM-MiniCPM-V-4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/UGREENDEV/RK1828-VLM-MiniCPM-V-4
- Ollama
How to use UGREENDEV/RK1828-VLM-MiniCPM-V-4 with Ollama:
ollama run hf.co/UGREENDEV/RK1828-VLM-MiniCPM-V-4
- Unsloth Desktop
- Docker Model Runner
How to use UGREENDEV/RK1828-VLM-MiniCPM-V-4 with Docker Model Runner:
docker model run hf.co/UGREENDEV/RK1828-VLM-MiniCPM-V-4
- Lemonade
How to use UGREENDEV/RK1828-VLM-MiniCPM-V-4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull UGREENDEV/RK1828-VLM-MiniCPM-V-4
Run and chat with the model
lemonade run user.RK1828-VLM-MiniCPM-V-4-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4# Run inference directly in the terminal:
llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4Build 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 UGREENDEV/RK1828-VLM-MiniCPM-V-4# Run inference directly in the terminal:
./build/bin/llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4Use Docker
docker model run hf.co/UGREENDEV/RK1828-VLM-MiniCPM-V-4RK1828-VLM-MiniCPM-V-4
1. Model Overview
This repository provides an RKNN VLM model converted from OpenBMB/MiniCPM-V-4.
- Model ID:
UGREENDEV/RK1828-VLM-MiniCPM-V-4 - Model Display Name:
RK1828-VLM-MiniCPM-V-4 - RKNN Runtime Version:
v1.1.0 - Source Model:
OpenBMB/MiniCPM-V-4 - Model Type: VLM
- Chip Label: RK1828
- Supported Chips: RK1828
Available Models
| RKNN Runtime Version | Configuration Directory | Supported Chips | Resolution | Quantization | NPU Cores | Context Length (tokens) | KVCache |
|---|---|---|---|---|---|---|---|
v1.1.0 |
MiniCPM-V-4-448x448-w4a16-8-16384 | RK1828 | Vision: 448x448 | Vision: w4a16; LLM: w4a16 | Vision: 8; LLM: 8 | LLM: 16384 (16k) | LLM: fp16 |
v1.1.0 |
MiniCPM-V-4-448x448-w4a16-8-17408 | RK1828 | Vision: 448x448 | Vision: w4a16; LLM: w4a16 | Vision: 8; LLM: 8 | LLM: 17408 (17k) | LLM: fp16 |
v1.1.0 |
MiniCPM-V-4-448x448-w4a16-8-37376-kv-int4 | RK1828 | Vision: 448x448 | Vision: w4a16; LLM: w4a16 | Vision: 8; LLM: 8 | LLM: 37376 (36.5k) | LLM: int4 |
v1.1.0 |
MiniCPM-V-4-448x448-w4a16-8-43520-kv-int4 | RK1828 | Vision: 448x448 | Vision: w4a16; LLM: w4a16 | Vision: 8; LLM: 8 | LLM: 43520 (42.5k) | LLM: int4 |
2. Files
| File or Directory | Description |
|---|---|
LICENSE |
Source model license |
<configuration-directory>/ |
Matching model files |
Subdirectory README.md |
Configuration documentation (English) |
Subdirectory README_CN.md |
Configuration documentation (Chinese) |
Subdirectory config.json |
Model configuration and file manifest |
Subdirectory SHA256SUMS |
SHA-256 checksums of the files in this directory (excluding this file) |
3. Download
Download the full repository from ModelScope:
modelscope download --model UGREENDEV/RK1828-VLM-MiniCPM-V-4 --revision master --local_dir ./RK1828-VLM-MiniCPM-V-4
Download the full repository from Hugging Face:
hf download UGREENDEV/RK1828-VLM-MiniCPM-V-4 --revision v1.1.0 --local-dir ./RK1828-VLM-MiniCPM-V-4
Download a specific configuration from ModelScope:
from modelscope import snapshot_download
snapshot_download(
"UGREENDEV/RK1828-VLM-MiniCPM-V-4",
revision="master",
allow_patterns=["README.md", "README_CN.md", "LICENSE", "MiniCPM-V-4-448x448-w4a16-8-16384/**"],
local_dir="./RK1828-VLM-MiniCPM-V-4",
)
Download a specific configuration from Hugging Face:
hf download UGREENDEV/RK1828-VLM-MiniCPM-V-4 --revision v1.1.0 --include "README.md" "README_CN.md" "LICENSE" "MiniCPM-V-4-448x448-w4a16-8-16384/**" --local-dir ./RK1828-VLM-MiniCPM-V-4
4. SHA-256 Verification
Run in the configuration directory:
cd ./RK1828-VLM-MiniCPM-V-4/MiniCPM-V-4-448x448-w4a16-8-16384
sha256sum -c SHA256SUMS
Deploy only after all entries show OK.
5. Compatibility and Limitations
- Supported Chips: RK1828.
- Use the matching RKNN Runtime and driver. Check the device-side version with
rknn-smi -vbefore running. - Use the files from the selected configuration directory together.
6. Copyright and License
See LICENSE in the repository root for the source model license; The RKNN Toolkit and RKNN Runtime license terms also apply.
- Downloads last month
- 31
We're not able to determine the quantization variants.
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4# Run inference directly in the terminal: llama cli -hf UGREENDEV/RK1828-VLM-MiniCPM-V-4