Instructions to use LumousInTheWild/image_captioning_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LumousInTheWild/image_captioning_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="LumousInTheWild/image_captioning_1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("LumousInTheWild/image_captioning_1") model = AutoModelForMultimodalLM.from_pretrained("LumousInTheWild/image_captioning_1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LumousInTheWild/image_captioning_1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LumousInTheWild/image_captioning_1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LumousInTheWild/image_captioning_1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LumousInTheWild/image_captioning_1
- SGLang
How to use LumousInTheWild/image_captioning_1 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 "LumousInTheWild/image_captioning_1" \ --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": "LumousInTheWild/image_captioning_1", "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 "LumousInTheWild/image_captioning_1" \ --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": "LumousInTheWild/image_captioning_1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LumousInTheWild/image_captioning_1 with Docker Model Runner:
docker model run hf.co/LumousInTheWild/image_captioning_1
Commit History
-
Upload model
Verified signature2c5b80f -
Upload model
Verified signaturee3d89a9 -
Upload model
Verified signaturefce9f37 -
Upload model
Verified signature55138f1 -
Upload model
Verified signature882d36e -
Upload model
Verified signature9177e40 -
Upload model
Verified signaturecf1b4bd -
Upload model
Verified signature47e5471 -
Upload model
Verified signaturee81c2e6 -
Upload model
Verified signaturece7e314 -
Upload model
Verified signaturedf74f6d -
Upload model
Verified signaturedc71697 -
Upload model
Verified signatureda8e8bd
-
Upload model
Verified signature6192f9b -
Upload model
Verified signaturea47cb24 -
Upload model
Verified signature9787963 -
Upload model
Verified signaturef4db0dc -
Upload model
Verified signaturefb50359 -
Upload model
Verified signature1f47a99 -
Upload model
Verified signatured4e4d58 -
Upload model
Verified signatureca5801a -
Upload model
Verified signaturea08ca5f -
Upload model
Verified signature6c016d2 -
Upload model
Verified signaturebf070f9 -
Upload model
Verified signature1c8ccd2 -
Upload model
Verified signatureb1b296d -
Upload model
Verified signature662e8e4 -
Upload model
Verified signaturea433118 -
Upload model
Verified signatureae6b52c -
Upload model
Verified signature0108836 -
Upload model
Verified signature77bf2a3 -
Upload model
Verified signature12c1be7 -
Upload model
Verified signature6e79bbe -
Upload model
Verified signaturee4c64b4 -
Upload model
Verified signature05787f0 -
Upload model
Verified signature69f6993 -
Upload model
Verified signature71b2660 -
Upload model
Verified signature90a29d7 -
Upload model
Verified signature65ed405 -
Upload model
Verified signature775ad81 -
initial commit
Verified signature6999c90