Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
qwen3-vl
vision-language
multimodal
conversational
Instructions to use OpenRaiser/Pager with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenRaiser/Pager with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="OpenRaiser/Pager") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("OpenRaiser/Pager") model = AutoModelForMultimodalLM.from_pretrained("OpenRaiser/Pager") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OpenRaiser/Pager with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenRaiser/Pager" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenRaiser/Pager", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/OpenRaiser/Pager
- SGLang
How to use OpenRaiser/Pager 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 "OpenRaiser/Pager" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenRaiser/Pager", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "OpenRaiser/Pager" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenRaiser/Pager", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use OpenRaiser/Pager with Docker Model Runner:
docker model run hf.co/OpenRaiser/Pager
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
pipeline_tag: image-text-to-text
|
| 4 |
+
tags:
|
| 5 |
+
- qwen3-vl
|
| 6 |
+
- vision-language
|
| 7 |
+
- multimodal
|
| 8 |
+
- image-text-to-text
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Pager
|
| 12 |
+
|
| 13 |
+
This repository contains the model weights, tokenizer, processor, and configuration files for **Pager**, a vision-language model based on the Qwen3-VL architecture.
|
| 14 |
+
|
| 15 |
+
## Files
|
| 16 |
+
|
| 17 |
+
The repository includes:
|
| 18 |
+
|
| 19 |
+
- `config.json`
|
| 20 |
+
- `generation_config.json`
|
| 21 |
+
- `tokenizer.json`
|
| 22 |
+
- `tokenizer_config.json`
|
| 23 |
+
- `vocab.json`
|
| 24 |
+
- `merges.txt`
|
| 25 |
+
- `special_tokens_map.json`
|
| 26 |
+
- `added_tokens.json`
|
| 27 |
+
- `preprocessor_config.json`
|
| 28 |
+
- `video_preprocessor_config.json`
|
| 29 |
+
- `chat_template.jinja`
|
| 30 |
+
- `model.safetensors.index.json`
|
| 31 |
+
- `model-00001-of-00004.safetensors`
|
| 32 |
+
- `model-00002-of-00004.safetensors`
|
| 33 |
+
- `model-00003-of-00004.safetensors`
|
| 34 |
+
- `model-00004-of-00004.safetensors`
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
Install dependencies:
|
| 39 |
+
|
| 40 |
+
```bash
|
| 41 |
+
pip install -U transformers accelerate safetensors pillow
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Load the model:
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
import torch
|
| 48 |
+
from transformers import AutoProcessor, AutoModelForImageTextToText
|
| 49 |
+
|
| 50 |
+
model_id = "OpenRaiser/Pager"
|
| 51 |
+
|
| 52 |
+
processor = AutoProcessor.from_pretrained(
|
| 53 |
+
model_id,
|
| 54 |
+
trust_remote_code=True
|
| 55 |
+
)
|
| 56 |
+
|
| 57 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 58 |
+
model_id,
|
| 59 |
+
torch_dtype="auto",
|
| 60 |
+
device_map="auto",
|
| 61 |
+
trust_remote_code=True
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
print("Model loaded successfully.")
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
If your local `transformers` version does not support this model class, please upgrade `transformers` first.
|
| 68 |
+
|
| 69 |
+
## Notes
|
| 70 |
+
|
| 71 |
+
- The model weights are stored in four `.safetensors` shards.
|
| 72 |
+
- `model.safetensors.index.json` maps model parameters to the corresponding weight shards.
|
| 73 |
+
- This repository is intended for research and development use.
|
| 74 |
+
|
| 75 |
+
## Citation
|
| 76 |
+
|
| 77 |
+
If you use this model, please cite or link to this repository:
|
| 78 |
+
|
| 79 |
+
```text
|
| 80 |
+
https://huggingface.co/OpenRaiser/Pager
|
| 81 |
+
```
|