Image-Text-to-Text
Transformers
Safetensors
English
vision-encoder-decoder
LLMs
VisionTransformer
ImageQA
DataSynthesis
Instructions to use HV-Khurdula/Dua-Vision-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HV-Khurdula/Dua-Vision-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="HV-Khurdula/Dua-Vision-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("HV-Khurdula/Dua-Vision-Base") model = AutoModelForImageTextToText.from_pretrained("HV-Khurdula/Dua-Vision-Base") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use HV-Khurdula/Dua-Vision-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HV-Khurdula/Dua-Vision-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HV-Khurdula/Dua-Vision-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/HV-Khurdula/Dua-Vision-Base
- SGLang
How to use HV-Khurdula/Dua-Vision-Base 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 "HV-Khurdula/Dua-Vision-Base" \ --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": "HV-Khurdula/Dua-Vision-Base", "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 "HV-Khurdula/Dua-Vision-Base" \ --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": "HV-Khurdula/Dua-Vision-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use HV-Khurdula/Dua-Vision-Base with Docker Model Runner:
docker model run hf.co/HV-Khurdula/Dua-Vision-Base
Commit History
Update README.md e50c6a8 verified
Update README.md a20bd9f verified
Harsha Vardhan Khurdula commited on
Update README.md d157e02 verified
Harsha Vardhan Khurdula commited on
Update README.md f1e4586 verified
Harsha Vardhan Khurdula commited on
Update README.md 59daea7 verified
Harsha Vardhan Khurdula commited on
Update README.md c48e731 verified
Harsha Vardhan Khurdula commited on
Upload processor f6227fa verified
Harsha Vardhan Khurdula commited on
Upload tokenizer 44f0415 verified
Harsha Vardhan Khurdula commited on
Upload model 93c91e3 verified
Harsha Vardhan Khurdula commited on
initial commit 3bacf81 verified
Harsha Vardhan Khurdula commited on