webshop_Llama-3.2-3B_IWM
a compact web agent for online shopping
2 min read
Full fine-tuning (training all model weights) based on meta-llama/Llama-3.2-3B-Instruct (3.21 billion parameters) by author patrickamadeus. The model is designed to act as a web agent that can navigate e-commerce interfaces and execute user tasks within the WebShop environment. Unlike simple imitation of expert actions, training took place in two stages using the IWM approach (Implicit World Modeling — the model first learns to predict how a web page will change after a specific action before moving on to task execution). Useful for AI agent researchers and developers experimenting with compact local models for browser action automation.
Key features
- Built on the compact instruction-tuned Llama-3.2-3B-Instruct model with a context of up to 4,096 tokens.
- Two-stage SFT (Supervised Fine-Tuning — training with a teacher): first 1 epoch on 92,662 next-page state prediction examples, then 1 epoch on 15,678 expert action examples.
- Reproducible reference run (
NR_RUN=repro) based on open data from the Early Experience study.
What you can do
- Test the model in the WebShop environment to evaluate the ability of compact LLMs (large language models) to autonomously select products and complete shopping steps.
- Use the checkpoint as a baseline for further experiments with Implicit World Modeling methods and web agent training via LlamaFactory.
Example
A workflow scenario from the model card: in the first stage, the agent receives the current page state and action (state, action) to predict the text description of the next page next observation, and in the main stage, it performs the target task of searching and purchasing a product in WebShop (maximum 15 steps per session at a generation temperature of 0.4).
Read more
DetailsWebShop metrics (success rate, 15 steps, temp 0.4): 38.2% (CI 33.8–42.6%) on the standard set (goals 0–499) and 33.0% (CI 29.0–37.2%) on a clean set of 500 new tasks.
The original Early Experience paper for Llama-3.2-3B reports: 41.8% (imitation) and 60.2% (implicit world modeling).
Training parameters: LlamaFactory, full fine-tune, bf16, paged AdamW 8-bit, lr 1e-5, cosine schedule (3% warmup), effective batch size 4, max length 4,096 tokens, seed 0.










Comments