Molmo
Molmo is a family of vision-language models that can understand and analyze images while answering questions about them in natural language. Molmo also supports pointing to portions of the image. For example, when you ask Molmo to count the number of people in an image it can also highlight each individual.
What makes Molmo particularly valuable for developers is its ability to process both visual and textual information together, enabling applications that can "see" and reason about images. Unlike many vision models that rely on synthetic or proprietary training data, Molmo was built using only real-world, openly available datasets that you can access and verify. To get familiar with Molmo's capabilities, try it out on the Ai2 Playground.
Possible use cases
Molmo's vision-language capabilities make it ideal for applications that need to understand visual content:
- Content Moderation: Automatically analyze images and videos for policy violations or inappropriate content
- E-commerce: Generate product descriptions, categorize items, and answer customer questions about product images
- Accessibility Tools: Create alt-text for images, describe visual content for visually impaired users
- Document Processing: Extract information from charts, graphs, tables, and other visual documents
- Quality Control: Inspect products, identify defects, and ensure manufacturing standards
- Education: Build interactive learning tools that can explain diagrams, charts, and visual concepts
- Robotics: Enable robots to understand and navigate visual environments by analyzing still scenes
Performance comparison:
- Molmo-72B: Comparable to GPT-4V on visual reasoning tasks while being completely open
- Molmo-7B: Strong performance for most vision applications with efficient resource usage
- MolmoE-1B: Highly efficient model using mixture-of-experts architecture for fast inference
Model variants
Molmo offers two types of model architectures:
-
Dense Models
- Molmo 7B-D: Dense 7.6B parameter model
- Molmo 7B-O: Open 7.3B parameter model (uses Olmo as the underlying LLM)
- Molmo 72B: Large 72B parameter model
-
Mixture-of-Experts (MoE) Model
- MolmoE 1B: Efficient 1.2B active parameters (6.9B total)
- Uses dynamic expert routing with 64 experts (8 active per token)
- Optimized for inference efficiency while delivering strong performance relative to its active parameter count
Inference code example
You can use Molmo with Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
from PIL import Image
import requests
processor = AutoProcessor.from_pretrained(
'allenai/Molmo-7B-D-0924',
trust_remote_code=True,
torch_dtype='auto',
device_map='auto'
)
model = AutoModelForCausalLM.from_pretrained(
'allenai/Molmo-7B-D-0924',
trust_remote_code=True,
torch_dtype='auto',
device_map='auto'
)
inputs = processor.process(
images=[Image.open(requests.get("https://picsum.photos/id/237/536/354", stream=True).raw)],
text="Describe this image."
)
inputs = {k: v.to(model.device).unsqueeze(0) for k, v in inputs.items()}
output = model.generate_from_batch(
inputs,
GenerationConfig(max_new_tokens=200, stop_strings="<|endoftext|>"),
tokenizer=processor.tokenizer
)
generated_tokens = output[0,inputs['input_ids'].size(1):]
generated_text = processor.tokenizer.decode(generated_tokens, skip_special_tokens=True)
print(generated_text)
# >>> This image features an adorable black Labrador puppy, captured from a top-down perspective. The puppy is sitting on a wooden deck, which is composed ...
Explore how Molmo performs across perception and action tasks through the videos below:
- Open-Ended QA
- Molmo meets SAM
- Counting with Pointing
- Molmo on Robotics Images
- Augmenting how we see with AI
- Molmo Robotics Demo
Open-ended question answering
See how Molmo responds to diverse visual questions across real-world images.
Molmo with SAM Demo
A hands-on look at Molmo's capabilities with SAM.
Counting with pointing
Watch Molmo count objects by pointing to each one individually—visually grounded and accurate.
Molmo on robotics images
A hands-on look at Molmo in action, interacting with robotics images to answer questions, identify components, and support real-world robotic tasks.
Augmenting how we see with AI
Explore how Molmo enhances human perception by grounding visual inputs with rich, descriptive understanding — extending how we interpret complex images.
Molmo robotics demo
Molmo demonstrates its understanding of real-world robotics scenes, identifying objects, tools, and spatial layouts across diverse environments.
Training data
Molmo is fine-tuned on the PixMo datasets, a collection of high-quality vision-language training data built from a mix of real-world and synthetic openly available sources. These datasets cover diverse visual tasks including image captioning, visual question answering, pointing, document understanding, and specialized domains like clock reading.