Image-Text-to-Text
Transformers
Safetensors
English
Chinese
groundinganything
text-generation
visual-grounding
object-detection
referring-expression-comprehension
pointing
ocr
document-layout
custom-code
diffusion-language-model
conversational
custom_code
Instructions to use GroundingPI/GroundAnything with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GroundingPI/GroundAnything with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="GroundingPI/GroundAnything", 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 AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("GroundingPI/GroundAnything", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GroundingPI/GroundAnything with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GroundingPI/GroundAnything" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GroundingPI/GroundAnything", "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/GroundingPI/GroundAnything
- SGLang
How to use GroundingPI/GroundAnything 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 "GroundingPI/GroundAnything" \ --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": "GroundingPI/GroundAnything", "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 "GroundingPI/GroundAnything" \ --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": "GroundingPI/GroundAnything", "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 GroundingPI/GroundAnything with Docker Model Runner:
docker model run hf.co/GroundingPI/GroundAnything
Update the recommended BibTeX citation
#13
by Skywalker0410 - opened
- README.md +10 -16
- checksums.sha256 +1 -1
README.md
CHANGED
|
@@ -91,14 +91,11 @@ Global.
|
|
| 91 |
<summary>Citation</summary>
|
| 92 |
|
| 93 |
```bibtex
|
| 94 |
-
@
|
| 95 |
-
title
|
| 96 |
-
author
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
archivePrefix = {arXiv},
|
| 100 |
-
primaryClass = {cs.CV},
|
| 101 |
-
url = {https://arxiv.org/abs/2609.39600},
|
| 102 |
}
|
| 103 |
```
|
| 104 |
|
|
@@ -395,14 +392,11 @@ Grounding predictions can miss small or occluded objects, repeat instances, or p
|
|
| 395 |
<summary>引用</summary>
|
| 396 |
|
| 397 |
```bibtex
|
| 398 |
-
@
|
| 399 |
-
title
|
| 400 |
-
author
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
archivePrefix = {arXiv},
|
| 404 |
-
primaryClass = {cs.CV},
|
| 405 |
-
url = {https://arxiv.org/abs/2609.39600},
|
| 406 |
}
|
| 407 |
```
|
| 408 |
|
|
|
|
| 91 |
<summary>Citation</summary>
|
| 92 |
|
| 93 |
```bibtex
|
| 94 |
+
@article{yu2026groundanything,
|
| 95 |
+
title={GroundAnything: Reconciling Parallel Decoding with Precise Visual Grounding at Flash Speed},
|
| 96 |
+
author={Yu, Qize and Fan, Lianrui and Ping, Bowen and Ding, Xini and Song, Zetian and Niu, Junbo and Wang, Kaixuan and Chen, Tianxing and Chen, Yue and He, Minghua and others},
|
| 97 |
+
journal={arXiv preprint arXiv:2609.39600},
|
| 98 |
+
year={2026}
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
```
|
| 101 |
|
|
|
|
| 392 |
<summary>引用</summary>
|
| 393 |
|
| 394 |
```bibtex
|
| 395 |
+
@article{yu2026groundanything,
|
| 396 |
+
title={GroundAnything: Reconciling Parallel Decoding with Precise Visual Grounding at Flash Speed},
|
| 397 |
+
author={Yu, Qize and Fan, Lianrui and Ping, Bowen and Ding, Xini and Song, Zetian and Niu, Junbo and Wang, Kaixuan and Chen, Tianxing and Chen, Yue and He, Minghua and others},
|
| 398 |
+
journal={arXiv preprint arXiv:2609.39600},
|
| 399 |
+
year={2026}
|
|
|
|
|
|
|
|
|
|
| 400 |
}
|
| 401 |
```
|
| 402 |
|
checksums.sha256
CHANGED
|
@@ -24,5 +24,5 @@ cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE-Apache
|
|
| 24 |
cddaec9f528f9ebf5ac627850eefcb3f14ee55e168776a1b650f91353ce8293e assets/demo.mp4
|
| 25 |
3c282238bb1598093c078e57dcc1db4b3ce8fb1f39db6c09ca90e0686f1043a2 assets/demo-poster.jpg
|
| 26 |
e0f0bbfa420324807403cfffe5ce664a33675c4e569de71b82cac7fb3b750f3e assets/fig1-teaser.png
|
| 27 |
-
|
| 28 |
5ef0abc7d34eca644c1cdac26dd9a3b9c0204f03137827c6475afa2648420304 assets/modelscope-logo.svg
|
|
|
|
| 24 |
cddaec9f528f9ebf5ac627850eefcb3f14ee55e168776a1b650f91353ce8293e assets/demo.mp4
|
| 25 |
3c282238bb1598093c078e57dcc1db4b3ce8fb1f39db6c09ca90e0686f1043a2 assets/demo-poster.jpg
|
| 26 |
e0f0bbfa420324807403cfffe5ce664a33675c4e569de71b82cac7fb3b750f3e assets/fig1-teaser.png
|
| 27 |
+
e95c348efc246d3fdcc387aac51535a827d52e13e7d060d7883f7058ecf47fff README.md
|
| 28 |
5ef0abc7d34eca644c1cdac26dd9a3b9c0204f03137827c6475afa2648420304 assets/modelscope-logo.svg
|