---
title: MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS
canonical_url: "https://www.modelscope.cn/models/FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS"
md_url: "https://www.modelscope.cn/models/FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS.md"
repository: FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS
last_updated: 2026-10-13
license: apache-2.0
model_type:
  - minicpmv4_7
architectures:
  - MiniCPMV4_7ForConditionalGeneration
parameters: 35.2B
tensor_type:
  - BF16
library_name:
  - safetensors
language:
  - zh
  - en
downloads: 4
stars: 0
---

# MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS

> MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS - FlagRelease 在 ModelScope 开源的模型。Introduction ModelBest, together with OpenBMB, has open-sourced the next-generation on-device multimodal large model MiniCPM-V4.7, releasing two variants at once: 1B and 35B-A3B (MoE).…

FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS 是 ModelScope 魔搭社区上的 35.2B 参数机器学习模型，采用 apache-2.0 许可。

- **Repository**: FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS
- **License**: apache-2.0
- **Parameters**: 35.2B
- **Downloads**: 4
- **Stars**: 0
- **Last updated**: 2026-10-13

Source: https://www.modelscope.cn/models/FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS

---

# Introduction
ModelBest, together with OpenBMB, has open-sourced the next-generation on-device multimodal large model MiniCPM-V4.7, releasing two variants at once: 1B and 35B-A3B (MoE). 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 — based on the FlagOS unified multi-chip software stack. Model images are now live on ModelScope and HuggingFace simultaneously. This adaptation extends both variants to ARM edge CPU platforms as well, enabling a viable deployment path for multimodal understanding on both data-center and end-user devices. The 35B-A3B model is the world’s first open-source MoE multimodal large model capable of lossless and smooth on-device operation, with 35B total parameters and approximately 3B activated parameters. Its core technology, Lookahead Expert Scheduling (LES), cuts on-device inference latency by preloading experts and performing computation and reading in parallel. According to official benchmarks, when paired with the on-device optimization scheme, the model achieves a generation speed of over 13 tokens per second on an iPhone 17 Pro Max. 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 attained 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-Metax** 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-35B-A3B-Nvidia-Origin | MiniCPM-V-4.7-35B-A3B-Metax-FlagOS |
|--------------|--------------------------------|--------------------------------------|
| Math_500     | 94.80                               | 95.60                                |
| GPQA_Diamond | 81.31                               | 80.80                                |
| ERQA         | 52.26                               | 49.75                                |
# User Guide
Environment Setup

| Item             | Version              |
|------------------|----------------------|
| Docker Version   | Docker version 29.3.1 |
| Operating System | 22.04 LTS |

## Operation Steps

### Download FlagOS Image
```bash
docker pull harbor.baai.ac.cn/flagrelease-public/minicpm-v-4.7-35b-a3b-metax001-gems5.3.2-tree0.6.0-cxnone-plugin0.0.0-vllm0.1-sglangnone-sglangflnone-cp312-pt28-maca37-x64-3.8.1:202610101142

```

### Download Open-source Model Weights
```bash
pip install modelscope
modelscope download --model FlagRelease/MiniCPM-V-4.7-35B-A3B-BF16-metax-FlagOS --local_dir /data/MiniCPM-V-4.7-35B-A3B
```

### Start the Container
```bash
docker run -d \
  --name minicpm-v-4.7-35b-a3b \
  --network host \
  --shm-size 512g \
  -v /data:/data \
  -v /public-flash/models:/models \
  harbor.baai.ac.cn/flagrelease-public/minicpm-v-4.7-35b-a3b-metax001-gems5.3.2-tree0.6.0-cxnone-plugin0.0.0-vllm0.1-sglangnone-sglangflnone-cp312-pt28-maca37-x64-3.8.1:202610101142 \
  sleep infinity

docker exex -it minicpm-v-4.7-35b-a3b /bin/bash
```
### Start the Server
```bash
export VLLM_PLUGINS=fl
export MACA_VISIBLE_DEVICES=1,2
export VLLM_FL_FLAGOS_BLACKLIST=mm,mm_out,bmm,bmm_out,linear,sort,stable_sort,masked_fill,masked_fill_,slice

source /opt/conda/etc/profile.d/conda.sh && conda activate base

vllm serve /data/MiniCPM-V-4.7-35B-A3B \
  --served-model-name minicpm-v-4.7-35b-a3b \
  --port 8032 \
  --trust-remote-code \
  --dtype bfloat16 \
  --max-model-len 32768 \
  --no-enable-prefix-caching \
  --enable-chunked-prefill \
  --gpu-memory-utilization 0.9 \
  --block-size 512 \
  --tensor-parallel-size 2 \
  --compilation-config '{"pass_config":{"fuse_allreduce_rms":false},"cudagraph_capture_sizes":[1,2,4,8]}'

```

## Service Invocation
### Invocation Script
```bash
curl http://127.0.0.1:8032/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
      "messages": [{"role": "user", "content": "请给我介绍一下GPQA"}],
      "max_tokens": 128
    }'
```


### 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](https://github.com/openai/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](https://github.com/NVIDIA/Megatron-LM) and [vLLM](https://github.com/vllm-project/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:

1. Submit Issues to report problems
2. Create Pull Requests to contribute code
3. Improve technical documentation
4. Expand hardware adaptation support
# License
The model weights are derived from OpenBMB/MiniCPM-V-4.7-35B-A3B and are open‑sourced under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt
