o
openharmony-models/openPangu-VL-7B
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

openPangu-VL-7B

中文 | English | Technical Report

1. Introduction

The openPangu-VL-7B is an efficient multimodal model based on the Ascend NPU, trained using the openPangu-Embedded-7B-V1.1 base language model and the openPangu-ViT-600M vision encoder. The openPangu-VL-7B has been trained on approximately 3T tokens and possesses capabilities such as general Visual Question Answering, chart and document understanding, object grounding and counting, video understanding, and advanced visual reasoning. This model is designed for fast thinking mode.

2. Model Architecture

openPangu-VL-7B
LLM
ArchitectureDense
Parameters (Non-Embedding)7B
Number of Layers34
Hidden Dimension12800
Attention MechanismGQA
Number of Attention Heads32 for Q,8 for KV
Vocabulary Size153k
Context Length (Natively)128k
Vision Encoder
Architecture22 Window Attention + 4 Full Attention
Number of Layers26
Attention Hidden Size1536
FFN Hidden Size4608
Number of Attention Heads16
Parameters615M

3. Results

BenchmarkopenPangu-VL-7B
General VQA
MMBench V1.1 DEV86.5
MMStar70.1
RealWorldQA76.1
AI2D84.7
OCR & Chart/Document Understanding
OCRBench907
TextVQA85.1
DocVQA96.0
ChartQA88.3
CharXiv dq/rq83.9/54.3
STEM
MMMU65.2
MMMU-Pro52.6
MathVista75.0
Object Grounding/Counting
RefCOCO-avg90.6
ODinW-1351.5
CountBench96.1
Point-Bench65.4
Multi-Image
BLINK63.3
MUIRBench61.6
Video Understanding
MVBench74.0
VideoMME (w/o sub)68.0
MLVU76.9
Text-Centric Benchmark
MMLU-Pro78.2
MMLU-Redux87.3
GPQA-Diamond65.2
C-Eval83.2
AIME2536.5
Math-50089.4
LiveCodeBenchV624.6
MBPP+68.5
IFEval83.0

Note: The evaluation is conducted with vllm-ascend deploy and the system prompt remains empty. Generally, setting the minimum resolution to 2304*28*28 can yield the best evaluation results. (Except for the extremely small image OCR in OCRBench, it is recommended to set the resolution to no more than 64*28*28.) Detailed settings for different benchmarks can be found in Technical Report.

4. Deployment

vllm-ascend deploy (recommended)

  • vllm-ascend:please refer to [vllm_ascend_for_openpangu_vl_7b] to deploy the inference serving.

  • After finish deploying, you can test the api with the following script.

cd inference/vllm_ascend/examples; python quick_start.py

Direct inference

Environment:

  • python==3.10
  • CANN==8.1.RC1
cd inference; pip install -r requirements.txt

Inference:

cd inference; python generate.py

Model abilities

  • For more examples and demomstrations of model abilities, please refer to cookbooks.

5. Model License

Unless otherwise noted, the openPangu-VL-7B model is licensed under the terms and conditions of OPENPANGU MODEL LICENSE AGREEMENT VERSION 1.0, which is intended to be used permissively and enable the further development of artificial intelligence technologies. Please refer to the LICENSE file located in the root directory of the model repository for details.

6. Disclaimer

Due to the technical limitations inherent in the technology on which the openPangu-VL-7B (“Model”) relies and the fact that the artificial intelligence generated content is automatically produced by Model, Huawei cannot make any guarantees regarding the following matters:

  • The output of this Model is automatically generated via AI algorithms, it does not rule out the possibility that some of the information may be flawed, unreasonable, or cause discomfort, and the generated content does not represent Huawei's attitude or standpoint;
  • There is no guarantee that this Model is 100% accurate, reliable, functional, timely, secure and safety, error-free, uninterrupted, continuously stable, or free of any faults;
  • The output of this Model does not constitute any advices or decisions for you, and it does not guarantee the authenticity, completeness, accuracy, timeliness, legality, functionality, or practicality of the generated content. The generated content cannot replace professionals in medical, legal, and other fields in answering your questions. The generated content is for your reference only and does not represent any attitude, standpoint, or position of Huawei. You need to make independent judgments based on your actual situation, and Huawei does not assume any responsibilities.

7. Contact

If you have any question, please raise an issue or contact us at openPangu@huawei.com.