Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
UI
UI-UG
MLLM
conversational
text-generation-inference
Instructions to use afx-team/UI-UG-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use afx-team/UI-UG-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="afx-team/UI-UG-7B") 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)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("afx-team/UI-UG-7B") model = AutoModelForImageTextToText.from_pretrained("afx-team/UI-UG-7B") 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use afx-team/UI-UG-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "afx-team/UI-UG-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "afx-team/UI-UG-7B", "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/afx-team/UI-UG-7B
- SGLang
How to use afx-team/UI-UG-7B 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 "afx-team/UI-UG-7B" \ --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": "afx-team/UI-UG-7B", "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 "afx-team/UI-UG-7B" \ --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": "afx-team/UI-UG-7B", "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 afx-team/UI-UG-7B with Docker Model Runner:
docker model run hf.co/afx-team/UI-UG-7B
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,7 @@ tags:
|
|
| 8 |
- UI
|
| 9 |
- UI-UG
|
| 10 |
- MLLM
|
| 11 |
-
|
| 12 |
|
| 13 |
---
|
| 14 |
|
|
@@ -19,10 +19,11 @@ tags:
|
|
| 19 |
|
| 20 |
[](https://www.python.org/downloads/)
|
| 21 |
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
| 22 |
[](https://huggingface.co/neovateai/UI-UG-7B)
|
| 23 |
[](https://github.com/neovateai/UI-UG)
|
| 24 |
|
| 25 |
-
[**🤗 Model**](https://huggingface.co/neovateai/UI-UG-7B) | [**🚀 Quick Start**](#-quick-start) | [**📊 Evaluation**](#-evaluation) | [**📄 License**](#-license)
|
| 26 |
|
| 27 |
</div>
|
| 28 |
|
|
@@ -236,6 +237,22 @@ This project is licensed under the [Apache 2.0 License](https://www.apache.org/l
|
|
| 236 |
- [**VLLM**](https://github.com/vllm-project/vllm) - High-performance inference framework
|
| 237 |
- [**Ant Group**](https://www.antgroup.com) & [**AFX Team**](https://afx-team.github.io) - Technical support and scenario applications
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
---
|
| 240 |
|
| 241 |
<div align="center">
|
|
|
|
| 8 |
- UI
|
| 9 |
- UI-UG
|
| 10 |
- MLLM
|
| 11 |
+
- arxiv:2509.24361
|
| 12 |
|
| 13 |
---
|
| 14 |
|
|
|
|
| 19 |
|
| 20 |
[](https://www.python.org/downloads/)
|
| 21 |
[](https://www.apache.org/licenses/LICENSE-2.0)
|
| 22 |
+
[](https://arxiv.org/abs/2509.24361)
|
| 23 |
[](https://huggingface.co/neovateai/UI-UG-7B)
|
| 24 |
[](https://github.com/neovateai/UI-UG)
|
| 25 |
|
| 26 |
+
[**📖 Paper**](https://arxiv.org/abs/2509.24361) | [**🤗 Model**](https://huggingface.co/neovateai/UI-UG-7B) | [**🚀 Quick Start**](#-quick-start) | [**📊 Evaluation**](#-evaluation) | [**📄 License**](#-license)
|
| 27 |
|
| 28 |
</div>
|
| 29 |
|
|
|
|
| 237 |
- [**VLLM**](https://github.com/vllm-project/vllm) - High-performance inference framework
|
| 238 |
- [**Ant Group**](https://www.antgroup.com) & [**AFX Team**](https://afx-team.github.io) - Technical support and scenario applications
|
| 239 |
|
| 240 |
+
## 📖 Citation
|
| 241 |
+
|
| 242 |
+
If you find this work useful, please consider citing:
|
| 243 |
+
|
| 244 |
+
```bibtex
|
| 245 |
+
@misc{yang2025uiugunifiedmllmui,
|
| 246 |
+
title={UI-UG: A Unified MLLM for UI Understanding and Generation},
|
| 247 |
+
author={Hao Yang and Weijie Qiu and Ru Zhang and Zhou Fang and Ruichao Mao and Xiaoyu Lin and Maji Huang and Zhaosong Huang and Teng Guo and Shuoyang Liu and Hai Rao},
|
| 248 |
+
year={2025},
|
| 249 |
+
eprint={2509.24361},
|
| 250 |
+
archivePrefix={arXiv},
|
| 251 |
+
primaryClass={cs.CV},
|
| 252 |
+
url={https://arxiv.org/abs/2509.24361},
|
| 253 |
+
}
|
| 254 |
+
```
|
| 255 |
+
|
| 256 |
---
|
| 257 |
|
| 258 |
<div align="center">
|