zwgao commited on
Commit
96cbd7b
1 Parent(s): 77e1d45

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +850 -3
README.md CHANGED
@@ -1,3 +1,850 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: image-text-to-text
4
+ library_name: transformers
5
+ base_model:
6
+ - OpenGVLab/InternViT-300M-448px-V2_5
7
+ - Qwen/Qwen2.5-72B-Instruct
8
+ base_model_relation: merge
9
+ language:
10
+ - multilingual
11
+ tags:
12
+ - internvl
13
+ - vision
14
+ - ocr
15
+ - multi-image
16
+ - video
17
+ - custom_code
18
+ ---
19
+
20
+ # InternVL2_5-78B
21
+
22
+ [\[📂 GitHub\]](https://github.com/OpenGVLab/InternVL) [\[🆕 Blog\]](https://internvl.github.io/blog/)
23
+ [\[📜 InternVL 2.5 Report\]]()
24
+ [\[📜 InternVL 1.0 Paper\]](https://arxiv.org/abs/2312.14238) [\[📜 InternVL 1.5 Report\]](https://arxiv.org/abs/2404.16821)
25
+ [\[🗨️ Chat Demo\]](https://internvl.opengvlab.com/) [\[🤗 HF Demo\]](https://huggingface.co/spaces/OpenGVLab/InternVL) [\[🚀 Quick Start\]](#quick-start) [\[📖 Documents\]](https://internvl.readthedocs.io/en/latest/)
26
+
27
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/64564b0e4a7ffb7d5a47f412/3i-8-6VSoTAo0-OKUUpec.jpeg)
28
+
29
+ ## Introduction
30
+
31
+ We are excited to introduce InternVL 2.5, an advanced multimodal large language model (MLLM) series that builds upon InternVL 2.0, maintaining its core model architecture while introducing significant enhancements in training and testing strategies as well as data quality.
32
+
33
+ Through extensive evaluations on a wide range of benchmarks, including multi-discipline reasoning, document understanding, multi-image / video understanding, real-world comprehension, multimodal hallucination detection, visual grounding, multilingual capabilities, and pure language processing, InternVL 2.5 exhibits competitive performance, rivaling leading commercial models such as GPT-4o and Claude-3.5-Sonnet. Notably, our model is the first open-source MLLMs to achieve over **70%** on the **MMMU benchmark**. We hope this model contributes to the open-source community by setting new standards for developing and applying multimodal AI systems. This repository contains the instruction-tuned **InternVL2_5-78B** model.
34
+
35
+ We delve into the relationship between model scaling and performance, systematically exploring the performance trends in vision encoders, language models, dataset sizes, and test-time configurations. For more details, please refer to our [blog](), [tech report]() and [GitHub](https://github.com/OpenGVLab/InternVL).
36
+
37
+ | Model Name | Vision Part | Language Part | HF Link |
38
+ | :------------------: | :---------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------: | :--------------------------------------------------------------: |
39
+ | InternVL2_5-1B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-1B) |
40
+ | InternVL2_5-2B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [internlm2_5-1_8b-chat](https://huggingface.co/internlm/internlm2_5-1_8b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-2B) |
41
+ | InternVL2_5-4B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-4B) |
42
+ | InternVL2_5-8B | [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5) | [internlm2_5-7b-chat](https://huggingface.co/internlm/internlm2_5-7b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-8B) |
43
+ | InternVL2_5-26B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [internlm2_5-20b-chat](https://huggingface.co/internlm/internlm2_5-20b-chat) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-26B) |
44
+ | InternVL2_5-38B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-38B) |
45
+ | InternVL2_5-78B | [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5) | [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct) | [🤗 link](https://huggingface.co/OpenGVLab/InternVL2_5-78B) |
46
+
47
+ ## Model Details
48
+
49
+ InternVL 2.5is a multimodal large language model series, featuring models of various sizes. For each size, we release instruction-tuned models optimized for multimodal tasks. InternVL2_5-78B consists of [InternViT-6B-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-6B-448px-V2_5), an MLP projector, and [Qwen2.5-72B-Instruct](https://huggingface.co/Qwen/Qwen2.5-72B-Instruct).
50
+
51
+ ## Performance
52
+
53
+ ### Image Benchmarks
54
+
55
+
56
+ | Benchmark | GPT-4V | GPT-4o-20240513 | Claude-3-Opus |Claude-3.5-Sonnet | Gemini-1.5-Pro | LLaVA-OneVision-72B | NVLM-D-72B | Molmo-72B | Qwen2-VL-72B | InternVL2-Llama3-76B | InternVL2.5-78B |
57
+ |---------------------|---------|-----------------|----------------|-------------------|----------------|---------------------|------------|-----------|--------------|----------------------|------------------|
58
+ | MMMU (val) | 63.1 | 69.1 | - | 68.3 | 62.2 | 56.8 | 59.7 | 54.1 | 64.5 | 62.7 | 70.1 |
59
+ | MMMU (test) | - | - | - | - | - | - | 54.6 | - | - | 55.1 | 61.8 |
60
+ | MMMU-PRO (overall) | - | 51.9 | - |51.5 | 46.9 | 31.0 | - | - | 46.2 | 40.0 | 48.6 |
61
+ | MathVista (mini) | 58.1 | 63.8 | - | 67.7 | 63.9 | 67.5 | 66.6 | 58.6 | 70.5 | 65.5 | 72.3 |
62
+ | MathVision (mini) | - | - | - | - | - | - | - | - | - | 23.7 | 34.9 |
63
+ | MathVision (full) | 24.0 | 30.4 | - | - | 19.2 | - | - | - | 25.9 | 23.6 | 32.2 |
64
+ | MathVerse (mini) | 32.8 | 50.2 | - | - | - | 39.1 | - | - | - | 42.8 | 51.7 |
65
+ | Olympiad Bench | 18.0 | 25.9 | - | - | - | - | - | - | - | 5.5 | 11.6 |
66
+ | AI2D (w / wo M) | 78.2 / 89.4 | 84.6 / 94.2 | 70.6 / 88.1 | 81.2 / 94.7 | 79.1 / 94.4 | 85.6 / - | 85.2 / 94.2 | - | 88.1 / - | 87.6 / 94.8 | 89.1 / 95.7 |
67
+ | ChartQA (test avg.) |78.5 | 85.7 | 80.8 | 90.8 | 87.2 | 83.7 | 86.0 | 87.3 | 88.3 | 88.4 | 88.3 |
68
+ | TextVQA (val) | 78.0 | 77.4 | 67.5 | 74.1 | 78.8 | 80.5 | 82.1 | 83.1 | 85.5 | 84.4 | 83.4 |
69
+ | DocVQA (test) |88.4 | 92.8 | 89.3 | 95.2 | 93.1 | 91.3 | 92.6 | 93.5 | 96.5 | 94.1 | 95.1 |
70
+ | InfoVQA (test) | 75.1 | 79.2 | 55.6 | 74.3 | 81.0 | 74.9 | - | 81.9 | 84.5 | 82.0 | 84.1 |
71
+ | OCR-Bench |645 | 736 | 694 | 788 | 754 | 741 | 853 | - | 877 | 839 | 854 |
72
+ | SEED-2 Plus | 53.8 | 72.0 | 44.2 | 71.7 | - | 69.7 | - | - | - | 69.7 | 71.3 |
73
+ | CharXiv (RQ / DQ) | 37.1 / 79.9 | 47.1 / 84.5 | 30.2 / 71.6 | 60.2 / 84.3 | 43.3 / 72.0 | - | - | - | 91.3 / 94.6 | 38.9 / 75.2 | 42.4 / 82.3 |
74
+ | VCR-EN-Easy (EM / Jaccard) | 52.0 / 65.4 | 91.6 / 96.4 | 62.0 / 77.7 | 63.9 / 74.7 | 62.7 / 77.7 | - | - | - | 94.6 | 83.2 / 91.3 | 95.7 / 94.5 |
75
+ | BLINK (val) |54.6 | 68.0 | - | - | - | 55.4 | - | - | - | 56.8 | 63.8 |
76
+ | Mantis Eval | 62.7 | - | - | - | - | 77.6 | - | - | - | 73.7 | 77.0 |
77
+ | MMIU | - | 55.7 | - | 53.4 | 53.4 | - | - | - | - | 44.2 | 55.8 |
78
+ | Muir Bench | 62.3 | 68.0 | - | - | - | 54.8 | - | - | - | 51.2 | 63.5 |
79
+ | MMT (val) |64.3 | 65.4 | - | - | 64.5 | - | - | - | 71.8 | 67.4 | 70.8 |
80
+ | MIRB (avg.) | 53.1 | - | - | - | - | - | - | - | - | 58.2 | 61.1 |
81
+ | RealWorld QA | 61.4 | 75.4 | - | 60.1 | 67.5 | 71.9 | - | - | 77.8 | 72.2 | 78.7 |
82
+ | MME-RW (EN) | - | 45.2 | - | 51.6 | 38.2 | - | - | - | - | 63.0 | 62.9 |
83
+ | WildVision (win rate)|71.8 | 80.6 | - | - | - | - | - | - | - | 65.8 | 71.4 |
84
+ | R-Bench | 65.6 | 77.7 | - | - | - | - | - | - | - | 74.1 | 77.2 |
85
+ | MME (sum) | 1926.6 | -- | 1586.8 | -- | -- | 2261.0 | - | - | 2482.7 | 2414.7 | 2494.5 |
86
+ | MMB (EN / CN) | 81.0 / 80.2 | 83.4 / 82.1 | 63.3 / 59.2 | 82.6 / 83.5 | 73.9 / 73.8 | 85.8 / 85.3 | - | - | 86.5 / 86.6 | 86.5 / 86.3 | 88.3 / 88.5 |
87
+ | MMBv1.1 (EN) | 80.0 | 83.1 | 60.1 | 80.9 | 74.6 | 85.0 | - | - | 85.9 | 85.5 | 87.4 |
88
+ | MMVet (turbo) | 67.5 | 69.1 | 51.7 | 70.1 | 64.0 | 60.6 | - | - | 74.0 | 65.7 | 72.3 |
89
+ | MMVetv2 (0613) |66.3 | 71.0 | 55.8 | 71.8 | 66.9 | -- | - | - | 66.9 | 68.4 | 65.5 |
90
+ | MMStar | 56.0 | 64.7 | 45.7 | 65.1 | 59.1 | 65.8 | - | - | 68.3 | 67.4 | 69.5 |
91
+ | HallBench (avg.) | 46.5 | 55.0 | 37.8 | 55.5 | 45.6 | 49.0 | - | - | 58.1 | 55.2 | 57.4 |
92
+ | MMHal (score) | -- | 4.00 | -- | -- | -- | -- | - | - | -- | 3.83 | 3.89 |
93
+ | CRPE (relation) | -- | 76.6 | -- | -- | -- | -- | - | - | -- | 77.6 | 78.8 |
94
+ | POPE (avg.) |-- | 86.9 | -- | -- | -- | -- | - | - | -- | 89.0 | 90.8 |
95
+
96
+ ### Video Benchmarks
97
+
98
+ ### Multimodal Multilingual Understanding
99
+
100
+ <table style="width:100%; border-collapse: collapse;">
101
+ <thead>
102
+ <tr>
103
+ <th rowspan="2">Model Name</th>
104
+ <th colspan="6">MMMB</th>
105
+ <th colspan="6">Multilingual MMBench</th>
106
+ <th>MTVQA</th>
107
+ </tr>
108
+ <tr>
109
+ <th>en</th>
110
+ <th>zh</th>
111
+ <th>pt</th>
112
+ <th>ar</th>
113
+ <th>tr</th>
114
+ <th>ru</th>
115
+ <th>en</th>
116
+ <th>zh</th>
117
+ <th>pt</th>
118
+ <th>ar</th>
119
+ <th>tr</th>
120
+ <th>ru</th>
121
+ <th>(avg)</th>
122
+ </tr>
123
+ </thead>
124
+ <tbody>
125
+ <tr>
126
+ <td>GPT-4V </td>
127
+ <td>75.0</td>
128
+ <td>74.2</td>
129
+ <td>71.5</td>
130
+ <td>73.5</td>
131
+ <td>69.0</td>
132
+ <td>73.1</td>
133
+ <td>77.6</td>
134
+ <td>74.4</td>
135
+ <td>72.5</td>
136
+ <td>72.3</td>
137
+ <td>70.5</td>
138
+ <td>74.8</td>
139
+ <td>22.0</td>
140
+ </tr>
141
+ <tr>
142
+ <td>GPT-4o </td>
143
+ <td>--</td>
144
+ <td>--</td>
145
+ <td>--</td>
146
+ <td>--</td>
147
+ <td>--</td>
148
+ <td>--</td>
149
+ <td>--</td>
150
+ <td>--</td>
151
+ <td>--</td>
152
+ <td>--</td>
153
+ <td>--</td>
154
+ <td>--</td>
155
+ <td>27.8</td>
156
+ </tr>
157
+ <tr>
158
+ <td>Qwen-VL-Max </td>
159
+ <td>77.2</td>
160
+ <td>75.3</td>
161
+ <td>72.2</td>
162
+ <td>70.8</td>
163
+ <td>66.0</td>
164
+ <td>74.2</td>
165
+ <td>76.8</td>
166
+ <td>77.6</td>
167
+ <td>74.6</td>
168
+ <td>75.0</td>
169
+ <td>69.1</td>
170
+ <td>75.0</td>
171
+ <td>--</td>
172
+ </tr>
173
+ <tr>
174
+ <td>Gemini-1.0-Pro </td>
175
+ <td>75.0</td>
176
+ <td>71.9</td>
177
+ <td>70.6</td>
178
+ <td>69.9</td>
179
+ <td>69.6</td>
180
+ <td>72.7</td>
181
+ <td>73.6</td>
182
+ <td>72.1</td>
183
+ <td>70.3</td>
184
+ <td>61.1</td>
185
+ <td>69.8</td>
186
+ <td>70.5</td>
187
+ <td>--</td>
188
+ </tr>
189
+ <tr>
190
+ <td>Qwen2-VL-72B </td>
191
+ <td>86.8</td>
192
+ <td>85.3</td>
193
+ <td>85.2</td>
194
+ <td>84.8</td>
195
+ <td>84.2</td>
196
+ <td>85.3</td>
197
+ <td>86.9</td>
198
+ <td>87.2</td>
199
+ <td>85.8</td>
200
+ <td>83.5</td>
201
+ <td>84.4</td>
202
+ <td>85.3</td>
203
+ <td>30.9</td>
204
+ </tr>
205
+ <tr>
206
+ <td>InternVL2-Llama3-76B </td>
207
+ <td>85.3</td>
208
+ <td>85.1</td>
209
+ <td>82.8</td>
210
+ <td>82.8</td>
211
+ <td>83.0</td>
212
+ <td>83.7</td>
213
+ <td>87.8</td>
214
+ <td>87.3</td>
215
+ <td>85.9</td>
216
+ <td>83.1</td>
217
+ <td>85.0</td>
218
+ <td>85.7</td>
219
+ <td>22.0</td>
220
+ </tr>
221
+ <tr>
222
+ <td>InternVL2.5-76B</td>
223
+ <td>86.3</td>
224
+ <td>85.6</td>
225
+ <td>85.1</td>
226
+ <td>84.8</td>
227
+ <td>83.1</td>
228
+ <td>85.4</td>
229
+ <td>90.0</td>
230
+ <td>89.7</td>
231
+ <td>87.4</td>
232
+ <td>83.3</td>
233
+ <td>84.9</td>
234
+ <td>86.3</td>
235
+ <td>31.9</td>
236
+ </tr>
237
+ </tbody>
238
+ </table>
239
+
240
+
241
+ ### Visual Grounding
242
+
243
+ <table border="1" cellspacing="0" cellpadding="5">
244
+ <thead>
245
+ <tr>
246
+ <th rowspan="2">Model Name</th>
247
+ <th colspan="3">RefCOCO</th>
248
+ <th colspan="3">RefCOCO+</th>
249
+ <th colspan="2">RefCOCOg</th>
250
+ <th rowspan="2">avg</th>
251
+ </tr>
252
+ <tr>
253
+ <th>val</th>
254
+ <th>test-A</th>
255
+ <th>test-B</th>
256
+ <th>val</th>
257
+ <th>test-A</th>
258
+ <th>test-B</th>
259
+ <th>val</th>
260
+ <th>test</th>
261
+ </tr>
262
+ </thead>
263
+ <tbody>
264
+ <tr>
265
+ <td>Grounding-DINO-L</td>
266
+ <td>90.6</td>
267
+ <td>93.2</td>
268
+ <td>88.2</td>
269
+ <td>82.8</td>
270
+ <td>89.0</td>
271
+ <td>75.9</td>
272
+ <td>86.1</td>
273
+ <td>87.0</td>
274
+ <td>86.6</td>
275
+ </tr>
276
+ <tr>
277
+ <td>UNINEXT-H</td>
278
+ <td>92.6</td>
279
+ <td>94.3</td>
280
+ <td>91.5</td>
281
+ <td>85.2</td>
282
+ <td>89.6</td>
283
+ <td>79.8</td>
284
+ <td>88.7</td>
285
+ <td>89.4</td>
286
+ <td>88.9</td>
287
+ </tr>
288
+ <tr>
289
+ <td>ONE-PEACE</td>
290
+ <td>92.6</td>
291
+ <td>94.2</td>
292
+ <td>89.3</td>
293
+ <td>88.8</td>
294
+ <td>92.2</td>
295
+ <td>83.2</td>
296
+ <td>89.2</td>
297
+ <td>89.3</td>
298
+ <td>89.8</td>
299
+ </tr>
300
+ <tr>
301
+ <td>Qwen2-VL-72B</td>
302
+ <td>93.2</td>
303
+ <td>95.3</td>
304
+ <td>90.7</td>
305
+ <td>90.1</td>
306
+ <td>93.8</td>
307
+ <td>85.6</td>
308
+ <td>89.9</td>
309
+ <td>90.4</td>
310
+ <td>91.1</td>
311
+ </tr>
312
+ <tr>
313
+ <td>InternVL2-Llama3-76B</td>
314
+ <td>92.2</td>
315
+ <td>94.8</td>
316
+ <td>88.4</td>
317
+ <td>88.8</td>
318
+ <td>93.1</td>
319
+ <td>82.8</td>
320
+ <td>89.5</td>
321
+ <td>90.3</td>
322
+ <td>90.0</td>
323
+ </tr>
324
+ <tr>
325
+ <td>InternVL2.5-78B</td>
326
+ <td>93.7</td>
327
+ <td>95.6</td>
328
+ <td>92.5</td>
329
+ <td>90.4</td>
330
+ <td>94.7</td>
331
+ <td>86.9</td>
332
+ <td>92.7</td>
333
+ <td>92.2</td>
334
+ <td>92.3</td>
335
+ </tr>
336
+ </tbody>
337
+ </table>
338
+
339
+
340
+ ### Invitation to Evaluate InternVL
341
+
342
+ We welcome MLLM benchmark developers to assess our InternVL series models. If you need to add your evaluation results here, please contact me at [[email protected]](mailto:[email protected]).
343
+
344
+ ## Quick Start
345
+
346
+ We provide an example code to run InternVL2_5-78B using `transformers`.
347
+
348
+ We also welcome you to experience the InternVL series models in our [online demo](https://internvl.opengvlab.com/).
349
+
350
+ > Please use transformers ≳ 4.37.2 to ensure the model works normally.
351
+
352
+ ### Model Loading
353
+
354
+ #### 16-bit (bf16 / fp16)
355
+
356
+ ```python
357
+ import torch
358
+ from transformers import AutoTokenizer, AutoModel
359
+ path = "OpenGVLab/InternVL2_5-78B"
360
+ model = AutoModel.from_pretrained(
361
+ path,
362
+ torch_dtype=torch.bfloat16,
363
+ low_cpu_mem_usage=True,
364
+ use_flash_attn=True,
365
+ trust_remote_code=True).eval().cuda()
366
+ ```
367
+
368
+ #### BNB 8-bit Quantization
369
+
370
+ ```python
371
+ import torch
372
+ from transformers import AutoTokenizer, AutoModel
373
+ path = "OpenGVLab/InternVL2_5-78B"
374
+ model = AutoModel.from_pretrained(
375
+ path,
376
+ torch_dtype=torch.bfloat16,
377
+ load_in_8bit=True,
378
+ low_cpu_mem_usage=True,
379
+ use_flash_attn=True,
380
+ trust_remote_code=True).eval()
381
+ ```
382
+
383
+ #### BNB 4-bit Quantization
384
+
385
+ ```python
386
+ import torch
387
+ from transformers import AutoTokenizer, AutoModel
388
+ path = "OpenGVLab/InternVL2_5-78B"
389
+ model = AutoModel.from_pretrained(
390
+ path,
391
+ torch_dtype=torch.bfloat16,
392
+ load_in_4bit=True,
393
+ low_cpu_mem_usage=True,
394
+ use_flash_attn=True,
395
+ trust_remote_code=True).eval()
396
+ ```
397
+
398
+ #### Multiple GPUs
399
+
400
+ The reason for writing the code this way is to avoid errors that occur during multi-GPU inference due to tensors not being on the same device. By ensuring that the first and last layers of the large language model (LLM) are on the same device, we prevent such errors.
401
+
402
+ ```python
403
+ import math
404
+ import torch
405
+ from transformers import AutoTokenizer, AutoModel
406
+
407
+ def split_model(model_name):
408
+ device_map = {}
409
+ world_size = torch.cuda.device_count()
410
+ num_layers = {
411
+ 'InternVL2_5-1B': 24, 'InternVL_5-2B': 24, 'InternVL2_5-4B': 36, 'InternVL2_5-8B': 32,
412
+ 'InternVL2_5-26B': 48, 'InternVL2_5-38B': 64, 'InternVL2_5-78B': 80}[model_name]
413
+ # Since the first GPU will be used for ViT, treat it as half a GPU.
414
+ num_layers_per_gpu = math.ceil(num_layers / (world_size - 0.5))
415
+ num_layers_per_gpu = [num_layers_per_gpu] * world_size
416
+ num_layers_per_gpu[0] = math.ceil(num_layers_per_gpu[0] * 0.5)
417
+ layer_cnt = 0
418
+ for i, num_layer in enumerate(num_layers_per_gpu):
419
+ for j in range(num_layer):
420
+ device_map[f'language_model.model.layers.{layer_cnt}'] = i
421
+ layer_cnt += 1
422
+ device_map['vision_model'] = 0
423
+ device_map['mlp1'] = 0
424
+ device_map['language_model.model.tok_embeddings'] = 0
425
+ device_map['language_model.model.embed_tokens'] = 0
426
+ device_map['language_model.output'] = 0
427
+ device_map['language_model.model.norm'] = 0
428
+ device_map['language_model.lm_head'] = 0
429
+ device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
430
+
431
+ return device_map
432
+
433
+ path = "OpenGVLab/InternVL2_5-78B"
434
+ device_map = split_model('InternVL2_5-78B')
435
+ model = AutoModel.from_pretrained(
436
+ path,
437
+ torch_dtype=torch.bfloat16,
438
+ low_cpu_mem_usage=True,
439
+ use_flash_attn=True,
440
+ trust_remote_code=True,
441
+ device_map=device_map).eval()
442
+ ```
443
+
444
+ ### Inference with Transformers
445
+
446
+ ```python
447
+ import numpy as np
448
+ import torch
449
+ import torchvision.transforms as T
450
+ from decord import VideoReader, cpu
451
+ from PIL import Image
452
+ from torchvision.transforms.functional import InterpolationMode
453
+ from transformers import AutoModel, AutoTokenizer
454
+
455
+ IMAGENET_MEAN = (0.485, 0.456, 0.406)
456
+ IMAGENET_STD = (0.229, 0.224, 0.225)
457
+
458
+ def build_transform(input_size):
459
+ MEAN, STD = IMAGENET_MEAN, IMAGENET_STD
460
+ transform = T.Compose([
461
+ T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
462
+ T.Resize((input_size, input_size), interpolation=InterpolationMode.BICUBIC),
463
+ T.ToTensor(),
464
+ T.Normalize(mean=MEAN, std=STD)
465
+ ])
466
+ return transform
467
+
468
+ def find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height, image_size):
469
+ best_ratio_diff = float('inf')
470
+ best_ratio = (1, 1)
471
+ area = width * height
472
+ for ratio in target_ratios:
473
+ target_aspect_ratio = ratio[0] / ratio[1]
474
+ ratio_diff = abs(aspect_ratio - target_aspect_ratio)
475
+ if ratio_diff < best_ratio_diff:
476
+ best_ratio_diff = ratio_diff
477
+ best_ratio = ratio
478
+ elif ratio_diff == best_ratio_diff:
479
+ if area > 0.5 * image_size * image_size * ratio[0] * ratio[1]:
480
+ best_ratio = ratio
481
+ return best_ratio
482
+
483
+ def dynamic_preprocess(image, min_num=1, max_num=12, image_size=448, use_thumbnail=False):
484
+ orig_width, orig_height = image.size
485
+ aspect_ratio = orig_width / orig_height
486
+
487
+ # calculate the existing image aspect ratio
488
+ target_ratios = set(
489
+ (i, j) for n in range(min_num, max_num + 1) for i in range(1, n + 1) for j in range(1, n + 1) if
490
+ i * j <= max_num and i * j >= min_num)
491
+ target_ratios = sorted(target_ratios, key=lambda x: x[0] * x[1])
492
+
493
+ # find the closest aspect ratio to the target
494
+ target_aspect_ratio = find_closest_aspect_ratio(
495
+ aspect_ratio, target_ratios, orig_width, orig_height, image_size)
496
+
497
+ # calculate the target width and height
498
+ target_width = image_size * target_aspect_ratio[0]
499
+ target_height = image_size * target_aspect_ratio[1]
500
+ blocks = target_aspect_ratio[0] * target_aspect_ratio[1]
501
+
502
+ # resize the image
503
+ resized_img = image.resize((target_width, target_height))
504
+ processed_images = []
505
+ for i in range(blocks):
506
+ box = (
507
+ (i % (target_width // image_size)) * image_size,
508
+ (i // (target_width // image_size)) * image_size,
509
+ ((i % (target_width // image_size)) + 1) * image_size,
510
+ ((i // (target_width // image_size)) + 1) * image_size
511
+ )
512
+ # split the image
513
+ split_img = resized_img.crop(box)
514
+ processed_images.append(split_img)
515
+ assert len(processed_images) == blocks
516
+ if use_thumbnail and len(processed_images) != 1:
517
+ thumbnail_img = image.resize((image_size, image_size))
518
+ processed_images.append(thumbnail_img)
519
+ return processed_images
520
+
521
+ def load_image(image_file, input_size=448, max_num=12):
522
+ image = Image.open(image_file).convert('RGB')
523
+ transform = build_transform(input_size=input_size)
524
+ images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
525
+ pixel_values = [transform(image) for image in images]
526
+ pixel_values = torch.stack(pixel_values)
527
+ return pixel_values
528
+
529
+ # If you want to load a model using multiple GPUs, please refer to the `Multiple GPUs` section.
530
+ path = 'OpenGVLab/InternVL2_5-78B'
531
+ model = AutoModel.from_pretrained(
532
+ path,
533
+ torch_dtype=torch.bfloat16,
534
+ low_cpu_mem_usage=True,
535
+ use_flash_attn=True,
536
+ trust_remote_code=True).eval().cuda()
537
+ tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False)
538
+
539
+ # set the max number of tiles in `max_num`
540
+ pixel_values = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
541
+ generation_config = dict(max_new_tokens=1024, do_sample=True)
542
+
543
+ # pure-text conversation (纯文本对话)
544
+ question = 'Hello, who are you?'
545
+ response, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)
546
+ print(f'User: {question}\nAssistant: {response}')
547
+
548
+ question = 'Can you tell me a story?'
549
+ response, history = model.chat(tokenizer, None, question, generation_config, history=history, return_history=True)
550
+ print(f'User: {question}\nAssistant: {response}')
551
+
552
+ # single-image single-round conversation (单图单轮对话)
553
+ question = '<image>\nPlease describe the image shortly.'
554
+ response = model.chat(tokenizer, pixel_values, question, generation_config)
555
+ print(f'User: {question}\nAssistant: {response}')
556
+
557
+ # single-image multi-round conversation (单图多轮对话)
558
+ question = '<image>\nPlease describe the image in detail.'
559
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
560
+ print(f'User: {question}\nAssistant: {response}')
561
+
562
+ question = 'Please write a poem according to the image.'
563
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
564
+ print(f'User: {question}\nAssistant: {response}')
565
+
566
+ # multi-image multi-round conversation, combined images (多图多轮对话,拼接图像)
567
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
568
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
569
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
570
+
571
+ question = '<image>\nDescribe the two images in detail.'
572
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
573
+ history=None, return_history=True)
574
+ print(f'User: {question}\nAssistant: {response}')
575
+
576
+ question = 'What are the similarities and differences between these two images.'
577
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
578
+ history=history, return_history=True)
579
+ print(f'User: {question}\nAssistant: {response}')
580
+
581
+ # multi-image multi-round conversation, separate images (多图多轮对话,独立图像)
582
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
583
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
584
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
585
+ num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
586
+
587
+ question = 'Image-1: <image>\nImage-2: <image>\nDescribe the two images in detail.'
588
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
589
+ num_patches_list=num_patches_list,
590
+ history=None, return_history=True)
591
+ print(f'User: {question}\nAssistant: {response}')
592
+
593
+ question = 'What are the similarities and differences between these two images.'
594
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
595
+ num_patches_list=num_patches_list,
596
+ history=history, return_history=True)
597
+ print(f'User: {question}\nAssistant: {response}')
598
+
599
+ # batch inference, single image per sample (单图批处理)
600
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
601
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
602
+ num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
603
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
604
+
605
+ questions = ['<image>\nDescribe the image in detail.'] * len(num_patches_list)
606
+ responses = model.batch_chat(tokenizer, pixel_values,
607
+ num_patches_list=num_patches_list,
608
+ questions=questions,
609
+ generation_config=generation_config)
610
+ for question, response in zip(questions, responses):
611
+ print(f'User: {question}\nAssistant: {response}')
612
+
613
+ # video multi-round conversation (视频多轮对话)
614
+ def get_index(bound, fps, max_frame, first_idx=0, num_segments=32):
615
+ if bound:
616
+ start, end = bound[0], bound[1]
617
+ else:
618
+ start, end = -100000, 100000
619
+ start_idx = max(first_idx, round(start * fps))
620
+ end_idx = min(round(end * fps), max_frame)
621
+ seg_size = float(end_idx - start_idx) / num_segments
622
+ frame_indices = np.array([
623
+ int(start_idx + (seg_size / 2) + np.round(seg_size * idx))
624
+ for idx in range(num_segments)
625
+ ])
626
+ return frame_indices
627
+
628
+ def load_video(video_path, bound=None, input_size=448, max_num=1, num_segments=32):
629
+ vr = VideoReader(video_path, ctx=cpu(0), num_threads=1)
630
+ max_frame = len(vr) - 1
631
+ fps = float(vr.get_avg_fps())
632
+
633
+ pixel_values_list, num_patches_list = [], []
634
+ transform = build_transform(input_size=input_size)
635
+ frame_indices = get_index(bound, fps, max_frame, first_idx=0, num_segments=num_segments)
636
+ for frame_index in frame_indices:
637
+ img = Image.fromarray(vr[frame_index].asnumpy()).convert('RGB')
638
+ img = dynamic_preprocess(img, image_size=input_size, use_thumbnail=True, max_num=max_num)
639
+ pixel_values = [transform(tile) for tile in img]
640
+ pixel_values = torch.stack(pixel_values)
641
+ num_patches_list.append(pixel_values.shape[0])
642
+ pixel_values_list.append(pixel_values)
643
+ pixel_values = torch.cat(pixel_values_list)
644
+ return pixel_values, num_patches_list
645
+
646
+ video_path = './examples/red-panda.mp4'
647
+ pixel_values, num_patches_list = load_video(video_path, num_segments=8, max_num=1)
648
+ pixel_values = pixel_values.to(torch.bfloat16).cuda()
649
+ video_prefix = ''.join([f'Frame{i+1}: <image>\n' for i in range(len(num_patches_list))])
650
+ question = video_prefix + 'What is the red panda doing?'
651
+ # Frame1: <image>\nFrame2: <image>\n...\nFrame8: <image>\n{question}
652
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
653
+ num_patches_list=num_patches_list, history=None, return_history=True)
654
+ print(f'User: {question}\nAssistant: {response}')
655
+
656
+ question = 'Describe this video in detail. Don\'t repeat.'
657
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
658
+ num_patches_list=num_patches_list, history=history, return_history=True)
659
+ print(f'User: {question}\nAssistant: {response}')
660
+ ```
661
+
662
+ #### Streaming output
663
+
664
+ Besides this method, you can also use the following code to get streamed output.
665
+
666
+ ```python
667
+ from transformers import TextIteratorStreamer
668
+ from threading import Thread
669
+
670
+ # Initialize the streamer
671
+ streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10)
672
+ # Define the generation configuration
673
+ generation_config = dict(max_new_tokens=1024, do_sample=False, streamer=streamer)
674
+ # Start the model chat in a separate thread
675
+ thread = Thread(target=model.chat, kwargs=dict(
676
+ tokenizer=tokenizer, pixel_values=pixel_values, question=question,
677
+ history=None, return_history=False, generation_config=generation_config,
678
+ ))
679
+ thread.start()
680
+
681
+ # Initialize an empty string to store the generated text
682
+ generated_text = ''
683
+ # Loop through the streamer to get the new text as it is generated
684
+ for new_text in streamer:
685
+ if new_text == model.conv_template.sep:
686
+ break
687
+ generated_text += new_text
688
+ print(new_text, end='', flush=True) # Print each new chunk of generated text on the same line
689
+ ```
690
+
691
+ ## Finetune
692
+
693
+ Many repositories now support fine-tuning of the InternVL series models, including [InternVL](https://github.com/OpenGVLab/InternVL), [SWIFT](https://github.com/modelscope/ms-swift), [XTurner](https://github.com/InternLM/xtuner), and others. Please refer to their documentation for more details on fine-tuning.
694
+
695
+ ## Deployment
696
+
697
+ ### LMDeploy
698
+
699
+ LMDeploy is a toolkit for compressing, deploying, and serving LLM, developed by the MMRazor and MMDeploy teams.
700
+
701
+ ```sh
702
+ pip install lmdeploy>=0.5.3
703
+ ```
704
+
705
+ LMDeploy abstracts the complex inference process of multi-modal Vision-Language Models (VLM) into an easy-to-use pipeline, similar to the Large Language Model (LLM) inference pipeline.
706
+
707
+ #### A 'Hello, world' example
708
+
709
+ ```python
710
+ from lmdeploy import pipeline, TurbomindEngineConfig
711
+ from lmdeploy.vl import load_image
712
+
713
+ model = 'OpenGVLab/InternVL2_5-78B'
714
+ image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg')
715
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
716
+ response = pipe(('describe this image', image))
717
+ print(response.text)
718
+ ```
719
+
720
+ If `ImportError` occurs while executing this case, please install the required dependency packages as prompted.
721
+
722
+ #### Multi-images inference
723
+
724
+ When dealing with multiple images, you can put them all in one list. Keep in mind that multiple images will lead to a higher number of input tokens, and as a result, the size of the context window typically needs to be increased.
725
+
726
+ > Warning: Due to the scarcity of multi-image conversation data, the performance on multi-image tasks may be unstable, and it may require multiple attempts to achieve satisfactory results.
727
+
728
+ ```python
729
+ from lmdeploy import pipeline, TurbomindEngineConfig
730
+ from lmdeploy.vl import load_image
731
+ from lmdeploy.vl.constants import IMAGE_TOKEN
732
+
733
+ model = 'OpenGVLab/InternVL2_5-78B'
734
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
735
+
736
+ image_urls=[
737
+ 'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg',
738
+ 'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg'
739
+ ]
740
+
741
+ images = [load_image(img_url) for img_url in image_urls]
742
+ # Numbering images improves multi-image conversations
743
+ response = pipe((f'Image-1: {IMAGE_TOKEN}\nImage-2: {IMAGE_TOKEN}\ndescribe these two images', images))
744
+ print(response.text)
745
+ ```
746
+
747
+ #### Batch prompts inference
748
+
749
+ Conducting inference with batch prompts is quite straightforward; just place them within a list structure:
750
+
751
+ ```python
752
+ from lmdeploy import pipeline, TurbomindEngineConfig
753
+ from lmdeploy.vl import load_image
754
+
755
+ model = 'OpenGVLab/InternVL2_5-78B'
756
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
757
+
758
+ image_urls=[
759
+ "https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg",
760
+ "https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg"
761
+ ]
762
+ prompts = [('describe this image', load_image(img_url)) for img_url in image_urls]
763
+ response = pipe(prompts)
764
+ print(response)
765
+ ```
766
+
767
+ #### Multi-turn conversation
768
+
769
+ There are two ways to do the multi-turn conversations with the pipeline. One is to construct messages according to the format of OpenAI and use above introduced method, the other is to use the `pipeline.chat` interface.
770
+
771
+ ```python
772
+ from lmdeploy import pipeline, TurbomindEngineConfig, GenerationConfig
773
+ from lmdeploy.vl import load_image
774
+
775
+ model = 'OpenGVLab/InternVL2_5-78B'
776
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
777
+
778
+ image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg')
779
+ gen_config = GenerationConfig(top_k=40, top_p=0.8, temperature=0.8)
780
+ sess = pipe.chat(('describe this image', image), gen_config=gen_config)
781
+ print(sess.response.text)
782
+ sess = pipe.chat('What is the woman doing?', session=sess, gen_config=gen_config)
783
+ print(sess.response.text)
784
+ ```
785
+
786
+ #### Service
787
+
788
+ LMDeploy's `api_server` enables models to be easily packed into services with a single command. The provided RESTful APIs are compatible with OpenAI's interfaces. Below are an example of service startup:
789
+
790
+ ```shell
791
+ lmdeploy serve api_server OpenGVLab/InternVL2_5-78B --backend turbomind --server-port 23333
792
+ ```
793
+
794
+ To use the OpenAI-style interface, you need to install OpenAI:
795
+
796
+ ```shell
797
+ pip install openai
798
+ ```
799
+
800
+ Then, use the code below to make the API call:
801
+
802
+ ```python
803
+ from openai import OpenAI
804
+
805
+ client = OpenAI(api_key='YOUR_API_KEY', base_url='http://0.0.0.0:23333/v1')
806
+ model_name = client.models.list().data[0].id
807
+ response = client.chat.completions.create(
808
+ model=model_name,
809
+ messages=[{
810
+ 'role':
811
+ 'user',
812
+ 'content': [{
813
+ 'type': 'text',
814
+ 'text': 'describe this image',
815
+ }, {
816
+ 'type': 'image_url',
817
+ 'image_url': {
818
+ 'url':
819
+ 'https://modelscope.oss-cn-beijing.aliyuncs.com/resource/tiger.jpeg',
820
+ },
821
+ }],
822
+ }],
823
+ temperature=0.8,
824
+ top_p=0.8)
825
+ print(response)
826
+ ```
827
+
828
+ ## License
829
+
830
+ This project is released under the MIT license, while Qwen2 is licensed under the Tongyi Qianwen LICENSE.
831
+
832
+ ## Citation
833
+
834
+ If you find this project useful in your research, please consider citing:
835
+
836
+ ```BibTeX
837
+ @article{chen2023internvl,
838
+ title={InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks},
839
+ author={Chen, Zhe and Wu, Jiannan and Wang, Wenhai and Su, Weijie and Chen, Guo and Xing, Sen and Zhong, Muyan and Zhang, Qinglong and Zhu, Xizhou and Lu, Lewei and Li, Bin and Luo, Ping and Lu, Tong and Qiao, Yu and Dai, Jifeng},
840
+ journal={arXiv preprint arXiv:2312.14238},
841
+ year={2023}
842
+ }
843
+ @article{chen2024far,
844
+ title={How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suites},
845
+ author={Chen, Zhe and Wang, Weiyun and Tian, Hao and Ye, Shenglong and Gao, Zhangwei and Cui, Erfei and Tong, Wenwen and Hu, Kongzhi and Luo, Jiapeng and Ma, Zheng and others},
846
+ journal={arXiv preprint arXiv:2404.16821},
847
+ year={2024}
848
+ }
849
+ ```
850
+