chashmish-babubhaiya

A small GUI grounding model: give it a screenshot and an instruction such as "open the pricing page" and it answers with where to click, as (x, y) on a 0..1000 grid relative to the image.

LoRA fine-tune of Qwen/Qwen3-VL-2B-Instruct on 60,105 (screenshot, instruction, box) examples built with this code: real websites rendered with Playwright, click targets and labels taken from the DOM, instructions from templates plus a vision LLM. Trained on one free Kaggle T4; runs in about 5 GB of VRAM.

Usage

import re

from PIL import Image
from transformers import AutoModelForImageTextToText, AutoProcessor

repo = "shricodev/chashmish-babubhaiya"
model = AutoModelForImageTextToText.from_pretrained(repo, dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained(repo)

image = Image.open("screenshot.png").convert("RGB")
instruction = "open the pricing page"
prompt = (
    f"Point to the UI element I should click to: {instruction}. "
    "Answer with the click point as (x, y)."
)
content = [{"type": "image"}, {"type": "text", "text": prompt}]
messages = [{"role": "user", "content": content}]
text = processor.apply_chat_template(messages, add_generation_prompt=True)
inputs = processor(text=text, images=[image], return_tensors="pt").to(model.device)

out = model.generate(**inputs, max_new_tokens=16, do_sample=False)
reply = processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True)
x, y = (int(v) for v in re.findall(r"\d+", reply)[:2])
print(x * image.width / 1000, y * image.height / 1000)  # click point in pixels

The reply is (x, y) on a 0..1000 grid; scale by the image size to get pixels.

Results

Click accuracy = the predicted point lands inside the target element's box.

model eval set n click accuracy p50 latency
Qwen/Qwen3-VL-2B-Instruct unseen websites (own test set) 300 78.0% 613 ms
anthropic:claude-haiku-5-5 unseen websites (own test set) 300 90.7% 1680 ms
chashmish-babubhaiya unseen websites (own test set) 300 84.7% 613 ms
Qwen/Qwen3-VL-2B-Instruct ScreenSpot web 436 81.9% 993 ms
anthropic:claude-haiku-5-5 ScreenSpot web 436 93.1% 1236 ms
chashmish-babubhaiya ScreenSpot web 436 82.6% 1275 ms

Limitations

  • Trained on desktop and mobile web pages; native mobile and desktop apps are out of distribution.
  • Small targets on large screens are the main failure mode.
  • It predicts a location only. It has no notion of whether clicking is safe or intended; keep a human or a policy layer in the loop for agents acting on real accounts.
Downloads last month
71
Safetensors
Model size
2B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for shricodev/chashmish-babubhaiya

Finetuned
(322)
this model