Instructions to use Sagnik2003/Bridge-VQA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Sagnik2003/Bridge-VQA with PEFT:
Task type is invalid.
- Transformers
How to use Sagnik2003/Bridge-VQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sagnik2003/Bridge-VQA", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Sagnik2003/Bridge-VQA", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Sagnik2003/Bridge-VQA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sagnik2003/Bridge-VQA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sagnik2003/Bridge-VQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Sagnik2003/Bridge-VQA
- SGLang
How to use Sagnik2003/Bridge-VQA 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 "Sagnik2003/Bridge-VQA" \ --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": "Sagnik2003/Bridge-VQA", "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 "Sagnik2003/Bridge-VQA" \ --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": "Sagnik2003/Bridge-VQA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Sagnik2003/Bridge-VQA with Docker Model Runner:
docker model run hf.co/Sagnik2003/Bridge-VQA
Commit History
-
Fix missing import os
Verified signaturee4dad37 -
Final fix: Revert __init__ OOM loading and enforce low_cpu_mem_usage
Verified signaturec062f3e -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signature33c58c5 -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signature436122d -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signaturee03ab21 -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signature3f22325 -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signature011a0e7 -
Upload modeling_bridgevqa.py with huggingface_hub
Verified signature613a498 -
Delete bridgevqa-hf-publish
Verified signature2b92b5e -
Upload folder using huggingface_hub
Verified signaturec87a8d7 -
Update README.md
Verified signature1ba907c -
Update README.md
Verified signature9fbcb66 -
uploaded the files
Verified signature5527c6b -
initial commit
Verified signatureb2847ea