Instructions to use Vrjb/BLIP_Captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Vrjb/BLIP_Captioning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Vrjb/BLIP_Captioning")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Vrjb/BLIP_Captioning") model = AutoModelForImageTextToText.from_pretrained("Vrjb/BLIP_Captioning") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Vrjb/BLIP_Captioning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Vrjb/BLIP_Captioning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Vrjb/BLIP_Captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Vrjb/BLIP_Captioning
- SGLang
How to use Vrjb/BLIP_Captioning 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 "Vrjb/BLIP_Captioning" \ --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": "Vrjb/BLIP_Captioning", "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 "Vrjb/BLIP_Captioning" \ --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": "Vrjb/BLIP_Captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Vrjb/BLIP_Captioning with Docker Model Runner:
docker model run hf.co/Vrjb/BLIP_Captioning
Model save
Browse files- README.md +5 -4
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -49,10 +49,11 @@ The following hyperparameters were used during training:
|
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
|:-------------:|:------:|:----:|:---------------:|
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
|
|
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
|:-------------:|:------:|:----:|:---------------:|
|
| 52 |
+
| 0.0023 | 0.9634 | 1500 | 0.0006 |
|
| 53 |
+
| 0.0012 | 1.9268 | 3000 | 0.0014 |
|
| 54 |
+
| 0.0007 | 2.8902 | 4500 | 0.0005 |
|
| 55 |
+
| 0.0006 | 3.8536 | 6000 | 0.0001 |
|
| 56 |
+
| 0.0002 | 4.8170 | 7500 | 0.0001 |
|
| 57 |
|
| 58 |
|
| 59 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 989717056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3dffd7a09ced1ecb17d80104b13c77c72113adcd64a09bfb0d4de26a830d703
|
| 3 |
size 989717056
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5560
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d99c7965f1c664e8d8e2ea3839b612b59430ca9373068bcf20a3a487484e554
|
| 3 |
size 5560
|