Instructions to use gokaygokay/PaliGemma-PixelProse with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gokaygokay/PaliGemma-PixelProse with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="gokaygokay/PaliGemma-PixelProse")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("gokaygokay/PaliGemma-PixelProse") model = AutoModelForMultimodalLM.from_pretrained("gokaygokay/PaliGemma-PixelProse", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use gokaygokay/PaliGemma-PixelProse with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gokaygokay/PaliGemma-PixelProse" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gokaygokay/PaliGemma-PixelProse", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/gokaygokay/PaliGemma-PixelProse
- SGLang
How to use gokaygokay/PaliGemma-PixelProse 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 "gokaygokay/PaliGemma-PixelProse" \ --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": "gokaygokay/PaliGemma-PixelProse", "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 "gokaygokay/PaliGemma-PixelProse" \ --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": "gokaygokay/PaliGemma-PixelProse", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use gokaygokay/PaliGemma-PixelProse with Docker Model Runner:
docker model run hf.co/gokaygokay/PaliGemma-PixelProse
Commit History
-
Add repository citation and ORCID
Verified signatureAdds a repository-specific BibTeX citation, ORCID identifier, and upstream citation guidance. Existing card content and metadata are preserved.4710e4f
-
Update README.md
Verified signaturea31e92b -
Update README.md
Verified signaturef636b8c -
Update README.md
Verified signatureebc9a57 -
Upload folder using huggingface_hub
Verified signatured21cbba -
initial commit
Verified signature4fff3e9