File size: 2,388 Bytes
af46737 | 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 | # π Welcome to the M3A Agent Powered by Aria-UI for AndroidWorld!
Weβre thrilled to release the **M3A Agent powered by Aria-UI**! π This integration enhances task success rates and brings seamless grounding instruction understanding to **AndroidWorld**. Follow the steps below to get started. π
## π οΈ How to Use M3A Agent with AndroidWorld
### 1οΈβ£ Clone AndroidWorld and Set Up the Environment
First, clone the latest version of **AndroidWorld** and install the required dependencies:
```bash
git clone https://github.com/google-research/android_world.git
cd android_world
```
For more details, check out the official [AndroidWorld GitHub repository](https://github.com/google-research/android_world?tab=readme-ov-file).
### 2οΈβ£ Merge M3A Agent Files with AndroidWorld
Weβve organized our files to match AndroidWorldβs directory structure. To integrate:
- Merge the provided `agents/` and `env/` directories with the respective directories in AndroidWorld.
- Place `run_aria_ui.py` in the root directory of AndroidWorld.
After merging, your directory structure should look like this:
```
AndroidWorld/
βββ agents/
β βββ aria_ui_utils.py
β βββ m3a_aria_ui.py
βββ env/
β βββ json_action.py
βββ run_aria_ui.py
...
```
### 3οΈβ£ Deploy Aria-UI API π
Under AndroidWorld/agents/aria_ui_utils.py, youβll find how we connect to Aria-UI using an API. Follow these steps to set it up:
- Deploy Aria-UI with vLLM to serve an OpenAI-style API.
Reference the [vLLM OpenAI-Compatible Server](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html).
- Update the API key and base URL in `aria_ui_utils.py` to match your deployment. Replace the placeholders with your values:
```python
ariaui_api_key = "ariaui_api_key"
ariaui_api_base = "ariaui_api_base"
```
**Note**: You may also set up a simple API server with the vLLM inference script and [FastAPI](https://github.com/fastapi/fastapi).
### 4οΈβ£ Run the M3A Agent π
Once everything is set up, run the agent with the following command:
```python
python run_aria_ui.py
```
Sit back and watch **Aria-UI** in action! π
### π‘ Additional Notes
For troubleshooting or further customization, explore `aria_ui_utils.py` and `m3a_aria_ui.py` to understand how Aria-UI is integrated.
Enjoy using the M3A Agent powered by **Aria-UI**! π |