Instructions to use AIove/BLIP-simpsons with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIove/BLIP-simpsons with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AIove/BLIP-simpsons")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("AIove/BLIP-simpsons") model = AutoModelForMultimodalLM.from_pretrained("AIove/BLIP-simpsons", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AIove/BLIP-simpsons with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AIove/BLIP-simpsons" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AIove/BLIP-simpsons", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AIove/BLIP-simpsons
- SGLang
How to use AIove/BLIP-simpsons 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 "AIove/BLIP-simpsons" \ --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": "AIove/BLIP-simpsons", "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 "AIove/BLIP-simpsons" \ --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": "AIove/BLIP-simpsons", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AIove/BLIP-simpsons with Docker Model Runner:
docker model run hf.co/AIove/BLIP-simpsons
Commit History
-
Training in progress, step 80
ca84fce -
Training in progress, step 50
ffdddc8 -
Training in progress, step 10
b0548cc -
Training in progress, step 90
ee891a7 -
Training in progress, step 70
eadd718 -
Training in progress, step 40
7375855 -
Training in progress, step 10
3f588ba -
Training in progress, step 40
393c2e7 -
Training in progress, step 10
1b1f4f1 -
Training in progress, step 40
d2752ff -
Training in progress, step 10
b61deee -
Training in progress, step 40
c6d8d58 -
Training in progress, step 10
d7dc669 -
Training in progress, step 50
6db3ce8 -
Training in progress, step 50
0e5789e -
Training in progress, step 50
57e7b28 -
Training in progress, step 50
eca7850 -
initial commit
76d81d1