Image-Text-to-Text
Transformers
TensorBoard
Safetensors
paligemma
Generated from Trainer
text-generation-inference
Instructions to use linhtrann21/ft_paligemma_ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use linhtrann21/ft_paligemma_ocr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="linhtrann21/ft_paligemma_ocr")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("linhtrann21/ft_paligemma_ocr") model = AutoModelForMultimodalLM.from_pretrained("linhtrann21/ft_paligemma_ocr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use linhtrann21/ft_paligemma_ocr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "linhtrann21/ft_paligemma_ocr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "linhtrann21/ft_paligemma_ocr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/linhtrann21/ft_paligemma_ocr
- SGLang
How to use linhtrann21/ft_paligemma_ocr 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 "linhtrann21/ft_paligemma_ocr" \ --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": "linhtrann21/ft_paligemma_ocr", "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 "linhtrann21/ft_paligemma_ocr" \ --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": "linhtrann21/ft_paligemma_ocr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use linhtrann21/ft_paligemma_ocr with Docker Model Runner:
docker model run hf.co/linhtrann21/ft_paligemma_ocr
Commit History
-
End of training
Verified signature7bb202a -
Training in progress, step 24960
Verified signature693e0e0 -
Training in progress, step 24000
Verified signaturea1bea34 -
Training in progress, step 23000
Verified signaturee8bcfda -
Training in progress, step 22000
Verified signature5da76fa -
Training in progress, step 21000
Verified signature7bf278c -
Training in progress, step 20000
Verified signaturea189c5d -
Training in progress, step 19000
Verified signaturef08bde7 -
Training in progress, step 18000
Verified signature876821c -
Training in progress, step 17000
Verified signature0b54c73 -
Training in progress, step 16000
Verified signaturee200d01 -
Training in progress, step 15000
Verified signatured109949 -
Training in progress, step 14000
Verified signature98c97e3 -
Training in progress, step 13000
Verified signature64b05e6 -
Training in progress, step 12000
Verified signature3c0fa77 -
Training in progress, step 11000
Verified signature7513bc4 -
Training in progress, step 10000
Verified signature873ec22 -
Training in progress, step 9000
Verified signature9f55295 -
Training in progress, step 8000
Verified signatureef67544 -
Training in progress, step 7000
Verified signature67c5ae0 -
Training in progress, step 6000
Verified signatured7031a3 -
Training in progress, step 5000
Verified signature73bfdaf -
Training in progress, step 4000
Verified signature70985ed -
Training in progress, step 3000
Verified signatured580821 -
Training in progress, step 2000
Verified signature3f4de4f -
Training in progress, step 1000
Verified signatureef0b07b -
initial commit
Verified signature937ee69