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)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("AskUI/PTA-1", trust_remote_code=True) model = AutoModelForImageTextToText.from_pretrained("AskUI/PTA-1", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Dataset and hyperparameters for training
Hello,
what dataset and which hyperparameters have been used for the training?
Hello,
we've trained it on an internal dataset witht the basic hyperparmeters.
Hello @programmnix-askui ,
Thank you for your response! What exactly do you mean by "basic hyperparameters"? 😉
What learning rate and learning rate scheduler have you used? And call you tell something about the size of the dataset?
I intend to fine-tune your model on a custom internal GUI dataset. Could you provide some suggestions regarding LoRa parameters, like r or lora_alpha? I've read that the following modules are commonly trained when using Florence-2 models:
target_modules = ["q_proj", "o_proj", "k_proj", "v_proj", "linear", "Conv2d", "lm_head", "fc2"]
Furthermore, how should the dataset be structured? I assume it should follow the format <OPEN_VOCABULARY_DETECTION>{task_prompt}, since you used the default OPEN_VOCABULARY_DETECTION task for Florence-2. However, it's unclear to me exactly how the task_prompt should be formulated. In your demo (https://huggingface.co/spaces/AskUI/PTA-1), the examples don’t seem to follow a typical imperative-style utterance.
For instance, this utterance fails:
But a simple combination of nouns works:
Additionally, referring expressions seems also to fail, e.g.:
Could you clarify the expected format for task_prompt?
Looking forward to your insights!


