Model reference · open weights
Molmo3 is an open-weight language model from allenai. Molmo3-4B (FP32) weighs 9.8 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the allenai/Molmo3-4B model card, 2026-12-04
What it is
| Released by | allenai |
|---|---|
| Released | 2026-11-24 |
| Parameters | 4.9B |
| VRAM | 9.8 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 8K each | |||
| RTX 3060 12 GB | 11.6 GB | ||
| RTX 4060 Ti 16 GB | 3 | all 16K | 15.4 GB |
| RTX 3090 24 GB | 9 | all 16K | 23.4 GB |
| RTX 4090 24 GB | 9 | all 16K | 23.4 GB |
| RTX 5090 32 GB | 15 | all 16K | 31.0 GB |
| L40S 48 GB | 26 | all 16K | 44.0 GB |
| A100 80 GB | 55 | all 16K | 78.2 GB |
| H100 80 GB | 51 | all 16K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 64 | all 16K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 75 | all 16K | 107 GB |
| H200 141 GB | 101 | all 16K | 138 GB |
| B200 180 GB | 132 | all 16K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 7 | all 16K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 14 | all 16K | 15.4 GB a card |
| Requests at once | 8K tokens each |
|---|---|
| 1 | 13.0 GB |
| 5 | 17.8 GB |
| 8 | 21.4 GB |
| 16 | 31.1 GB |
| 32 | 50.4 GB |
| 64 | 89.1 GB |
One card, with vLLM's small-card settings.
Builds
From the model card
Molmo3 is a family of fully open vision-language models from the Allen Institute for AI (Ai2), focused on spatial and 3D understanding and grounding. It brings geometric perception, 2D and 3D grounding, spatial reasoning, and embodied reasoning into one model, while keeping the general image, video, and multi-image abilities of Molmo2. Molmo3 is trained on publicly available third-party datasets and a set of new datasets we will release. Molmo3 also has an 8B variant. Molmo3-4B can:
Using Molmo3 · Examples · vLLM · Evaluations · License and Use · Model Details · Uses · Training Details · Evaluation Details · Technical Specifications · Citation · Glossary · More Information · Model Card Authors · Model Card Contact
Molmo3 runs with Transformers through trust_remote_code: this repo holds the model and processor code (modeling_molmo3.py, processing_molmo3.py, configuration_molmo3.py) alongside the weights.
A transformers implementation is in progress.
conda create --name molmo3 python=3.11
conda activate molmo3
pip install torch torchvision "transformers>=5.2" numpy pillow
pip install torchcodec # for video; falls back to PyAV (`pip install av`)
We tested with transformers 5.5.3 and PyTorch 2.11.
All examples below use this setup:
import io, json, urllib.request
import torch
from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "allenai/Molmo3-4B"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id, trust_remote_code=True, dtype=torch.bfloat16).cuda().eval()
def generate(messages, images=None, videos=None, video=None, max_new_tokens=512):
"""Run one chat and decode the answer, including its points and masks."""
inputs = processor.apply_chat_template(
messages, images=images, videos=videos, tokenize=True).to("cuda")
out = model.generate(**inputs, max_new_tokens=max_new_tokens, do_sample=False,
return_dict_in_generate=True)
ids = out.sequences[0, inputs["input_ids"].shape[1]:]
answer = processor.decode(ids, out.grounding[0], images=images, video=video)
return answer, processor.answer_message(ids, out.grounding[0])
def load_image(name):
url = f"https://raw.githubusercontent.com/scikit-image/scikit-image/v0.19.3/skimage/data/{name}"
return Image.open(io.BytesIO(urllib.request.urlopen(url).read())).convert("RGB")
Molmo3 uses separate heads for pointing and segmentation instead of writing coordinates as text.
generate(..., return_dict_in_generate=True) returns the heads' output in out.grounding
alongside the tokens, with one entry per chat in the batch.
The heads output location ids. To get human-readable output, processor.decode combines the heads' output,
the output tokens, and preprocessing metadata to build a structured JSON document that includes the
grounding elements.
For example:
image = load_image("coffee.png")
messages = [{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "Point to the spoon."}]}]
inputs = processor.apply_chat_template(messages, images=[image], tokenize=True).to("cuda")
out = model.generate(**inputs, max_new_tokens=64, do_sample=False, return_dict_in_generate=True)
ids = out.sequences[0, inputs["input_ids"].shape[1]:] # the generated tokens
document = processor.decode(ids, out.grounding[0], images=[image])
print(json.dumps(document))
Shows:
{"text": "spoon",
"multi_modal": [{"type": "points", "label": "spoon", "grounding_id": 1, "confidence": 0.999,
"coordinates": [{"mm_ix": 0, "x": 366.8, "y": 281.5, "x_norm": 0.611, "y_norm": 0.704}],
...}],
"type": "text"}
The text in the text field will include an XML marker for each grounding element, such as (other types use, , , and).
The multi_modal field contains those grounding elements in JSON format.
Grounding elements include these fields:
grounding_id an id that matches the ids in the XML markers.type which shows the type of grounding it islabel giving the element a text labelconfidence a score between 0 and 1 showing how confident the model is the object exists in the imagecoordinates specify the grounding, it is different for different grounding typesmasks for segmentation, a list of the COCO RLE encoding of the masksThe grounding types include:
type | coordinates entries |
|---|---|
points | mm_ix (image index), x, y |
points_3d | mm_ix, x, y, depth (meters; negative means unmeasurable) |
points_normal | mm_ix, x, y, nx, ny, nz (camera coordinates: x right, y down, z into the scene; null when there is no valid normal) |
video_points | mm_ix, time (seconds), x, y |
video_tracks | mm_ix, object_id, time, x, y |
segmentation | no ` |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.