Instructions to use GueB/BLIP-simpsons with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GueB/BLIP-simpsons with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="GueB/BLIP-simpsons")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("GueB/BLIP-simpsons") model = AutoModelForImageTextToText.from_pretrained("GueB/BLIP-simpsons") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GueB/BLIP-simpsons with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GueB/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": "GueB/BLIP-simpsons", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/GueB/BLIP-simpsons
- SGLang
How to use GueB/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 "GueB/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": "GueB/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 "GueB/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": "GueB/BLIP-simpsons", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use GueB/BLIP-simpsons with Docker Model Runner:
docker model run hf.co/GueB/BLIP-simpsons
Training in progress, step 950
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 706584273
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b20cabf2a801f40c81580e641caeb56e2d55b6a9dd17d024841678552914a1d
|
| 3 |
size 706584273
|
runs/Aug11_02-29-48_36511b7f8e0c/events.out.tfevents.1691721011.36511b7f8e0c.508.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3395340907076f62da40f119c80446d73a3f85c5a959393894b19ac38fae8240
|
| 3 |
+
size 15419
|