Instructions to use AskUI/PTA-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AskUI/PTA-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AskUI/PTA-1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("AskUI/PTA-1", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("AskUI/PTA-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AskUI/PTA-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AskUI/PTA-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AskUI/PTA-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AskUI/PTA-1
- SGLang
How to use AskUI/PTA-1 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 "AskUI/PTA-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AskUI/PTA-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "AskUI/PTA-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AskUI/PTA-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AskUI/PTA-1 with Docker Model Runner:
docker model run hf.co/AskUI/PTA-1
Update README.md
Browse files11 unmodified lines12131415161718192041 unmodified lines626364656667686913 unmodified lines8384858687888990919211 unmodified lines# PTA-1: Controlling Computers with Small ModelsPTA (Prompt-to-Automation) is a vision language model for computer use applications based on Florence-2.With less than 300M parameters it beats larger models in GUI text and element localization.This allows low latency computer automations with local execution.**Model Input:** Screenshot + description_of_target_element41 unmodified lines## Evaluation**Note:** This is a first version of our evaluation with 999 samples (333 samples from each dataset).We are still running all models on the full test sets. We are seeing +-5% deviations for a subset of the models we have already evaluated.| Model | Parameters | Mean | agentsea/wave-ui | AskUI/pta-text | ivelin/rico_refexp_combined ||--------------------------------------------|------------|--------|------------------|----------------|-----------------------------|13 unmodified lines\* Models is known to be trained on the train split of that dataset.The high benchmark scores for our model are partially due to data bias.Therefore we expect users of the model to fine-tune it according to the data distributions of their use case.#### MetricsClick success rate is calculated as the number of clicks inside the target bounding box.If a model predicts a target bounding box instead of a click coordinate, its center is used as its click prediction.11 unmodified lines12131415161718192041 unmodified lines626364656667686913 unmodified lines8384858687888990919211 unmodified lines# PTA-1: Controlling Computers with Small ModelsPTA (Prompt-to-Automation) is a vision language model for computer & phone automation, based on Florence-2.With only 270M parameters it outperforms much larger models in GUI text and element localization.This enables low-latency computer automation with local execution.**Model Input:** Screenshot + description_of_target_element41 unmodified lines## Evaluation**Note:** This is a first version of our evaluation, based on 999 samples (333 samples from each dataset).We are still running all models on the full test sets, and we are seeing ±5% deviations for a subset of the models we have already evaluated.| Model | Parameters | Mean | agentsea/wave-ui | AskUI/pta-text | ivelin/rico_refexp_combined ||--------------------------------------------|------------|--------|------------------|----------------|-----------------------------|13 unmodified lines\* Models is known to be trained on the train split of that dataset.The high benchmark scores for our model are partially due to data bias.Therefore, we expect users of the model to fine-tune it according to the data distributions of their use case.#### MetricsClick success rate is calculated as the number of clicks inside the target bounding box relative to all clicks.If a model predicts a target bounding box instead of a click coordinate, its center is used as its click prediction.
README.md+7-7