prince-canuma commited on
Commit
2831420
·
verified ·
1 Parent(s): 97a55e6

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +7 -44
  2. model.safetensors +1 -1
README.md CHANGED
@@ -15,64 +15,27 @@ language:
15
  - zh
16
  - ar
17
  tags:
18
- - mlx
19
  - vision
20
  - multimodal
21
  - conversational
22
  - multilingual
23
  - native-resolution
 
24
  base_model: CohereLabs/North-Micro-Vision-Instruct
25
- base_model_relation: quantized
26
  ---
27
 
28
- # North Micro Vision Instruct — NVFP4 (MLX)
29
-
30
- This repository contains an **MLX conversion** of [CohereLabs/North-Micro-Vision-Instruct](https://huggingface.co/CohereLabs/North-Micro-Vision-Instruct), prepared for inference with [MLX-VLM](https://github.com/Blaizzy/mlx-vlm).
31
-
32
- North Micro Vision Instruct is a compact 2.4B-parameter vision-language model from Cohere. It supports native-resolution and multi-image inputs, multilingual conversations, visual question answering, captioning, grounding, OCR, and chart/document understanding.
33
-
34
- ## Conversion details
35
-
36
- - **Quantization:** NVFP4
37
- - **Bits:** 4
38
- - **Group size:** 16
39
- - **Vision tower:** Preserved in the source precision
40
-
41
- The model weights were converted from the official checkpoint. Refer to the [original model card](https://huggingface.co/CohereLabs/North-Micro-Vision-Instruct) for architecture details, evaluation results, intended uses, and limitations.
42
-
43
- ## Installation
44
-
45
- Cohere Compass support is currently available on the MLX-VLM port branch. Until it is included in a released package, install it with:
46
 
47
- ```bash
48
- pip install -U "git+https://github.com/Blaizzy/mlx-vlm.git@pc/mlx-vlm-port"
49
- ```
50
 
51
- After Compass support is released, the standard package can be used:
52
 
53
  ```bash
54
  pip install -U mlx-vlm
55
  ```
56
 
57
- ## Usage
58
-
59
  ```bash
60
- mlx_vlm.generate \
61
- --model mlx-community/North-Micro-Vision-Instruct-nvfp4 \
62
- --image <path-or-URL-to-image> \
63
- --prompt "What do you see?" \
64
- --max-tokens 128 \
65
- --temperature 0
66
  ```
67
-
68
- On Apple silicon, this format runs directly. On MLX CUDA, pass `--quantize-activations` (or `-qa`) for this quantization mode.
69
-
70
- The original model was trained with multimodal contexts up to 8K tokens. Although its language backbone supports a longer context, longer multimodal prompts were not validated by the model authors.
71
-
72
- ## Other MLX variants
73
-
74
- BF16 and quantized conversions are available in the [North-Vision collection](https://huggingface.co/collections/mlx-community/north-vision-6a7c9be6ccc1cd992a83aecb).
75
-
76
- ## License
77
-
78
- This conversion is released under the source model's [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Use is also subject to the limitations and responsible-use guidance in the [original model card](https://huggingface.co/CohereLabs/North-Micro-Vision-Instruct).
 
15
  - zh
16
  - ar
17
  tags:
 
18
  - vision
19
  - multimodal
20
  - conversational
21
  - multilingual
22
  - native-resolution
23
+ - mlx
24
  base_model: CohereLabs/North-Micro-Vision-Instruct
 
25
  ---
26
 
27
+ # mlx-community/North-Micro-Vision-Instruct-nvfp4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
+ This model was converted to MLX format from [`CohereLabs/North-Micro-Vision-Instruct`](https://huggingface.co/CohereLabs/North-Micro-Vision-Instruct)
30
+ using mlx-vlm version **0.6.13**.
31
+ Refer to the [original model card](https://huggingface.co/CohereLabs/North-Micro-Vision-Instruct) for more details on the model.
32
 
33
+ ## Use with mlx
34
 
35
  ```bash
36
  pip install -U mlx-vlm
37
  ```
38
 
 
 
39
  ```bash
40
+ python -m mlx_vlm.generate --model mlx-community/North-Micro-Vision-Instruct-nvfp4 --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
 
 
 
 
 
41
  ```
 
 
 
 
 
 
 
 
 
 
 
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b3637dcf3bcf90aefbddad6c8b8f6b66cd6c52ec816b7388ab40b6977ef4fa94
3
  size 2172188587
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f15b00db530161dc15f7462bfcfde450030406fb0756bcc2571544f0cda36a0b
3
  size 2172188587