Loading…
Loading…
Julia-1-Mind2Web is a fast, non-autoregressive 144M-parameter decision model fine-tuned specifically for Autonomous Web Agents, Robotic Process Automation (RPA), and Desktop OS Automation.
Unlike massive generative LLMs (7B–70B+ parameters) that slowly generate actions token-by-token and consume gigabytes of VRAM, this model acts as an ultra-low-latency routing and classification "brain." When paired with vision parsers like OmniParser or standard HTML DOM scrapers, it evaluates candidate UI elements in parallel and selects the exact button, link, or input field to interact with in milliseconds.
This model initializes a ModernBertForSequenceClassification backbone (jhu-clsp/mmBERT-small), injects the pretrained decision weights from SupersonicLabs/Julia-1, and fine-tunes the architecture on the flattened interactive action steps of the Mind2Web dataset.
yatharthp9211 / yp9211)ModernBertForSequenceClassification (Cross-Encoder Multiple-Choice Scorer)en)SupersonicLabs/Julia-1 & jhu-clsp/mmBERT-smallThe model is designed to score a batch of candidate UI elements (<button>, <a>, <input>, etc.) against a user's high-level task intent and action history.
PyAutoGUI.Can be plugged directly into multi-agent ecosystems as the fast local execution layer, leaving local VRAM completely free for OCR, object detection, or secondary local LLMs.
tag, aria-label, text). It requires an upstream parser (like OmniParser or a DOM parser) to translate visual screens into text candidates first.Use the standalone Python script below to rank UI candidates and select the optimal element to click:
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
MODEL_ID = "yp9211/julia-1-mind2web-finetuned"
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSequenceClassification.from_pretrained(MODEL_ID).to(DEVICE)
model.eval()
# 1. Define the current task and state
task = "Book a cheapest one-way flight from New York to London."
last_action = "Typed 'London' into destination input box."
state_text = f"Task: {task}\nPrevious Action: {last_action}\nWhich element should be interacted with?"
# 2. Provide candidate UI elements (from DOM or translated from OmniParser bounding boxes)
candidates = [
"<div_ container> Flight deals and promotions",
"<button> aria-label='Search flights' Search",
"<a> Cancel booking",
"<input> Enter promo code"
]
# 3. Tokenize state against all options in parallel
inputs = tokenizer(
[state_text] * len(candidates),
candidates,
padding=True,
truncation=True,
max_length=512,
return_tensors="pt"
).to(DEVICE)
# 4. Score and select the winning UI element
with torch.no_grad():
logits = model(**inputs).logits.squeeze(-1)
probabilities = torch.softmax(logits, dim=0)
best_idx = torch.argmax(probabilities).item()
print(f"🎯 Selected Element: {candidates[best_idx]} (Confidence: {probabilities[best_idx]*100:.2f}%)")
The model was trained on the osunlp/Mind2Web dataset.
action_reprs history leading up to each interaction.<tag> {aria-label} {inner_text}.NUM_OPTIONS = 8), shuffled dynamically during training to prevent positional bias.fp16 mixed precision (torch.amp.autocast)lr = 2e-5, weight_decay = 0.01)The model was evaluated zero-shot on unseen tasks using the test_task split of the osunlp/Multimodal-Mind2Web benchmark (1,257 valid interactive action steps).
| Model / Training Stage | Parameters | Random Guess Baseline | Top-1 Element Accuracy (test_task) |
Avg. Training Loss |
|---|---|---|---|---|
| Random Baseline (8 Options) | - | 12.50% | 12.50% | - |
| Julia-1-Mind2Web (3 Epochs) | 144M | 12.50% | 51.79% (651 / 1257) | 1.1983 |
| Julia-1-Mind2Web (7 Epochs) | 144M | 12.50% | [INSERT 7-EPOCH % HERE] ([INSERT X]/1257) | [INSERT 7-EPOCH LOSS] |
In just 3 epochs, fine-tuning boosted Top-1 accuracy to 51.79%—more than 4x the random baseline—while operating inside a strict 512-token window and sub-1GB VRAM envelope.
nn.DataParallel)transformers, datasets, safetensorsIf you use this model in your research or automation projects, please cite the repository and the underlying Mind2Web benchmark:
@misc{julia1_mind2web_2026,
author = {Yatharth},
title = {Julia-1-Mind2Web: A Lightweight Decision Engine for Autonomous UI Agents},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/yp9211/julia-1-mind2web-finetuned}}
}
SupersonicLabs/Julia-1