# MAI-UI
**Repository Path**: e-leven11/MAI-UI
## Basic Information
- **Project Name**: MAI-UI
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-12-29
- **Last Updated**: 2025-12-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# MAI-UI Mobile
> MAI-UI: Real-World Centric Foundation GUI Agents.

## π° News
* π **[2025-12-29]** We release MAI-UI Technical Report on [arXiv](https://arxiv.org/abs/2512.22047)!
* π **[2025-12-29]** Initial release of [MAI-UI-8B](https://huggingface.co/Tongyi-MAI/MAI-UI-8B) and [MAI-UI-2B](https://huggingface.co/Tongyi-MAI/MAI-UI-2B) models on Hugging Face.
## π Table of Contents
- [π Background](#-background)
- [π Results](#-results)
- [π₯ Demo](#-demo)
- [π Quick Start](#-installation--quick-start)
- [π Citation](#-citation)
- [π§ Contact](#-contact)
- [π License](#-license)
## π Background
The development of GUI agents could revolutionize the next generation of human-computer interaction. Motivated by this vision, we present MAI-UI, a family of foundation GUI agents spanning the full spectrum of sizes, including 2B, 8B, 32B, and 235B-A22B variants. We identify four key challenges to realistic deployment: the lack of native agentβuser interaction, the limits of UI-only operation, the absence of a practical deployment architecture, and brittleness in dynamic environments. MAI-UI addresses these issues with a unified methodology: a self-evolving data pipeline that expands the navigation data to include user interaction and MCP tool calls, a native deviceβcloud collaboration system that routes execution by task state, and an online RL framework with advanced optimizations to scale parallel environments and context length.
## π Results
MAI-UI establishes new state-of-the-art across GUI grounding and mobile navigation.
- On grounding benchmarks, it reaches 73.5% on ScreenSpot-Pro, 91.3% on MMBench GUI L2, 70.9% on OSWorld-G, and 49.2% on UI-Vision, surpassing Gemini-3-Pro and Seed1.8 on ScreenSpot-Pro.
 ScreenSpot-Pro |
 UI-Vision |
 MMBench GUI L2 |
 OSWorld-G |
- On mobile GUI navigation, it sets a new SOTA of 76.7% on AndroidWorld, surpassing UI-Tars-2, Gemini-2.5-Pro and Seed1.8. On MobileWorld, MAI-UI obtains 41.7% success rate, significantly outperforming end-to-end GUI models and competitive with Gemini-3-Pro based agentic frameworks.
 AndroidWorld |
 MobileWorld |
- Our online RL experiments show significant gains from scaling parallel environments from 32 to 512 (+5.2 points) and increasing environment step budget from 15 to 50 (+4.3 points).
 Online RL Results |
 RL Environment Scaling |
- Our device-cloud collaboration framework can dynamically select on-device or cloud execution based on task execution state and data sensitivity. It improves on-device performance by 33% and reduces cloud API calls by over 40%.
 Device-cloud Collaboration |
## π₯ Demo
### Demo 1 - Living Scenario
Trigger `ask_user` for more information to complete the task.
### Demo 2 - Navigation
Use `mcp_call` to invoke AMap tools for navigation.
### Demo 3 - Shopping
Cross-apps collaboration to complete the task.
### Demo 4 - Work
Cross-apps collaboration to complete the task.
### Demo 5 - Device-only
Device-cloud collaboration for simple tasks, no need cloud model invocation.
### Demo 6 - Device-cloud Collaboration
Device-cloud collaboration for complex tasks, requiring cloud model invocation when the task is beyond the device models capabilities.
## π Installation & Quick Start
### Step 1: Clone the Repository
```bash
git clone https://github.com/Tongyi-MAI/MAI-UI.git
cd MAI-UI
```
### Step 2: Start Model API Service with vLLM
Download the model from HuggingFace and deploy the API service using vLLM:
HuggingFace model path:
- [MAI-UI-2B](https://huggingface.co/Tongyi-MAI/MAI-UI-2B)
- [MAI-UI-8B](https://huggingface.co/Tongyi-MAI/MAI-UI-8B)
Deploy the model using vLLM:
```bash
# Install vLLM
pip install vllm # vllm>=0.11.0 and transformers>=4.57.0
# Start vLLM API server (replace MODEL_PATH with your local model path or HuggingFace model ID)
python -m vllm.entrypoints.openai.api_server \
--model \
--served-model-name MAI-UI-8B \
--host 0.0.0.0 \
--port 8000 \
--tensor-parallel-size 1 \
--trust-remote-code
```
> π‘ **Tips:**
> - Adjust `--tensor-parallel-size` based on your GPU count for multi-GPU inference
> - The model will be served at `http://localhost:8000/v1`
### Step 3: Install Dependencies
```bash
pip install -r requirements.txt
```
### Step 4: Run cookbook notebooks
We provide two notebooks in the `cookbook/` directory:
#### 4.1 Grounding Demo
The `grounding.ipynb` demonstrates how to use the MAI Grounding Agent to locate UI elements:
```bash
cd cookbook
jupyter notebook grounding.ipynb
```
Before running, update the API endpoint in the notebook:
```python
agent = MAIGroundingAgent(
llm_base_url="http://localhost:8000/v1", # Update to your vLLM server address
model_name="MAI-UI-8B", # Use the served model name
runtime_conf={
"history_n": 3,
"temperature": 0.0,
"top_k": -1,
"top_p": 1.0,
"max_tokens": 2048,
},
)
```
#### 4.2 Navigation Agent Demo
The `run_agent.ipynb` demonstrates the full UI navigation agent:
```bash
cd cookbook
jupyter notebook run_agent.ipynb
```
Similarly, update the API endpoint configuration:
```python
agent = MAIUINaivigationAgent(
llm_base_url="http://localhost:8000/v1", # Update to your vLLM server address
model_name="MAI-UI-8B", # Use the served model name
runtime_conf={
"history_n": 3,
"temperature": 0.0,
"top_k": -1,
"top_p": 1.0,
"max_tokens": 2048,
},
)
```
---
## π Citation
If you find this project useful for your research, please consider citing our work:
```bibtex
@misc{zhou2025maiuitechnicalreportrealworld,
title={MAI-UI Technical Report: Real-World Centric Foundation GUI Agents},
author={Hanzhang Zhou and Xu Zhang and Panrong Tong and Jianan Zhang and Liangyu Chen and Quyu Kong and Chenglin Cai and Chen Liu and Yue Wang and Jingren Zhou and Steven Hoi},
year={2025},
eprint={2512.22047},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2512.22047},
}
```
## π§ Contact
For questions and support, please contact:
- **Hanzhang Zhou**
Email: [hanzhang.zhou@alibaba-inc.com](mailto:hanzhang.zhou@alibaba-inc.com)
- **Xu Zhang**
Email: [hanguang.zx@alibaba-inc.com](mailto:hanguang.zx@alibaba-inc.com)
- **Yue Wang**
Email: [yue.w@alibaba-inc.com](mailto:yue.w@alibaba-inc.com)
## π License
MAI-UI Mobile is a foundation GUI agent developed by Alibaba Cloud and licensed under the Apache License (Version 2.0).
This product contains various third-party components under other open source licenses.
See the NOTICE file for more information.