Image-Text-to-Text
MLX
Safetensors
English
molmo3
mlx-vlm
apple-silicon
quantized
molmo
multimodal
grounding
spatial
conversational
custom_code
4-bit precision
Run this model with HF Jobs
Run VisualInference/Molmo3-4B-MLX-4bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/VisualInference/Molmo3-4B-MLX-4bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/VisualInference/Molmo3-4B-MLX-4bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/VisualInference/Molmo3-4B-MLX-4bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use VisualInference/Molmo3-4B-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VisualInference/Molmo3-4B-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("VisualInference/Molmo3-4B-MLX-4bit") config = load_config("VisualInference/Molmo3-4B-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
File size: 5,389 Bytes
9cb5e06 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | ---
license: apache-2.0
license_link: https://www.apache.org/licenses/LICENSE-2.0
base_model: allenai/Molmo3-4B
base_model_relation: quantized
library_name: mlx
pipeline_tag: image-text-to-text
language:
- en
tags:
- mlx
- mlx-vlm
- apple-silicon
- quantized
- molmo
- molmo3
- multimodal
- grounding
- spatial
---
# Molmo3-4B for MLX, 4bit
[Molmo3-4B](https://huggingface.co/allenai/Molmo3-4B) is Ai2's open vision-language model for spatial and 3D
understanding and grounding (pointing, segmentation masks, depth, 3D boxes), built on Qwen3-4B-Instruct-2507 and SigLIP 2 so400m
(Apache 2.0). This repository is a 4-bit build for Apple silicon in
[mlx-vlm](https://github.com/Neywa-Labs/mlx-vlm) format: 3.7 GiB of weights, for Macs with 8 GB of memory.
The decoder's linear layers and output head are quantized to 4 bits at group size 64. The token embedding
(0.7 GiB), the image encoder, connector, pointing and segmentation heads stay in bf16, as mlx-vlm's Molmo3 port does
by design, so bits per weight below are averaged over the whole model.
| Build | Weights | Bits per weight | Smallest Mac | Decode speed | Peak memory (smoke test) |
|---|---|---|---|---|---|
| [original](https://huggingface.co/allenai/Molmo3-4B) (fp32 checkpoint) | 18.2 GiB | 32 | 32 GB as is; 16 GB in bf16 | not run here | |
| **4bit** (this repo) | 3.7 GiB | 6.51 | 8 GB | 55.2 tok/s | 5.2 GiB |
| [8bit](https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit) | 5.6 GiB | 9.81 | 8 GB (16 GB comfortable) | 38.0 tok/s | 7.1 GiB |
Measured on a Mac mini (M4 Pro, 48 GB), greedy decoding, mlx-vlm 0.8.3. Decode speed is from a word-problem answer;
peak memory is the highest across the smoke prompts (each under 1k prompt tokens plus at most one image).
Held-out loss against the original and task checks: coming. No other numbers are claimed.
## Use
Molmo3 support arrived in mlx-vlm 0.8.3 (2026-12-04, pull request 2902).
```sh
pip install -U "mlx-vlm>=0.8.3"
mlx_vlm.generate --model VisualInference/Molmo3-4B-MLX-4bit --image photo.jpg \
--prompt "Describe this image." --max-tokens 256
```
Pointing and masks come from separate grounding heads, so decode them with the generation's cache:
```python
from PIL import Image
from mlx_vlm import generate, load
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("VisualInference/Molmo3-4B-MLX-4bit", trust_remote_code=False)
image = Image.open("photo.jpg").convert("RGB")
cache = model.make_cache()
prompt = apply_chat_template(processor, model.config, "Point to the spoon.", num_images=1)
result = generate(model, processor, prompt, image=[image], prompt_cache=cache,
max_tokens=128, temperature=0, verbose=False)
print(processor.decode_text(result.text, model.grounding(cache)[0], images=[image]))
```
`Segment the spoon.` returns a COCO RLE mask instead. Use a fresh cache for each multimodal prompt. The mlx-vlm port
does not support chunked prefill, prefix-cache reuse, speculative decoding or KV-cache quantization for this model.
The 3D outputs (depth, normals, 3D boxes) decode through the same processor but were not checked here.
## Smoke test
Greedy, this build, Mac mini (M4 Pro, 48 GB):
- **code** (294 tokens): `Here is a Python function that merges overlapping intervals: python def merge_intervals(intervals): # Sort the intervals based on the start time intervals.sort(key=lambda x: x[0]) # Initialize an empty list to store the merged intervals merged …`
- **reasoning** (190 tokens): `To find out how much change Maya gets, we first need to calculate the total cost of the pencils she bought. The cost of 3 pencils is $0.75. To find the cost of 14 pencils, we can divide 14 by 3 to get the number of sets of 3 pencils (5 sets with 1 pencil left …`
- **multilingual** (26 tokens): `Spanish: La biblioteca abre a las nueve en la mañana. Chinese: 图书馆上午九点开门。`
- **image** (91 tokens): `The image shows a logo with the text "MLX 42" prominently displayed at the top. Below the text are two main shapes: 1. A red square on the left side 2. A blue circle on the right side These shapes are simple and solid-colored, creating a striking contrast ag …`
- **point** (16 tokens): `<points coords="<|POINT_PATCH|><|POINT_SUBPATCH|><|POINT_LOC|>1<|POINT_PATCH|>">blue circle</points>` Decoded: `{'text': '<points id="1">blue circle</points>', 'multi_modal': [{'coordinates': [{'mm_ix': 0, 'x': 513.0434782608695, 'y': 288.04347826086956, 'x_norm': 0.8016304347826086, 'y_norm': 0.720108695652174` (640×400 image; the circle spans x 420-600, y 200-380).
Arithmetic check: 10 short word problems, greedy, asking for a final `Answer: <number>`. This build 10/10; the same model converted to bf16 without quantization 10/10. In the free-form smoke prompt above this build miscounted the pencils (the right change is $1.50); asked the same problem with the answer-format line it gets it right. Treat single greedy answers from a 4B model as fallible either way.
## License and use
Apache 2.0, as the original. Ai2 notes the model is trained on third-party datasets, some of them for academic and
non-commercial research use only, and is intended for research and educational use under its
[Responsible Use Guidelines](https://allenai.org/responsible-use). Check the
[original card](https://huggingface.co/allenai/Molmo3-4B) before other use.
|