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")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("AIove/BLIP-simpsons") model = AutoModelForImageTextToText.from_pretrained("AIove/BLIP-simpsons") - 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
Training in progress, step 10
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:cdc7d2979cf4c12bba45c30d42a274d70badd0446a179e90d85fae2dfb11047e
|
| 3 |
size 706584273
|
runs/Aug22_13-33-18_8cc9ca9725d9/events.out.tfevents.1692711207.8cc9ca9725d9.18228.3
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:74a6fe2b4cba3c3d7aa3219a642f63cad53e99eab08a391fec4d7c4f8709fd55
|
| 3 |
+
size 8388
|
runs/Aug22_13-38-36_8cc9ca9725d9/events.out.tfevents.1692711523.8cc9ca9725d9.18228.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:175119a31896d03e85f737bb36a7388dd3b7a3938248d2b6cf9cc947682796f9
|
| 3 |
+
size 6769
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3963
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4a2c7610dc9654def0e0eff62d072cefd785bd21a787e91857bff142d4d134f
|
| 3 |
size 3963
|