Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Run this model inference with full control and performance in your environment.
Get help setting up a custom Dedicated Endpoints.
Talk with our engineer to get a quote for reserved GPU instances with discounts.
README
Files
The repository includes:
config.jsongeneration_config.jsontokenizer.jsontokenizer_config.jsonvocab.jsonmerges.txtspecial_tokens_map.jsonadded_tokens.jsonpreprocessor_config.jsonvideo_preprocessor_config.jsonchat_template.jinjamodel.safetensors.index.jsonmodel-00001-of-00004.safetensorsmodel-00002-of-00004.safetensorsmodel-00003-of-00004.safetensorsmodel-00004-of-00004.safetensors
Usage
Install dependencies:
bash
pip install -U transformers accelerate safetensors pillow
Load the model:
python
import torchfrom transformers import AutoProcessor, AutoModelForImageTextToTextmodel_id = "OpenRaiser/Pager"processor = AutoProcessor.from_pretrained(model_id,trust_remote_code=True)model = AutoModelForImageTextToText.from_pretrained(model_id,torch_dtype="auto",device_map="auto",trust_remote_code=True)print("Model loaded successfully.")
If your local transformers version does not support this model class, please upgrade transformers first.
Notes
- The model weights are stored in four
.safetensorsshards. model.safetensors.index.jsonmaps model parameters to the corresponding weight shards.- This repository is intended for research and development use.
Citation
If you use this model, please cite or link to this repository:
text
https://huggingface.co/OpenRaiser/Pager
Model provider
OpenRaiser
Model tree
Base
this model
Modalities
Input
Text, Image
Output
Text
Pricing
Dedicated Endpoints
View detailsSupported Functionality
Model APIs
Dedicated Endpoints
Container
More information