CohereLabs/North-Micro-Vision-Instruct
Captured source
source ↗North Micro Vision Instruct
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.
Developed by Cohere.
> Technical deep dive: Read the North Micro Vision technical blog post for architecture, training, and evaluation details.
Highlights
- Native-resolution image processing that preserves aspect ratios and fine visual detail.
- Broad image-understanding capabilities across VQA, captioning, grounding, OCR, charts, and documents.
- Multilingual and multi-image support.
- Compact 2.4B-parameter scale suited to customization and deployment experimentation.
- Apache 2.0-licensed model weights.
Model Details
| Property | Value | | --- | --- | | Model ID | CohereLabs/North-Micro-Vision-Instruct | | Total parameters | 2.4B | | Language model | 2B parameters | | Vision encoder | 400M parameters; custom-trained starting from SigLIP 2 SO400M | | Inputs | Interleaved text and images | | Output | Text | | Languages | English, German, French, Spanish, Italian, Portuguese, Hindi, Japanese, Korean, Chinese, Arabic, and more | | Tokenizer vocabulary size | 262,144 | | LM Backbone context window | 128K tokens | | Multimodal training context | 8K tokens | | Checkpoint precision | bfloat16 | | License | Apache 2.0 |
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.
Quickstart
Installation
Install PyTorch 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:
uv pip install accelerate pillow uv pip install "git+https://github.com/huggingface/transformers.git"
Once Transformers 5.16.0 is available on PyPI, install the released package with:
uv pip install accelerate pillow "transformers==5.16.0"
Flash Attention 2 is optional. On supported CUDA systems, install it with:
uv pip install flash-attn --no-build-isolation
If you do not use uv, replace uv pip with pip in the commands above.
Transformers
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.
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "CohereLabs/North-Micro-Vision-Instruct"
processor = AutoProcessor.from_pretrained(
model_id,
)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
)
# To enable Flash Attention 2, load the model with the following settings:
# model = AutoModelForImageTextToText.from_pretrained(
# model_id,
# dtype=torch.bfloat16,
# attn_implementation="flash_attention_2",
# device_map="auto",
# )
image_url = "https://cdn-uploads.huggingface.co/production/uploads/66d732effe6684fc16b12c28/Io_5OCmftsmH-n158ZtPs.png"
messages = [
{
"role": "user",
"content": [
{"type": "image", "url": image_url},
{"type": "text", "text": "What do you see?"},
],
}
]
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=128,
do_sample=True,
temperature=0.7,
top_p=0.8,
top_k=20,
)
generated_ids = [
output_ids[len(input_ids) :]
for input_ids, output_ids in zip(inputs.input_ids, outputs)
]
response = processor.batch_decode(
generated_ids,
skip_special_tokens=True,
clean_up_tokenization_spaces=False,
)[0]
print(response)The example uses the recommended Transformers sampling settings. For deterministic output, set do_sample=False and omit temperature, top_p, and top_k.
Architecture
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.
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.
!North-Micro-Vision-Instruct-Architecture *High-level North Micro Vision architecture, consisting of a native-resolution vision encoder, a projector, and a language model.*
Grounding Coordinates
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:
x1_px = x1 / 1000 * image_width y1_px = y1 / 1000 * image_height x2_px = x2 / 1000 * image_width y2_px = y2 / 1000 * image_height
vLLM
Public vLLM support is coming soon. Until it is available, use Transformers as shown above. The recommended vLLM settings will be:
temperature = 0.7 top_p = 0.8 top_k = 20 min_p = 0.0 presence_penalty = 1.5 repetition_penalty = 1.0
Intended Use
North Micro Vision Instruct is intended for research and development use cases such as:
- Prototyping and task-specific fine-tuning.
- General visual question answering and image captioning.
- Multilingual and multi-image understanding.
- Visual grounding and spatial understanding.
- OCR, chart and document understanding, and...
Excerpt shown — open the source for the full document.
Notability
notability 4.0/10Low-traction micro vision model from Cohere.