Instructions to use ChayanM/Image_Captioner_Mimic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChayanM/Image_Captioner_Mimic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ChayanM/Image_Captioner_Mimic")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ChayanM/Image_Captioner_Mimic") model = AutoModelForMultimodalLM.from_pretrained("ChayanM/Image_Captioner_Mimic", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ChayanM/Image_Captioner_Mimic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChayanM/Image_Captioner_Mimic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChayanM/Image_Captioner_Mimic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ChayanM/Image_Captioner_Mimic
- SGLang
How to use ChayanM/Image_Captioner_Mimic 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 "ChayanM/Image_Captioner_Mimic" \ --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": "ChayanM/Image_Captioner_Mimic", "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 "ChayanM/Image_Captioner_Mimic" \ --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": "ChayanM/Image_Captioner_Mimic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ChayanM/Image_Captioner_Mimic with Docker Model Runner:
docker model run hf.co/ChayanM/Image_Captioner_Mimic
Commit History
-
Model save
Verified signature1e919d5 -
Training in progress, epoch 30
Verified signature6264ef6 -
Training in progress, epoch 29
Verified signature501f105 -
Training in progress, epoch 28
Verified signatureb6faf13 -
Training in progress, epoch 27
Verified signature1a313fa -
Training in progress, epoch 26
Verified signature6f18fe6
-
Training in progress, epoch 25
Verified signature208b808 -
Training in progress, epoch 24
Verified signaturec8d6a9a -
Training in progress, epoch 23
Verified signature8545d39 -
Training in progress, epoch 22
Verified signaturee71b437 -
Training in progress, epoch 21
Verified signature04c490a -
Training in progress, epoch 20
Verified signaturec1211cc -
Training in progress, epoch 19
Verified signaturebf7a31a
-
Training in progress, epoch 18
Verified signature9aef235 -
Training in progress, epoch 17
Verified signaturecbb2020 -
Training in progress, epoch 16
Verified signature093fefc -
Training in progress, epoch 15
Verified signatureac71e50 -
Training in progress, epoch 14
Verified signatureeedfc52 -
Training in progress, epoch 13
Verified signature79ee338 -
Training in progress, epoch 12
Verified signatureebd5808
-
Training in progress, epoch 11
Verified signatureb873fb3 -
Training in progress, epoch 10
Verified signature729d7aa -
Training in progress, epoch 9
Verified signature3d4912c -
Training in progress, epoch 8
Verified signature36355e6 -
Training in progress, epoch 7
Verified signature0b180d0 -
Training in progress, epoch 6
Verified signature3b6f8ad
-
Training in progress, epoch 5
Verified signature6e171d7 -
Training in progress, epoch 4
Verified signature3478d4a -
Training in progress, epoch 3
Verified signaturef3ecfa3 -
Training in progress, epoch 2
Verified signaturebb275cf -
Training in progress, epoch 1
Verified signature31874ae -
initial commit
Verified signatureb6ef9aa