SAIFIINDUSTRIES d-rau commited on
Commit
d3877f2
·
0 Parent(s):

Duplicate from CohereLabs/North-Micro-Vision-Instruct

Browse files

Co-authored-by: David Rau <d-rau@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,548 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ pipeline_tag: image-text-to-text
5
+ language:
6
+ - en
7
+ - de
8
+ - fr
9
+ - es
10
+ - it
11
+ - pt
12
+ - hi
13
+ - ja
14
+ - ko
15
+ - zh
16
+ - ar
17
+ tags:
18
+ - vision
19
+ - multimodal
20
+ - conversational
21
+ - multilingual
22
+ - native-resolution
23
+ ---
24
+
25
+ # North Micro Vision Instruct
26
+ ![North-Micro-Vision_Hero](https://cdn-uploads.huggingface.co/production/uploads/66d732effe6684fc16b12c28/qQQSd5Pldz30hvGMhNMq_.png)
27
+
28
+ North Micro Vision Instruct is a 2.4B-parameter open-weight vision-language model with native-resolution image support, released under the Apache 2.0 license. It is designed as a compact foundation for prototyping, task-specific fine-tuning, and specialized multimodal applications.
29
+
30
+ Developed by [Cohere](https://cohere.com/).
31
+
32
+ > **Technical deep dive:** Read the [North Micro Vision technical blog post](https://huggingface.co/blog/CohereLabs/meet-north-micro-vision-instruct) for architecture, training, and evaluation details.
33
+
34
+ ## Highlights
35
+
36
+ - Native-resolution image processing that preserves aspect ratios and fine visual detail.
37
+ - Broad image-understanding capabilities across VQA, captioning, grounding, OCR, charts, and documents.
38
+ - Multilingual and multi-image support.
39
+ - Compact 2.4B-parameter scale suited to customization and deployment experimentation.
40
+ - Apache 2.0-licensed model weights.
41
+
42
+ ## Model Details
43
+ | Property | Value |
44
+ | --- | --- |
45
+ | Model ID | `CohereLabs/North-Micro-Vision-Instruct` |
46
+ | Total parameters | 2.4B |
47
+ | Language model | 2B parameters |
48
+ | Vision encoder | 400M parameters; custom-trained starting from [SigLIP 2 SO400M](https://huggingface.co/google/siglip2-so400m-patch16-384) |
49
+ | Inputs | Interleaved text and images |
50
+ | Output | Text |
51
+ | Languages | English, German, French, Spanish, Italian, Portuguese, Hindi, Japanese, Korean, Chinese, Arabic, and more |
52
+ | Tokenizer vocabulary size | 262,144 |
53
+ | LM Backbone context window | 128K tokens |
54
+ | Multimodal training context | 8K tokens |
55
+ | Checkpoint precision | bfloat16 |
56
+ | License | Apache 2.0 |
57
+
58
+ The language backbone supports a 128K-token context window, but the validated operating range for multimodal prompts is up to 8K tokens. Longer multimodal contexts may rely on extrapolation and have not been benchmarked.
59
+
60
+ ## Quickstart
61
+
62
+ ### Installation
63
+
64
+ Install [PyTorch](https://pytorch.org/get-started/locally/) for your platform first. North Micro Vision requires Transformers 5.16.0, together with `accelerate` for automatic device placement and Pillow for image loading. Until Transformers 5.16.0 is released, install the runtime dependencies and Transformers from source:
65
+
66
+ ```bash
67
+ uv pip install accelerate pillow
68
+ uv pip install "git+https://github.com/huggingface/transformers.git"
69
+ ```
70
+
71
+ Once Transformers 5.16.0 is available on PyPI, install the released package with:
72
+
73
+ ```bash
74
+ uv pip install accelerate pillow "transformers==5.16.0"
75
+ ```
76
+
77
+ Flash Attention 2 is optional. On supported CUDA systems, install it with:
78
+
79
+ ```bash
80
+ uv pip install flash-attn --no-build-isolation
81
+ ```
82
+
83
+ If you do not use `uv`, replace `uv pip` with `pip` in the commands above.
84
+
85
+ ### Transformers
86
+
87
+ The following example loads an image from a URL and asks the model to describe it. Prompts can interleave text with one or more images; for text-only prompts, omit the image entries.
88
+
89
+ ```python
90
+ import torch
91
+ from transformers import AutoModelForImageTextToText, AutoProcessor
92
+
93
+ model_id = "CohereLabs/North-Micro-Vision-Instruct"
94
+
95
+ processor = AutoProcessor.from_pretrained(
96
+ model_id,
97
+ )
98
+ model = AutoModelForImageTextToText.from_pretrained(
99
+ model_id,
100
+ dtype="auto",
101
+ device_map="auto",
102
+ )
103
+
104
+ # To enable Flash Attention 2, load the model with the following settings:
105
+ # model = AutoModelForImageTextToText.from_pretrained(
106
+ # model_id,
107
+ # dtype=torch.bfloat16,
108
+ # attn_implementation="flash_attention_2",
109
+ # device_map="auto",
110
+ # )
111
+
112
+ image_url = "https://cdn-uploads.huggingface.co/production/uploads/66d732effe6684fc16b12c28/Io_5OCmftsmH-n158ZtPs.png"
113
+ messages = [
114
+ {
115
+ "role": "user",
116
+ "content": [
117
+ {"type": "image", "url": image_url},
118
+ {"type": "text", "text": "What do you see?"},
119
+ ],
120
+ }
121
+ ]
122
+
123
+ inputs = processor.apply_chat_template(
124
+ messages,
125
+ tokenize=True,
126
+ add_generation_prompt=True,
127
+ return_tensors="pt",
128
+ return_dict=True,
129
+ ).to(model.device)
130
+
131
+ outputs = model.generate(
132
+ **inputs,
133
+ max_new_tokens=128,
134
+ do_sample=True,
135
+ temperature=0.7,
136
+ top_p=0.8,
137
+ top_k=20,
138
+ )
139
+
140
+ generated_ids = [
141
+ output_ids[len(input_ids) :]
142
+ for input_ids, output_ids in zip(inputs.input_ids, outputs)
143
+ ]
144
+ response = processor.batch_decode(
145
+ generated_ids,
146
+ skip_special_tokens=True,
147
+ clean_up_tokenization_spaces=False,
148
+ )[0]
149
+ print(response)
150
+ ```
151
+
152
+ The example uses the recommended Transformers sampling settings. For deterministic output, set `do_sample=False` and omit `temperature`, `top_p`, and `top_k`.
153
+
154
+ ## Architecture
155
+
156
+ North Micro Vision combines a custom-trained 400M-parameter native-resolution vision encoder with an in-house 2B-parameter language model North Micro LLM. The language model follows our Command A+ architecture, interleaving three sliding-window attention layers that use rotary positional embeddings with one global attention layer without positional embeddings. The vision encoder combines 2D RoPE with learned 1D positional embeddings to preserve spatial structure across native-resolution inputs.
157
+
158
+ The projector maps visual features into the language model's embedding space. Following DeepStack, patch embeddings from multiple vision-encoder layers are injected into corresponding early LLM layers, giving the language model access to visual representations at different levels of abstraction.
159
+
160
+ ![North-Micro-Vision-Instruct-Architecture](https://cdn-uploads.huggingface.co/production/uploads/66d732effe6684fc16b12c28/hPsTh7FX3ONJXN3WfE0BX.png)
161
+ *High-level North Micro Vision architecture, consisting of a native-resolution vision encoder, a projector, and a language model.*
162
+
163
+
164
+ ### Grounding Coordinates
165
+
166
+ Bounding boxes are returned as `[x1, y1, x2, y2]` on a normalized 0–1000 scale. Map them back to the original image by scaling each axis:
167
+
168
+ ```python
169
+ x1_px = x1 / 1000 * image_width
170
+ y1_px = y1 / 1000 * image_height
171
+ x2_px = x2 / 1000 * image_width
172
+ y2_px = y2 / 1000 * image_height
173
+ ```
174
+
175
+ ### vLLM
176
+
177
+ Public vLLM support is coming soon. Until it is available, use Transformers as shown above. The recommended vLLM settings will be:
178
+
179
+ ```python
180
+ temperature = 0.7
181
+ top_p = 0.8
182
+ top_k = 20
183
+ min_p = 0.0
184
+ presence_penalty = 1.5
185
+ repetition_penalty = 1.0
186
+ ```
187
+
188
+ ## Intended Use
189
+
190
+ North Micro Vision Instruct is intended for research and development use cases such as:
191
+
192
+ - Prototyping and task-specific fine-tuning.
193
+ - General visual question answering and image captioning.
194
+ - Multilingual and multi-image understanding.
195
+ - Visual grounding and spatial understanding.
196
+ - OCR, chart and document understanding, and structured information extraction.
197
+
198
+ ## Limitations
199
+
200
+ - The model is intended as a compact foundation for customization rather than a replacement for larger general-purpose chat assistants.
201
+ - It is not a reasoning model and has limited math and code-generation capabilities.
202
+ - Tool calling and agentic workflows are not supported.
203
+ - System prompts are not recommended because the model was not trained with them, although the chat template accepts the `system` role.
204
+ - Multimodal training used an 8K-token context; longer contexts have not been validated.
205
+ - Native-resolution inputs can increase memory use and latency as image dimensions grow.
206
+
207
+ ## Ecosystem Support
208
+
209
+ ### Fast Inference 🚀
210
+
211
+ - [MLX-VLM model weights](https://huggingface.co/collections/mlx-community/north-micro-vision) - Community-contributed by Prince Canuma and Neywa.
212
+
213
+ ### Fine-tuning
214
+
215
+ In partnership with NVIDIA, we're also shipping an AutoModel recipe for North Micro Vision, so developers can fine-tune and deploy it on NVIDIA GPUs right out of the box.
216
+
217
+ - [NVIDIA AutoModel recipe](https://github.com/NVIDIA-NeMo/Automodel/tree/main/examples/vlm_finetune/cohere_micro_vision) - Fine-tune and deploy North Micro Vision on NVIDIA GPUs.
218
+ - [Axolotl fine-tuning support](https://docs.axolotl.ai/docs/models/cohere-north-micro-vision-instruct.html) - Community-supported fine-tuning using the Axolotl framework.
219
+
220
+ ## Benchmark Results
221
+
222
+ The complete comparison is provided below. We ran vision-language and text-only evaluations with [VLMEvalKit](https://github.com/open-compass/vlmevalkit), capping generation at 1,024 tokens; see the [technical blog post](https://huggingface.co/blog/CohereLabs/meet-north-micro-vision-instruct) for the full methodology.
223
+
224
+ <table>
225
+ <thead>
226
+ <tr>
227
+ <th></th>
228
+ <th style="font-weight: bold; background-color: rgba(127, 127, 127, 0.08);">North-Micro-Vision-Instruct</th>
229
+ <th>Ministral-3-3B-Instruct</th>
230
+ <th>LFM2.5-VL-1.6B</th>
231
+ <th>Phi-3.5-vision-instruct</th>
232
+ <th>Gemma-4-E2B-it</th>
233
+ <th>Qwen3-VL-2B-Instruct</th>
234
+ <th>Qwen3.5-2B-Instruct</th>
235
+ <th>SmolVLM2.2B</th>
236
+ </tr>
237
+ </thead>
238
+ <tbody>
239
+ <tr>
240
+ <th style="text-align: left; font-weight: normal;">Size</th>
241
+ <td style="background-color: rgba(127, 127, 127, 0.08);">2.4B</td>
242
+ <td>3.8B</td>
243
+ <td>1.6B</td>
244
+ <td>4.2B</td>
245
+ <td>5.1B</td>
246
+ <td>2.2B</td>
247
+ <td>2.1B</td>
248
+ <td>2.2B</td>
249
+ </tr>
250
+ <tr>
251
+ <th style="text-align: left; font-weight: normal;">License</th>
252
+ <td style="background-color: rgba(127, 127, 127, 0.08);">Apache 2.0</td>
253
+ <td>Apache 2.0</td>
254
+ <td>LFM v1.0</td>
255
+ <td>MIT</td>
256
+ <td>Apache 2.0</td>
257
+ <td>Apache 2.0</td>
258
+ <td>Apache 2.0</td>
259
+ <td>Apache 2.0</td>
260
+ </tr>
261
+ <tr>
262
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">General VQA</th>
263
+ </tr>
264
+ <tr>
265
+ <th style="text-align: left; font-weight: normal;">MMBench<sub>DEV_EN_V11</sub></th>
266
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.687</td>
267
+ <td>0.692</td>
268
+ <td>0.696</td>
269
+ <td>0.731</td>
270
+ <td>0.693</td>
271
+ <td>0.744</td>
272
+ <td>0.760</td>
273
+ <td>0.674</td>
274
+ </tr>
275
+ <tr>
276
+ <th style="text-align: left; font-weight: normal;">MMStar</th>
277
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.518</td>
278
+ <td>0.531</td>
279
+ <td>0.508</td>
280
+ <td>0.495</td>
281
+ <td>0.529</td>
282
+ <td>0.506</td>
283
+ <td>0.614</td>
284
+ <td>0.460</td>
285
+ </tr>
286
+ <tr>
287
+ <th style="text-align: left; font-weight: normal;">RealWorldQA</th>
288
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.622</td>
289
+ <td>0.583</td>
290
+ <td>0.642</td>
291
+ <td>0.580</td>
292
+ <td>0.507</td>
293
+ <td>0.646</td>
294
+ <td>0.693</td>
295
+ <td>0.567</td>
296
+ </tr>
297
+ <tr>
298
+ <th style="text-align: left; font-weight: normal;">GQA<sub>TestDev_Balanced</sub></th>
299
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.574</td>
300
+ <td>0.544</td>
301
+ <td>0.395</td>
302
+ <td>0.650</td>
303
+ <td>0.387</td>
304
+ <td>0.572</td>
305
+ <td>0.539</td>
306
+ <td>0.000<sup>&Dagger;</sup></td>
307
+ </tr>
308
+ <tr>
309
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Multilingual</th>
310
+ </tr>
311
+ <tr>
312
+ <th style="text-align: left; font-weight: normal;">MTL<sub>MMBench_DEV</sub></th>
313
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.636</td>
314
+ <td>0.674</td>
315
+ <td>0.623</td>
316
+ <td>0.619</td>
317
+ <td>0.648</td>
318
+ <td>0.664</td>
319
+ <td>0.669</td>
320
+ <td>0.454</td>
321
+ </tr>
322
+ <tr>
323
+ <th style="text-align: left; font-weight: normal;">MMMB</th>
324
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.728</td>
325
+ <td>0.734</td>
326
+ <td>0.717</td>
327
+ <td>0.686</td>
328
+ <td>0.743</td>
329
+ <td>0.723</td>
330
+ <td>0.745</td>
331
+ <td>0.577</td>
332
+ </tr>
333
+ <tr>
334
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Multi-image</th>
335
+ </tr>
336
+ <tr>
337
+ <th style="text-align: left; font-weight: normal;">BLINK</th>
338
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.527</td>
339
+ <td>0.471</td>
340
+ <td>0.484</td>
341
+ <td>0.561</td>
342
+ <td>0.468</td>
343
+ <td>0.514</td>
344
+ <td>0.563</td>
345
+ <td>0.420</td>
346
+ </tr>
347
+ <tr>
348
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Chart / Document / OCR</th>
349
+ </tr>
350
+ <tr>
351
+ <th style="text-align: left; font-weight: normal;">ChartQA<sub>Test</sub></th>
352
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.808</td>
353
+ <td>0.791</td>
354
+ <td>0.739</td>
355
+ <td>0.821</td>
356
+ <td>0.422</td>
357
+ <td>0.693</td>
358
+ <td>0.775</td>
359
+ <td>0.682</td>
360
+ </tr>
361
+ <tr>
362
+ <th style="text-align: left; font-weight: normal;">DocVQA<sub>VAL</sub></th>
363
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.921</td>
364
+ <td>0.896</td>
365
+ <td>0.877</td>
366
+ <td>0.860</td>
367
+ <td>0.732</td>
368
+ <td>0.825</td>
369
+ <td>0.926</td>
370
+ <td>0.799</td>
371
+ </tr>
372
+ <tr>
373
+ <th style="text-align: left; font-weight: normal;">InfoVQA<sub>VAL</sub></th>
374
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.652</td>
375
+ <td>0.589</td>
376
+ <td>0.627</td>
377
+ <td>0.561</td>
378
+ <td>0.380</td>
379
+ <td>0.622</td>
380
+ <td>0.731</td>
381
+ <td>0.383</td>
382
+ </tr>
383
+ <tr>
384
+ <th style="text-align: left; font-weight: normal;">OCRBench<sub>v2_en</sub></th>
385
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.367</td>
386
+ <td>0.414</td>
387
+ <td>0.415</td>
388
+ <td>0.339</td>
389
+ <td>0.435</td>
390
+ <td>0.417</td>
391
+ <td>0.481</td>
392
+ <td>0.304</td>
393
+ </tr>
394
+ <tr>
395
+ <th style="text-align: left; font-weight: normal;">OCRBench</th>
396
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.792</td>
397
+ <td>0.735</td>
398
+ <td>0.802</td>
399
+ <td>0.642</td>
400
+ <td>0.719</td>
401
+ <td>0.751</td>
402
+ <td>0.861</td>
403
+ <td>0.727</td>
404
+ </tr>
405
+ <tr>
406
+ <th style="text-align: left; font-weight: normal;">AI2D_TEST</th>
407
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.775</td>
408
+ <td>0.741</td>
409
+ <td>0.728</td>
410
+ <td>0.790</td>
411
+ <td>0.712</td>
412
+ <td>0.713</td>
413
+ <td>0.752</td>
414
+ <td>0.697</td>
415
+ </tr>
416
+ <tr>
417
+ <th style="text-align: left; font-weight: normal;">CharXiv<sub>DQ</sub></th>
418
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.600</td>
419
+ <td>0.766</td>
420
+ <td>0.516</td>
421
+ <td>0.637</td>
422
+ <td>0.751</td>
423
+ <td>0.595</td>
424
+ <td>0.761</td>
425
+ <td>0.482</td>
426
+ </tr>
427
+ <tr>
428
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">STEM</th>
429
+ </tr>
430
+ <tr>
431
+ <th style="text-align: left; font-weight: normal;">MMMU<sub>DEV_VAL</sub></th>
432
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.329</td>
433
+ <td>0.508</td>
434
+ <td>0.380</td>
435
+ <td>0.432</td>
436
+ <td>0.477</td>
437
+ <td>0.379</td>
438
+ <td>0.474</td>
439
+ <td>0.399</td>
440
+ </tr>
441
+ <tr>
442
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Grounding / Counting</th>
443
+ </tr>
444
+ <tr>
445
+ <th style="text-align: left; font-weight: normal;">RefCOCO<sub>avg</sub><sup>&dagger;</sup></th>
446
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.732</td>
447
+ <td>0.317</td>
448
+ <td>0.581</td>
449
+ <td>0.451</td>
450
+ <td>0.084</td>
451
+ <td>0.304</td>
452
+ <td>0.785</td>
453
+ <td>0.018</td>
454
+ </tr>
455
+ <tr>
456
+ <th style="text-align: left; font-weight: normal;">CountBench</th>
457
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.725</td>
458
+ <td>0.737</td>
459
+ <td>0.910</td>
460
+ <td>0.645</td>
461
+ <td>0.534</td>
462
+ <td>0.848</td>
463
+ <td>0.805</td>
464
+ <td>0.764</td>
465
+ </tr>
466
+ <tr>
467
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Robustness / Hallucination</th>
468
+ </tr>
469
+ <tr>
470
+ <th style="text-align: left; font-weight: normal;">HallusionBench</th>
471
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.615</td>
472
+ <td>0.652</td>
473
+ <td>0.601</td>
474
+ <td>0.585</td>
475
+ <td>0.598</td>
476
+ <td>0.673</td>
477
+ <td>0.655</td>
478
+ <td>0.600</td>
479
+ </tr>
480
+ <tr>
481
+ <th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Text</th>
482
+ </tr>
483
+ <tr>
484
+ <th style="text-align: left; font-weight: normal;">MMLU<sub>test</sub></th>
485
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.504</td>
486
+ <td>0.660</td>
487
+ <td>0.464</td>
488
+ <td>0.355</td>
489
+ <td>0.692</td>
490
+ <td>0.630</td>
491
+ <td>0.543</td>
492
+ <td>0.084</td>
493
+ </tr>
494
+ <tr>
495
+ <th style="text-align: left; font-weight: normal;">MMLU-Pro<sub>test</sub></th>
496
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.307</td>
497
+ <td>0.475</td>
498
+ <td>0.199</td>
499
+ <td>0.286</td>
500
+ <td>0.441</td>
501
+ <td>0.428</td>
502
+ <td>0.298</td>
503
+ <td>0.099</td>
504
+ </tr>
505
+ <tr>
506
+ <th style="text-align: left; font-weight: normal;">Multi-If</th>
507
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.373</td>
508
+ <td>0.470</td>
509
+ <td>0.443</td>
510
+ <td>0.304</td>
511
+ <td>0.687</td>
512
+ <td>0.523</td>
513
+ <td>0.464</td>
514
+ <td>0.236</td>
515
+ </tr>
516
+ <tr>
517
+ <th style="text-align: left; font-weight: normal;">IFEval</th>
518
+ <td style="background-color: rgba(127, 127, 127, 0.08);">0.749</td>
519
+ <td>0.725</td>
520
+ <td>0.776</td>
521
+ <td>0.543</td>
522
+ <td>0.869</td>
523
+ <td>0.734</td>
524
+ <td>0.679</td>
525
+ <td>0.501</td>
526
+ </tr>
527
+ </tbody>
528
+ </table>
529
+ <p><small><sup>&dagger;</sup> Averaged over RefCOCO_val, RefCOCO_testA, RefCOCO_testB, RefCOCO+_val, RefCOCO+_testA, RefCOCO+_testB, RefCOCOg_val, RefCOCOg_test.</small></p>
530
+ <p><small><sup>&Dagger;</sup> SmolVLM2.2B's GQA output was scored as 0.000 under VLMEvalKit's answer-extraction rules.</small></p>
531
+
532
+
533
+
534
+ ## Citation
535
+
536
+ ```bibtex
537
+ @misc{cohere_north_micro_vision_instruct,
538
+ title = {{North Micro Vision}: A 2.4B Native-Resolution Vision-Language Model},
539
+ url = {https://huggingface.co/blog/CohereLabs/meet-north-micro-vision-instruct},
540
+ author = {{Team Cohere}},
541
+ month = {August},
542
+ year = {2026}
543
+ }
544
+ ```
545
+
546
+ ## Contact
547
+
548
+ For errors or questions about this model card, contact [Cohere Labs](mailto:labs@cohere.com).
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {{ bos_token }}{%- for message in messages %}{%- if message.role == 'system' %}{{- '<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>' }}{%- if message.content is string %}{{- message.content }}{%- else %}{%- for content in message.content %}{%- if 'text' in content %}{{- content.text }}{%- endif %}{%- endfor %}{%- endif %}{{- '<|END_OF_TURN_TOKEN|>' }}{%- elif message.role == 'user' %}{{- '<|START_OF_TURN_TOKEN|><|USER_TOKEN|>' }}{%- if message.content is string %}{{- message.content }}{%- else %}{%- for content in message.content %}{%- if content.type == 'image' or 'image' in content or 'image_url' in content %}<|VISION_START|><|IMAGE_PAD|><|VISION_END|>{%- elif content.type == 'video' or 'video' in content %}<|VISION_START|><|VIDEO_PAD|><|VISION_END|>{%- elif 'text' in content %}{{- content.text }}{%- endif %}{%- endfor %}{%- endif %}{{- '<|END_OF_TURN_TOKEN|>' }}{%- elif message.role == 'assistant' or message.role == 'chatbot' %}{{- '<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>' }}{%- if message.content is string %}{{- message.content }}{%- else %}{%- for content in message.content %}{%- if 'text' in content %}{{- content.text }}{%- endif %}{%- endfor %}{%- endif %}{{- '<|END_OF_TURN_TOKEN|>' }}{%- endif %}{%- endfor %}{%- if add_generation_prompt %}{{- '<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>' }}{%- endif %}
config.json ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformers_version": "5.15.0.dev0",
3
+ "architectures": [
4
+ "CohereCompassForConditionalGeneration"
5
+ ],
6
+ "output_hidden_states": false,
7
+ "return_dict": true,
8
+ "dtype": "bfloat16",
9
+ "chunk_size_feed_forward": 0,
10
+ "is_encoder_decoder": false,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1"
14
+ },
15
+ "label2id": {
16
+ "LABEL_0": 0,
17
+ "LABEL_1": 1
18
+ },
19
+ "problem_type": null,
20
+ "text_config": {
21
+ "architectures": null,
22
+ "output_hidden_states": false,
23
+ "return_dict": true,
24
+ "dtype": "bfloat16",
25
+ "chunk_size_feed_forward": 0,
26
+ "is_encoder_decoder": false,
27
+ "id2label": {
28
+ "0": "LABEL_0",
29
+ "1": "LABEL_1"
30
+ },
31
+ "label2id": {
32
+ "LABEL_0": 0,
33
+ "LABEL_1": 1
34
+ },
35
+ "problem_type": null,
36
+ "vocab_size": 262144,
37
+ "hidden_size": 2048,
38
+ "intermediate_size": 6144,
39
+ "logit_scale": 0.25,
40
+ "num_hidden_layers": 28,
41
+ "num_attention_heads": 16,
42
+ "num_key_value_heads": 8,
43
+ "hidden_act": "silu",
44
+ "max_position_embeddings": 500000,
45
+ "initializer_range": 0.02,
46
+ "layer_norm_eps": 1e-05,
47
+ "use_cache": true,
48
+ "pad_token_id": 0,
49
+ "bos_token_id": 2,
50
+ "eos_token_id": 255001,
51
+ "tie_word_embeddings": true,
52
+ "rope_parameters": {
53
+ "sliding_attention": {
54
+ "mrope_interleaved": true,
55
+ "mrope_section": [
56
+ 24,
57
+ 20,
58
+ 20
59
+ ],
60
+ "rope_type": "default",
61
+ "rope_theta": 50000
62
+ },
63
+ "full_attention": null,
64
+ "rope_theta": 10000.0,
65
+ "rope_type": "default"
66
+ },
67
+ "attention_bias": false,
68
+ "attention_dropout": 0.0,
69
+ "sliding_window": 4096,
70
+ "layer_types": [
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "sliding_attention",
74
+ "full_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "sliding_attention",
78
+ "full_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "sliding_attention",
82
+ "full_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "sliding_attention",
86
+ "full_attention",
87
+ "sliding_attention",
88
+ "sliding_attention",
89
+ "sliding_attention",
90
+ "full_attention",
91
+ "sliding_attention",
92
+ "sliding_attention",
93
+ "sliding_attention",
94
+ "full_attention",
95
+ "sliding_attention",
96
+ "sliding_attention",
97
+ "sliding_attention",
98
+ "full_attention"
99
+ ],
100
+ "score_shift_a": null,
101
+ "score_shift_b": null,
102
+ "pooling": null,
103
+ "head_dim": 128,
104
+ "_name_or_path": "",
105
+ "model_type": "cohere_compass_text",
106
+ "output_attentions": false
107
+ },
108
+ "vision_config": {
109
+ "architectures": null,
110
+ "output_hidden_states": false,
111
+ "return_dict": true,
112
+ "dtype": "bfloat16",
113
+ "chunk_size_feed_forward": 0,
114
+ "is_encoder_decoder": false,
115
+ "id2label": {
116
+ "0": "LABEL_0",
117
+ "1": "LABEL_1"
118
+ },
119
+ "label2id": {
120
+ "LABEL_0": 0,
121
+ "LABEL_1": 1
122
+ },
123
+ "problem_type": null,
124
+ "depth": 27,
125
+ "hidden_size": 1152,
126
+ "hidden_act": "gelu_pytorch_tanh",
127
+ "intermediate_size": 4304,
128
+ "num_heads": 16,
129
+ "in_channels": 3,
130
+ "patch_size": 16,
131
+ "spatial_merge_size": 2,
132
+ "temporal_patch_size": 2,
133
+ "out_hidden_size": 2048,
134
+ "num_position_embeddings": 2304,
135
+ "deepstack_visual_indexes": [
136
+ 8,
137
+ 16,
138
+ 24
139
+ ],
140
+ "initializer_range": 0.02,
141
+ "_name_or_path": "",
142
+ "model_type": "cohere_compass_vision",
143
+ "output_attentions": false
144
+ },
145
+ "fusion_config": {
146
+ "patch_embeddings": true
147
+ },
148
+ "image_token_id": 255031,
149
+ "video_token_id": 255032,
150
+ "vision_start_token_id": 255028,
151
+ "vision_end_token_id": 255029,
152
+ "tie_word_embeddings": true,
153
+ "_name_or_path": "",
154
+ "eos_token_id": 255001,
155
+ "pad_token_id": 0,
156
+ "model_type": "cohere_compass",
157
+ "output_attentions": false
158
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "eos_token_id": [
4
+ 255001
5
+ ],
6
+ "pad_token_id": 0,
7
+ "do_sample": true,
8
+ "temperature": 0.7,
9
+ "top_p": 0.8,
10
+ "top_k": 20
11
+ }
12
+
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd9a9ed867111bbc6b6e062bf0b3b9c88af183eb41003083501a76c84e912046
3
+ size 4969765248
preprocessor_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": null,
3
+ "data_format": "channels_first",
4
+ "default_to_square": false,
5
+ "device": null,
6
+ "disable_grouping": null,
7
+ "do_center_crop": null,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_pad": null,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_mean": [
14
+ 0.5,
15
+ 0.5,
16
+ 0.5
17
+ ],
18
+ "image_std": [
19
+ 0.5,
20
+ 0.5,
21
+ 0.5
22
+ ],
23
+ "input_data_format": null,
24
+ "merge_size": 2,
25
+ "pad_size": null,
26
+ "patch_size": 16,
27
+ "processor_class": "CohereCompassProcessor",
28
+ "resample": 3,
29
+ "rescale_factor": 0.00392156862745098,
30
+ "return_tensors": null,
31
+ "size": {
32
+ "longest_edge": 16777216,
33
+ "shortest_edge": 65536
34
+ },
35
+ "temporal_patch_size": 2,
36
+ "image_processor_type": "CohereCompassImageProcessor"
37
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|VISION_START|>",
4
+ "<|IMAGE_PAD|>",
5
+ "<|VISION_END|>",
6
+ "<|VISION_PAD|>",
7
+ "<|VIDEO_PAD|>"
8
+ ],
9
+ "bos_token": {
10
+ "content": "<BOS_TOKEN>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "<|END_OF_TURN_TOKEN|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "pad_token": {
24
+ "content": "<PAD>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "<UNK>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fcc5292908e0c8ad1400c67fe9413825c656486fe4190dce7d8d62c38bfbbf6
3
+ size 19550662
tokenizer_config.json ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": false,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<PAD>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<MASK_TOKEN>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "<BOS_TOKEN>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "3": {
31
+ "content": "<EOS_TOKEN>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "4": {
39
+ "content": "<UNK>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ },
46
+ "255000": {
47
+ "content": "<|START_OF_TURN_TOKEN|>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": false
53
+ },
54
+ "255001": {
55
+ "content": "<|END_OF_TURN_TOKEN|>",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": true
61
+ },
62
+ "255002": {
63
+ "content": "<|USER_TOKEN|>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": false
69
+ },
70
+ "255003": {
71
+ "content": "<|CHATBOT_TOKEN|>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "255004": {
79
+ "content": "<|SYSTEM_TOKEN|>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": false
85
+ },
86
+ "255005": {
87
+ "content": "<|NEW_FILE|>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": true
93
+ },
94
+ "255006": {
95
+ "content": "<|BEGINNING_OF_PREFIX_FIM_TOKEN|>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": true
101
+ },
102
+ "255007": {
103
+ "content": "<|BEGINNING_OF_MIDDLE_FIM_TOKEN|>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": true
109
+ },
110
+ "255008": {
111
+ "content": "<|BEGINNING_OF_SUFFIX_FIM_TOKEN|>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": true
117
+ },
118
+ "255009": {
119
+ "content": "<|END_OF_MIDDLE_FIM_TOKEN|>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": true
125
+ },
126
+ "255010": {
127
+ "content": "<|START_THINKING|>",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "255011": {
135
+ "content": "<|END_THINKING|>",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "255012": {
143
+ "content": "<|START_RESPONSE|>",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "255013": {
151
+ "content": "<|END_RESPONSE|>",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "255014": {
159
+ "content": "<|START_ACTION|>",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "255015": {
167
+ "content": "<|END_ACTION|>",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "255016": {
175
+ "content": "<|START_TOOL_RESULT|>",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ },
182
+ "255017": {
183
+ "content": "<|END_TOOL_RESULT|>",
184
+ "lstrip": false,
185
+ "normalized": false,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": false
189
+ },
190
+ "255018": {
191
+ "content": "<|USER_0_TOKEN|>",
192
+ "lstrip": false,
193
+ "normalized": false,
194
+ "rstrip": false,
195
+ "single_word": false,
196
+ "special": false
197
+ },
198
+ "255019": {
199
+ "content": "<|USER_1_TOKEN|>",
200
+ "lstrip": false,
201
+ "normalized": false,
202
+ "rstrip": false,
203
+ "single_word": false,
204
+ "special": false
205
+ },
206
+ "255020": {
207
+ "content": "<|USER_2_TOKEN|>",
208
+ "lstrip": false,
209
+ "normalized": false,
210
+ "rstrip": false,
211
+ "single_word": false,
212
+ "special": false
213
+ },
214
+ "255021": {
215
+ "content": "<|USER_3_TOKEN|>",
216
+ "lstrip": false,
217
+ "normalized": false,
218
+ "rstrip": false,
219
+ "single_word": false,
220
+ "special": false
221
+ },
222
+ "255022": {
223
+ "content": "<|USER_4_TOKEN|>",
224
+ "lstrip": false,
225
+ "normalized": false,
226
+ "rstrip": false,
227
+ "single_word": false,
228
+ "special": false
229
+ },
230
+ "255023": {
231
+ "content": "<|USER_5_TOKEN|>",
232
+ "lstrip": false,
233
+ "normalized": false,
234
+ "rstrip": false,
235
+ "single_word": false,
236
+ "special": false
237
+ },
238
+ "255024": {
239
+ "content": "<|USER_6_TOKEN|>",
240
+ "lstrip": false,
241
+ "normalized": false,
242
+ "rstrip": false,
243
+ "single_word": false,
244
+ "special": false
245
+ },
246
+ "255025": {
247
+ "content": "<|USER_7_TOKEN|>",
248
+ "lstrip": false,
249
+ "normalized": false,
250
+ "rstrip": false,
251
+ "single_word": false,
252
+ "special": false
253
+ },
254
+ "255026": {
255
+ "content": "<|USER_8_TOKEN|>",
256
+ "lstrip": false,
257
+ "normalized": false,
258
+ "rstrip": false,
259
+ "single_word": false,
260
+ "special": false
261
+ },
262
+ "255027": {
263
+ "content": "<|USER_9_TOKEN|>",
264
+ "lstrip": false,
265
+ "normalized": false,
266
+ "rstrip": false,
267
+ "single_word": false,
268
+ "special": false
269
+ },
270
+ "255028": {
271
+ "content": "<|VISION_START|>",
272
+ "lstrip": false,
273
+ "normalized": false,
274
+ "rstrip": false,
275
+ "single_word": false,
276
+ "special": true
277
+ },
278
+ "255029": {
279
+ "content": "<|VISION_END|>",
280
+ "lstrip": false,
281
+ "normalized": false,
282
+ "rstrip": false,
283
+ "single_word": false,
284
+ "special": true
285
+ },
286
+ "255030": {
287
+ "content": "<|VISION_PAD|>",
288
+ "lstrip": false,
289
+ "normalized": false,
290
+ "rstrip": false,
291
+ "single_word": false,
292
+ "special": true
293
+ },
294
+ "255031": {
295
+ "content": "<|IMAGE_PAD|>",
296
+ "lstrip": false,
297
+ "normalized": false,
298
+ "rstrip": false,
299
+ "single_word": false,
300
+ "special": true
301
+ },
302
+ "255032": {
303
+ "content": "<|VIDEO_PAD|>",
304
+ "lstrip": false,
305
+ "normalized": false,
306
+ "rstrip": false,
307
+ "single_word": false,
308
+ "special": true
309
+ }
310
+ },
311
+ "additional_special_tokens": [
312
+ "<|VISION_START|>",
313
+ "<|IMAGE_PAD|>",
314
+ "<|VISION_END|>",
315
+ "<|VISION_PAD|>",
316
+ "<|VIDEO_PAD|>"
317
+ ],
318
+ "bos_token": "<BOS_TOKEN>",
319
+ "clean_up_tokenization_spaces": false,
320
+ "eos_token": "<|END_OF_TURN_TOKEN|>",
321
+ "extra_special_tokens": {},
322
+ "image_token": "<|IMAGE_PAD|>",
323
+ "legacy": true,
324
+ "model_max_length": 1000000000000000019884624838656,
325
+ "pad_token": "<PAD>",
326
+ "padding_side": "right",
327
+ "processor_class": "CohereCompassProcessor",
328
+ "sp_model_kwargs": {},
329
+ "spaces_between_special_tokens": false,
330
+ "tokenizer_class": "CohereTokenizer",
331
+ "unk_token": "<UNK>",
332
+ "use_default_system_prompt": false,
333
+ "video_token": "<|VIDEO_PAD|>",
334
+ "vision_end_token": "<|VISION_END|>",
335
+ "vision_start_token": "<|VISION_START|>",
336
+ "vocab_file": null
337
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "CohereCompassProcessor",
20
+ "video_processor_type": "CohereCompassVideoProcessor"
21
+ }