Instructions to use ryandono/pali2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ryandono/pali2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ryandono/pali2")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ryandono/pali2") model = AutoModelForMultimodalLM.from_pretrained("ryandono/pali2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ryandono/pali2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ryandono/pali2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ryandono/pali2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ryandono/pali2
- SGLang
How to use ryandono/pali2 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 "ryandono/pali2" \ --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": "ryandono/pali2", "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 "ryandono/pali2" \ --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": "ryandono/pali2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ryandono/pali2 with Docker Model Runner:
docker model run hf.co/ryandono/pali2
Delete paligemma-3b-pt-224-custom.pt
Browse files- paligemma-3b-pt-224-custom.pt/config.json +0 -3
- paligemma-3b-pt-224-custom.pt/generation_config.json +0 -3
- paligemma-3b-pt-224-custom.pt/model-00001-of-00003.safetensors +0 -3
- paligemma-3b-pt-224-custom.pt/model-00002-of-00003.safetensors +0 -3
- paligemma-3b-pt-224-custom.pt/model-00003-of-00003.safetensors +0 -3
- paligemma-3b-pt-224-custom.pt/model.safetensors.index.json +0 -3
paligemma-3b-pt-224-custom.pt/config.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:663986f59d6e63eca0f1e1d2e4cf0ae637a2799874af06a29749f1ae0cc1bc13
|
| 3 |
-
size 1015
|
|
|
|
|
|
|
|
|
|
|
|
paligemma-3b-pt-224-custom.pt/generation_config.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:af819db1215149f57bc505ec73b9eb3bd8c6c2baac9eb8b6858954acbb926499
|
| 3 |
-
size 132
|
|
|
|
|
|
|
|
|
|
|
|
paligemma-3b-pt-224-custom.pt/model-00001-of-00003.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:22f48f9c252403ca55bce4f488b5d0b731c3f42850d3ef718f992e328248a6da
|
| 3 |
-
size 4953412480
|
|
|
|
|
|
|
|
|
|
|
|
paligemma-3b-pt-224-custom.pt/model-00002-of-00003.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b2b70c8b29f36554dd92a97d002cf0bcb867d3f5dc0a983d587f1598513e4cf0
|
| 3 |
-
size 4999820608
|
|
|
|
|
|
|
|
|
|
|
|
paligemma-3b-pt-224-custom.pt/model-00003-of-00003.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3e5197dfc42a88f4b1134d484c73b9cda815b630da87aa16ecf9c26a99cddb6a
|
| 3 |
-
size 1740714288
|
|
|
|
|
|
|
|
|
|
|
|
paligemma-3b-pt-224-custom.pt/model.safetensors.index.json
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4c409fac461b069803703357d42cbd5eb822778ccc959af82da07b5899f1b6ef
|
| 3 |
-
size 62552
|
|
|
|
|
|
|
|
|
|
|
|