Image-Text-to-Text
Transformers
Safetensors
qwen2_vl
conversational
Eval Results
text-generation-inference
Run this model with HF Jobs
Run microsoft/GUI-Actor-7B-Qwen2-VL 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 and TRL to fine-tune https://huggingface.co/microsoft/GUI-Actor-7B-Qwen2-VL. 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/microsoft/GUI-Actor-7B-Qwen2-VL 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/microsoft/GUI-Actor-7B-Qwen2-VL. 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/microsoft/GUI-Actor-7B-Qwen2-VL. 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 microsoft/GUI-Actor-7B-Qwen2-VL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/GUI-Actor-7B-Qwen2-VL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="microsoft/GUI-Actor-7B-Qwen2-VL") 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, Qwen2VLForConditionalGenerationWithPointer processor = AutoProcessor.from_pretrained("microsoft/GUI-Actor-7B-Qwen2-VL") model = Qwen2VLForConditionalGenerationWithPointer.from_pretrained("microsoft/GUI-Actor-7B-Qwen2-VL", 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 microsoft/GUI-Actor-7B-Qwen2-VL with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/GUI-Actor-7B-Qwen2-VL" # 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-7B-Qwen2-VL", "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-7B-Qwen2-VL
- SGLang
How to use microsoft/GUI-Actor-7B-Qwen2-VL 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-7B-Qwen2-VL" \ --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-7B-Qwen2-VL", "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-7B-Qwen2-VL" \ --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-7B-Qwen2-VL", "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-7B-Qwen2-VL with Docker Model Runner:
docker model run hf.co/microsoft/GUI-Actor-7B-Qwen2-VL
Add ScreenSpot-Pro evaluation result (GUI-Actor-2VL-7B)
#3
by merve HF Staff - opened
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242- dataset: id: likaixin/ScreenSpot-Pro task_id: overall value: 40.7 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: android_studio_macos value: 31.2 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: autocad_windows value: 14.7 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: blender_windows value: 38.0 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: davinci_macos value: 43.2 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: eviews_windows value: 80.0 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: excel_macos value: 43.8 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: fruitloops_windows value: 40.4 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: illustrator_windows value: 41.9 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: inventor_windows value: 27.1 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: linux_common_linux value: 42.0 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: macos_common_macos value: 40.0 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: matlab_macos value: 50.5 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: origin_windows value: 19.4 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: photoshop_windows value: 39.2 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: powerpoint_windows value: 52.4 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: premiere_windows value: 30.8 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: pycharm_macos value: 39.7 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: quartus_windows value: 24.4 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: solidworks_windows value: 19.5 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: stata_windows value: 28.6 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: unreal_engine_windows value: 54.3 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: vivado_windows value: 47.5 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: vmware_macos value: 53.7 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: vscode_macos value: 49.1 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: windows_common_windows value: 29.6 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve
- dataset: id: likaixin/ScreenSpot-Pro task_id: word_macos value: 70.2 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve.eval_results/screenspot_pro.yamlAdded+242