Image-Text-to-Text
Transformers
Safetensors
English
locateanything
feature-extraction
remote-sensing
aerial-imagery
earth-observation
object-detection
visual-grounding
pointing
parallel-instance-decoding
pid
custom_code
conversational
Instructions to use shubhampatle/ParallelInstanceDecoding-LocateAnything-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shubhampatle/ParallelInstanceDecoding-LocateAnything-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="shubhampatle/ParallelInstanceDecoding-LocateAnything-3B", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shubhampatle/ParallelInstanceDecoding-LocateAnything-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use shubhampatle/ParallelInstanceDecoding-LocateAnything-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/shubhampatle/ParallelInstanceDecoding-LocateAnything-3B
- SGLang
How to use shubhampatle/ParallelInstanceDecoding-LocateAnything-3B 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 "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shubhampatle/ParallelInstanceDecoding-LocateAnything-3B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use shubhampatle/ParallelInstanceDecoding-LocateAnything-3B with Docker Model Runner:
docker model run hf.co/shubhampatle/ParallelInstanceDecoding-LocateAnything-3B
Download refwave_export.json from shubhampatle/ParallelInstanceDecoding-LocateAnything-3B: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/shubhampatle/ParallelInstanceDecoding-LocateAnything-3B/resolve/main/refwave_export.json
- Command line
-
hf download hf://shubhampatle/ParallelInstanceDecoding-LocateAnything-3B/refwave_export.json
-
curl -L -o refwave_export.json https://huggingface.co/shubhampatle/ParallelInstanceDecoding-LocateAnything-3B/resolve/main/refwave_export.json
411 Bytes
| { | |
| "checkpoint_sha256": "a1f8da46db0b3447b59900a848b035a11aeefa5b465f7a5faf6e2e64f52aedf3", | |
| "full_head_included": true, | |
| "method": "refwave", | |
| "schema": "refwave-simple-lora-head-v1", | |
| "step": 2400, | |
| "exported_from": { | |
| "sha256": "a56d951e86265bfdb90b60f42b118a791ff833da572caacc2b8bc515b2512900", | |
| "note": "No-optimizer copy of the training checkpoint: optimizer state removed, FP32 weights unchanged." | |
| } | |
| } |