Skip to content
Projects

About

MolmoWeb is an open multimodal web agent built by Ai2. Given a natural-language task, it controls a web browser (clicking, typing, scrolling and navigating) to complete it. This repository contains MolmoWeb 2: the agent, the evaluation benchmarks, and the code to reproduce its SFT and RL training.

Other Projects

How these counts are measured

Measured star growth

in 24h
+17
in 7 days
+61
in 15 days
+63
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

MolmoWeb

Paper  |  Blog Post  |  Demo  |  Models  |  Data


MolmoWeb is an open multimodal web agent built by Ai2. Given a natural-language task, it controls a web browser (clicking, typing, scrolling and navigating) to complete it. This repository contains MolmoWeb 2: the agent, the evaluation benchmarks, and the code to reproduce its SFT and RL training.

MolmoWeb 1 (the Molmo-based models, their training code and the annotation tool) is frozen at tag v1.0 and branch molmoweb1.

Table of Contents


Models

All models are in the MolmoWeb 2 collection on HuggingFace, and the training data is in MolmoWeb 2 Data:

Dataset Contents
MolmoWebMix2 62K web trajectories (screenshots + actions): long-tail websites, harder tasks, multi-website tasks, safety refusals, and filtered MolmoWebMix
MolmoWebMix2-Grounding 71K grounding examples: pointing on natural images and element grounding on web screenshots
MolmoWebMix2-VQA 71K screenshot question-answering examples

sft/data/prepare_data.py downloads all three and lays them out for the SFT code.

Model Base model Training
MolmoWeb2-4B Qwen3.5-4B SFT stage 1 + stage 2, then RL
MolmoWeb2-9B Qwen3.5-9B SFT stage 1 + stage 2, then RL
MolmoWeb2-27B Qwen3.6-27B SFT stage 1 + stage 2, then RL

The model sees the task, the last 30 steps as text and the current screenshot, and replies with a thought plus one computer_use tool call (clicks in 0-1000 coordinates).

Results

Model WebVoyager Online-Mind2Web DeepShop WebTailBench2 (process / outcome) Odysseys (rubric avg / perfect)
MolmoWeb2-4B, SFT stage 1 76.6 50.3 36.2 28.8 / 14.7 41.9 / 13.0
MolmoWeb2-4B, SFT stage 2 83.9 52.6 51.3 42.3 / 21.1 46.1 / 19.3
MolmoWeb2-4B (RL) 89.1 60.3 62.4 55.3 / 34.2 55.3 / 30.5
MolmoWeb2-9B, SFT stage 1 78.2 48.9 31.1 29.7 / 15.2 44.6 / 13.5
MolmoWeb2-9B, SFT stage 2 86.2 54.3 51.3 42.8 / 23.6 50.9 / 20.7
MolmoWeb2-9B (RL) 88.5 66.8 65.8 52.7 / 34.5 63.2 / 38.5
MolmoWeb2-27B, SFT stage 1 82.4 58.7 37.1 32.5 / 16.9 53.3 / 20.2
MolmoWeb2-27B, SFT stage 2 91.0 64.8 61.6 53.7 / 32.7 63.0 / 37.8
MolmoWeb2-27B (RL) 94.2 75.3 68.4 67.2 / 41.6 73.3 / 46.0

Success rates (%). Browser Use environment, up to 100 steps, 1280x720 viewport, sampling with temperature 0.7 and top_p 0.8 (the benchmarks defaults). Each benchmark is run once and judged three times; the table reports the average. Online-Mind2Web is judged with WebJudge and WebTailBench2 with the Universal Verifier, both with GPT-6 Luna. For MolmoWeb2-27B (RL), the Online-Mind2Web and Odysseys scores were judged by the benchmarks' authors for their official leaderboards.


Installation

Requires Python >=3.10,<3.13. We use uv for dependency management.

# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install
git clone [email protected]:allenai/molmoweb.git
cd molmoweb
uv venv --python ">=3.10,<3.13"
uv sync

# Install Playwright browsers (needed for local browser control)
uv run playwright install --with-deps chromium

Serving a model needs vLLM, installed separately on a GPU machine. We use vLLM 0.19.1 with transformers 5.18.0; newer transformers releases (e.g. 5.25) fail to start the server:

uv venv vllm-env --python 3.12
uv pip install --python vllm-env/bin/python "vllm==0.19.1" "transformers==5.18.0"

Environment Variables

# Browserbase (required when --env_type browserbase)
export BROWSERBASE_API_KEY="your-browserbase-api-key"
export BROWSERBASE_PROJECT_ID="your-browserbase-project-id"

# Browser Use Cloud (required when --env_type browser_use)
export BROWSER_USE_API_KEY="your-browser-use-api-key"

# OpenAI (judges: webvoyager, WebJudge, Universal Verifier; and the gpt_axtree agent)
export OPENAI_API_KEY="your-openai-api-key"

# Google Gemini (gemini_cua / gemini_axtree agents and Gemini-based judges)
export GOOGLE_API_KEY="your-google-api-key"

# Anthropic (opus5_solver agent)
export ANTHROPIC_API_KEY="your-anthropic-api-key"

Quick Start

1. Serve MolmoWeb 2 with vLLM

vllm serve allenai/molmoweb2_9B --port 8005 --max-model-len 65536    # or allenai/molmoweb2_4B, allenai/molmoweb2_27B

vLLM downloads the model from HuggingFace and serves it with the chat template in the repo, which is the one the model was trained with. Don't pass --chat-template: a different template gives valid-looking output and silently lower scores. For the 27B, add --tensor-parallel-size 2 on 80 GB GPUs. Without a CUDA compiler (nvcc) on the machine, add --gdn-prefill-backend triton: the default kernel for Qwen3.5's linear-attention layers is compiled on the first request, and the server stops responding if it cannot be.

To serve a checkpoint you trained yourself, run sft/prepare_checkpoint.sh on it first (it adds the chat template and preprocessor configs), then vllm serve <checkpoint dir>.

2. Run a benchmark

uv run python -m benchmarks.benchmarks run \
    --benchmark webvoyager \
    --agent_type molmoweb2 \
    --endpoint_or_checkpoint http://127.0.0.1:8005 \
    --env_type simple \
    --results_dir ./results/wv_molmoweb2 \
    --num_workers 8

To try your own tasks, use --benchmark custom --data_path benchmarks/jsons/custom_example.json.

3. Judge the results

uv run python -m benchmarks.benchmarks judge \
    --benchmark webvoyager \
    --results_dir ./results/wv_molmoweb2 \
    --judge_type webvoyager

Each task writes a directory under --results_dir with trajectory.json, screenshots and an HTML view. Judges read those files; they never rerun the agent.


Chrome Extension

extension/ runs MolmoWeb 2 in a Chrome side panel, on the tab you are looking at. You type a task, and it clicks, types and scrolls in your own browser while showing its reasoning and each action. For safety it only visits sites on an allowlist.

The MolmoWeb Chrome extension

With the model served by vLLM, start the extension's agent server and load extension/ in chrome://extensions (Developer mode → Load unpacked):

uv run python extension/server/agent_server.py --vllm http://localhost:8005

See extension/README.md for installation and usage.


Benchmarks

benchmarks/ is the evaluation framework: WebVoyager, Online-Mind2Web, DeepShop, WebTailBench (v2), Odysseys, the safety benchmarks WebTailBench-Refusals and SafeArena (harmful vs. safe tasks on self-hosted sites), and custom tasks. Evaluation has two stages: run (the agent executes tasks in a browser and logs trajectories) and judge (an LLM judge scores each trajectory).

Agents (--agent_type): molmoweb2, plus the baselines fara15, qwen_vllm / qwen_vllm_axtree, qwen35_computer_use, glm_solver, opus5_solver, gemini_cua, gemini_axtree and gpt_axtree.

Browser environments (--env_type): simple (local Chromium), browser_use and browserbase (hosted browsers; add --proxies true for a residential proxy), static (no browser, for WebTailBench-Refusals), and safearena (local Chromium on the self-hosted SafeArena sites).

The reported numbers use Browser Use, 100 steps, a 1280x720 viewport, temperature 0.7 and top_p 0.8 (the defaults). See benchmarks/README.md for every benchmark, agent, judge and CLI option.


Training

MolmoWeb 2 is trained in three steps, starting from Qwen3.5:

Step Code What it does
SFT stage 1 sft/ 26,000 steps on web trajectories (88%), grounding (6%) and screenshot QA (6%)
SFT stage 2 sft/ One epoch on harder, longer trajectories, grounding and refusal data
RL rl/ Online GRPO on live websites through Browser Use, with an LLM judge as reward

Each folder has its own README with the data layout, configs and commands.


Repository Layout

Path What it is
agent/ Web agents: molmoweb2_vllm.py (MolmoWeb 2) and the baselines. actions.py is the shared action space.
benchmarks/ Evaluation CLI, task files, agent dispatch and judges.
utils/ Browser environments, the episode loop and trajectory visualization.
sft/ MolmoWeb 2 SFT (LlamaFactory).
rl/ MolmoWeb 2 online RL (slime).
extension/ Chrome extension that runs MolmoWeb 2 in your own browser, and its agent server.
tests/ Tests for the Browser Use environment (sessions are created, always stopped, and proxies are set correctly) and for SafeArena (task loading, the judges' prompts, scoring, site hosting, and an episode against a fake local site). No GPU, network or API keys needed (uv run python -m pytest -q tests).

Citation

@article{molmoweb2,
    title   = {{MolmoWeb2}: Advancing Fully Open Visual Web Agents},
    author  = {Peter Sushko and Guang Yang and Mingqian Zheng and Shakti Senthil and Zixian Ma and Harsh Trivedi and Taylor Blanton and Taira Anderson and Ranjay Krishna and Noah A. Smith and Ashish Sabharwal and Pradeep Dasigi},
    year    = {2026},
    url     = {https://allenai.org/papers/molmoweb2},
}

License

Apache 2.0. See LICENSE for details.

Explore related projects

Loading…