Run this model with HF Jobs
Run fansunqi/IntentLoc-GUI-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/fansunqi/IntentLoc-GUI-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/fansunqi/IntentLoc-GUI-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use fansunqi/IntentLoc-GUI-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fansunqi/IntentLoc-GUI-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="fansunqi/IntentLoc-GUI-7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSeq2SeqLM processor = AutoProcessor.from_pretrained("fansunqi/IntentLoc-GUI-7B") model = AutoModelForSeq2SeqLM.from_pretrained("fansunqi/IntentLoc-GUI-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
IntentLoc-GUI-7B
Intent-level object detection for GUI grounding. This is the released 7B checkpoint of IntentLoc-GUI, the model introduced in IntentLoc: Reframing GUI Grounding as Intent-Level Object Detection.
Instead of generating coordinates, IntentLoc turns the instruction into an intent-level semantic query, lets that query interact with the visual features in an encoder–decoder detector, and progressively localizes the target with Crosshair Attention. The output is a probability distribution over image patches, read out directly from the decoder's final cross-attention.
- Code: https://github.com/fansunqi/IntentLoc
- Benchmark: https://huggingface.co/datasets/fansunqi/Atypical-GUI-Bench
- Training data (released subset): https://huggingface.co/datasets/fansunqi/IntentLoc-Grounding-Data
Model details
| Backbone | Qwen2.5-VL-7B-Instruct |
| Head | IntentLoc: gated dual-visual fusion → 4-layer Transformer encoder → 4-layer Crosshair Attention decoder → Direct Cross-Attention Readout |
| Attention heads | 8 |
| Parameters | ~7B backbone + ~0.63B head |
| Precision | bfloat16 |
| Extra tokens | `< |
Training
Two-stage training on 8× H20 with DeepSpeed ZeRO-3:
| Stage 1: warm start | Stage 2: joint SFT | |
|---|---|---|
| Trainable | IntentLoc head + new token embeddings (VLM frozen) | all parameters |
| Data | GUI-Actor-Data × 1 | GUI-Actor-Data × 1 + additional grounding annotations × 2 |
| Learning rate | 5e-5, cosine, 3% warmup | backbone 5e-6, head 1e-6, crosshair modules 5e-5; linear, 10% warmup |
| Loss | patch KL + 0.1 · crosshair | 1.0 · LM + 0.5 · patch + 0.1 · crosshair |
| Global batch / epochs | 64 / 1 | 64 / 1 (this checkpoint: step 20000 of 22113) |
GUI-Actor-Data is the public corpus released with GUI-Actor (1.25M samples). The additional annotations cover professional Chinese- and English-language software; the released subset is IntentLoc-Grounding-Data (78,853 samples). This checkpoint was trained before that release subset was finalized, and it uses four encoder/decoder layers (the main configuration in the paper uses three).
Results
Top-1 accuracy on ScreenSpot-Pro (resize to 3200×1800 px, GUI-Actor protocol):
| Model | ScreenSpot-Pro |
|---|---|
| Qwen2.5-VL-7B-Instruct | 26.8 |
| Qwen2.5-VL-7B-Finetuned (same data) | 42.4 |
| GUI-Actor-7B | 44.6 |
| IntentLoc-GUI-7B (this checkpoint) | 58.7 |
The paper reports 49.2 for IntentLoc-GUI-7B trained on GUI-Actor data only; this checkpoint additionally uses the extra grounding annotations and four decoder layers.
Usage
Install the code first:
git clone https://github.com/fansunqi/IntentLoc && cd IntentLoc
pip install -r requirements.txt && pip install -e .
import torch
from transformers import AutoProcessor
from intentloc.inference import locate
from intentloc.modeling_intentloc import IntentLocForConditionalGeneration
repo = "fansunqi/IntentLoc-GUI-7B"
processor = AutoProcessor.from_pretrained(repo)
model = IntentLocForConditionalGeneration.from_pretrained(
repo, torch_dtype=torch.bfloat16, device_map="cuda:0", attn_implementation="flash_attention_2"
).eval()
pred = locate(model, processor, "screenshot.png", "open the settings menu")
x, y = pred["points"][0] # normalized click point, best candidate first
print(pred["crosshairs"]) # per-decoder-layer crosshairs (normalized x, y)
Inference is a single forward pass of the VLM: the placeholder token is appended to the prompt, its
last-layer hidden state becomes the semantic query, and the IntentLoc head converts it into a patch
distribution. generate() is not supported by this model class; use locate().
The model card of the Atypical-GUI-Bench
evaluation script (scripts/eval_qwen25vl.py in the dataset repo) shows the coordinate-prediction
protocol; to evaluate this checkpoint on ScreenSpot-Pro use
bash scripts/eval_screenspot_pro.sh <this repo> <screenspot-pro root> 0 from the code repository.
Limitations
- Always predicts a location; it cannot refuse ungroundable instructions.
- Targets occupying only a few patches remain hard; accuracy drops sharply for very small elements in very high-resolution screenshots.
- The head adds ~0.6B parameters and some latency over the pure VLM.
- Trained on GUI grounding data; it is not a general-purpose object detector.
License
The released weights are for research use. The code is released under the MIT License. The model is built on Qwen2.5-VL-7B-Instruct and inherits its license terms.
Citation
The paper and its citation information will be released soon. Until then:
@misc{intentloc2026,
title = {Reframing GUI Grounding as Intent-Level Object Detection},
author = {},
year = {2026},
howpublished = {\url{https://github.com/fansunqi/IntentLoc}},
note = {Under review}
}
- Downloads last month
- 18
Model tree for fansunqi/IntentLoc-GUI-7B
Base model
Qwen/Qwen2.5-VL-7B-Instruct