Instructions to use Kudod/image-captionning-pokemon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kudod/image-captionning-pokemon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Kudod/image-captionning-pokemon")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Kudod/image-captionning-pokemon") model = AutoModelForMultimodalLM.from_pretrained("Kudod/image-captionning-pokemon", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kudod/image-captionning-pokemon with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kudod/image-captionning-pokemon" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kudod/image-captionning-pokemon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Kudod/image-captionning-pokemon
- SGLang
How to use Kudod/image-captionning-pokemon 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 "Kudod/image-captionning-pokemon" \ --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": "Kudod/image-captionning-pokemon", "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 "Kudod/image-captionning-pokemon" \ --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": "Kudod/image-captionning-pokemon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Kudod/image-captionning-pokemon with Docker Model Runner:
docker model run hf.co/Kudod/image-captionning-pokemon
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (caced72a01234d54593d8fa97923af5fc5eed763) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>859a449
-
Training in progress, step 2250
5ae5ed0 -
Training in progress, step 2000
9ad2be6 -
Training in progress, step 1700
af3c215 -
Training in progress, step 1450
99881d6 -
Training in progress, step 1150
66c2584 -
Training in progress, step 850
e79790b -
Training in progress, step 600
e04f151 -
Training in progress, step 300
b826b39 -
Training in progress, step 50
4a9994f -
Training in progress, step 2100
0dab8c5 -
Training in progress, step 1800
8aa9f28 -
Training in progress, step 1500
3ca49f1 -
Training in progress, step 1250
0c64228 -
Training in progress, step 950
e137378 -
Training in progress, step 650
21a3446 -
Training in progress, step 350
673e058 -
Training in progress, step 50
3076850 -
Training in progress, step 50
cc80713 -
initial commit
4ac52a5