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
Commit ·
eb13709
1
Parent(s): 1acaec6
Harmonize the paper link and live upvote badge (#11)
Browse files- Harmonize the paper link and live upvote badge (cb51cb5d4e78547abaf13b75e5a07a87e63481f5)
Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>
- README.md +2 -2
- checksums.sha256 +1 -1
README.md
CHANGED
|
@@ -41,7 +41,7 @@ inference: false
|
|
| 41 |
- 🌐 **Project Page:** [GroundAnything](https://groundingpi.github.io/groundanything/).
|
| 42 |
- 💻 **GitHub Code:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything).
|
| 43 |
- 📄 **Paper:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600).
|
| 44 |
-
-
|
| 45 |
|
| 46 |
|
| 47 |
# Model Overview
|
|
@@ -345,7 +345,7 @@ Grounding predictions can miss small or occluded objects, repeat instances, or p
|
|
| 345 |
- 🌐 **项目主页:** [GroundAnything](https://groundingpi.github.io/groundanything/)。
|
| 346 |
- 💻 **GitHub 代码:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything)。
|
| 347 |
- 📄 **论文:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600)。
|
| 348 |
-
-
|
| 349 |
|
| 350 |
|
| 351 |
# 模型概述
|
|
|
|
| 41 |
- 🌐 **Project Page:** [GroundAnything](https://groundingpi.github.io/groundanything/).
|
| 42 |
- 💻 **GitHub Code:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything).
|
| 43 |
- 📄 **Paper:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600).
|
| 44 |
+
- 🤗 **HF paper:** <a href="https://huggingface.co/papers/2609.39600"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhuggingface.co%2Fapi%2Fpapers%2F2609.39600&query=%24.upvotes&label=&prefix=%E2%86%91+&suffix=+upvotes&style=flat&color=fef3c7&cacheSeconds=300" height="20" style="display: inline-block; vertical-align: middle; margin: 0;" alt="Live upvotes" /></a>
|
| 45 |
|
| 46 |
|
| 47 |
# Model Overview
|
|
|
|
| 345 |
- 🌐 **项目主页:** [GroundAnything](https://groundingpi.github.io/groundanything/)。
|
| 346 |
- 💻 **GitHub 代码:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything)。
|
| 347 |
- 📄 **论文:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600)。
|
| 348 |
+
- 🤗 **HF 论文:** <a href="https://huggingface.co/papers/2609.39600"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fhuggingface.co%2Fapi%2Fpapers%2F2609.39600&query=%24.upvotes&label=&prefix=%E2%86%91+&suffix=+upvotes&style=flat&color=fef3c7&cacheSeconds=300" height="20" style="display: inline-block; vertical-align: middle; margin: 0;" alt="实时赞同票" /></a>
|
| 349 |
|
| 350 |
|
| 351 |
# 模型概述
|
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 |
+
670e6ba79f9a063968e255c80c58883a9d326259558093252006b00cd11fe5b7 README.md
|
| 28 |
5ef0abc7d34eca644c1cdac26dd9a3b9c0204f03137827c6475afa2648420304 assets/modelscope-logo.svg
|