Downloads · 30 days
10
11% of all-time downloads
FlagRelease/MiniCPM-V-4-FlagOS
MiniCPM-V-4-FlagOS is a machine learning model from FlagRelease. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
FlagOS is a unified heterogeneous computing software stack for large models, co-developed with leading global chip manufacturers. With core technologies such as the FlagScale distributed training/inference framework,…
Downloads · 30 days
10
11% of all-time downloads
All-time downloads
90
Public
Parameters
4.1B
8.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors8.1 GB · 100%
From the Hugging Face model README
FlagOS is a unified heterogeneous computing software stack for large models, co-developed with leading global chip manufacturers. With core technologies such as the FlagScale 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.
Based on this, the MiniCPM-V-4-FlagOS model is adapted for the Nvidia chip using the FlagOS software stack, enabling:
FlagScale is an end-to-end framework for large models across heterogeneous computing resources, maximizing computational efficiency and ensuring model validity through core technologies. Its key advantages include:
FlagGems is a Triton-based, cross-architecture operator library collaboratively developed with industry partners. Its core strengths include:
FlagEval (Libra)** 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:
| Metrics | MiniCPM-V-4-H100-CUDA | MiniCPM-V-4-FlagOS |
|---|---|---|
| blink_val | 51.13 | 51.45 |
| cii_bench_test | 41.83 | 43.27 |
| cmmmu_val | 37.56 | 35.0 |
| math_vision_test | 21.02 | 21.09 |
| mmmu_pro_standard_test | 25.16 | 25.8 |
| mmmu_pro_vision_test | 20.4 | 20.23 |
| mmmu_val | 40.22 | 42.0 |
| mmvet_v2 | 47.7451 | 50.1373 |
| ocrbench_test | 82.6 | 81.5 |
Environment Setup
| Item | Version |
|---|---|
| Docker Version | Docker version 27.5.1, build 27.5.1-0ubuntu3~22.04.2 |
| Operating System | Ubuntu 22.04.3 LTS |
| FlagScale | Version: 0.8.0 |
| FlagGems | Version: 3.0 |
docker pull harbor.baai.ac.cn/flagrelease-public/flagrelease_nvidia_minicpmv4
pip install modelscope
modelscope download --model OpenBMB/MiniCPM-V-4 --local_dir /share/models/MiniCPM-V-4
#Container Startup
docker run --rm --init --detach --net=host --uts=host --ipc=host --security-opt=seccomp=unconfined --privileged=true --ulimit stack=67108864 --ulimit memlock=-1 --ulimit nofile=1048576:1048576 --shm-size=32G -v /share:/share --gpus all --name flagos harbor.baai.ac.cn/flagrelease-public/flagrelease_nvidia_minicpmv4 sleep infinity
flagscale serve minicpm_v_4
import openai
openai.api_key = "EMPTY"
openai.base_url = "http://<server_ip>:9010/v1/"
model = "MiniCPM-V-4-nvidia-flagos"
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "What's the weather like today?"}
]
response = openai.chat.completions.create(
model=model,
messages=messages,
stream=False,
)
for item in response:
print(item)
We warmly welcome global developers to join us:
本模型的权重来源于OpenBMB/MiniCPM-V-4,以apache2.0协议https://www.apache.org/licenses/LICENSE-2.0.txt开源。