Instructions to use FahadIqbal5188/git-base-captionV2-BA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FahadIqbal5188/git-base-captionV2-BA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FahadIqbal5188/git-base-captionV2-BA")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("FahadIqbal5188/git-base-captionV2-BA") model = AutoModelForMultimodalLM.from_pretrained("FahadIqbal5188/git-base-captionV2-BA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FahadIqbal5188/git-base-captionV2-BA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FahadIqbal5188/git-base-captionV2-BA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FahadIqbal5188/git-base-captionV2-BA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FahadIqbal5188/git-base-captionV2-BA
- SGLang
How to use FahadIqbal5188/git-base-captionV2-BA 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 "FahadIqbal5188/git-base-captionV2-BA" \ --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": "FahadIqbal5188/git-base-captionV2-BA", "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 "FahadIqbal5188/git-base-captionV2-BA" \ --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": "FahadIqbal5188/git-base-captionV2-BA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FahadIqbal5188/git-base-captionV2-BA with Docker Model Runner:
docker model run hf.co/FahadIqbal5188/git-base-captionV2-BA
Commit History
-
Epoch 7: METEOR=0.9958
Verified signaturedd53ac1 -
Epoch 6: METEOR=0.9944
Verified signature0fbb329 -
Epoch 5: METEOR=0.9930
Verified signature2b2cc43 -
Epoch 4: METEOR=0.9920
Verified signature44c8a4f -
Epoch 0: METEOR=0.9859
Verified signaturee324bfc -
Upload 5 files
Verified signature0125dde -
V2 model with BA
Verified signatureca50011 -
Epoch 8: METEOR=0.9898
Verified signature5dba175 -
Epoch 7: METEOR=0.9838
Verified signatureb9dfb8f -
Epoch 6: METEOR=0.9809
Verified signatureb6464ae -
Epoch 4: METEOR=0.9801
Verified signatureedf917e -
Epoch 3: METEOR=0.9717
Verified signatureb6b18bf -
Epoch 1: METEOR=0.9702
Verified signature3aa06ab -
Epoch 0: METEOR=0.9444
Verified signatureead23e9 -
initial commit
Verified signaturef1b0983