Image-Text-to-Text
Transformers
TensorBoard
Safetensors
paligemma
Generated from Trainer
text-generation-inference
Instructions to use linhtrann21/ft_paligemma_data1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use linhtrann21/ft_paligemma_data1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="linhtrann21/ft_paligemma_data1")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("linhtrann21/ft_paligemma_data1") model = AutoModelForMultimodalLM.from_pretrained("linhtrann21/ft_paligemma_data1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use linhtrann21/ft_paligemma_data1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "linhtrann21/ft_paligemma_data1" # 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_data1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/linhtrann21/ft_paligemma_data1
- SGLang
How to use linhtrann21/ft_paligemma_data1 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_data1" \ --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_data1", "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_data1" \ --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_data1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use linhtrann21/ft_paligemma_data1 with Docker Model Runner:
docker model run hf.co/linhtrann21/ft_paligemma_data1
Commit History
-
End of training
Verified signature9e82800 -
Training in progress, step 11240
Verified signaturec11729a -
Training in progress, step 11000
Verified signature31edb7a -
Training in progress, step 10000
Verified signature443fb4f -
Training in progress, step 9000
Verified signaturea2b67b5 -
Training in progress, step 8000
Verified signaturebaefb57 -
Training in progress, step 7000
Verified signatureb9b7570 -
Training in progress, step 6000
Verified signatured2e8a80 -
Training in progress, step 5000
Verified signature9974873 -
Training in progress, step 4000
Verified signaturee66d2ec -
Training in progress, step 3000
Verified signature53ad3e3 -
Training in progress, step 2000
Verified signaturec357dab -
Training in progress, step 1000
Verified signaturebcaf170 -
initial commit
Verified signature08d3234