Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
computer-use
gui-agent
gui-grounding
slot-reading
conversational
Instructions to use infinitylogesh/GUI-Decisions-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use infinitylogesh/GUI-Decisions-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="infinitylogesh/GUI-Decisions-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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("infinitylogesh/GUI-Decisions-2B") model = AutoModelForMultimodalLM.from_pretrained("infinitylogesh/GUI-Decisions-2B", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use infinitylogesh/GUI-Decisions-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "infinitylogesh/GUI-Decisions-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": "infinitylogesh/GUI-Decisions-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/infinitylogesh/GUI-Decisions-2B
- SGLang
How to use infinitylogesh/GUI-Decisions-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 "infinitylogesh/GUI-Decisions-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": "infinitylogesh/GUI-Decisions-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 "infinitylogesh/GUI-Decisions-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": "infinitylogesh/GUI-Decisions-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 infinitylogesh/GUI-Decisions-2B with Docker Model Runner:
docker model run hf.co/infinitylogesh/GUI-Decisions-2B
card: same-session latency (lazy and full reads)
Browse files
README.md
CHANGED
|
@@ -16,13 +16,15 @@ slots. The small-model result of the blog post
|
|
| 16 |
The LoRA alone: [GUI-Decisions-2B-LoRA](https://huggingface.co/infinitylogesh/GUI-Decisions-2B-LoRA); the 31B version:
|
| 17 |
[GUI-Decisions-31B](https://huggingface.co/infinitylogesh/GUI-Decisions-31B).
|
| 18 |
|
| 19 |
-
## Results
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
| 24 |
-
|
|
| 25 |
-
| GUI-Owl-2B
|
|
|
|
|
|
|
| 26 |
|
| 27 |
Vanilla GUI-Owl's click numbers use its agent prompt, not its dedicated grounding prompt.
|
| 28 |
|
|
@@ -30,12 +32,26 @@ This merged model, read in-process with transformers (bf16): ScreenSpot clicks 0
|
|
| 30 |
LoRA's 0.770 on the same cases (paired difference −0.006 [−0.013, +0.001], not significant; the unmerged
|
| 31 |
LoRA read the same way scores 0.764), and computer-use steps 0.627 on the held-out AGUVIS set.
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
## Use
|
| 34 |
|
| 35 |
### With vLLM (recommended)
|
| 36 |
|
| 37 |
-
Served on one RTX PRO 6000 a computer-use step takes
|
| 38 |
-
|
| 39 |
|
| 40 |
**1. Install** vLLM 0.30 and the reader (`slotread`, from the code repository):
|
| 41 |
|
|
|
|
| 16 |
The LoRA alone: [GUI-Decisions-2B-LoRA](https://huggingface.co/infinitylogesh/GUI-Decisions-2B-LoRA); the 31B version:
|
| 17 |
[GUI-Decisions-31B](https://huggingface.co/infinitylogesh/GUI-Decisions-31B).
|
| 18 |
|
| 19 |
+
## Results
|
| 20 |
|
| 21 |
+
Accuracy (blog post):
|
| 22 |
+
|
| 23 |
+
| | computer-use step (held-out AGUVIS, 1,600) | ScreenSpot clicks (1,272) |
|
| 24 |
+
| --- | --- | --- |
|
| 25 |
+
| **GUI-Owl-2B + the LoRA** | **0.626** | **0.770** |
|
| 26 |
+
| GUI-Owl-2B (its own tool-call format), native resolution | 0.626 | 0.645 |
|
| 27 |
+
| GUI-Owl-2B, same 1 MP images | 0.610 | 0.626 |
|
| 28 |
|
| 29 |
Vanilla GUI-Owl's click numbers use its agent prompt, not its dedicated grounding prompt.
|
| 30 |
|
|
|
|
| 32 |
LoRA's 0.770 on the same cases (paired difference −0.006 [−0.013, +0.001], not significant; the unmerged
|
| 33 |
LoRA read the same way scores 0.764), and computer-use steps 0.627 on the held-out AGUVIS set.
|
| 34 |
|
| 35 |
+
Latency of one computer-use step: vLLM 0.30, one RTX PRO 6000, cold screenshots, one request at a time,
|
| 36 |
+
all conditions in one session (`scripts/gui_owl.py bench 80`):
|
| 37 |
+
|
| 38 |
+
| how the step is decided | median (p90) |
|
| 39 |
+
| --- | --- |
|
| 40 |
+
| **slots, lazy**: `action`, `x`, `y`, then only the slots the action needs (what `decide` does) | **65 ms** (71) |
|
| 41 |
+
| slots, the whole template (8 slots) | 93 ms (104) |
|
| 42 |
+
| GUI-Owl-2B writing its tool call (~50 tokens), same 1 MP images | 194 ms (217) |
|
| 43 |
+
| GUI-Owl-2B writing its tool call (~50 tokens), native resolution | 323 ms (391) |
|
| 44 |
+
|
| 45 |
+
The blog's earlier session measured 133, 225 and 444 ms for the last three rows on another box; the
|
| 46 |
+
ratios agree (whole-template slots at ~30% of native-resolution GUI-Owl). End to end through `decide`,
|
| 47 |
+
including the client's JPEG encoding, a step takes ~85 ms.
|
| 48 |
+
|
| 49 |
## Use
|
| 50 |
|
| 51 |
### With vLLM (recommended)
|
| 52 |
|
| 53 |
+
Served on one RTX PRO 6000 a computer-use step takes ~83 ms end to end through the code below (median over
|
| 54 |
+
60 cold screenshots, client JPEG encoding included; the LoRA on the base model: ~87 ms).
|
| 55 |
|
| 56 |
**1. Install** vLLM 0.30 and the reader (`slotread`, from the code repository):
|
| 57 |
|