Image-Text-to-Text
Transformers
TensorBoard
Safetensors
vision-encoder-decoder
Generated from Trainer
Run this model with HF Jobs
Run Image-Captioning-ML/image-captioning-output on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Image-Captioning-ML/image-captioning-output. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Image-Captioning-ML/image-captioning-output on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Image-Captioning-ML/image-captioning-output. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Image-Captioning-ML/image-captioning-output. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
Training in progress, step 4000
Browse filesFiles changed (2)
123version https://git-lfs.github.com/spec/v1oid sha256:c677fc4acac558f1d5744234354ee117b8d783ff8b99356a24c33ace17ffa9a0size 956835520123version https://git-lfs.github.com/spec/v1oid sha256:7d3a7540f7b32f74bda6c0cf4901d05d49c565243ef4a0689cf3eaf39a8aa55asize 956835520
123version https://git-lfs.github.com/spec/v1oid sha256:b5225fb00f43e2100ac01f9f8a39d16b43ecd26fd1738346377f1ecb5f0f7870size 14294123version https://git-lfs.github.com/spec/v1oid sha256:d4f4b6d3967b46be4bcea19fd53aa67bcc97fca74b19e2b379a2290e024f2697size 15030
model.safetensors+1-1
runs/Apr25_21-18-03_2310d6ab4b0d/events.out.tfevents.1714079921.2310d6ab4b0d.34.3+2-2