Run this model with HF Jobs
Run BH-Language-AI/bh-vision-2-27b-cura on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/BH-Language-AI/bh-vision-2-27b-cura. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BH-Language-AI/bh-vision-2-27b-cura on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/BH-Language-AI/bh-vision-2-27b-cura. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/BH-Language-AI/bh-vision-2-27b-cura. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use BH-Language-AI/bh-vision-2-27b-cura with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BH-Language-AI/bh-vision-2-27b-cura with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/scratch/project_465003647/agentmujo9b/hf/hub/models--Qwen--Qwen3.5-27B/snapshots/81a287ca484a5e71148f5beb7f367bb5286d70f9/") model = PeftModel.from_pretrained(base_model, "BH-Language-AI/bh-vision-2-27b-cura") - Notebooks
- Google Colab
- Kaggle
Note (29.11.2026). This repo is kept for the reproducibility of the older results — nothing was deleted. The current measured results of the system (a cascade of three public models) are in BH-Language-AI/gama-cascade-sspro: 85,71 % (1.355/1.581) on the full 1.581 annotations, official ScreenSpot-Pro harness, err=0 (text 92,9 %, icon 74,0 %); predictions and scorer: github.com/gamai-io/cua.
The numbers in this card refer only to this individual model and remain accurate for it.
BH-Vision-2-27B-CURA
Gen 2 BH-Vision model for computer-use GUI grounding. Renamed from
lumi-vl-27b-cua→bh-vision-2-27b-cura(standardbh-vision-2-{size}-cura). Member of the BH-Vision collection. Base:Qwen/Qwen3.5-27B+ LoRA adapter. Language: bs/hr/sr/en. The old repo stays untouched for reproducibility.
Grounding for desktop applications: it finds the requested element in the image and returns normalized
coordinates (0-1000).
- Base:
Qwen/Qwen3.5-27B(Apache-2.0, 27,8B dense) - Training: LoRA r64 / α128, bf16, DDP 8×MI250X (LUMI-G)
- Data: GroundCUA 408k professional desktop pairs + 15 % of our Windows a11y pairs
- Steps: 320 optimization steps × 8 GPU × accum 2 (~5.100 samples), lr 1e-6, 2 MP
Results — official ScreenSpot-Pro protocol, the full 1.581 annotations
Measured with the likaixin2000/ScreenSpot-Pro-GUI-Grounding harness (Qwen3-VL path):
native max_pixels=1e8, smart_resize(factor=32), greedy, tool‑call prompt,
metric = inclusive point-in-bbox without tolerance.
| mode | avg | text (977) | icon (604) | parse fail |
|---|---|---|---|---|
| without zoom | 71,73 % | 83,0 % | 53,5 % | 0 |
| + zoom 50 % (2 passes, resize to the original) | 78,05 % | 87,1 % | 63,4 % | 0 |
Comparison (same harness, published values)
| model | avg | text | icon |
|---|---|---|---|
| cascade Indeed‑UI‑32B + KV‑Ground‑8B | 85,1 | 92,1 | 73,8 |
| Indeed‑UI‑32B + zoom‑in | 82,73 | 90,4 | 70,4 |
| Indeed‑UI‑8B + zoom‑in | 80,96 | 89,9 | 66,6 |
| KV‑Ground‑8B + zoom | 80,5 | 90,0 | 65,2 |
| this model + zoom 50 % | 78,05 | 87,1 | 63,4 |
The gap to the best 8B model is 2,9 pp and almost all of it is in the icons.
Critical: the zoom must return the crop to the original size
Without this the zoom gives only +2,5 pp; with it +6,3 pp. The difference is one line:
crop = img.crop((x0, y0, x0 + cw, y0 + ch))
crop = crop.resize(img.size, Image.BICUBIC) # <-- MANDATORY
Because a 50 % crop has 4× fewer pixels; without the resize the model gets fewer tokens and „zoom" only narrows the frame instead of increasing the effective resolution.
Usage
import torch
from PIL import Image
from transformers import AutoProcessor, AutoModelForImageTextToText
from peft import PeftModel
BASE, ADAPTER = "Qwen/Qwen3.5-27B", "BH-Language-AI/lumi-vl-27b-cua"
SYS = """You are a helpful assistant. The user will give you an instruction, and you MUST left click
on the corresponding UI element via tool call. If you are not sure about where to click, guess a most likely one.
# Tools
<tools>
{"type": "function", "function": {"name": "computer_use", "description": "Use a mouse to interact with a computer.\\n* The screen's resolution is 1000x1000.", "parameters": {"properties": {"action": {"enum": ["left_click"], "type": "string"}, "coordinate": {"type": "array"}, "required": ["action"], "type": "object"}}}}
</tools>
For each function call, return a json object within <tool_call></tool_call> XML tags:
<tool_call>
{"name": "computer_use", "arguments": {"action": "left_click", "coordinate": [x, y]}}
</tool_call>"""
proc = AutoProcessor.from_pretrained(BASE, trust_remote_code=True)
proc.image_processor.max_pixels = 10**8 # native
model = AutoModelForImageTextToText.from_pretrained(
BASE, dtype=torch.bfloat16, device_map="auto", trust_remote_code=True)
model = PeftModel.from_pretrained(model, ADAPTER).eval()
Two passes (gives +6,3 pp):
def click_point(img, instruction):
p1 = ask(model, proc, img, instruction) # point on the full image (0-1000)
W, H = img.size
x, y = p1[0] / 1000 * W, p1[1] / 1000 * H
cw, ch = W * 0.5, H * 0.5
x0 = int(min(max(x - cw / 2, 0), max(W - cw, 0)))
y0 = int(min(max(y - ch / 2, 0), max(H - ch, 0)))
crop = img.crop((x0, y0, x0 + int(cw), y0 + int(ch))).resize((W, H), Image.BICUBIC)
p2 = ask(model, proc, crop, instruction)
return x0 + p2[0] / 1000 * cw, y0 + p2[1] / 1000 * ch
Limitations (measured)
- Icons: 63,4 % — non-textual icons are the main source of errors (text is 87,1 %).
- Two zoom stages are WORSE (73,86 % on 528): too much zoom destroys the context.
- Zoom 35 % in a single pass = 75,55 % (683) — worse than 50 %.
- K‑candidate selection with a YES/NO verifier does not help when the base prediction is good (the scores saturate); oracle@8 = 84,5 % but the selector does not capture the gain.
- Not trained on SS‑Pro (no contamination; the test set was not used in training).
License
Apache-2.0 (base and adapter).
Related models
Evaluation and citation
The GUI-grounding benchmark behind our computer-use line is published with per-item predictions and a scorer:
cua — ScreenSpot-Pro 1,355/1,581 = 85.71 %, DOI 10.5281/zenodo.24732632
(repository: https://github.com/gamai-io/cua).
Signed-action evidence for agents: gama-mandate 1.0.58, DOI
10.5281/zenodo.24732646.
Every benchmark number we publish carries a command, a file or the word card-reported; numbers we could not
reproduce are listed as withdrawn in cua/CLAIMS.md.
- Downloads last month
- 34
Model tree for BH-Language-AI/bh-vision-2-27b-cura
Base model
Qwen/Qwen3.5-27B