North Micro Vision: visual tower and deepstack mergers

Community extraction of all model.visual.* tensors from CohereLabs/North-Micro-Vision-Instruct, revision fa548d9aa62c1220bfd21fc6cfc465f1bd2a1a40. It includes the vision tower, final merger, and three deepstack mergers; the language model is not included. Original tensor keys, shapes and dtypes are retained. See tensor_mapping.json, extraction.json and validation.json for source byte checks and measured validation.

Loading

Requires PyTorch, torchvision, accelerate, safetensors, Pillow and Transformers 5.21.1 (the verified runtime). For other versions, verify that CohereCompassVisionModel and its processor are compatible.

import sys, torch
from PIL import Image
from huggingface_hub import snapshot_download
root = snapshot_download('gatilin/north-micro-vision-encoder')
sys.path.insert(0, root)
from component import load_model, load_processor
model = load_model(root)
processor = load_processor(root)
inputs = processor(images=Image.open('image.jpg').convert('RGB'), return_tensors='pt')
inputs['pixel_values'] = inputs['pixel_values'].to(next(model.parameters()).dtype)
with torch.inference_mode():
    result = model(hidden_states=inputs['pixel_values'], grid_thw=inputs['image_grid_thw'])
print(result.last_hidden_state.shape, result.pooler_output.shape)

The output includes the unmerged visual tokens, final merged features and intermediate deepstack features. The component alone is not a complete vision-language model.

License and verification

The source model is released under Apache 2.0. The original source model card is available at the link above. The local CPU test in validation.json is a smoke test; it does not establish parity with the complete source VLM or GPU inference.

Downloads last month
19
Safetensors
Model size
0.5B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for gatilin/north-micro-vision-encoder

Finetuned
(5)
this model

Collection including gatilin/north-micro-vision-encoder