Skip to main content

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:

  1. 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
  2. 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 question answering

See how Molmo responds to diverse visual questions across real-world images.

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.