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
Ctrl+K
- Jun10_16-57-17_0d8f1de1c7d9
- Jun10_17-07-31_0d8f1de1c7d9
- Jun10_17-18-30_0d8f1de1c7d9
- Jun10_17-20-09_0d8f1de1c7d9
- Jun10_17-21-08_0d8f1de1c7d9
- Jun10_17-21-32_0d8f1de1c7d9
- Jun10_17-25-18_0d8f1de1c7d9
- Jun10_17-37-43_0d8f1de1c7d9
- Jun10_17-39-17_0d8f1de1c7d9
- Jun10_17-46-46_0d8f1de1c7d9
- Jun10_17-50-29_0d8f1de1c7d9
- Jun10_17-51-24_0d8f1de1c7d9
- Jun10_17-56-54_0d8f1de1c7d9
- Jun10_18-30-16_0d8f1de1c7d9
- Jun10_18-32-32_0d8f1de1c7d9
- Jun10_18-36-42_0d8f1de1c7d9
- Jun10_18-38-18_0d8f1de1c7d9
- Jun10_18-38-52_0d8f1de1c7d9
- Jun10_18-40-39_0d8f1de1c7d9
- Jun10_18-41-03_0d8f1de1c7d9
- Jun10_18-41-21_0d8f1de1c7d9
- Jun10_18-44-00_0d8f1de1c7d9
- Jun20_02-55-19_9091cb0ebf00
- Jun20_03-00-28_9091cb0ebf00
- Jun20_03-01-38_9091cb0ebf00
- Jun20_03-02-21_9091cb0ebf00
- Jun20_03-07-11_9091cb0ebf00
- Jun20_03-10-13_9091cb0ebf00
- Jun20_03-14-39_9091cb0ebf00
- Jun20_03-18-03_9091cb0ebf00
- Jun20_05-00-43_dab894bb234a