Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Instructions to use Image-Captioning-ML/image-captioning-output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Image-Captioning-ML/image-captioning-output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Image-Captioning-ML/image-captioning-output")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Image-Captioning-ML/image-captioning-output") model = AutoModelForMultimodalLM.from_pretrained("Image-Captioning-ML/image-captioning-output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Image-Captioning-ML/image-captioning-output with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Image-Captioning-ML/image-captioning-output" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Image-Captioning-ML/image-captioning-output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Image-Captioning-ML/image-captioning-output
- SGLang
How to use Image-Captioning-ML/image-captioning-output 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 "Image-Captioning-ML/image-captioning-output" \ --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": "Image-Captioning-ML/image-captioning-output", "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 "Image-Captioning-ML/image-captioning-output" \ --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": "Image-Captioning-ML/image-captioning-output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Image-Captioning-ML/image-captioning-output with Docker Model Runner:
docker model run hf.co/Image-Captioning-ML/image-captioning-output
Commit History
-
Training in progress, step 3000
Verified signature989e7bf -
Training in progress, step 2500
Verified signature6a33451
-
Training in progress, step 2000
Verified signature9a8d2be -
Training in progress, step 1500
Verified signaturea9f67d5 -
Training in progress, step 1000
Verified signature6fcc2f4 -
Training in progress, step 500
Verified signature273a7c5 -
Training in progress, step 8500
Verified signature6b484d6 -
Training in progress, step 8000
Verified signaturefac0b53 -
Training in progress, step 7500
Verified signature2d312b9 -
Training in progress, step 7000
Verified signaturef4635b9 -
Training in progress, step 6500
Verified signature0a53ea3 -
Training in progress, step 6000
Verified signature2cf6764 -
Training in progress, step 5500
Verified signaturee581bcd -
Training in progress, step 5000
Verified signaturee5683cc -
Training in progress, step 4500
Verified signature95d5b34 -
Training in progress, step 4000
Verified signature81b4927 -
Training in progress, step 3500
Verified signaturea0ffc14 -
Training in progress, step 3000
Verified signaturee580632 -
Training in progress, step 2500
Verified signature54502f4 -
Training in progress, step 2000
Verified signatured75724c -
Training in progress, step 1500
Verified signature193718b -
Training in progress, step 1000
Verified signaturecdd28c5 -
Training in progress, step 500
Verified signatureb11c516
-
Model save
Verified signature73fa4ea
-
Training in progress, step 5500
Verified signature9fe703b -
Training in progress, step 5000
Verified signaturebf2f62c -
Training in progress, step 4500
Verified signature695e0c2 -
Training in progress, step 4000
Verified signature097b7fd -
Training in progress, step 3500
Verified signature1a6a239 -
Training in progress, step 3000
Verified signature4543a52 -
Training in progress, step 2500
Verified signature1bddb0d -
Training in progress, step 2000
Verified signature08742d4 -
Training in progress, step 1500
Verified signature7dee403 -
Training in progress, step 1000
Verified signature4bd0662 -
Training in progress, step 500
Verified signaturef16fbe7