Instructions to use microsoft/GUI-Actor-Verifier-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/GUI-Actor-Verifier-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="microsoft/GUI-Actor-Verifier-2B") 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("microsoft/GUI-Actor-Verifier-2B") model = AutoModelForImageTextToText.from_pretrained("microsoft/GUI-Actor-Verifier-2B") 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
- vLLM
How to use microsoft/GUI-Actor-Verifier-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/GUI-Actor-Verifier-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/GUI-Actor-Verifier-2B", "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/microsoft/GUI-Actor-Verifier-2B
- SGLang
How to use microsoft/GUI-Actor-Verifier-2B 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 "microsoft/GUI-Actor-Verifier-2B" \ --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": "microsoft/GUI-Actor-Verifier-2B", "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 "microsoft/GUI-Actor-Verifier-2B" \ --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": "microsoft/GUI-Actor-Verifier-2B", "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 microsoft/GUI-Actor-Verifier-2B with Docker Model Runner:
docker model run hf.co/microsoft/GUI-Actor-Verifier-2B
Add library name, pipeline tag, and correct links
Browse filesThis PR adds the `library_name` and `pipeline_tag` metadata to the model card for improved discoverability and usability on the Hugging Face Hub. It also corrects the links to the project page and paper using the provided URLs. The `mit` license is retained from the existing model card.
README.md
CHANGED
|
@@ -1,28 +1,30 @@
|
|
| 1 |
---
|
| 2 |
-
license: mit
|
| 3 |
-
datasets:
|
| 4 |
-
- OS-Copilot/OS-Atlas-data
|
| 5 |
base_model:
|
| 6 |
- ByteDance-Seed/UI-TARS-2B-SFT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
# GUI-Actor-Verifier-2B
|
| 10 |
|
| 11 |
|
| 12 |
-
This model was introduced in the paper [**GUI-Actor: Coordinate-Free Visual Grounding for GUI Agents**](https://
|
| 13 |
It is developed based on [UI-TARS-2B-SFT](https://huggingface.co/ByteDance-Seed/UI-TARS-2B-SFT) and is designed to predict the correctness of an action position given a language instruction. This model is well-suited for **GUI-Actor**, as its attention map effectively provides diverse candidates for verification with only a single inference.
|
| 14 |
|
| 15 |
|
| 16 |
-
For more details on model design and evaluation, please check: [
|
| 17 |
|
| 18 |
|
| 19 |
| Model List | Hugging Face Link |
|
| 20 |
|--------------------------------------------|--------------------------------------------|
|
| 21 |
-
| **GUI-Actor-7B-Qwen2-VL** | [
|
| 22 |
-
| **GUI-Actor-2B-Qwen2-VL** | [
|
| 23 |
-
| **GUI-Actor-7B-Qwen2.5-VL (coming soon)** | [
|
| 24 |
-
| **GUI-Actor-3B-Qwen2.5-VL (coming soon)** | [
|
| 25 |
-
| **GUI-Actor-Verifier-2B** | [
|
| 26 |
|
| 27 |
|
| 28 |
|
|
@@ -58,8 +60,8 @@ Table 2. Main results on the ScreenSpot-Pro and ScreenSpot-v2 with **Qwen2.5-VL*
|
|
| 58 |
| **_3B models:_**
|
| 59 |
| Qwen2.5-VL-3B | Qwen2.5-VL | 25.9 | 80.9 |
|
| 60 |
| Jedi-3B | Qwen2.5-VL | 36.1 | 88.6 |
|
| 61 |
-
| GUI-Actor-3B | Qwen2.5-VL | 42.2 | 91.0 |
|
| 62 |
-
| GUI-Actor-3B + Verifier | Qwen2.5-VL |
|
| 63 |
|
| 64 |
## 🚀 Usage
|
| 65 |
The verifier takes a language instruction and an image with a red circle marking the target position as input. One example is shown below. It outputs either ‘True’ or ‘False’, and you can also use the probability of each label to score the sample.
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model:
|
| 3 |
- ByteDance-Seed/UI-TARS-2B-SFT
|
| 4 |
+
datasets:
|
| 5 |
+
- OS-Copilot/OS-Atlas-data
|
| 6 |
+
license: mit
|
| 7 |
+
pipeline_tag: image-text-to-text
|
| 8 |
+
library_name: transformers
|
| 9 |
---
|
| 10 |
|
| 11 |
# GUI-Actor-Verifier-2B
|
| 12 |
|
| 13 |
|
| 14 |
+
This model was introduced in the paper [**GUI-Actor: Coordinate-Free Visual Grounding for GUI Agents**](https://huggingface.co/papers/2506.03143).
|
| 15 |
It is developed based on [UI-TARS-2B-SFT](https://huggingface.co/ByteDance-Seed/UI-TARS-2B-SFT) and is designed to predict the correctness of an action position given a language instruction. This model is well-suited for **GUI-Actor**, as its attention map effectively provides diverse candidates for verification with only a single inference.
|
| 16 |
|
| 17 |
|
| 18 |
+
For more details on model design and evaluation, please check: [Project Page](https://microsoft.github.io/GUI-Actor/) | [Github Repo](https://github.com/microsoft/GUI-Actor) | [Paper](https://huggingface.co/papers/2506.03143).
|
| 19 |
|
| 20 |
|
| 21 |
| Model List | Hugging Face Link |
|
| 22 |
|--------------------------------------------|--------------------------------------------|
|
| 23 |
+
| **GUI-Actor-7B-Qwen2-VL** | [Hugging Face](https://huggingface.co/microsoft/GUI-Actor-7B-Qwen2-VL) |
|
| 24 |
+
| **GUI-Actor-2B-Qwen2-VL** | [Hugging Face](https://huggingface.co/microsoft/GUI-Actor-2B-Qwen2-VL) |
|
| 25 |
+
| **GUI-Actor-7B-Qwen2.5-VL (coming soon)** | [Hugging Face](https://huggingface.co/microsoft/GUI-Actor-7B-Qwen2.5-VL) |
|
| 26 |
+
| **GUI-Actor-3B-Qwen2.5-VL (coming soon)** | [Hugging Face](https://huggingface.co/microsoft/GUI-Actor-3B-Qwen2.5-VL) |
|
| 27 |
+
| **GUI-Actor-Verifier-2B** | [Hugging Face](https://huggingface.co/microsoft/GUI-Actor-Verifier-2B) |
|
| 28 |
|
| 29 |
|
| 30 |
|
|
|
|
| 60 |
| **_3B models:_**
|
| 61 |
| Qwen2.5-VL-3B | Qwen2.5-VL | 25.9 | 80.9 |
|
| 62 |
| Jedi-3B | Qwen2.5-VL | 36.1 | 88.6 |
|
| 63 |
+
| GUI-Actor-3B | Qwen2.5-VL | **42.2** | **91.0** |
|
| 64 |
+
| GUI-Actor-3B + Verifier | Qwen2.5-VL | 45.9 | 92.4 |
|
| 65 |
|
| 66 |
## 🚀 Usage
|
| 67 |
The verifier takes a language instruction and an image with a red circle marking the target position as input. One example is shown below. It outputs either ‘True’ or ‘False’, and you can also use the probability of each label to score the sample.
|