Instructions to use qhfmshal/TRPaliGemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qhfmshal/TRPaliGemma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="qhfmshal/TRPaliGemma")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("qhfmshal/TRPaliGemma") model = AutoModelForMultimodalLM.from_pretrained("qhfmshal/TRPaliGemma", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use qhfmshal/TRPaliGemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qhfmshal/TRPaliGemma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qhfmshal/TRPaliGemma", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/qhfmshal/TRPaliGemma
- SGLang
How to use qhfmshal/TRPaliGemma 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 "qhfmshal/TRPaliGemma" \ --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": "qhfmshal/TRPaliGemma", "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 "qhfmshal/TRPaliGemma" \ --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": "qhfmshal/TRPaliGemma", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use qhfmshal/TRPaliGemma with Docker Model Runner:
docker model run hf.co/qhfmshal/TRPaliGemma
Commit History
-
Update README.md
Verified signature14f738d -
Update README.md
Verified signature9d56046
-
Create config.json
Verified signaturef63f2ec
-
Training done
Verified signature4b8592c -
Training in progress, epoch 7
Verified signature2057914 -
Training in progress, epoch 6
Verified signaturee846f0d -
Training in progress, epoch 5
Verified signatured1f67c1 -
Training in progress, epoch 4
Verified signatured979250 -
Training in progress, epoch 3
Verified signatureb9cc079 -
Training in progress, epoch 2
Verified signature077da2a -
Training in progress, epoch 1
Verified signature45d244c -
Training in progress, epoch 0
Verified signature124d009
-
Training in progress, epoch 4
Verified signaturecd60060 -
Training in progress, epoch 3
Verified signaturedcfcc2b -
Training in progress, epoch 2
Verified signature53c8c8d -
Training in progress, epoch 1
Verified signature54c7de4 -
Training in progress, epoch 0
Verified signature3cc6583 -
initial commit
Verified signature8711c9d