Image-Text-to-Text
Transformers
PyTorch
English
qwen2_5_vl
GUI
multimodal
conversational
Eval Results
text-generation-inference
Run this model with HF Jobs
Run zonghanHZH/ZonUI-3B 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/zonghanHZH/ZonUI-3B. 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/zonghanHZH/ZonUI-3B 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/zonghanHZH/ZonUI-3B. 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/zonghanHZH/ZonUI-3B. 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.
Instructions to use zonghanHZH/ZonUI-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zonghanHZH/ZonUI-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="zonghanHZH/ZonUI-3B") 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("zonghanHZH/ZonUI-3B") model = AutoModelForMultimodalLM.from_pretrained("zonghanHZH/ZonUI-3B", 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 zonghanHZH/ZonUI-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zonghanHZH/ZonUI-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zonghanHZH/ZonUI-3B", "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/zonghanHZH/ZonUI-3B
- SGLang
How to use zonghanHZH/ZonUI-3B 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 "zonghanHZH/ZonUI-3B" \ --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": "zonghanHZH/ZonUI-3B", "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 "zonghanHZH/ZonUI-3B" \ --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": "zonghanHZH/ZonUI-3B", "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 zonghanHZH/ZonUI-3B with Docker Model Runner:
docker model run hf.co/zonghanHZH/ZonUI-3B
Enhance model card: Add pipeline tag, library name, abstract, and evaluation results (#5)
Browse files- Enhance model card: Add pipeline tag, library name, abstract, and evaluation results (cd5156b12794925b077da71b19f38428a829cbda)
Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>
12345678910111213141516118 unmodified lines135136137138---license: apache-2.0language:- enbase_model:- Qwen/Qwen2.5-VL-3B-Instructtags:- GUI- multimodal---ZonUI-3B — A lightweight, resolution-aware GUI grounding model trained with only 24K samples on a single RTX 4090.- **Repository:** https://github.com/Han1018/ZonUI-3B- **Paper:** https://arxiv.org/abs/2506.23491## ⭐ Quick start118 unmodified linesdisplay(result_image)except Exception as e:print(f"Error parsing coordinates: {e}")```12345678910111213141516171819202122232425118 unmodified lines144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201---base_model:- Qwen/Qwen2.5-VL-3B-Instructlanguage:- enlicense: apache-2.0tags:- GUI- multimodalpipeline_tag: image-text-to-textlibrary_name: transformers---ZonUI-3B — A lightweight, resolution-aware GUI grounding model trained with only 24K samples on a single RTX 4090.This model was presented in the paper [ZonUI-3B: A Lightweight Vision-Language Model for Cross-Resolution GUI Grounding](https://huggingface.co/papers/2506.23491).## AbstractIn this paper, we present ZonUI-3B, a lightweight Vision-Language Model (VLM) that can be fully trained on a single consumer-grade GPU (RTX 4090) while delivering performance comparable to significantly larger models on GUI grounding tasks. The model incorporates several key innovations: (i) combine cross-platform, multi-resolution dataset of 24K examples from diverse sources including mobile, desktop, and web GUI screenshots to effectively address data scarcity in high-resolution desktop environments; (ii) a two-stage fine-tuning strategy, where initial cross-platform training establishes robust GUI understanding, followed by specialized fine-tuning on high-resolution data to significantly enhance model adaptability; and (iii) data curation and redundancy reduction strategies, demonstrating that randomly sampling a smaller subset with reduced redundancy achieves performance comparable to larger datasets, emphasizing data diversity over sheer volume. Empirical evaluation on standard GUI grounding benchmarks, including ScreenSpot, ScreenSpot-v2, and the challenging ScreenSpot-Pro, highlights ZonUI-3B's exceptional accuracy, achieving 84.9% on ScreenSpot and 86.4% on ScreenSpot-v2, surpassing prior models under 4B parameters. Ablation studies validate the critical role of balanced sampling and two-stage fine-tuning in enhancing robustness, particularly in high-resolution desktop scenarios. The ZonUI-3B is available at: this https URL- **Repository:** https://github.com/Han1018/ZonUI-3B- **Paper (arXiv):** https://arxiv.org/abs/2506.23491## ⭐ Quick start118 unmodified linesdisplay(result_image)except Exception as e:print(f"Error parsing coordinates: {e}")```## 🎉 Main Results### ScreenSpot| Grounding Model | Avg Score | Mobile-Text | Mobile-Icon | Desktop-Text | Desktop-Icon | Web-Text | Web-Icon ||--------------------------|--------|-------------|-------------|---------------|----------------|-----------|-----------|| **General Models** | | | | | | | || Qwen2.5-VL-3B | 55.5 | - | - | - | - | - | - || InternVL3-8B | 79.5 | - | - | - | - | - | - || Claude3.5 Sonnet | 83.0 | - | - | - | - | - | - || Gemini-2 Flash | 84.0 | - | - | - | - | - | - || Qwen2.5-VL-7B | 84.7 | - | - | - | - | - | - || **GUI-specific Models** | | | | | | | || CogAgent-18B | 47.4 | 67.0 | 24.0 | 74.2 | 20.0 | 70.4 | 28.6 || SeeClick-9.6B | 53.4 | 78.0 | 52.0 | 72.2 | 30.0 | 55.7 | 32.5 || OmniParser | 73.0 | 93.9 | 57.0 | 91.3 | 63.6 | 81.3 | 51.0 || UGround-7B | 73.3 | 82.8 | 60.3 | 82.5 | 63.6 | 80.4 | 70.4 || ShowUI-2B | 75.0 | 91.6 | 69.0 | 81.8 | 59.0 | 83.0 | 65.5 || UI-TARS-2B | 82.3 | 93.0 | 75.5 | 90.7 | 68.6 | 84.3 | 74.8 || OS-Atlas-7B | 82.5 | 93.0 | 72.9 | 91.8 | 62.9 | 90.9 | 74.3 || Aguvis-7B | 84.4 | 95.6 | 77.7 | 93.8 | 67.1 | 88.3 | 75.2 || **ZonUI-3B** | **84.9** | **96.3** | **81.6** | **93.8** | **74.2** | 89.5 | 74.2 |### ScreenSpot-v2| Grounding Model | Avg Score | Mobile-Text | Mobile-Icon | Desktop-Text | Desktop-Icon | Web-Text | Web-Icon ||--------------------------|--------|-------------|-------------|---------------|----------------|-----------|-----------|| **General Models** | | | | | | | || InternVL3-8B | 81.4 | - | - | - | - | - | - || **GUI-specific Models** | | | | | | | || SeeClick-9.6B | 55.1 | 78.4 | 50.7 | 70.1 | 29.3 | 55.2 | 32.5 || UGround-7B | 76.3 | 84.5 | 61.6 | 85.1 | 61.4 | 84.6 | 71.9 || ShowUI-2B | 77.3 | 92.1 | 75.4 | 78.9 | 59.3 | 84.2 | 61.1 || OS-Atlas-7B | 84.1 | 95.1 | 75.8 | 90.7 | 63.5 | 90.6 | 77.3 || UI-TARS-2B | 84.7 | 95.2 | 79.1 | 90.7 | 68.6 | 87.2 | 78.3 || **ZonUI-3B** | **86.4** | **97.9** | **84.8** | **93.8** | **75.0** | **91.0** | 75.8 |## 🫶 AcknowledgementWe would like to acknowledge [ShowUI](https://github.com/showlab/ShowUI) for making their code and data publicly available, which was instrumental to our development.## ✍️ BibTeXIf our work contributes to your research, we would appreciate it if you could cite our paper.```@misc{hsieh2025zonui3b,title = {ZonUI-3B: A Lightweight Vision-Language Model for Cross-Resolution GUI Grounding},author = {Hsieh, ZongHan and Wei, Tzer-Jen and Yang, ShengJing},year = {2025},howpublished = {\url{https://arxiv.org/abs/2506.23491}},note = {arXiv:2506.23491 [cs.CV], version 2, last revised 1 Jul 2025}}```
README.md+67-4