Run this model with HF Jobs

Run SnowRainsdy/BiGrounder-4B 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 and TRL to fine-tune https://huggingface.co/SnowRainsdy/BiGrounder-4B. 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/SnowRainsdy/BiGrounder-4B 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/SnowRainsdy/BiGrounder-4B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/SnowRainsdy/BiGrounder-4B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

BiGrounder-4B

BiGrounder-4B is a GUI grounding model built on Qwen3-VL-4B-Instruct. Given a screenshot and a natural-language instruction, it predicts the target location and action. Bidirectional training improves grounding across different ways of describing the same interface element.

Paper ยท Code ยท Instruction data

Model

Property Value
Backbone Qwen3-VL-4B-Instruct
Architecture Qwen3VLForConditionalGeneration
Weight precision BF16
Input Screenshot and user instruction
Output GUI action with target coordinates
Training Bidirectional supervised fine-tuning followed by bidirectional reinforcement learning

Bidirectional SFT pairs forward grounding with reverse instruction or description generation across action, bounding-box, and point tasks. Bidirectional RL generates instruction variants on-policy and grounds them back to the target, coupling semantic verification with grounding success through a cycle-consistency reward. Inference uses a single forward grounding pass.

Usage

The example uses the project's grounding wrapper, which supplies the action prompt, image preprocessing, and coordinate parser. Run it on a CUDA GPU with BF16 and FlashAttention 2 support.

git clone https://github.com/Spell-shi/BiGrounder.git
cd BiGrounder
pip install torch torchvision accelerate pillow "transformers==4.57.6"
pip install flash-attn --no-build-isolation

From the repository root:

from PIL import Image
from Eval.models.bigrounder import BiGrounderModel

model = BiGrounderModel()
model.load_model("SnowRainsdy/BiGrounder-4B")

image = Image.open("screenshot.png").convert("RGB")
result = model.ground_only_positive(
    instruction="Click the search button.",
    image=image,
)

print(result["raw_response"])
if result["point"] is not None:
    x, y = result["point"]
    print("Normalized point:", (x, y))
    print("Image pixel coordinates:", (x * image.width, y * image.height))

The model's action format uses integer coordinates on a 0โ€“1000 scale. The wrapper returns point as normalized 0โ€“1 coordinates; point is None when no coordinate is parsed. It predicts actions without executing them.

Evaluation and Training

The evaluation scripts cover ScreenSpot-Pro, ScreenSpot-V2, MMBench-GUI, UI-Vision, and OSWorld-G, including the instruction-variation evaluation. Use SnowRainsdy/BiGrounder-4B as the model path.

See the project repository for Bi-SFT and Bi-RL launch scripts and data construction details.

Citation

@article{shi2026bigrounder,
  title={BiGrounder: Bidirectional Training Unlocks the Potential of GUI Grounding},
  author={Shi, Dengyao and Fu, Tianyu and Hu, Fei and Su, Anyang and Wang, Hanning and Wang, Shuo and Wu, Minghui and Zhao, Chenxu and Lei, Zhen},
  journal={arXiv preprint arXiv:2611.07765},
  year={2026}
}
Downloads last month
64
Safetensors
Model size
4B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for SnowRainsdy/BiGrounder-4B

Finetuned
(591)
this model

Paper for SnowRainsdy/BiGrounder-4B