Instructions to use inclusionAI/UI-Venus-2-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/UI-Venus-2-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="inclusionAI/UI-Venus-2-9B") 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("inclusionAI/UI-Venus-2-9B") model = AutoModelForMultimodalLM.from_pretrained("inclusionAI/UI-Venus-2-9B", 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 inclusionAI/UI-Venus-2-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/UI-Venus-2-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/UI-Venus-2-9B", "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/inclusionAI/UI-Venus-2-9B
- SGLang
How to use inclusionAI/UI-Venus-2-9B 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 "inclusionAI/UI-Venus-2-9B" \ --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": "inclusionAI/UI-Venus-2-9B", "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 "inclusionAI/UI-Venus-2-9B" \ --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": "inclusionAI/UI-Venus-2-9B", "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 inclusionAI/UI-Venus-2-9B with Docker Model Runner:
docker model run hf.co/inclusionAI/UI-Venus-2-9B
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -8,6 +8,10 @@ tags:
|
|
| 8 |
- agent
|
| 9 |
---
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# UI-Venus-2-9B
|
| 12 |
|
| 13 |
<div align="center">
|
|
@@ -34,6 +38,10 @@ UI-Venus-2 further integrates **safety-aware mechanisms** to ensure controlled e
|
|
| 34 |
|
| 35 |
This repository releases the full-parameter weights of **UI-Venus-2-9B**, initialized from [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), which achieves near state-of-the-art performance among models of comparable scale across GUI grounding, mobile, web, computer-use, and CAPTCHA benchmarks.
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
## Highlights
|
| 38 |
|
| 39 |
- **Scaled multilingual mobile-use environments with reliable task generation.** A substantially expanded executable mobile pool covering Chinese and English app ecosystems, paired with a deep-research-driven query-generation strategy grounded in real application functionality.
|
|
@@ -49,6 +57,16 @@ UI-Venus-2 is trained on a deliberately complementary mixture of five task famil
|
|
| 49 |
2. **Offline RL** — step-level RL trajectories for Mobile, OS, and Web optimize state-aware action selection and execution reliability, while verified CAPTCHA and grounding instances embedded in realistic interfaces teach precise localization under visual clutter.
|
| 50 |
3. **Multi-teacher On-policy Distillation** — domain-specialized teachers are consolidated into a single unified policy that preserves the broad multimodal reasoning of the base model while composing spatial grounding, verified interaction, and long-horizon navigation.
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## Quick Start
|
| 53 |
|
| 54 |
### Serving with vLLM
|
|
|
|
| 8 |
- agent
|
| 9 |
---
|
| 10 |
|
| 11 |
+
<div align="center">
|
| 12 |
+
<img src="assets/ui-venus-logo.png" width="140" alt="UI-Venus logo">
|
| 13 |
+
</div>
|
| 14 |
+
|
| 15 |
# UI-Venus-2-9B
|
| 16 |
|
| 17 |
<div align="center">
|
|
|
|
| 38 |
|
| 39 |
This repository releases the full-parameter weights of **UI-Venus-2-9B**, initialized from [Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B), which achieves near state-of-the-art performance among models of comparable scale across GUI grounding, mobile, web, computer-use, and CAPTCHA benchmarks.
|
| 40 |
|
| 41 |
+
<div align="center">
|
| 42 |
+
<img src="assets/performance_overview.png" width="100%" alt="Performance overview of UI-Venus-2 across GUI agent benchmarks">
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
## Highlights
|
| 46 |
|
| 47 |
- **Scaled multilingual mobile-use environments with reliable task generation.** A substantially expanded executable mobile pool covering Chinese and English app ecosystems, paired with a deep-research-driven query-generation strategy grounded in real application functionality.
|
|
|
|
| 57 |
2. **Offline RL** — step-level RL trajectories for Mobile, OS, and Web optimize state-aware action selection and execution reliability, while verified CAPTCHA and grounding instances embedded in realistic interfaces teach precise localization under visual clutter.
|
| 58 |
3. **Multi-teacher On-policy Distillation** — domain-specialized teachers are consolidated into a single unified policy that preserves the broad multimodal reasoning of the base model while composing spatial grounding, verified interaction, and long-horizon navigation.
|
| 59 |
|
| 60 |
+
<div align="center">
|
| 61 |
+
<img src="assets/training_pipeline.png" width="90%" alt="The three-stage training pipeline of UI-Venus-2">
|
| 62 |
+
</div>
|
| 63 |
+
|
| 64 |
+
The training data is produced by a deep-research-driven task-generation pipeline and collected at scale across mobile (ADB, 200+ apps), browser (Playwright, 50k+ websites), and computer (PyAutoGUI / VM, 50+ desktop applications) environments:
|
| 65 |
+
|
| 66 |
+
<div align="center">
|
| 67 |
+
<img src="assets/system_overview.png" width="100%" alt="System overview: task generation pipeline and trajectory collection across mobile, browser, and computer environments">
|
| 68 |
+
</div>
|
| 69 |
+
|
| 70 |
## Quick Start
|
| 71 |
|
| 72 |
### Serving with vLLM
|