zwgao commited on
Commit
37c32f9
1 Parent(s): b7c2a5c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +874 -3
README.md CHANGED
@@ -1,3 +1,874 @@
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
+ - internlm/internlm2_5-7b-chat
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-8B
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-8B** 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.5 is 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-8B consists of [InternViT-300M-448px-V2_5](https://huggingface.co/OpenGVLab/InternViT-300M-448px-V2_5), an MLP projector, and [internlm2_5-7b-chat](https://huggingface.co/internlm/internlm2_5-7b-chat).
50
+
51
+ ## Performance
52
+
53
+ Here is the converted table in Markdown with the rows and columns swapped and the `\cite{}` references removed:
54
+
55
+ | Metric | Ovis1.6-Gemma2-9B | MiniCPM-V2.6 | Qwen2-VL-7B | InternVL2-8B | InternVL2.5-8B |
56
+ |-------------|-------------------|--------------------|--------------------|--------------------|---------------------|
57
+ | **\MMMU** | 55.0 | 49.8 | 54.1 | 52.6 | 56.0 |
58
+ | **\MMMUT** | -- | -- | -- | 44.3 | 48.9 |
59
+ | **\MMMUPRO** | -- | 30.2 / 24.2 / 27.2 | 34.1 / 27.0 / 30.5 | 32.5 / 25.4 / 29.0 | 38.2 / 30.4 / 34.3 |
60
+ | **\MathVista** | 67.2 | 60.6 | 58.2 | 58.3 | 64.4 |
61
+ | **\MathVision** | \rsp / 18.8 | 16.1 / 17.5 | 22.0 / 16.3 | 20.4 / 18.4 | 22.0 / 19.7 |
62
+ | **\MathVe** | -- | 25.7 | 31.9 | 37.0 | 39.5 |
63
+ | **\Olympiad** | -- | -- | -- | 1.9 | 4.9 |
64
+
65
+ **Notes:**
66
+ - The commented-out line for `Molmo-7B-D` has been removed.
67
+ - The `\rowcolor{gray!15}` command is omitted as Markdown does not support row coloring.
68
+ - Ensure that any custom LaTeX commands like `\rsp` are properly defined or replaced if necessary in your Markdown renderer.
69
+
70
+ ### Image Benchmarks
71
+
72
+
73
+ | Benchmark |Ovis1.6-Gemma2-9B | MiniCPM-V2.6 | Molmo-7B-D | Qwen2-VL-7B | InternVL2-8B | InternVL2.5-8B |
74
+ |---------------------|------------------|--------------|-------- |---------------| --------------| -------------- |
75
+ | MMMU (val) |55.0 | 49.8 | - |54.1 | 52.6 | 56.0 |
76
+ | MMMU (test) |-- | -- | - |- | 44.3 | 48.9 |
77
+ | MMMU-PRO (overall) |-- | 27.2 | - | 30.5 | 29.0 | 34.3 |
78
+ | MathVista (mini) | 67.2 | 60.6 | - |58.2 | 58.3 | 64.4 |
79
+ | MathVision (mini) | - | 16.1 | - |22.0 | 20.4 | 22.0 |
80
+ | MathVision (full) | 18.8 | 17.5 | - |16.3 | 18.4 | 19.7 |
81
+ | MathVerse (mini) | -- | 25.7 | - |31.9 | 37.0 | 39.5 |
82
+ | Olympiad Bench | -- | -- | - | - | 1.9 | 4.9 |
83
+ | AI2D (w / wo M) | 84.4 / - | 82.1 / - | - / 93.2 | 83.0 / 92.1 | 83.8 / 91.7 | 84.5 / 92.8 |
84
+ | ChartQA (test avg.) |-- | 82.4 | 84.1 | 83.0 | 83.3 | 84.8 |
85
+ | TextVQA (val) |-- | 80.1 | 81.7 | 84.3 | 77.4 | 79.1 |
86
+ | DocVQA (test) |-- | 90.8 | 92.2 | 94.5 | 91.6 | 93.0 |
87
+ | InfoVQA (test) | -- | -- | 72.6 | 76.5 | 74.8 | 77.6 |
88
+ | OCR-Bench |830 | 852 | 694 | 866 | 794 | 822 |
89
+ | SEED-2 Plus |-- | 65.7 | -- | 69.0 | 67.5 | 69.7 |
90
+ | CharXiv (RQ / DQ) |-- | 31.0 / 57.1 | -- | -- | 31.2 / 56.1 | 32.9 / 68.6 |
91
+ | VCR-EN-Easy (EM / Jaccard) |-- | 73.9 / 85.7 | -- | 89.7 / 93.8 | 37.9 / 61.5 | 92.6 / 97.4 |
92
+ | BLINK (val) |- | 53.0 | - | 53.2 | 50.9 | 54.8 |
93
+ | Mantis Eval |- | 69.0 | - | - | 65.4 | 67.7 |
94
+ | MMIU |- | - | - | - | 42.0 | 46.7 |
95
+ | Muir Bench |- | - | - | - | 48.7 | 51.1 |
96
+ | MMT (val) |- | 60.8 | - | 64.0 | 60.0 | 62.3 |
97
+ | MIRB (avg.) |- | - | - | - | 50.0 | 52.5 |
98
+ | RealWorld QA |- | 65.0 | - | 70.1 | 64.4 | 70.1 |
99
+ | MME-RW (EN) |- | - | - | 56.5 | 53.5 | 59.1 |
100
+ | WildVision (win rate)|- | - | - | - | 54.4 | 62.0 |
101
+ | R-Bench |- | - | - | 64.0 | 67.9 | 70.1 |
102
+ | MME (sum) |- | 2348.4 | - | 2326.8 | 2210.3 | 2344.1 |
103
+ | MMB (EN / CN) | - | 81.5 / 79.3 | - | 83.0 / 80.5 | 81.7 / 81.2 | 84.6 / 82.6 |
104
+ | MMBv1.1 (EN) | - | 78.0 | - | 80.7 | 79.5 | 83.2 |
105
+ | MMVet (turbo) | - | 60.0 | - | 62.0 | 54.2 | 62.8 |
106
+ | MMVetv2 (0613) | - | - | - | -- | 52.3 | 58.1 |
107
+ | MMStar | - | 57.5 | - | 60.7 | 62.0 | 62.8 |
108
+ | HallBench (avg.) | - | 48.1 | - | 50.6 | 45.2 | 50.1 |
109
+ | MMHal (score) | - | 3.60 | - | 3.40 | 3.33 | 3.65 |
110
+ | CRPE (relation) | - | 75.2 | - | 74.4 | 75.8 | 78.4 |
111
+ | POPE (avg.) | - | 87.3 | - | 88.1 | 86.9 | 90.6 |
112
+
113
+ ### Video Benchmarks
114
+
115
+ ### Multimodal Multilingual Understanding
116
+
117
+ <table style="width:100%; font-size: small; border-collapse: collapse; text-align: center;">
118
+ <tr>
119
+ <th rowspan="2">Model Name</th>
120
+ <th colspan="6">MMMB</th>
121
+ <th colspan="6">Multilingual MMBench</th>
122
+ <th rowspan="2">MTVQA</th>
123
+ </tr>
124
+ <tr>
125
+ <th>en</th>
126
+ <th>zh</th>
127
+ <th>pt</th>
128
+ <th>ar</th>
129
+ <th>tr</th>
130
+ <th>ru</th>
131
+ <th>en</th>
132
+ <th>zh</th>
133
+ <th>pt</th>
134
+ <th>ar</th>
135
+ <th>tr</th>
136
+ <th>ru</th>
137
+ </tr>
138
+ <tr>
139
+ <td>mPLUG-Owl2</td>
140
+ <td>67.3</td>
141
+ <td>61.0</td>
142
+ <td>59.7</td>
143
+ <td>45.8</td>
144
+ <td>45.4</td>
145
+ <td>62.6</td>
146
+ <td>66.2</td>
147
+ <td>59.4</td>
148
+ <td>58.2</td>
149
+ <td>37.9</td>
150
+ <td>47.7</td>
151
+ <td>60.4</td>
152
+ <td>--</td>
153
+ </tr>
154
+ <tr>
155
+ <td>Qwen2-VL-7B</td>
156
+ <td>83.9</td>
157
+ <td>82.4</td>
158
+ <td>81.2</td>
159
+ <td>79.0</td>
160
+ <td>74.7</td>
161
+ <td>82.4</td>
162
+ <td>81.8</td>
163
+ <td>81.6</td>
164
+ <td>79.1</td>
165
+ <td>75.6</td>
166
+ <td>74.5</td>
167
+ <td>79.3</td>
168
+ <td>25.6</td>
169
+ </tr>
170
+ <tr>
171
+ <td>InternVL2-8B</td>
172
+ <td>83.4</td>
173
+ <td>81.5</td>
174
+ <td>76.1</td>
175
+ <td>66.3</td>
176
+ <td>69.2</td>
177
+ <td>75.7</td>
178
+ <td>82.9</td>
179
+ <td>81.8</td>
180
+ <td>76.0</td>
181
+ <td>60.5</td>
182
+ <td>66.0</td>
183
+ <td>74.4</td>
184
+ <td>20.9</td>
185
+ </tr>
186
+ <tr>
187
+ <td>InternVL2.5-8B</td>
188
+ <td>84.3</td>
189
+ <td>83.1</td>
190
+ <td>78.6</td>
191
+ <td>69.3</td>
192
+ <td>71.5</td>
193
+ <td>79.5</td>
194
+ <td>83.8</td>
195
+ <td>83.2</td>
196
+ <td>79.4</td>
197
+ <td>64.3</td>
198
+ <td>67.8</td>
199
+ <td>77.3</td>
200
+ <td>27.6</td>
201
+ </tr>
202
+ </table>
203
+
204
+
205
+ ### Visual Grounding
206
+
207
+ <table style="width:100%; border-collapse: collapse; text-align: center;">
208
+ <tr>
209
+ <th rowspan="2">Model Name</th>
210
+ <th colspan="3">RefCOCO</th>
211
+ <th colspan="3">RefCOCO+</th>
212
+ <th colspan="2">RefCOCOg</th>
213
+ <th rowspan="2">avg</th>
214
+ </tr>
215
+ <tr>
216
+ <th>val</th>
217
+ <th>test-A</th>
218
+ <th>test-B</th>
219
+ <th>val</th>
220
+ <th>test-A</th>
221
+ <th>test-B</th>
222
+ <th>val</th>
223
+ <th>test</th>
224
+ </tr>
225
+ <tr>
226
+ <td>Grounding-DINO-L</td>
227
+ <td>90.6</td>
228
+ <td>93.2</td>
229
+ <td>88.2</td>
230
+ <td>82.8</td>
231
+ <td>89.0</td>
232
+ <td>75.9</td>
233
+ <td>86.1</td>
234
+ <td>87.0</td>
235
+ <td>86.6</td>
236
+ </tr>
237
+ <tr>
238
+ <td>UNINEXT-H</td>
239
+ <td>92.6</td>
240
+ <td>94.3</td>
241
+ <td>91.5</td>
242
+ <td>85.2</td>
243
+ <td>89.6</td>
244
+ <td>79.8</td>
245
+ <td>88.7</td>
246
+ <td>89.4</td>
247
+ <td>88.9</td>
248
+ </tr>
249
+ <tr>
250
+ <td>ONE-PEACE</td>
251
+ <td>92.6</td>
252
+ <td>94.2</td>
253
+ <td>89.3</td>
254
+ <td>88.8</td>
255
+ <td>92.2</td>
256
+ <td>83.2</td>
257
+ <td>89.2</td>
258
+ <td>89.3</td>
259
+ <td>89.8</td>
260
+ </tr>
261
+ <tr>
262
+ <td>Shikra-7B</td>
263
+ <td>87.0</td>
264
+ <td>90.6</td>
265
+ <td>80.2</td>
266
+ <td>81.6</td>
267
+ <td>87.4</td>
268
+ <td>72.1</td>
269
+ <td>82.3</td>
270
+ <td>82.2</td>
271
+ <td>82.9</td>
272
+ </tr>
273
+ <tr>
274
+ <td>Ferret-v2-13B</td>
275
+ <td>92.6</td>
276
+ <td>95.0</td>
277
+ <td>88.9</td>
278
+ <td>87.4</td>
279
+ <td>92.1</td>
280
+ <td>81.4</td>
281
+ <td>89.4</td>
282
+ <td>90.0</td>
283
+ <td>89.6</td>
284
+ </tr>
285
+ <tr>
286
+ <td>CogVLM-Grounding-17B</td>
287
+ <td>92.8</td>
288
+ <td>94.8</td>
289
+ <td>89.0</td>
290
+ <td>88.7</td>
291
+ <td>92.9</td>
292
+ <td>83.4</td>
293
+ <td>89.8</td>
294
+ <td>90.8</td>
295
+ <td>90.3</td>
296
+ </tr>
297
+ <tr>
298
+ <td>Qwen2-VL-7B</td>
299
+ <td>91.7</td>
300
+ <td>93.6</td>
301
+ <td>87.3</td>
302
+ <td>85.8</td>
303
+ <td>90.5</td>
304
+ <td>79.5</td>
305
+ <td>87.3</td>
306
+ <td>87.8</td>
307
+ <td>87.9</td>
308
+ </tr>
309
+ <tr>
310
+ <td>InternVL2-8B</td>
311
+ <td>87.1</td>
312
+ <td>91.1</td>
313
+ <td>80.7</td>
314
+ <td>79.8</td>
315
+ <td>87.9</td>
316
+ <td>71.4</td>
317
+ <td>82.7</td>
318
+ <td>82.7</td>
319
+ <td>82.9</td>
320
+ </tr>
321
+ <tr>
322
+ <td>InternVL2.5-8B</td>
323
+ <td>90.3</td>
324
+ <td>94.5</td>
325
+ <td>85.9</td>
326
+ <td>85.2</td>
327
+ <td>91.5</td>
328
+ <td>78.8</td>
329
+ <td>86.7</td>
330
+ <td>87.6</td>
331
+ <td>87.6</td>
332
+ </tr>
333
+ </table>
334
+
335
+
336
+ ### Language Benchmarks
337
+
338
+
339
+
340
+ | Dataset | Settings | InternLM2.5-7B-Chat | InternVL2-8B | InternVL2.5-8B |
341
+ |------------------|----------|---------------------|--------------|----------------|
342
+ | MMLU | 5-shot | 72.8 | 73.2 | 74.6 |
343
+ | CMMLU | 5-shot | 78.2 | 79.2 | 78.7 |
344
+ | C-Eval | 5-shot | 77.9 | 80.1 | 79.7 |
345
+ | GAOKAO | 0-shot | 78.7 | 75.0 | 77.3 |
346
+ | TriviaQA | 0-shot | 64.0 | 62.0 | 63.4 |
347
+ | NaturalQuestions | 0-shot | 21.1 | 28.1 | 29.4 |
348
+ | C3 | 0-shot | 88.1 | 94.2 | 94.7 |
349
+ | RACE-High | 0-shot | 90.5 | 90.8 | 90.8 |
350
+ | WinoGrande | 0-shot | 84.9 | 85.9 | 83.5 |
351
+ | HellaSwag | 0-shot | 94.8 | 94.9 | 94.1 |
352
+ | BBH | 0-shot | 73.1 | 72.7 | 73.4 |
353
+ | GSM8K | 4-shot | 85.1 | 75.6 | 77.8 |
354
+ | MATH | 4-shot | 60.6 | 39.5 | 49.9 |
355
+ | TheoremQA | 0-shot | 23.4 | 15.6 | 23.8 |
356
+ | HumanEval | 4-shot | 74.4 | 69.5 | 75.0 |
357
+ | MBPP | 3-shot | 63.0 | 58.8 | 68.5 |
358
+ | MBPP-CN | 0-shot | 51.6 | 48.2 | 55.2 |
359
+ | Average | -- | 69.5 | 67.2 | 70.0 |
360
+ | Gain | -- | -- | **-2.3** | **+0.5** |
361
+
362
+
363
+
364
+ ### Invitation to Evaluate InternVL
365
+
366
+ We welcome MLLM benchmark developers to assess our InternVL series models. If you need to add your evaluation results here, please contact me at [wztxy89@163.com](mailto:wztxy89@163.com).
367
+
368
+ ## Quick Start
369
+
370
+ We provide an example code to run InternVL2_5-8B using `transformers`.
371
+
372
+ We also welcome you to experience the InternVL series models in our [online demo](https://internvl.opengvlab.com/).
373
+
374
+ > Please use transformers ≳ 4.37.2 to ensure the model works normally.
375
+
376
+ ### Model Loading
377
+
378
+ #### 16-bit (bf16 / fp16)
379
+
380
+ ```python
381
+ import torch
382
+ from transformers import AutoTokenizer, AutoModel
383
+ path = "OpenGVLab/InternVL2_5-8B"
384
+ model = AutoModel.from_pretrained(
385
+ path,
386
+ torch_dtype=torch.bfloat16,
387
+ low_cpu_mem_usage=True,
388
+ use_flash_attn=True,
389
+ trust_remote_code=True).eval().cuda()
390
+ ```
391
+
392
+ #### BNB 8-bit Quantization
393
+
394
+ ```python
395
+ import torch
396
+ from transformers import AutoTokenizer, AutoModel
397
+ path = "OpenGVLab/InternVL2_5-8B"
398
+ model = AutoModel.from_pretrained(
399
+ path,
400
+ torch_dtype=torch.bfloat16,
401
+ load_in_8bit=True,
402
+ low_cpu_mem_usage=True,
403
+ use_flash_attn=True,
404
+ trust_remote_code=True).eval()
405
+ ```
406
+
407
+ #### BNB 4-bit Quantization
408
+
409
+ ```python
410
+ import torch
411
+ from transformers import AutoTokenizer, AutoModel
412
+ path = "OpenGVLab/InternVL2_5-8B"
413
+ model = AutoModel.from_pretrained(
414
+ path,
415
+ torch_dtype=torch.bfloat16,
416
+ load_in_4bit=True,
417
+ low_cpu_mem_usage=True,
418
+ use_flash_attn=True,
419
+ trust_remote_code=True).eval()
420
+ ```
421
+
422
+ #### Multiple GPUs
423
+
424
+ 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.
425
+
426
+ ```python
427
+ import math
428
+ import torch
429
+ from transformers import AutoTokenizer, AutoModel
430
+
431
+ def split_model(model_name):
432
+ device_map = {}
433
+ world_size = torch.cuda.device_count()
434
+ num_layers = {
435
+ 'InternVL2_5-1B': 24, 'InternVL_5-2B': 24, 'InternVL2_5-4B': 36, 'InternVL2_5-8B': 32,
436
+ 'InternVL2_5-26B': 48, 'InternVL2_5-38B': 64, 'InternVL2_5-78B': 80}[model_name]
437
+ # Since the first GPU will be used for ViT, treat it as half a GPU.
438
+ num_layers_per_gpu = math.ceil(num_layers / (world_size - 0.5))
439
+ num_layers_per_gpu = [num_layers_per_gpu] * world_size
440
+ num_layers_per_gpu[0] = math.ceil(num_layers_per_gpu[0] * 0.5)
441
+ layer_cnt = 0
442
+ for i, num_layer in enumerate(num_layers_per_gpu):
443
+ for j in range(num_layer):
444
+ device_map[f'language_model.model.layers.{layer_cnt}'] = i
445
+ layer_cnt += 1
446
+ device_map['vision_model'] = 0
447
+ device_map['mlp1'] = 0
448
+ device_map['language_model.model.tok_embeddings'] = 0
449
+ device_map['language_model.model.embed_tokens'] = 0
450
+ device_map['language_model.output'] = 0
451
+ device_map['language_model.model.norm'] = 0
452
+ device_map['language_model.lm_head'] = 0
453
+ device_map[f'language_model.model.layers.{num_layers - 1}'] = 0
454
+
455
+ return device_map
456
+
457
+ path = "OpenGVLab/InternVL2_5-8B"
458
+ device_map = split_model('InternVL2_5-8B')
459
+ model = AutoModel.from_pretrained(
460
+ path,
461
+ torch_dtype=torch.bfloat16,
462
+ low_cpu_mem_usage=True,
463
+ use_flash_attn=True,
464
+ trust_remote_code=True,
465
+ device_map=device_map).eval()
466
+ ```
467
+
468
+ ### Inference with Transformers
469
+
470
+ ```python
471
+ import numpy as np
472
+ import torch
473
+ import torchvision.transforms as T
474
+ from decord import VideoReader, cpu
475
+ from PIL import Image
476
+ from torchvision.transforms.functional import InterpolationMode
477
+ from transformers import AutoModel, AutoTokenizer
478
+
479
+ IMAGENET_MEAN = (0.485, 0.456, 0.406)
480
+ IMAGENET_STD = (0.229, 0.224, 0.225)
481
+
482
+ def build_transform(input_size):
483
+ MEAN, STD = IMAGENET_MEAN, IMAGENET_STD
484
+ transform = T.Compose([
485
+ T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
486
+ T.Resize((input_size, input_size), interpolation=InterpolationMode.BICUBIC),
487
+ T.ToTensor(),
488
+ T.Normalize(mean=MEAN, std=STD)
489
+ ])
490
+ return transform
491
+
492
+ def find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height, image_size):
493
+ best_ratio_diff = float('inf')
494
+ best_ratio = (1, 1)
495
+ area = width * height
496
+ for ratio in target_ratios:
497
+ target_aspect_ratio = ratio[0] / ratio[1]
498
+ ratio_diff = abs(aspect_ratio - target_aspect_ratio)
499
+ if ratio_diff < best_ratio_diff:
500
+ best_ratio_diff = ratio_diff
501
+ best_ratio = ratio
502
+ elif ratio_diff == best_ratio_diff:
503
+ if area > 0.5 * image_size * image_size * ratio[0] * ratio[1]:
504
+ best_ratio = ratio
505
+ return best_ratio
506
+
507
+ def dynamic_preprocess(image, min_num=1, max_num=12, image_size=448, use_thumbnail=False):
508
+ orig_width, orig_height = image.size
509
+ aspect_ratio = orig_width / orig_height
510
+
511
+ # calculate the existing image aspect ratio
512
+ target_ratios = set(
513
+ (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
514
+ i * j <= max_num and i * j >= min_num)
515
+ target_ratios = sorted(target_ratios, key=lambda x: x[0] * x[1])
516
+
517
+ # find the closest aspect ratio to the target
518
+ target_aspect_ratio = find_closest_aspect_ratio(
519
+ aspect_ratio, target_ratios, orig_width, orig_height, image_size)
520
+
521
+ # calculate the target width and height
522
+ target_width = image_size * target_aspect_ratio[0]
523
+ target_height = image_size * target_aspect_ratio[1]
524
+ blocks = target_aspect_ratio[0] * target_aspect_ratio[1]
525
+
526
+ # resize the image
527
+ resized_img = image.resize((target_width, target_height))
528
+ processed_images = []
529
+ for i in range(blocks):
530
+ box = (
531
+ (i % (target_width // image_size)) * image_size,
532
+ (i // (target_width // image_size)) * image_size,
533
+ ((i % (target_width // image_size)) + 1) * image_size,
534
+ ((i // (target_width // image_size)) + 1) * image_size
535
+ )
536
+ # split the image
537
+ split_img = resized_img.crop(box)
538
+ processed_images.append(split_img)
539
+ assert len(processed_images) == blocks
540
+ if use_thumbnail and len(processed_images) != 1:
541
+ thumbnail_img = image.resize((image_size, image_size))
542
+ processed_images.append(thumbnail_img)
543
+ return processed_images
544
+
545
+ def load_image(image_file, input_size=448, max_num=12):
546
+ image = Image.open(image_file).convert('RGB')
547
+ transform = build_transform(input_size=input_size)
548
+ images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
549
+ pixel_values = [transform(image) for image in images]
550
+ pixel_values = torch.stack(pixel_values)
551
+ return pixel_values
552
+
553
+ # If you want to load a model using multiple GPUs, please refer to the `Multiple GPUs` section.
554
+ path = 'OpenGVLab/InternVL2_5-8B'
555
+ model = AutoModel.from_pretrained(
556
+ path,
557
+ torch_dtype=torch.bfloat16,
558
+ low_cpu_mem_usage=True,
559
+ use_flash_attn=True,
560
+ trust_remote_code=True).eval().cuda()
561
+ tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True, use_fast=False)
562
+
563
+ # set the max number of tiles in `max_num`
564
+ pixel_values = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
565
+ generation_config = dict(max_new_tokens=1024, do_sample=True)
566
+
567
+ # pure-text conversation (纯文本对话)
568
+ question = 'Hello, who are you?'
569
+ response, history = model.chat(tokenizer, None, question, generation_config, history=None, return_history=True)
570
+ print(f'User: {question}\nAssistant: {response}')
571
+
572
+ question = 'Can you tell me a story?'
573
+ response, history = model.chat(tokenizer, None, question, generation_config, history=history, return_history=True)
574
+ print(f'User: {question}\nAssistant: {response}')
575
+
576
+ # single-image single-round conversation (单图单轮对话)
577
+ question = '<image>\nPlease describe the image shortly.'
578
+ response = model.chat(tokenizer, pixel_values, question, generation_config)
579
+ print(f'User: {question}\nAssistant: {response}')
580
+
581
+ # single-image multi-round conversation (单图多轮对话)
582
+ question = '<image>\nPlease describe the image in detail.'
583
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
584
+ print(f'User: {question}\nAssistant: {response}')
585
+
586
+ question = 'Please write a poem according to the image.'
587
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
588
+ print(f'User: {question}\nAssistant: {response}')
589
+
590
+ # multi-image multi-round conversation, combined images (多图多轮对话,拼接图像)
591
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
592
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
593
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
594
+
595
+ question = '<image>\nDescribe the two images in detail.'
596
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
597
+ history=None, return_history=True)
598
+ print(f'User: {question}\nAssistant: {response}')
599
+
600
+ question = 'What are the similarities and differences between these two images.'
601
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
602
+ history=history, return_history=True)
603
+ print(f'User: {question}\nAssistant: {response}')
604
+
605
+ # multi-image multi-round conversation, separate images (多图多轮对话,独立图像)
606
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
607
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
608
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
609
+ num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
610
+
611
+ question = 'Image-1: <image>\nImage-2: <image>\nDescribe the two images in detail.'
612
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
613
+ num_patches_list=num_patches_list,
614
+ history=None, return_history=True)
615
+ print(f'User: {question}\nAssistant: {response}')
616
+
617
+ question = 'What are the similarities and differences between these two images.'
618
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
619
+ num_patches_list=num_patches_list,
620
+ history=history, return_history=True)
621
+ print(f'User: {question}\nAssistant: {response}')
622
+
623
+ # batch inference, single image per sample (单图批处理)
624
+ pixel_values1 = load_image('./examples/image1.jpg', max_num=12).to(torch.bfloat16).cuda()
625
+ pixel_values2 = load_image('./examples/image2.jpg', max_num=12).to(torch.bfloat16).cuda()
626
+ num_patches_list = [pixel_values1.size(0), pixel_values2.size(0)]
627
+ pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
628
+
629
+ questions = ['<image>\nDescribe the image in detail.'] * len(num_patches_list)
630
+ responses = model.batch_chat(tokenizer, pixel_values,
631
+ num_patches_list=num_patches_list,
632
+ questions=questions,
633
+ generation_config=generation_config)
634
+ for question, response in zip(questions, responses):
635
+ print(f'User: {question}\nAssistant: {response}')
636
+
637
+ # video multi-round conversation (视频多轮对话)
638
+ def get_index(bound, fps, max_frame, first_idx=0, num_segments=32):
639
+ if bound:
640
+ start, end = bound[0], bound[1]
641
+ else:
642
+ start, end = -100000, 100000
643
+ start_idx = max(first_idx, round(start * fps))
644
+ end_idx = min(round(end * fps), max_frame)
645
+ seg_size = float(end_idx - start_idx) / num_segments
646
+ frame_indices = np.array([
647
+ int(start_idx + (seg_size / 2) + np.round(seg_size * idx))
648
+ for idx in range(num_segments)
649
+ ])
650
+ return frame_indices
651
+
652
+ def load_video(video_path, bound=None, input_size=448, max_num=1, num_segments=32):
653
+ vr = VideoReader(video_path, ctx=cpu(0), num_threads=1)
654
+ max_frame = len(vr) - 1
655
+ fps = float(vr.get_avg_fps())
656
+
657
+ pixel_values_list, num_patches_list = [], []
658
+ transform = build_transform(input_size=input_size)
659
+ frame_indices = get_index(bound, fps, max_frame, first_idx=0, num_segments=num_segments)
660
+ for frame_index in frame_indices:
661
+ img = Image.fromarray(vr[frame_index].asnumpy()).convert('RGB')
662
+ img = dynamic_preprocess(img, image_size=input_size, use_thumbnail=True, max_num=max_num)
663
+ pixel_values = [transform(tile) for tile in img]
664
+ pixel_values = torch.stack(pixel_values)
665
+ num_patches_list.append(pixel_values.shape[0])
666
+ pixel_values_list.append(pixel_values)
667
+ pixel_values = torch.cat(pixel_values_list)
668
+ return pixel_values, num_patches_list
669
+
670
+ video_path = './examples/red-panda.mp4'
671
+ pixel_values, num_patches_list = load_video(video_path, num_segments=8, max_num=1)
672
+ pixel_values = pixel_values.to(torch.bfloat16).cuda()
673
+ video_prefix = ''.join([f'Frame{i+1}: <image>\n' for i in range(len(num_patches_list))])
674
+ question = video_prefix + 'What is the red panda doing?'
675
+ # Frame1: <image>\nFrame2: <image>\n...\nFrame8: <image>\n{question}
676
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
677
+ num_patches_list=num_patches_list, history=None, return_history=True)
678
+ print(f'User: {question}\nAssistant: {response}')
679
+
680
+ question = 'Describe this video in detail. Don\'t repeat.'
681
+ response, history = model.chat(tokenizer, pixel_values, question, generation_config,
682
+ num_patches_list=num_patches_list, history=history, return_history=True)
683
+ print(f'User: {question}\nAssistant: {response}')
684
+ ```
685
+
686
+ #### Streaming output
687
+
688
+ Besides this method, you can also use the following code to get streamed output.
689
+
690
+ ```python
691
+ from transformers import TextIteratorStreamer
692
+ from threading import Thread
693
+
694
+ # Initialize the streamer
695
+ streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True, timeout=10)
696
+ # Define the generation configuration
697
+ generation_config = dict(max_new_tokens=1024, do_sample=False, streamer=streamer)
698
+ # Start the model chat in a separate thread
699
+ thread = Thread(target=model.chat, kwargs=dict(
700
+ tokenizer=tokenizer, pixel_values=pixel_values, question=question,
701
+ history=None, return_history=False, generation_config=generation_config,
702
+ ))
703
+ thread.start()
704
+
705
+ # Initialize an empty string to store the generated text
706
+ generated_text = ''
707
+ # Loop through the streamer to get the new text as it is generated
708
+ for new_text in streamer:
709
+ if new_text == model.conv_template.sep:
710
+ break
711
+ generated_text += new_text
712
+ print(new_text, end='', flush=True) # Print each new chunk of generated text on the same line
713
+ ```
714
+
715
+ ## Finetune
716
+
717
+ 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.
718
+
719
+ ## Deployment
720
+
721
+ ### LMDeploy
722
+
723
+ LMDeploy is a toolkit for compressing, deploying, and serving LLM, developed by the MMRazor and MMDeploy teams.
724
+
725
+ ```sh
726
+ pip install lmdeploy>=0.5.3
727
+ ```
728
+
729
+ 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.
730
+
731
+ #### A 'Hello, world' example
732
+
733
+ ```python
734
+ from lmdeploy import pipeline, TurbomindEngineConfig
735
+ from lmdeploy.vl import load_image
736
+
737
+ model = 'OpenGVLab/InternVL2_5-8B'
738
+ image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg')
739
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
740
+ response = pipe(('describe this image', image))
741
+ print(response.text)
742
+ ```
743
+
744
+ If `ImportError` occurs while executing this case, please install the required dependency packages as prompted.
745
+
746
+ #### Multi-images inference
747
+
748
+ 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.
749
+
750
+ > 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.
751
+
752
+ ```python
753
+ from lmdeploy import pipeline, TurbomindEngineConfig
754
+ from lmdeploy.vl import load_image
755
+ from lmdeploy.vl.constants import IMAGE_TOKEN
756
+
757
+ model = 'OpenGVLab/InternVL2_5-8B'
758
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
759
+
760
+ image_urls=[
761
+ 'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg',
762
+ 'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg'
763
+ ]
764
+
765
+ images = [load_image(img_url) for img_url in image_urls]
766
+ # Numbering images improves multi-image conversations
767
+ response = pipe((f'Image-1: {IMAGE_TOKEN}\nImage-2: {IMAGE_TOKEN}\ndescribe these two images', images))
768
+ print(response.text)
769
+ ```
770
+
771
+ #### Batch prompts inference
772
+
773
+ Conducting inference with batch prompts is quite straightforward; just place them within a list structure:
774
+
775
+ ```python
776
+ from lmdeploy import pipeline, TurbomindEngineConfig
777
+ from lmdeploy.vl import load_image
778
+
779
+ model = 'OpenGVLab/InternVL2_5-8B'
780
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
781
+
782
+ image_urls=[
783
+ "https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg",
784
+ "https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/det.jpg"
785
+ ]
786
+ prompts = [('describe this image', load_image(img_url)) for img_url in image_urls]
787
+ response = pipe(prompts)
788
+ print(response)
789
+ ```
790
+
791
+ #### Multi-turn conversation
792
+
793
+ 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.
794
+
795
+ ```python
796
+ from lmdeploy import pipeline, TurbomindEngineConfig, GenerationConfig
797
+ from lmdeploy.vl import load_image
798
+
799
+ model = 'OpenGVLab/InternVL2_5-8B'
800
+ pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192))
801
+
802
+ image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/demo/resources/human-pose.jpg')
803
+ gen_config = GenerationConfig(top_k=40, top_p=0.8, temperature=0.8)
804
+ sess = pipe.chat(('describe this image', image), gen_config=gen_config)
805
+ print(sess.response.text)
806
+ sess = pipe.chat('What is the woman doing?', session=sess, gen_config=gen_config)
807
+ print(sess.response.text)
808
+ ```
809
+
810
+ #### Service
811
+
812
+ 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:
813
+
814
+ ```shell
815
+ lmdeploy serve api_server OpenGVLab/InternVL2_5-8B --backend turbomind --server-port 23333
816
+ ```
817
+
818
+ To use the OpenAI-style interface, you need to install OpenAI:
819
+
820
+ ```shell
821
+ pip install openai
822
+ ```
823
+
824
+ Then, use the code below to make the API call:
825
+
826
+ ```python
827
+ from openai import OpenAI
828
+
829
+ client = OpenAI(api_key='YOUR_API_KEY', base_url='http://0.0.0.0:23333/v1')
830
+ model_name = client.models.list().data[0].id
831
+ response = client.chat.completions.create(
832
+ model=model_name,
833
+ messages=[{
834
+ 'role':
835
+ 'user',
836
+ 'content': [{
837
+ 'type': 'text',
838
+ 'text': 'describe this image',
839
+ }, {
840
+ 'type': 'image_url',
841
+ 'image_url': {
842
+ 'url':
843
+ 'https://modelscope.oss-cn-beijing.aliyuncs.com/resource/tiger.jpeg',
844
+ },
845
+ }],
846
+ }],
847
+ temperature=0.8,
848
+ top_p=0.8)
849
+ print(response)
850
+ ```
851
+
852
+ ## License
853
+
854
+ This project is released under the MIT license, while Qwen2 is licensed under the Tongyi Qianwen LICENSE.
855
+
856
+ ## Citation
857
+
858
+ If you find this project useful in your research, please consider citing:
859
+
860
+ ```BibTeX
861
+ @article{chen2023internvl,
862
+ title={InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Tasks},
863
+ 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},
864
+ journal={arXiv preprint arXiv:2312.14238},
865
+ year={2023}
866
+ }
867
+ @article{chen2024far,
868
+ title={How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suites},
869
+ 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},
870
+ journal={arXiv preprint arXiv:2404.16821},
871
+ year={2024}
872
+ }
873
+ ```
874
+