Instructions to use allenai/molmoweb2_4B_stage2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/molmoweb2_4B_stage2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="allenai/molmoweb2_4B_stage2") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("allenai/molmoweb2_4B_stage2") model = AutoModelForMultimodalLM.from_pretrained("allenai/molmoweb2_4B_stage2", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use allenai/molmoweb2_4B_stage2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "allenai/molmoweb2_4B_stage2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/molmoweb2_4B_stage2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/allenai/molmoweb2_4B_stage2
- SGLang
How to use allenai/molmoweb2_4B_stage2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "allenai/molmoweb2_4B_stage2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/molmoweb2_4B_stage2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "allenai/molmoweb2_4B_stage2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/molmoweb2_4B_stage2", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use allenai/molmoweb2_4B_stage2 with Docker Model Runner:
docker model run hf.co/allenai/molmoweb2_4B_stage2
MolmoWeb2-4B (Stage 2 SFT)
This is an intermediate training checkpoint. To use MolmoWeb2 as an agent, use the final RL model allenai/molmoweb2_4B.
This is MolmoWeb2-4B (Stage 2 SFT), the Stage 2 supervised fine-tuning checkpoint of MolmoWeb2-4B (one epoch, 3,521 steps, on a higher-quality trajectory set with grounding and safety refusal data). RL has not been applied to it; it is the starting point for RL. It is released for research and reproducibility. MolmoWeb2 is a family of fully open multimodal web agents from Ai2, in 4B, 9B and 27B sizes. Given a task in natural language, the agent looks at a screenshot of the current page and emits the next browser action (click, type, scroll, visit URL, ...) as a tool call, repeating until the task is done.
Ai2 is committed to open science: the models, training data, data-generation pipeline, training code and a technical report are all released.
Table of Contents
Model Details · Uses · Training Details · Evaluation · Model Examination · Environmental Impact · Technical Specifications · Citation · More Information · Model Card Authors · Model Card Contact
Model Details
Model description
MolmoWeb2 is a family of fully open multimodal web agents from Ai2, in 4B, 9B and 27B sizes. Given a task in natural language, the agent looks at a screenshot of the current page and emits the next browser action (click, type, scroll, visit URL, ...) as a tool call, repeating until the task is done. This repository holds the Stage 2 SFT checkpoint of the 4B model. At every size, the final (RL) MolmoWeb2 models outperform all prior similarly sized open-weight web agents we evaluated on WebVoyager, Online-Mind2Web, DeepShop and Odysseys, and are on par with GLM 5.3 Flash, roughly 12× their size, and with GPT-5.4.
| Field | Details |
|---|---|
| Developed by | Peter Sushko, Guang Yang, Mingqian Zheng, Shakti Senthil, Zixian Ma, Harsh Trivedi, Taylor Blanton, Taira Anderson, Ranjay Krishna, Noah A. Smith, Ashish Sabharwal, Pradeep Dasigi; Allen Institute for AI (Ai2), University of Washington, Carnegie Mellon University |
| Model date | December 2026 |
| Shared by | Allen Institute for AI (Ai2) |
| Model type | MolmoWeb2 is a specialized model intended to be used as a visual web browsing agent. It is fine-tuned from Qwen3.5 and comes in three sizes: 4B, 9B and 27B. The models are trained with supervised fine-tuning on distilled web-browsing trajectories, then online reinforcement learning (GRPO) on live websites. Inputs are a natural-language task instruction, a single current screenshot, and the 30 most recent past actions. Output is the model's thinking trace and the next browser action, such as click, scroll or type. |
| Model size | 4B parameters, trained with sequences of up to 16,384 tokens. |
| Checkpoint | Stage 2 SFT, an intermediate checkpoint. RL has not been applied to it; it is the starting point for RL. The final model is molmoweb2_4B. |
| Language(s) | English |
| License | This model is licensed under Apache 2.0. It is intended for research and educational use in accordance with Ai2's Responsible Use Guidelines. |
| Finetuned from model | Qwen3.5-4B (Qwen Team, 2026) |
The MolmoWeb2 family
| Size | Stage 1 SFT | Stage 2 SFT | Final (RL) |
|---|---|---|---|
| 4B | molmoweb2_4B_stage1 | molmoweb2_4B_stage2 (this model) | molmoweb2_4B |
| 9B | molmoweb2_9B_stage1 | molmoweb2_9B_stage2 | molmoweb2_9B |
| 27B | molmoweb2_27B_stage1 | molmoweb2_27B_stage2 | molmoweb2_27B |
Use the Final (RL) models as agents. The stage checkpoints are released for research and reproducibility: Stage 2 is the starting point for RL.
Uses
Direct use
MolmoWeb2 can be used as-is, along with an appropriate harness for browser access, as a visual web browsing agent. Given a single natural-language instruction, it looks at a screenshot of the current web page and issues the next browser action, repeating until the task is done. It emits actions in Qwen's standard tool-call format, so inference engines such as vLLM and SGLang can serve it through an OpenAI-compatible tool-calling endpoint using Qwen's tool-call parser. This checkpoint uses the same prompt format and inference setup as the final model, so the Quick Start in the final model card applies unchanged. It is released for research and reproducibility; to use MolmoWeb2 as an agent, prefer the final RL model.
Typical tasks are single-instruction web tasks such as information seeking, shopping and form filling, or serving as the browsing component of a larger system.
Downstream use
MolmoWeb2 can be customized further on specific types of websites or for newer web browsing workflows. The release includes the model, data, data-generation pipeline, training code, and a technical report so others can branch off from any point of the recipe. The stage checkpoints are released for exactly this purpose. This Stage 2 checkpoint is the starting point for RL in our recipe.
Out-of-scope use
MolmoWeb2 is a specialized model meant to be used as a visual web browsing agent. It is meant to automate web browsing tasks using appropriate harnesses, and is not meant for other agentic use cases, e.g., open-ended coding, or those that rely on its parametric knowledge alone.
Known limitations:
- Trained on single-turn tasks: one instruction, with no follow-up input from the user.
- Fixed browser action space. It does not read new tool definitions from the prompt and was not trained on desktop apps or terminals.
- Login and payment flows were not a training focus. Do not give it credentials or payment details.
- Multi-step errors compound, and live-web results vary from run to run.
Run the agent in a sandboxed browser with a human able to monitor and stop it.
Misuse
A web agent can be asked to carry out harmful tasks on the open web, for example finding and downloading pirated copies of books. As a safeguard, the second SFT stage adds 4K one-step refusal trajectories in which the model sees a harmful request and immediately calls terminate. This Stage 2 checkpoint includes that refusal data. For MolmoWeb2-4B, it raises the refusal rate on WebTailBench-Refusals from 30.6% after Stage 1 to 92.5% (SafeArena Normalized Safety Score 32.2), and the final RL model refuses 94.6% of these tasks (SafeArena 28.8). The model does not refuse every harmful request. See Safety evaluation for details.
Training Details
Training data
MolmoWeb2 models were trained with two SFT stages and one RL stage. This checkpoint is the output of Stage 2 SFT; RL has not yet been applied.
| Stage | Data |
|---|---|
| SFT (Stages 1 and 2) | MolmoWebMix2 (web-browsing trajectories), MolmoWebMix2-VQA (screenshot question answering), MolmoWebMix2-Grounding (grounding) |
| RL | A sample of Microsoft's WebGym tasks |
Preprocessing
SFT. Rows were resampled with linear step weighting (a row at step k gets weight k+1) so later, harder steps are seen more often; the whole budget is allocated deterministically with systematic sampling over fractional counts. In Stage 1 this turns 839K distinct rows into 2.93M training rows. Stage 1 mixes 88% trajectory rows, 6% grounding, and 6% VQA; Stage 2 mixes 93% trajectory rows, 6% grounding, and 1% safety. The associated codebase has scripts for reproducing the exact mixes used for training.
RL. The dataset we used was subsampled from Microsoft's WebGym dataset. No additional preprocessing was done.
Speeds, sizes, times
- Stage 1 SFT runs for 26,000 steps and Stage 2 for 3,521 steps, both with a global batch size of 128 and sequences up to 16,384 tokens.
- Each RL step uses 20 groups of 16 rollouts (320 episodes) with at most 50 actions per episode.
- SFT training took around 36 hours; RL took around 40.
Evaluation
Testing data
Capability is evaluated on WebVoyager, Online-Mind2Web, DeepShop, WebTailBench2, and Odysseys (a long-horizon, multi-website benchmark). Safety is evaluated on WebTailBench-Refusals (in-distribution) and SafeArena (out-of-distribution). ScreenSpot and ScreenSpot v2 are used as supplemental grounding benchmarks. Time-sensitive tasks such as airfare booking were rewritten to contain a valid date. RL training tasks that overlapped with evaluation benchmarks were removed.
Factors
Live-web evaluations are volatile: the same URL can show a different page depending on time of year, location, or device metadata, and unobserved A/B tests add randomness. The choice of LLM judge also strongly affects scores, so we re-scored models under equal constraints wherever possible.
Metrics
The main metric is task success rate, judged by an LLM or a human since live websites give no ground-truth signal.
- Online-Mind2Web uses WebJudge run with GPT-6 Luna (o4-mini is deprecated) and has an associated official paid human evaluation service.
- WebTailBench2 reports process and outcome success with the Universal Verifier using GPT-6 Luna.
- Odysseys reports average rubric score and the fraction of perfectly solved tasks.
- Safety uses the refusal rate on WebTailBench-Refusals and the SafeArena Normalized Safety Score, which balances utility on benign tasks against safety on malicious variants.
Results
MolmoWeb2-4B by training stage
Task success rate (%), sampled at temperature 0.7, top-p 0.8, with a 1280x720 viewport and a 100-step budget. WTB2 is WebTailBench2.
| Model | WebVoyager | Online-Mind2Web | DeepShop | WTB2 process | WTB2 outcome | Odysseys rubric avg | Odysseys perfect |
|---|---|---|---|---|---|---|---|
| Qwen3.5-4B (base) | 55.6 | 23.9 | 25.6 | 8.3 | 3.6 | 3.3 | 0.0 |
| MolmoWeb2-4B Stage 1 SFT | 76.6 | 50.3 | 36.2 | 28.8 | 14.7 | 41.9 | 13.0 |
| MolmoWeb2-4B Stage 2 SFT (this model) | 83.9 | 52.6 | 51.3 | 42.3 | 21.1 | 46.1 | 19.3 |
| MolmoWeb2-4B RL (final) | 89.1 | 60.3 | 62.4 | 55.3 | 34.2 | 55.3 | 30.5 |
Each training stage improves every size. Average success over the five benchmarks (WebVoyager, Online-Mind2Web, DeepShop, WTB2 outcome, Odysseys rubric avg) after Stage 1 SFT, Stage 2 SFT and RL:
Per-stage results for the other sizes are in their stage checkpoint cards.
Final (RL) models vs. other agents
MolmoWeb2 outperforms all prior similarly sized open-weight web agents we evaluated on WebVoyager, Online-Mind2Web, DeepShop and Odysseys, and is on par with GLM 5.3 Flash, roughly 12× its size, and with GPT-5.4.
Task success rate (%). MolmoWeb2 and Qwen3.5 are sampled at temperature 0.7, top-p 0.8, with a 1280x720 viewport and a 100-step budget. Best result in each column is bold. † marks numbers produced by the authors; "--" means no reported value.
| Model | WebVoyager | Online-Mind2Web (GPT-6 Luna judge) | DeepShop | WebTailBench2 (outcome) | Odysseys (perfect) |
|---|---|---|---|---|---|
| MolmoWeb2-4B | 89.1† | 60.3† | 62.4† | 34.2† | 30.5† |
| OpenWebRL-4B | 74.1 | 24.0† | 64.0 | -- | -- |
| Fara1.5-4B | 80.8 | 46.9† | 49.1† | 27.4 | 24.7† |
| Qwen3.5-4B | 55.6† | 23.9† | 25.6† | 3.6† | 0.0† |
| MolmoWeb2-9B | 88.5† | 66.8† | 65.8† | 34.5† | 38.5† |
| OpenWebRL-8B | 74.6 | 28.3† | 65.3 | 15.4† | 9.8† |
| Fara1.5-9B | 86.8 | 50.9† | 56.2† | 32.3 | 28.5† |
| Qwen3.5-9B | 70.0† | 29.9† | 43.8† | 13.5† | 3.7† |
| MolmoWeb2-27B | 94.2† | 75.3† | 68.4† | 41.6† | 46.0† |
| Fara1.5-27B | 89.3 | 57.0† | 60.4† | 40.2 | 43.2† |
| Qwen3.5-27B | 77.9† | 41.4† | 52.9† | 21.2† | 6.7† |
| GLM-5.3 Flash | 95.4† | 70.7† | 69.1† | 47.3† | 39.2† |
| Gemini 2.5 Computer Use | 88.9 | -- | 62.0 | -- | -- |
| GPT-5.4 | -- | -- | -- | -- | 33.5 |
Safety evaluation
Two safety benchmarks were run: WebTailBench-Refusals (in-distribution) and SafeArena (out-of-distribution).
| Model | WebTailBench-Refusals (refusal rate) ↑ | SafeArena (Normalized Safety Score) ↑ |
|---|---|---|
| Fara1.5-4B | 92.5 | 28.6 |
| Fara1.5-9B | 93.4 | 23.9 |
| Fara1.5-27B | 93.1 | 47.3 |
| MolmoWeb2-4B (Stage 1 SFT) | 30.6 | 25.9 |
| MolmoWeb2-4B (Stage 2 SFT, this model) | 92.5 | 32.2 |
| MolmoWeb2-4B (RL) | 94.6 | 28.8 |
| MolmoWeb2-9B (Stage 1 SFT) | 25.2 | 19.7 |
| MolmoWeb2-9B (Stage 2 SFT) | 93.7 | 32.1 |
| MolmoWeb2-9B (RL) | 88.9 | 32.4 |
| MolmoWeb2-27B (Stage 1 SFT) | 61.9 | 38.3 |
| MolmoWeb2-27B (Stage 2 SFT) | 95.5 | 55.8 |
| MolmoWeb2-27B (RL) | 95.5 | 58.2 |
All models are scored with the same judge. SafeArena balances utility on benign tasks against refusal on their malicious variants; no SafeArena data was used in training. The model does not refuse every harmful request.
Adversarial testing
No red teaming was done beyond the safety benchmarks above.
Model Examination
No explainability / interpretability work was conducted.
Environmental Impact
| Field | Details |
|---|---|
| Hardware type | NVIDIA GB300 (32 GPUs) |
| Hours used | ~98K GPU hours for development and hero runs, SFT and RL combined |
| Cloud provider and region | Cirrascale in Austin, TX |
| Carbon emitted | About 36 metric tons, estimated as 98,000 GPU hours × 1.1 kW per B300 × 0.334 kg CO₂e per kWh (ERCOT Texas grid), using the Machine Learning Impact calculator method (Lacoste et al., 2019). |
Technical Specifications
Model architecture and objective
MolmoWeb2 is Qwen3.5 with all parameters fine-tuned, including the vision encoder. SFT computes the loss only on the current step's output (the next action). RL starts from the Stage 2 SFT checkpoint and uses GRPO with group-normalized advantages, 16 rollouts per task group, truncated importance sampling (C = 2) to correct the mismatch between rollout and trainer policies, and a KL coefficient of 0. The reward is binary task success from a single-call GPT-6 Luna judge, assigned to every turn of the episode; groups with zero reward variance are discarded.
Hardware requirements
To run inference at BF16:
| Model | bf16 weights | GPU memory | Disk space | GPUs used for evaluation |
|---|---|---|---|---|
| MolmoWeb2-4B | 9.1 GB | 16-24 GB | ~50 GB | 1× H100 |
| MolmoWeb2-9B | 18.8 GB | 32 GB | ~100 GB | 1× H100 |
| MolmoWeb2-27B | 54.7 GB | 80 GB | ~200 GB | 2× H100 |
Software
MolmoWeb2 can be served with vLLM or SGLang using Qwen's tool-call parser, through an OpenAI-compatible tool-calling endpoint. See the Quick Start in the final model card for a tested vLLM command, and the code repository for the full harness.
Citation
If you use MolmoWeb2, please cite:
@article{molmoweb2_visual_web_agents,
title = {{MolmoWeb2}: Advancing Open Visual Web Agents with Reinforcement Learning},
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},
}
More Information
- Paper: allenai.org/papers/molmoweb2
- Code: github.com/allenai/molmoweb
- Demo: molmoweb.allen.ai
Model Card Authors
Pradeep Dasigi
Model Card Contact
GitHub and Hugging Face issues, or email the corresponding author:
- Peter Sushko (peters@allenai.org)
- Downloads last month
- -