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
Update model card
Browse files
README.md
CHANGED
|
@@ -37,7 +37,6 @@ category-conditioned detection, referring-expression grounding and pointing.
|
|
| 37 |
- **Code:** [shubhamrpatle/PID](https://github.com/shubhamrpatle/PID)
|
| 38 |
- **Project page:** [Parallel Instance Decoding](https://shubhamrpatle.github.io/PID/)
|
| 39 |
- **Base model:** [nvidia/LocateAnything-3B](https://huggingface.co/nvidia/LocateAnything-3B)
|
| 40 |
-
- **Training data:** [shubhampatle/Pixel-PIVR-Magnified-v2](https://huggingface.co/datasets/shubhampatle/Pixel-PIVR-Magnified-v2/tree/591d53da15234597941394f2848740151209434b/refwave_v6_xview_corrected_20260914)
|
| 41 |
|
| 42 |
## Model details
|
| 43 |
|
|
@@ -151,10 +150,6 @@ schedule, and seed 20260908.
|
|
| 151 |
| MoonViT | 1e-6 | 1e-6 |
|
| 152 |
| Projector | 1e-5 | 1e-5 |
|
| 153 |
|
| 154 |
-
The training records are available in the
|
| 155 |
-
[`refwave_v6_xview_corrected_20260914`](https://huggingface.co/datasets/shubhampatle/Pixel-PIVR-Magnified-v2/tree/591d53da15234597941394f2848740151209434b/refwave_v6_xview_corrected_20260914)
|
| 156 |
-
dataset release.
|
| 157 |
-
|
| 158 |
## Results
|
| 159 |
|
| 160 |
| Task | Benchmark | Metric | PID |
|
|
|
|
| 37 |
- **Code:** [shubhamrpatle/PID](https://github.com/shubhamrpatle/PID)
|
| 38 |
- **Project page:** [Parallel Instance Decoding](https://shubhamrpatle.github.io/PID/)
|
| 39 |
- **Base model:** [nvidia/LocateAnything-3B](https://huggingface.co/nvidia/LocateAnything-3B)
|
|
|
|
| 40 |
|
| 41 |
## Model details
|
| 42 |
|
|
|
|
| 150 |
| MoonViT | 1e-6 | 1e-6 |
|
| 151 |
| Projector | 1e-5 | 1e-5 |
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
## Results
|
| 154 |
|
| 155 |
| Task | Benchmark | Metric | PID |
|