Introduction
ModelBest, together with OpenBMB, has open-sourced MiniCPM-V4.7, a next-generation on-device multimodal large model, releasing two variants at once: 1B and 35B-A3B (MoE). Based on the FlagOS unified multi-chip software stack, the Zhongzhi FlagOS community completed day-0 cross-chip adaptation covering 12 platforms: T-Head, NVIDIA, Huawei Ascend, Hygon, Kunlunxin, MetaX, Moore Threads, Tsingmicro, Iluvatar CoreX, Sunrise, Mac (M5 Pro), and CIX P1. Model images are now available on ModelScope and HuggingFace simultaneously. This adaptation extends both model variants to ARM edge CPU platforms, enabling viable deployment of multimodal understanding on both data-center and end-user devices. The 1B version has an actual parameter count of approximately 1.3B. Despite its extremely small footprint, it delivers top-tier performance within its size class and performs strongly on tasks including general vision, OCR, chart reasoning, and video understanding, bringing multimodal capabilities to more everyday devices and usage scenarios. The model retains the early-compression-within-ViT technique and 4×/16× visual token compression, and supports DSpark speculative decoding to balance visual detail and inference efficiency. In official Instruct-mode evaluations, the 35B-A3B and 1B models achieved higher overall scores than Qwen3.6-35B-A3B and Qwen3.5-0.8B respectively, with shorter inference time.
Integrated Deployment
- Out-of-the-box inference scripts with pre-configured hardware and software parameters
- Released FlagOS-Hygon container image supporting deployment within minutes
Consistency Validation
- Rigorously evaluated through benchmark testing: Performance and results from the FlagOS software stack are compared against native stacks on multiple public.
Evaluation Results
Benchmark Result
| Metrics | MiniCPM-V-4.7-1B-Nvidia-Origin | MiniCPM-V-4.7-1B-Hygon-FlagOS |
|---|---|---|
| Math_500 | 71.20 | 72.40 |
| MMLU_Pro | 47.6 | 48 |
User Guide
Environment Setup
| Item | Version |
|---|---|
| Docker Version | Docker version 27.3.1 |
| Operating System | 22.04 LTS |
Operation Steps
Download FlagOS Image
docker pull harbor.baai.ac.cn/flagrelease-public/minicpmv47-1b-hygon001-gems5.3.2-tree0.6.2a1-cxnone-plugin0.0.0-vllm0.24.0-sglangnone-sglangflnone-cp3.10-pt2.10-dtk26.04-x64-6.3.30:202610220810
Download Open-source Model Weights
pip install modelscope
modelscope download --model FlagRelease/MiniCPM-V-4.7-1B-BF16-hygon-FlagOS --local_dir /data/MiniCPM-V-4.7-1B
Start the Container
docker run -dit \
--name minicpmv47-1b \
--network host \
--ipc host \
--shm-size 64g \
--device /dev/kfd \
--device /dev/dri \
--group-add video \
--group-add render \
--security-opt label=disable \
-v /opt/hyhal:/opt/hyhal:ro \
-v /data:/data:rslave \
-w /opt/minicpm-v4.7/release \
harbor.baai.ac.cn/flagrelease-public/minicpmv47-1b-hygon001-gems5.3.2-tree0.6.2a1-cxnone-plugin0.0.0-vllm0.24.0-sglangnone-sglangflnone-cp3.10-pt2.10-dtk26.04-x64-6.3.30:202610220810 \
/bin/bash
docker exec -it minicpmv47-1b /bin/bash
Start the Server
unset PYTHONPATH VLLM_FL_HYGON_VISION_SDPA_MATH
unset VLLM_FL_HYGON_PYNCCL_COMPAT VLLM_USE_NCCL_SYMM_MEM
export USE_FLAGGEMS=1
export VLLM_PLUGINS=fl
export GEMS_VENDOR=hygon
export HIP_VISIBLE_DEVICES=2
export VLLM_WORKER_MULTIPROC_METHOD=spawn
export HF_HUB_OFFLINE=1
export VLLM_FL_FLAGOS_BLACKLIST=slice,nonzero,nonzero_numpy,index,index_put,index_put_,_index_put_impl_
export FLAGGEMS_DB_URL=sqlite:///:memory:
export TRITON_HIP_CLANG_PATH=/opt/minicpm-v4.7/bin/clang18-hygon.sh
export LD_LIBRARY_PATH=/opt/dtk-26.04-DCC2602-0317/hip/lib:/opt/dtk-26.04-DCC2602-0317/lib:/opt/dtk-26.04-DCC2602-0317/.hyhal/rocm_smi/lib:/opt/dtk-26.04-DCC2602-0317/aillvm/lib
export TRITON_CACHE_DIR=/data/minicpm-runtime/cache/8147/triton
export VLLM_CACHE_ROOT=/data/minicpm-runtime/cache/8147/vllm
export TORCHINDUCTOR_CACHE_DIR=/data/minicpm-runtime/cache/8147/inductor
mkdir -p "$TRITON_CACHE_DIR" "$VLLM_CACHE_ROOT" "$TORCHINDUCTOR_CACHE_DIR"
/usr/bin/python3 /usr/local/bin/vllm serve \
/data/MiniCPM-V-4.7-1B \
--served-model-name MiniCPM-V-4.7-1B \
--host 0.0.0.0 \
--port 8147 \
--trust-remote-code \
--dtype bfloat16 \
--tensor-parallel-size 1 \
--max-model-len 262144 \
--max-num-seqs 64 \
--max-num-batched-tokens 16384 \
--enable-chunked-prefill \
--no-enable-prefix-caching \
--gpu-memory-utilization 0.90 \
--skip-mm-profiling \
--limit-mm-per-prompt '{"image":1,"video":0}' \
--mm-processor-kwargs '{"downsample_mode":"4x"}' \
--compilation-config '{"cudagraph_capture_sizes":[1,2,4,8,16,32,64]}'
Service Invocation
Invocation Script
curl -fsS --max-time 120 \
http://127.0.0.1:8147/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{
"model": "MiniCPM-V-4.7-1B",
"messages": [{"role": "user", "content": "What is 2+3? Reply with the number only."}],
"temperature": 0,
"max_tokens": 64,
"chat_template_kwargs": {"enable_thinking": false}
}'
AnythingLLM Integration Guide
1. Download & Install
- Visit the official site: https://anythingllm.com/
- Choose the appropriate version for your OS (Windows/macOS/Linux)
- Follow the installation wizard to complete the setup
2. Configuration
- Launch AnythingLLM
- Open settings (bottom left, fourth tab)
- Configure core LLM parameters
- Click "Save Settings" to apply changes
3. Model Interaction
- After model loading is complete:
- Click "New Conversation"
- Enter your question (e.g., "Explain the basics of quantum computing")
- Click the send button to get a response
Technical Overview
FlagOS is a fully open-source system software stack designed to unify the "model–system–chip" layers and foster an open, collaborative ecosystem. It enables a "develop once, run anywhere" workflow across diverse AI accelerators, unlocking hardware performance, eliminating fragmentation among vendor-specific software stacks, and substantially lowering the cost of porting and maintaining AI workloads. With core technologies such as the FlagScale, together with vllm-plugin-fl, distributed training/inference framework, FlagGems universal operator library, FlagCX communication library, and FlagTree unified compiler, the FlagRelease platform leverages the FlagOS stack to automatically produce and release various combinations of <chip + open-source model>. This enables efficient and automated model migration across diverse chips, opening a new chapter for large model deployment and application.
FlagGems
FlagGems is a high-performance, generic operator libraryimplemented in Triton language. It is built on a collection of backend-neutralkernels that aims to accelerate LLM (Large-Language Models) training and inference across diverse hardware platforms.
FlagTree
FlagTree is an open source, unified compiler for multipleAI chips project dedicated to developing a diverse ecosystem of AI chip compilers and related tooling platforms, thereby fostering and strengthening the upstream and downstream Triton ecosystem. Currently in its initial phase, the project aims to maintain compatibility with existing adaptation solutions while unifying the codebase to rapidly implement single-repository multi-backend support. Forupstream model users, it provides unified compilation capabilities across multiple backends; for downstream chip manufacturers, it offers examples of Triton ecosystem integration.
FlagScale and vllm-plugin-fl
Flagscale is a comprehensive toolkit designed to supportthe entire lifecycle of large models. It builds on the strengths of several prominent open-source projects, including Megatron-LM and vLLM, to provide a robust, end-to-end solution for managing and scaling large models. vllm-plugin-fl is a vLLM plugin built on the FlagOS unified multi-chip backend, to help flagscale support multi-chip on vllm framework.
FlagCX
FlagCX is a scalable and adaptive cross-chip communication library. It serves as a platform where developers, researchers, and AI engineers can collaborate on various projects, contribute to the development of cutting-edge AI solutions, and share their work with the global community.
FlagEval Evaluation Framework
FlagEval is a comprehensive evaluation system and open platform for large models launched in 2023. It aims to establish scientific, fair, and open benchmarks, methodologies, and tools to help researchers assess model and training algorithm performance. It features:
- Multi-dimensional Evaluation: Supports 800+ modelevaluations across NLP, CV, Audio, and Multimodal fields,covering 20+ downstream tasks including language understanding and image-text generation.
- Industry-Grade Use Cases: Has completed horizonta1 evaluations of mainstream large models, providing authoritative benchmarks for chip-model performance validation.
Contributing
We warmly welcome global developers to join us:
- Submit Issues to report problems
- Create Pull Requests to contribute code
- Improve technical documentation
- Expand hardware adaptation support
License
The model weights are derived from OpenBMB/MiniCPM-V-4.7-1B and are open‑sourced under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt