Image-Text-to-Text
Transformers
Safetensors
qwen3_5
computer-use-agent
gui-agent
multimodal
vision-language
desktop-agent
pyautogui
osworld
windowsagentarena
conversational
Instructions to use tencent/UI-Mate-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tencent/UI-Mate-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="tencent/UI-Mate-27B") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("tencent/UI-Mate-27B") model = AutoModelForMultimodalLM.from_pretrained("tencent/UI-Mate-27B", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tencent/UI-Mate-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tencent/UI-Mate-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tencent/UI-Mate-27B", "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/tencent/UI-Mate-27B
- SGLang
How to use tencent/UI-Mate-27B 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 "tencent/UI-Mate-27B" \ --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": "tencent/UI-Mate-27B", "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 "tencent/UI-Mate-27B" \ --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": "tencent/UI-Mate-27B", "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 tencent/UI-Mate-27B with Docker Model Runner:
docker model run hf.co/tencent/UI-Mate-27B
File size: 5,909 Bytes
846c1a0 a109b69 846c1a0 5354340 846c1a0 5354340 846c1a0 5354340 846c1a0 5354340 846c1a0 5354340 846c1a0 5354340 846c1a0 5354340 846c1a0 1923c48 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | ---
base_model: Qwen/Qwen3.6-27B
library_name: transformers
license: apache-2.0
pipeline_tag: image-text-to-text
tags:
- computer-use-agent
- gui-agent
- multimodal
- vision-language
- desktop-agent
- pyautogui
- osworld
- windowsagentarena
---
<div align="center">
# UI-Mate-27B
### UI-Mate: Advancing Open-Weight Foundation GUI Agents with In-Context Demonstrations
**Show the workflow once. Let the agent adapt it to the task at hand.**
Tencent HY Frontier
[Project Page](https://ui-mate.github.io/) 路
[GitHub](https://github.com/Tencent/UI-Mate) 路
[arXiv](https://arxiv.org/abs/2608.15930)
</div>
## Overview
**UI-Mate-27B** is an open-weight foundation GUI agent for long-horizon work across applications and operating systems. It observes live screenshots, reasons over the visible state, and produces structured keyboard and mouse actions for native desktop interaction.
It executes a task from a natural-language instruction and live screenshots alone, planning from what is currently on screen and re-planning as the interface changes.
## Model Details
- **Parameters:** 27B
- **Base model:** [Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B)
- **Input:** task instruction, screenshots, and interaction history
- **Output:** reasoning, a concise action description, and structured computer-use tool calls
- **Action space:** mouse, keyboard, scrolling, waiting, user interaction, and task completion
- **Training:** supervised fine-tuning followed by online reinforcement learning in executable GUI environments
- **License:** Apache-2.0
UI-Mate is an agent checkpoint rather than a standalone visual-chat model. We recommend using the official prompt, response parser, and interaction harness from the [UI-Mate repository](https://github.com/Tencent/UI-Mate).
| Checkpoint | Intended use |
| --- | --- |
| **UI-Mate-27B** | General computer use at 27B |
| [UI-Mate-9B](https://huggingface.co/tencent/UI-Mate-9B) | General computer use at 9B |
| [UI-Mate-democua-27B](https://huggingface.co/tencent/UI-Mate-democua-27B) | Demonstration-guided computer use |
## Highlights
- Strong general computer-use performance across Ubuntu and Windows benchmarks.
- Long-horizon execution across multiple applications.
- Live-screen grounding instead of coordinate replay.
- Structured actions compatible with `pyautogui`.
- OpenAI-compatible serving and client interface.
## Evaluation
| Benchmark | UI-Mate-27B |
| --- | ---: |
| OSWorld-Verified 路 average score | **77.0** |
| WindowsAgentArena 路 average score | **66.2** |
| OSWorkerBench 路 strict success | **41.00** |
| OSWorkerBench 路 progress | **76.86** |
See the [project page](https://ui-mate.github.io/) for evaluation details and updates.
## Quick Start
### 1. Serve the model with vLLM
vLLM automatically downloads the checkpoint from Hugging Face Hub on first launch.
```bash
pip install -U vllm openai pillow
vllm serve tencent/UI-Mate-27B \
--trust-remote-code \
--served-model-name UI_Mate \
--port 8000 \
--tensor-parallel-size 2 \
--gpu-memory-utilization 0.85 \
--mm-encoder-tp-mode data \
--chat-template-content-format openai \
--limit-mm-per-prompt '{"image":6,"video":0}'
```
The default agent retains five screenshots in context. The server must therefore admit at least six images because the newest screenshot arrives before the oldest one is collapsed.
Confirm that the endpoint exposes the expected model name:
```bash
curl -s http://127.0.0.1:8000/v1/models
```
### 2. Run the reference examples
```bash
git clone https://github.com/Tencent/UI-Mate.git
cd UI-Mate
python examples/run_agent.py \
--base-url http://127.0.0.1:8000/v1
```
Run a complete recorded trajectory:
```bash
python examples/run_agent.py \
--replay \
--base-url http://127.0.0.1:8000/v1
```
Or provide your own screenshot:
```bash
python examples/run_agent.py \
--image /path/to/screen.png \
--instruction "Export this spreadsheet as HTML and open it in Chrome"
```
### 3. Use the Python agent
```python
from agents.ui_mate_agent import UIMateAgent
agent = UIMateAgent(
base_url="http://127.0.0.1:8000/v1",
model="UI_Mate",
)
with open("screen.png", "rb") as f:
response, actions = agent.predict(
"Install the autoDocstring extension in VS Code.",
{"screenshot": f.read()},
)
print(response)
print(actions)
# Reset the interaction history before starting a new task.
agent.reset()
```
## Intended Use and Limitations
UI-Mate-27B is intended for research and development of screenshot-based GUI agents in controlled desktop environments.
Its behavior can be affected by application versions, screen layouts, display scaling, latency, and unexpected UI state. Benchmark performance does not guarantee reliable execution in arbitrary environments, and the model requires an external runtime to execute its predicted actions.
## Safety
Computer-use agents can make mistakes, encounter prompt injection, or trigger consequential actions.
- Prefer isolated or disposable environments.
- Avoid unattended, high-stakes, or destructive workflows.
- Require human confirmation before sensitive operations.
- Monitor the interaction trajectory and verify the resulting application state.
- Do not treat a model-reported success as proof that the intended outcome was achieved.
## License
UI-Mate is released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Third-party components remain subject to their respective licenses. See the repository [LICENSE](https://github.com/Tencent/UI-Mate/blob/main/LICENSE) for details.
## Citation
```bibtex
@article{uimate2026,
title = {UI-Mate: Advancing Open-Weight Foundation GUI Agents with In-Context Demonstrations},
author = {Tencent HY Frontier Team},
journal = {arXiv preprint arXiv:2608.15930},
year = {2026},
}
``` |