Instructions to use team-indain-image-caption/hindi-image-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use team-indain-image-caption/hindi-image-captioning with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="team-indain-image-caption/hindi-image-captioning")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("team-indain-image-caption/hindi-image-captioning") model = AutoModelForMultimodalLM.from_pretrained("team-indain-image-caption/hindi-image-captioning", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use team-indain-image-caption/hindi-image-captioning with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "team-indain-image-caption/hindi-image-captioning" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "team-indain-image-caption/hindi-image-captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/team-indain-image-caption/hindi-image-captioning
- SGLang
How to use team-indain-image-caption/hindi-image-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 "team-indain-image-caption/hindi-image-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": "team-indain-image-caption/hindi-image-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 "team-indain-image-caption/hindi-image-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": "team-indain-image-caption/hindi-image-captioning", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use team-indain-image-caption/hindi-image-captioning with Docker Model Runner:
docker model run hf.co/team-indain-image-caption/hindi-image-captioning
Commit History
-
fix the links
51f72dc -
fix links
0a5d00b -
add linkedin links
f8d3746 -
Update README.md
78f18cc -
Update README.md
576debb -
Update README.md
595277d -
Update README.md
85a152f -
Update README.md
2196fb1 -
Update README.md
73bb8d5 -
Update README.md
0e8c75e -
Update README.md
5fcaacd -
Create README.md
74406c3
-
delete app.py
fda68aa -
create app.py
efa82c0
-
Upload vocab.json
5ace542 -
Upload tokenizer_config.json
08b5fb9 -
Upload tokenizer.json
d5b002c -
Upload special_tokens_map.json
54fd77d -
Upload pytorch_model.bin with git-lfs
f3bfca3 -
Upload merges.txt
17eb97d -
Upload added_tokens.json
9b276cb -
Upload config.json
34dc301 -
initial commit
1c29eb8