Downloads · 30 days
72
26% of all-time downloads
prithivMLmods/Herculis-CUA-GUI-Actioner-4B
Herculis-CUA-GUI-Actioner-4B is a image-text-to-text model from prithivMLmods. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
Downloads · 30 days
72
26% of all-time downloads
All-time downloads
281
Public
Parameters
3.8B
7.5 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors7.5 GB · 100%
From the Hugging Face model README

Herculis-CUA-GUI-Actioner-4B is a Computer Use Agent (CUA) multimodal model designed for GUI understanding, UI localization, and action execution across web, desktop, and mobile environments. It focuses on visual grounding, intent driven actioning, and UI based question answering (VQA), enabling reliable interaction with real world software interfaces. The model is optimized for efficient inference while maintaining strong accuracy on complex UI workflows.
GUI Localization and Visual Grounding Precisely identifies UI elements such as buttons, text fields, menus, icons, dialogs, and dynamic components across diverse layouts and resolutions.
Action Planning and Execution Translates natural language instructions into structured UI actions such as click, type, scroll, drag, select, and navigate, with step wise reasoning.
UI Based Question Answering (VQA) Answers questions grounded in the current screen state, including element states, content verification, and workflow guidance.
Cross Platform Computer Use Operates across web applications, desktop software, and mobile interfaces with consistent behavior and robust visual understanding.
Multi Step Task Automation Handles long horizon tasks such as form filling, settings configuration, dashboard navigation, and tool driven workflows.
Robust Visual Parsing Understands complex UI structures including tables, modals, nested menus, toolbars, charts, and responsive layouts.
Context Aware Interaction Maintains task context across screens and state changes for reliable end to end task completion.
!git clone https://github.com/PRITHIVSAKTHIUR/Herculis-CUA-GUI-Actioner-4B-Demo.git
%cd Herculis-CUA-GUI-Actioner-4B-Demo
Make sure you have Python 3.10 or higher installed.
!pip install -r requirements.txt
!python app.py
# -> After running the app, click on “Running on public URL” to open the app in a new window.
Localize: Locate the
microsoft/Fara-7Bmodel.
| Type | Preview |
|---|---|
| Input Image | ![]() |
| Output Image | ![]() |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"prithivMLmods/Herculis-CUA-GUI-Actioner-4B",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained("prithivMLmods/Herculis-CUA-GUI-Actioner-4B")
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": "<SCREENSHOT_OR_UI_IMAGE>"},
{"type": "text", "text": "Click the settings icon and enable dark mode."},
],
}
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
text=[text],
images=image_inputs,
videos=video_inputs,
padding=True,
return_tensors="pt",
)
inputs = inputs.to("cuda")
generated_ids = model.generate(**inputs, max_new_tokens=1024)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False,
)
print(output_text)