Image-Text-to-Text
Transformers
Safetensors
cohere_compass
vision
multimodal
conversational
multilingual
native-resolution
Instructions to use CohereLabs/North-Micro-Vision-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CohereLabs/North-Micro-Vision-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="CohereLabs/North-Micro-Vision-Instruct") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("CohereLabs/North-Micro-Vision-Instruct") model = AutoModelForMultimodalLM.from_pretrained("CohereLabs/North-Micro-Vision-Instruct", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CohereLabs/North-Micro-Vision-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CohereLabs/North-Micro-Vision-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CohereLabs/North-Micro-Vision-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/CohereLabs/North-Micro-Vision-Instruct
- SGLang
How to use CohereLabs/North-Micro-Vision-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "CohereLabs/North-Micro-Vision-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CohereLabs/North-Micro-Vision-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "CohereLabs/North-Micro-Vision-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CohereLabs/North-Micro-Vision-Instruct", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use CohereLabs/North-Micro-Vision-Instruct with Docker Model Runner:
docker model run hf.co/CohereLabs/North-Micro-Vision-Instruct
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +499 -0
- chat_template.jinja +1 -0
- config.json +155 -0
- generation_config.json +12 -0
- model.safetensors +3 -0
- preprocessor_config.json +37 -0
- special_tokens_map.json +37 -0
- tokenizer.json +3 -0
- tokenizer_config.json +340 -0
- video_preprocessor_config.json +21 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* 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
|
|
|
|
|
|
| 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
CHANGED
|
@@ -1,3 +1,502 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+

|
| 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 |
|
| 49 |
+
| Inputs | Text and one or more images |
|
| 50 |
+
| Output | Text |
|
| 51 |
+
| Languages | English, German, French, Spanish, Italian, Portuguese, Hindi, Japanese, Korean, Chinese, and Arabic |
|
| 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 multimodal training used sequences of up to 8K tokens. Longer multimodal contexts have not yet been validated and may rely on extrapolation.
|
| 59 |
+
|
| 60 |
+
## Quickstart
|
| 61 |
+
|
| 62 |
+
### Installation
|
| 63 |
+
|
| 64 |
+
North Micro Vision requires Transformers 5.15.0. Until that version is released, install Transformers from source:
|
| 65 |
+
|
| 66 |
+
```bash
|
| 67 |
+
uv pip install "git+https://github.com/huggingface/transformers.git"
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
Once Transformers 5.15.0 is available on PyPI, install the released package with:
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
uv pip install "transformers==5.15.0"
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
### Transformers
|
| 77 |
+
|
| 78 |
+
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.
|
| 79 |
+
|
| 80 |
+
```python
|
| 81 |
+
import torch
|
| 82 |
+
from transformers import AutoModelForCausalLM, AutoProcessor
|
| 83 |
+
|
| 84 |
+
model_id = "CohereLabs/North-Micro-Vision-Instruct"
|
| 85 |
+
|
| 86 |
+
processor = AutoProcessor.from_pretrained(
|
| 87 |
+
model_id,
|
| 88 |
+
trust_remote_code=True,
|
| 89 |
+
)
|
| 90 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 91 |
+
model_id,
|
| 92 |
+
dtype="auto",
|
| 93 |
+
device_map="auto",
|
| 94 |
+
trust_remote_code=True,
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
# To enable Flash Attention 2, load the model with the following settings:
|
| 98 |
+
# model = AutoModelForCausalLM.from_pretrained(
|
| 99 |
+
# model_id,
|
| 100 |
+
# dtype=torch.bfloat16,
|
| 101 |
+
# attn_implementation="flash_attention_2",
|
| 102 |
+
# device_map="auto",
|
| 103 |
+
# trust_remote_code=True,
|
| 104 |
+
# )
|
| 105 |
+
|
| 106 |
+
image_url = "https://cdn-uploads.huggingface.co/production/uploads/66d732effe6684fc16b12c28/Io_5OCmftsmH-n158ZtPs.png"
|
| 107 |
+
messages = [
|
| 108 |
+
{
|
| 109 |
+
"role": "user",
|
| 110 |
+
"content": [
|
| 111 |
+
{"type": "image", "url": image_url},
|
| 112 |
+
{"type": "text", "text": "Describe this image."},
|
| 113 |
+
],
|
| 114 |
+
}
|
| 115 |
+
]
|
| 116 |
+
|
| 117 |
+
inputs = processor.apply_chat_template(
|
| 118 |
+
messages,
|
| 119 |
+
tokenize=True,
|
| 120 |
+
add_generation_prompt=True,
|
| 121 |
+
return_tensors="pt",
|
| 122 |
+
return_dict=True,
|
| 123 |
+
).to(model.device)
|
| 124 |
+
|
| 125 |
+
outputs = model.generate(
|
| 126 |
+
**inputs,
|
| 127 |
+
max_new_tokens=128,
|
| 128 |
+
)
|
| 129 |
+
|
| 130 |
+
input_length = inputs["input_ids"].shape[-1]
|
| 131 |
+
response = processor.decode(
|
| 132 |
+
outputs[0][input_length:],
|
| 133 |
+
skip_special_tokens=True,
|
| 134 |
+
)
|
| 135 |
+
print(response)
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
For multi-image prompts, add multiple image entries to the message content before the text instruction.
|
| 139 |
+
|
| 140 |
+
Bounding coordinates are returned in the [x1,x2,y1,y2] format on a normalized 0-1000 scale and should be mapped back to the original image dimensions.
|
| 141 |
+
|
| 142 |
+
## Intended Use
|
| 143 |
+
|
| 144 |
+
North Micro Vision Instruct is intended for research and development use cases such as:
|
| 145 |
+
|
| 146 |
+
- Prototyping and task-specific fine-tuning.
|
| 147 |
+
- General visual question answering and image captioning.
|
| 148 |
+
- Multilingual and multi-image understanding.
|
| 149 |
+
- Visual grounding and spatial understanding.
|
| 150 |
+
- OCR, chart and document understanding, and structured information extraction.
|
| 151 |
+
|
| 152 |
+
## Limitations
|
| 153 |
+
|
| 154 |
+
- The model is intended as a compact foundation for customization rather than a replacement for larger general-purpose chat assistants.
|
| 155 |
+
- It is not a reasoning model and has limited math and code-generation capabilities.
|
| 156 |
+
- Tool calling and agentic workflows are not supported.
|
| 157 |
+
- The model was trained without system prompts.
|
| 158 |
+
- Multimodal training used an 8K-token context; longer contexts have not been validated.
|
| 159 |
+
- Native-resolution inputs can increase memory use and latency as image dimensions grow.
|
| 160 |
+
|
| 161 |
+
## Benchmark Results
|
| 162 |
+
|
| 163 |
+
The complete comparison is provided below. See the [technical blog post](https://huggingface.co/blog/CohereLabs/meet-north-micro-vision-instruct) for benchmarking methodology and additional technical details.
|
| 164 |
+
|
| 165 |
+
<table>
|
| 166 |
+
<thead>
|
| 167 |
+
<tr>
|
| 168 |
+
<th></th>
|
| 169 |
+
<th style="font-weight: bold; background-color: rgba(127, 127, 127, 0.08);">North-Micro-Vision-Instruct</th>
|
| 170 |
+
<th>Ministral-3-3B-Instruct</th>
|
| 171 |
+
<th>LFM2.5-VL-1.6B</th>
|
| 172 |
+
<th>Phi-3.5-vision-instruct</th>
|
| 173 |
+
<th>Gemma-4-E2B-it</th>
|
| 174 |
+
<th>Qwen3-VL-2B-Instruct</th>
|
| 175 |
+
<th>Qwen3.5-2B-Instruct</th>
|
| 176 |
+
<th>SmolVLM2.2B</th>
|
| 177 |
+
</tr>
|
| 178 |
+
</thead>
|
| 179 |
+
<tbody>
|
| 180 |
+
<tr>
|
| 181 |
+
<th style="text-align: left; font-weight: normal;">Size</th>
|
| 182 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">2.4B</td>
|
| 183 |
+
<td>3.8B</td>
|
| 184 |
+
<td>1.6B</td>
|
| 185 |
+
<td>4.2B</td>
|
| 186 |
+
<td>5.1B</td>
|
| 187 |
+
<td>2.2B</td>
|
| 188 |
+
<td>2.1B</td>
|
| 189 |
+
<td>2.2B</td>
|
| 190 |
+
</tr>
|
| 191 |
+
<tr>
|
| 192 |
+
<th style="text-align: left; font-weight: normal;">License</th>
|
| 193 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">Apache 2.0</td>
|
| 194 |
+
<td>Apache 2.0</td>
|
| 195 |
+
<td>LFM v1.0</td>
|
| 196 |
+
<td>MIT</td>
|
| 197 |
+
<td>Apache 2.0</td>
|
| 198 |
+
<td>Apache 2.0</td>
|
| 199 |
+
<td>Apache 2.0</td>
|
| 200 |
+
<td>Apache 2.0</td>
|
| 201 |
+
</tr>
|
| 202 |
+
<tr>
|
| 203 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">General VQA</th>
|
| 204 |
+
</tr>
|
| 205 |
+
<tr>
|
| 206 |
+
<th style="text-align: left; font-weight: normal;">MMBench<sub>DEV_EN_V11</sub></th>
|
| 207 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.687</td>
|
| 208 |
+
<td>0.692</td>
|
| 209 |
+
<td>0.696</td>
|
| 210 |
+
<td>0.731</td>
|
| 211 |
+
<td>0.693</td>
|
| 212 |
+
<td>0.744</td>
|
| 213 |
+
<td>0.760</td>
|
| 214 |
+
<td>0.674</td>
|
| 215 |
+
</tr>
|
| 216 |
+
<tr>
|
| 217 |
+
<th style="text-align: left; font-weight: normal;">MMStar</th>
|
| 218 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.518</td>
|
| 219 |
+
<td>0.531</td>
|
| 220 |
+
<td>0.508</td>
|
| 221 |
+
<td>0.495</td>
|
| 222 |
+
<td>0.529</td>
|
| 223 |
+
<td>0.506</td>
|
| 224 |
+
<td>0.614</td>
|
| 225 |
+
<td>0.460</td>
|
| 226 |
+
</tr>
|
| 227 |
+
<tr>
|
| 228 |
+
<th style="text-align: left; font-weight: normal;">RealWorldQA</th>
|
| 229 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.622</td>
|
| 230 |
+
<td>0.583</td>
|
| 231 |
+
<td>0.642</td>
|
| 232 |
+
<td>0.580</td>
|
| 233 |
+
<td>0.507</td>
|
| 234 |
+
<td>0.646</td>
|
| 235 |
+
<td>0.693</td>
|
| 236 |
+
<td>0.567</td>
|
| 237 |
+
</tr>
|
| 238 |
+
<tr>
|
| 239 |
+
<th style="text-align: left; font-weight: normal;">GQA<sub>TestDev_Balanced</sub></th>
|
| 240 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.574</td>
|
| 241 |
+
<td>0.544</td>
|
| 242 |
+
<td>0.395</td>
|
| 243 |
+
<td>0.650</td>
|
| 244 |
+
<td>0.387</td>
|
| 245 |
+
<td>0.572</td>
|
| 246 |
+
<td>0.539</td>
|
| 247 |
+
<td>0.000<sup>†</sup></td>
|
| 248 |
+
</tr>
|
| 249 |
+
<tr>
|
| 250 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Multilingual</th>
|
| 251 |
+
</tr>
|
| 252 |
+
<tr>
|
| 253 |
+
<th style="text-align: left; font-weight: normal;">MTL<sub>MMBench_DEV</sub></th>
|
| 254 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.636</td>
|
| 255 |
+
<td>0.674</td>
|
| 256 |
+
<td>0.623</td>
|
| 257 |
+
<td>0.619</td>
|
| 258 |
+
<td>0.648</td>
|
| 259 |
+
<td>0.664</td>
|
| 260 |
+
<td>0.669</td>
|
| 261 |
+
<td>0.454</td>
|
| 262 |
+
</tr>
|
| 263 |
+
<tr>
|
| 264 |
+
<th style="text-align: left; font-weight: normal;">MMMB</th>
|
| 265 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.728</td>
|
| 266 |
+
<td>0.734</td>
|
| 267 |
+
<td>0.717</td>
|
| 268 |
+
<td>0.686</td>
|
| 269 |
+
<td>0.743</td>
|
| 270 |
+
<td>0.723</td>
|
| 271 |
+
<td>0.745</td>
|
| 272 |
+
<td>0.577</td>
|
| 273 |
+
</tr>
|
| 274 |
+
<tr>
|
| 275 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Multi-image</th>
|
| 276 |
+
</tr>
|
| 277 |
+
<tr>
|
| 278 |
+
<th style="text-align: left; font-weight: normal;">BLINK</th>
|
| 279 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.527</td>
|
| 280 |
+
<td>0.471</td>
|
| 281 |
+
<td>0.484</td>
|
| 282 |
+
<td>0.561</td>
|
| 283 |
+
<td>0.468</td>
|
| 284 |
+
<td>0.514</td>
|
| 285 |
+
<td>0.563</td>
|
| 286 |
+
<td>0.420</td>
|
| 287 |
+
</tr>
|
| 288 |
+
<tr>
|
| 289 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Chart / Document / OCR</th>
|
| 290 |
+
</tr>
|
| 291 |
+
<tr>
|
| 292 |
+
<th style="text-align: left; font-weight: normal;">ChartQA<sub>Test</sub></th>
|
| 293 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.808</td>
|
| 294 |
+
<td>0.791</td>
|
| 295 |
+
<td>0.739</td>
|
| 296 |
+
<td>0.821</td>
|
| 297 |
+
<td>0.422</td>
|
| 298 |
+
<td>0.693</td>
|
| 299 |
+
<td>0.775</td>
|
| 300 |
+
<td>0.682</td>
|
| 301 |
+
</tr>
|
| 302 |
+
<tr>
|
| 303 |
+
<th style="text-align: left; font-weight: normal;">DocVQA<sub>VAL</sub></th>
|
| 304 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.921</td>
|
| 305 |
+
<td>0.896</td>
|
| 306 |
+
<td>0.877</td>
|
| 307 |
+
<td>0.860</td>
|
| 308 |
+
<td>0.732</td>
|
| 309 |
+
<td>0.825</td>
|
| 310 |
+
<td>0.926</td>
|
| 311 |
+
<td>0.799</td>
|
| 312 |
+
</tr>
|
| 313 |
+
<tr>
|
| 314 |
+
<th style="text-align: left; font-weight: normal;">InfoVQA<sub>VAL</sub></th>
|
| 315 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.652</td>
|
| 316 |
+
<td>0.589</td>
|
| 317 |
+
<td>0.627</td>
|
| 318 |
+
<td>0.561</td>
|
| 319 |
+
<td>0.380</td>
|
| 320 |
+
<td>0.622</td>
|
| 321 |
+
<td>0.731</td>
|
| 322 |
+
<td>0.383</td>
|
| 323 |
+
</tr>
|
| 324 |
+
<tr>
|
| 325 |
+
<th style="text-align: left; font-weight: normal;">OCRBench<sub>v2_en</sub></th>
|
| 326 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.367</td>
|
| 327 |
+
<td>0.414</td>
|
| 328 |
+
<td>0.415</td>
|
| 329 |
+
<td>0.339</td>
|
| 330 |
+
<td>0.435</td>
|
| 331 |
+
<td>0.417</td>
|
| 332 |
+
<td>0.481</td>
|
| 333 |
+
<td>0.304</td>
|
| 334 |
+
</tr>
|
| 335 |
+
<tr>
|
| 336 |
+
<th style="text-align: left; font-weight: normal;">OCRBench</th>
|
| 337 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.792</td>
|
| 338 |
+
<td>0.735</td>
|
| 339 |
+
<td>0.802</td>
|
| 340 |
+
<td>0.642</td>
|
| 341 |
+
<td>0.719</td>
|
| 342 |
+
<td>0.751</td>
|
| 343 |
+
<td>0.861</td>
|
| 344 |
+
<td>0.727</td>
|
| 345 |
+
</tr>
|
| 346 |
+
<tr>
|
| 347 |
+
<th style="text-align: left; font-weight: normal;">AI2D_TEST</th>
|
| 348 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.775</td>
|
| 349 |
+
<td>0.741</td>
|
| 350 |
+
<td>0.728</td>
|
| 351 |
+
<td>0.790</td>
|
| 352 |
+
<td>0.712</td>
|
| 353 |
+
<td>0.713</td>
|
| 354 |
+
<td>0.752</td>
|
| 355 |
+
<td>0.697</td>
|
| 356 |
+
</tr>
|
| 357 |
+
<tr>
|
| 358 |
+
<th style="text-align: left; font-weight: normal;">CharXiv<sub>DQ</sub></th>
|
| 359 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.600</td>
|
| 360 |
+
<td>0.766</td>
|
| 361 |
+
<td>0.516</td>
|
| 362 |
+
<td>0.637</td>
|
| 363 |
+
<td>0.751</td>
|
| 364 |
+
<td>0.595</td>
|
| 365 |
+
<td>0.761</td>
|
| 366 |
+
<td>0.482</td>
|
| 367 |
+
</tr>
|
| 368 |
+
<tr>
|
| 369 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">STEM</th>
|
| 370 |
+
</tr>
|
| 371 |
+
<tr>
|
| 372 |
+
<th style="text-align: left; font-weight: normal;">MMMU<sub>DEV_VAL</sub></th>
|
| 373 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.329</td>
|
| 374 |
+
<td>0.508</td>
|
| 375 |
+
<td>0.380</td>
|
| 376 |
+
<td>0.432</td>
|
| 377 |
+
<td>0.477</td>
|
| 378 |
+
P1+r436F=323536\P1+r6B75=1B4F41\P1+r6B64=1B4F42\P1+r6B72=1B4F43\P1+r6B6C=1B4F44\P1+r2332=1B5B313B3248\P1+r2334=1B5B313B3244\P1+r2569=1B5B313B3243\P1+r2A37=1B5B313B3246\P1+r6B31=1B4F50\ <td>0.379</td>
|
| 379 |
+
<td>0.474</td>
|
| 380 |
+
<td>0.399</td>
|
| 381 |
+
</tr>
|
| 382 |
+
<tr>
|
| 383 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Grounding / Counting</th>
|
| 384 |
+
</tr>
|
| 385 |
+
<tr>
|
| 386 |
+
<th style="text-align: left; font-weight: normal;">RefCOCO<sub>avg</sub>*</th>
|
| 387 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.732</td>
|
| 388 |
+
<td>0.317</td>
|
| 389 |
+
<td>0.581</td>
|
| 390 |
+
<td>0.451</td>
|
| 391 |
+
<td>0.084</td>
|
| 392 |
+
<td>0.304</td>
|
| 393 |
+
<td>0.785</td>
|
| 394 |
+
<td>0.018</td>
|
| 395 |
+
</tr>
|
| 396 |
+
<tr>
|
| 397 |
+
<th style="text-align: left; font-weight: normal;">CountBench</th>
|
| 398 |
+
<td style="background-color: rgba(127, 1P1$r2 q\[?12;2$y27, 127, 0.08);">0.725</td>
|
| 399 |
+
<td>0.737</td>
|
| 400 |
+
<td>0.910</td>
|
| 401 |
+
<td>0.645</td>
|
| 402 |
+
<td>0.534</td>
|
| 403 |
+
<td>0.848</td>
|
| 404 |
+
<td>0.805</td>
|
| 405 |
+
<td>0.764</td>
|
| 406 |
+
</tr>
|
| 407 |
+
<tr>
|
| 408 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Robustness / Hallucination</th>
|
| 409 |
+
</tr>
|
| 410 |
+
<tr>
|
| 411 |
+
<th style="text-align: left; font-weight: normal;">HallusionBench</th>
|
| 412 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.615</td>
|
| 413 |
+
<td>0.652</td>
|
| 414 |
+
<td>0.601</td>
|
| 415 |
+
<td>0.585</td>
|
| 416 |
+
<td>0.598</td>
|
| 417 |
+
<td>0.673</td>
|
| 418 |
+
<td>0.655</td>
|
| 419 |
+
<td>0.600</td>
|
| 420 |
+
</tr>
|
| 421 |
+
<tr>
|
| 422 |
+
<th colspan="9" style="text-align: left; background-color: rgba(127, 127, 127, 0.16);">Text</th>
|
| 423 |
+
</tr>
|
| 424 |
+
<tr>
|
| 425 |
+
<th style="text-align: left; font-weight: normal;">MMLU<sub>test</sub></th>
|
| 426 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.504</td>
|
| 427 |
+
<td>0.660</td>
|
| 428 |
+
<td>0.464</td>
|
| 429 |
+
<td>0.355</td>
|
| 430 |
+
<td>0.692</td>
|
| 431 |
+
<td>0.630</td>
|
| 432 |
+
<td>0.543</td>
|
| 433 |
+
<td>0.084</td>
|
| 434 |
+
</tr>
|
| 435 |
+
<tr>
|
| 436 |
+
<th style="text-align: left; font-weight: normal;">MMLU-Pro<sub>test</sub></th>
|
| 437 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.307</td>
|
| 438 |
+
<td>0.475</td>
|
| 439 |
+
<td>0.199</td>
|
| 440 |
+
<td>0.286</td>
|
| 441 |
+
<td>0.441</td>
|
| 442 |
+
<td>0.428</td>
|
| 443 |
+
<td>0.298</td>
|
| 444 |
+
<td>0.099</td>
|
| 445 |
+
</tr>
|
| 446 |
+
<tr>
|
| 447 |
+
<th style="text-align: left; font-weight: normal;">Multi-If</th>
|
| 448 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.373</td>
|
| 449 |
+
<td>0.470</td>
|
| 450 |
+
<td>0.443</td>
|
| 451 |
+
<td>0.304</td>
|
| 452 |
+
<td>0.687</td>
|
| 453 |
+
<td>0.523</td>
|
| 454 |
+
<td>0.464</td>
|
| 455 |
+
<td>0.236</td>
|
| 456 |
+
</tr>
|
| 457 |
+
<tr>
|
| 458 |
+
<th style="text-align: left; font-weight: normal;">IFEval</th>
|
| 459 |
+
<td style="background-color: rgba(127, 127, 127, 0.08);">0.749</td>
|
| 460 |
+
<td>0.725</td>
|
| 461 |
+
<td>0.776</td>
|
| 462 |
+
<td>0.543</td>
|
| 463 |
+
<td>0.869</td>
|
| 464 |
+
<td>0.734</td>
|
| 465 |
+
<td>0.679</td>
|
| 466 |
+
<td>0.501</td>
|
| 467 |
+
</tr>
|
| 468 |
+
</tbody>
|
| 469 |
+
</table>
|
| 470 |
+
<p><small>*Averaged over RefCOCO_val, RefCOCO_testA, RefCOCO_testB, RefCOCO+_val, RefCOCO+_testA, RefCOCO+_testB, RefCOCOg_val, RefCOCOg_test.</small></p>
|
| 471 |
+
<p><small>†SmolVLM2.2B's GQA output was scored as 0.000 under VLMEvalKit's answer-extraction rules.</small></p>
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
### vLLM
|
| 476 |
+
|
| 477 |
+
Public vLLM support is coming soon. For both text-only and vision-language inference, use:
|
| 478 |
+
|
| 479 |
+
```python
|
| 480 |
+
temperature = 0.7
|
| 481 |
+
top_p = 0.8
|
| 482 |
+
top_k = 20
|
| 483 |
+
min_p = 0.0
|
| 484 |
+
presence_penalty = 1.5
|
| 485 |
+
repetition_penalty = 1.0
|
| 486 |
+
```
|
| 487 |
+
|
| 488 |
+
## Citation
|
| 489 |
+
|
| 490 |
+
```bibtex
|
| 491 |
+
@misc{cohere_north_micro_vision_instruct,
|
| 492 |
+
title = {{North Micro Vision}: A 2.4B Native-Resolution Vision-Language Model},
|
| 493 |
+
url = {https://huggingface.co/blog/CohereLabs/meet-north-micro-vision-instruct},
|
| 494 |
+
author = {{Team Cohere}},
|
| 495 |
+
month = {August},
|
| 496 |
+
year = {2026}
|
| 497 |
+
}
|
| 498 |
+
```
|
| 499 |
+
|
| 500 |
+
## Contact
|
| 501 |
+
|
| 502 |
+
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,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"image_token_id": 255031,
|
| 146 |
+
"video_token_id": 255032,
|
| 147 |
+
"vision_start_token_id": 255028,
|
| 148 |
+
"vision_end_token_id": 255029,
|
| 149 |
+
"tie_word_embeddings": true,
|
| 150 |
+
"_name_or_path": "",
|
| 151 |
+
"eos_token_id": 255001,
|
| 152 |
+
"pad_token_id": 0,
|
| 153 |
+
"model_type": "cohere_compass",
|
| 154 |
+
"output_attentions": false
|
| 155 |
+
}
|
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
AD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
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"max_pixels": 3868706,
|
| 325 |
+
"merges_file": null,
|
| 326 |
+
"min_pixels": 16384,
|
| 327 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 328 |
+
"pad_token": "<PAD>",
|
| 329 |
+
"padding_side": "right",
|
| 330 |
+
"processor_class": "CohereCompassProcessor",
|
| 331 |
+
"sp_model_kwargs": {},
|
| 332 |
+
"spaces_between_special_tokens": false,
|
| 333 |
+
"tokenizer_class": "CohereTokenizer",
|
| 334 |
+
"unk_token": "<UNK>",
|
| 335 |
+
"use_default_system_prompt": false,
|
| 336 |
+
"video_token": "<|VIDEO_PAD|>",
|
| 337 |
+
"vision_end_token": "<|VISION_END|>",
|
| 338 |
+
"vision_start_token": "<|VISION_START|>",
|
| 339 |
+
"vocab_file": null
|
| 340 |
+
}
|
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 |
+
}
|