Image-Text-to-Text
Transformers
Safetensors
English
qwen2_vl
multimodal
gui
conversational
Eval Results
text-generation-inference
Run this model with HF Jobs
Run ByteDance-Seed/UI-TARS-2B-SFT 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/ByteDance-Seed/UI-TARS-2B-SFT. 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/ByteDance-Seed/UI-TARS-2B-SFT 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/ByteDance-Seed/UI-TARS-2B-SFT. 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/ByteDance-Seed/UI-TARS-2B-SFT. 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 ByteDance-Seed/UI-TARS-2B-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance-Seed/UI-TARS-2B-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ByteDance-Seed/UI-TARS-2B-SFT") 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("ByteDance-Seed/UI-TARS-2B-SFT") model = AutoModelForMultimodalLM.from_pretrained("ByteDance-Seed/UI-TARS-2B-SFT", 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 ByteDance-Seed/UI-TARS-2B-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ByteDance-Seed/UI-TARS-2B-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ByteDance-Seed/UI-TARS-2B-SFT", "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/ByteDance-Seed/UI-TARS-2B-SFT
- SGLang
How to use ByteDance-Seed/UI-TARS-2B-SFT 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 "ByteDance-Seed/UI-TARS-2B-SFT" \ --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": "ByteDance-Seed/UI-TARS-2B-SFT", "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 "ByteDance-Seed/UI-TARS-2B-SFT" \ --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": "ByteDance-Seed/UI-TARS-2B-SFT", "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 ByteDance-Seed/UI-TARS-2B-SFT with Docker Model Runner:
docker model run hf.co/ByteDance-Seed/UI-TARS-2B-SFT
Add ScreenSpot-Pro evaluation result (UI-TARS-2B)
#8
by merve HF Staff - opened
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242- dataset: id: likaixin/ScreenSpot-Pro task_id: overall value: 27.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: 23.8 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: 0 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: 28.2 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: 27.3 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: 84.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: 20.3 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: 31.6 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: 0 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: 2.9 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: 24.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: 15.4 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: 43.0 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: 21.0 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: 35.3 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: 32.9 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: 23.1 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: 20.5 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: 17.8 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: 5.2 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: 12.2 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: 40.0 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: 40.0 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: 41.5 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: 34.5 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: 7.4 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: 69.0 source: url: https://gui-agent.github.io/grounding-leaderboard/ name: ScreenSpot-Pro Leaderboard user: merve.eval_results/screenspot_pro.yamlAdded+242