Instructions to use shricodev/chashmish-babubhaiya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shricodev/chashmish-babubhaiya with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="shricodev/chashmish-babubhaiya") 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("shricodev/chashmish-babubhaiya") model = AutoModelForMultimodalLM.from_pretrained("shricodev/chashmish-babubhaiya", 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 shricodev/chashmish-babubhaiya with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shricodev/chashmish-babubhaiya" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shricodev/chashmish-babubhaiya", "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/shricodev/chashmish-babubhaiya
- SGLang
How to use shricodev/chashmish-babubhaiya 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 "shricodev/chashmish-babubhaiya" \ --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": "shricodev/chashmish-babubhaiya", "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 "shricodev/chashmish-babubhaiya" \ --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": "shricodev/chashmish-babubhaiya", "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 shricodev/chashmish-babubhaiya with Docker Model Runner:
docker model run hf.co/shricodev/chashmish-babubhaiya
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
Model tree for shricodev/chashmish-babubhaiya
Base model
Qwen/Qwen3-VL-2B-Instruct