Instructions to use Guspfc/git-base-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Guspfc/git-base-captioning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Guspfc/git-base-captioning")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Guspfc/git-base-captioning") model = AutoModelForMultimodalLM.from_pretrained("Guspfc/git-base-captioning") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Guspfc/git-base-captioning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Guspfc/git-base-captioning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Guspfc/git-base-captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Guspfc/git-base-captioning
- SGLang
How to use Guspfc/git-base-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 "Guspfc/git-base-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": "Guspfc/git-base-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 "Guspfc/git-base-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": "Guspfc/git-base-captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Guspfc/git-base-captioning with Docker Model Runner:
docker model run hf.co/Guspfc/git-base-captioning
Training in progress, step 300
Browse files- model.safetensors +1 -1
- runs/Jun20_02-55-19_9091cb0ebf00/events.out.tfevents.1718852167.9091cb0ebf00.8683.0 +3 -0
- runs/Jun20_03-00-28_9091cb0ebf00/events.out.tfevents.1718852440.9091cb0ebf00.10442.0 +3 -0
- runs/Jun20_03-01-38_9091cb0ebf00/events.out.tfevents.1718852506.9091cb0ebf00.10442.1 +3 -0
- runs/Jun20_03-02-21_9091cb0ebf00/events.out.tfevents.1718852547.9091cb0ebf00.10442.2 +3 -0
- runs/Jun20_03-07-11_9091cb0ebf00/events.out.tfevents.1718852837.9091cb0ebf00.12332.0 +3 -0
- runs/Jun20_03-10-13_9091cb0ebf00/events.out.tfevents.1718853020.9091cb0ebf00.12332.1 +3 -0
- runs/Jun20_03-14-39_9091cb0ebf00/events.out.tfevents.1718853280.9091cb0ebf00.14160.0 +3 -0
- runs/Jun20_03-18-03_9091cb0ebf00/events.out.tfevents.1718853493.9091cb0ebf00.15342.0 +3 -0
- training_args.bin +1 -1
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 706516040
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84a2e02076cd6806328c1db1b8994501985cd202a83d7450af01c11d330fe6a1
|
| 3 |
size 706516040
|
runs/Jun20_02-55-19_9091cb0ebf00/events.out.tfevents.1718852167.9091cb0ebf00.8683.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c505524299df4f4f43de2bcd418ee65246f7bb5d249d97dac7f0ed3752567e3
|
| 3 |
+
size 5245
|
runs/Jun20_03-00-28_9091cb0ebf00/events.out.tfevents.1718852440.9091cb0ebf00.10442.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:002d95004b2650d4de87988c5d9a3456c1f00e33b862f01f45c3ea4283a4e47f
|
| 3 |
+
size 5245
|
runs/Jun20_03-01-38_9091cb0ebf00/events.out.tfevents.1718852506.9091cb0ebf00.10442.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea11dc61fd6683c7b676d2a3c76966357763262d374f72f26236709033555723
|
| 3 |
+
size 5244
|
runs/Jun20_03-02-21_9091cb0ebf00/events.out.tfevents.1718852547.9091cb0ebf00.10442.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da2ba3a52f93c7db181b33900ff9e8f70c96094bf3b81772081b3c3d9d9f63b0
|
| 3 |
+
size 10400
|
runs/Jun20_03-07-11_9091cb0ebf00/events.out.tfevents.1718852837.9091cb0ebf00.12332.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9572ee3af6e79f9ccb7f7a4fca009871729174d46b2a3a14aff011e82f5b8ff1
|
| 3 |
+
size 5245
|
runs/Jun20_03-10-13_9091cb0ebf00/events.out.tfevents.1718853020.9091cb0ebf00.12332.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:96c888ad0fe1e0865a91abf5831a81d06350533fb1674096de0db691eeb50f8e
|
| 3 |
+
size 5563
|
runs/Jun20_03-14-39_9091cb0ebf00/events.out.tfevents.1718853280.9091cb0ebf00.14160.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02cb1aa3a2687fa11238f1ea4ef62795c4205877baac4c0b77027b99e348dfac
|
| 3 |
+
size 5245
|
runs/Jun20_03-18-03_9091cb0ebf00/events.out.tfevents.1718853493.9091cb0ebf00.15342.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bb862fa08f3ade8942546fd104ee358103cd2a786a5d9a35bb5c52d2ec42410
|
| 3 |
+
size 8228
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05a172b3e2a8c016005643c42c2f06689273a914e1661b3c97e23486c7099dbd
|
| 3 |
size 5112
|