Image-Text-to-Text
Transformers
Safetensors
English
Chinese
groundinganything_vlm
text-generation
visual-grounding
object-detection
referring-expression-comprehension
pointing
ocr
document-layout
custom-code
conversational
custom_code
Instructions to use GroundingPI/GroundAnything-VLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GroundingPI/GroundAnything-VLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="GroundingPI/GroundAnything-VLM", 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-VLM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GroundingPI/GroundAnything-VLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GroundingPI/GroundAnything-VLM" # 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-VLM", "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-VLM
- SGLang
How to use GroundingPI/GroundAnything-VLM 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-VLM" \ --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-VLM", "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-VLM" \ --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-VLM", "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-VLM with Docker Model Runner:
docker model run hf.co/GroundingPI/GroundAnything-VLM
Harmonize the paper link and live upvote badge
Browse filesMatch the paper link to the surrounding Quick Links typography and use a compact, softly colored live upvote badge in both languages.
- README.md +2 -2
- checksums.sha256 +1 -1
README.md
CHANGED
|
@@ -40,7 +40,7 @@ inference: false
|
|
| 40 |
- 🌐 **Project Page:** [GroundAnything](https://groundingpi.github.io/groundanything/).
|
| 41 |
- 💻 **GitHub Code:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything).
|
| 42 |
- 📄 **Paper:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600).
|
| 43 |
-
-
|
| 44 |
|
| 45 |
|
| 46 |
# Model Overview
|
|
@@ -344,7 +344,7 @@ Grounding predictions can miss small or occluded objects, repeat instances, or p
|
|
| 344 |
- 🌐 **项目主页:** [GroundAnything](https://groundingpi.github.io/groundanything/)。
|
| 345 |
- 💻 **GitHub 代码:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything)。
|
| 346 |
- 📄 **论文:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600)。
|
| 347 |
-
-
|
| 348 |
|
| 349 |
|
| 350 |
# 模型概述
|
|
|
|
| 40 |
- 🌐 **Project Page:** [GroundAnything](https://groundingpi.github.io/groundanything/).
|
| 41 |
- 💻 **GitHub Code:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything).
|
| 42 |
- 📄 **Paper:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600).
|
| 43 |
+
- 🤗 **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>
|
| 44 |
|
| 45 |
|
| 46 |
# Model Overview
|
|
|
|
| 344 |
- 🌐 **项目主页:** [GroundAnything](https://groundingpi.github.io/groundanything/)。
|
| 345 |
- 💻 **GitHub 代码:** [groundingpi/GroundAnything](https://github.com/groundingpi/GroundAnything)。
|
| 346 |
- 📄 **论文:** [arXiv:2609.39600](https://arxiv.org/abs/2609.39600)。
|
| 347 |
+
- 🤗 **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>
|
| 348 |
|
| 349 |
|
| 350 |
# 模型概述
|
checksums.sha256
CHANGED
|
@@ -26,5 +26,5 @@ cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE-Apache
|
|
| 26 |
cddaec9f528f9ebf5ac627850eefcb3f14ee55e168776a1b650f91353ce8293e assets/demo.mp4
|
| 27 |
3c282238bb1598093c078e57dcc1db4b3ce8fb1f39db6c09ca90e0686f1043a2 assets/demo-poster.jpg
|
| 28 |
e0f0bbfa420324807403cfffe5ce664a33675c4e569de71b82cac7fb3b750f3e assets/fig1-teaser.png
|
| 29 |
-
|
| 30 |
5ef0abc7d34eca644c1cdac26dd9a3b9c0204f03137827c6475afa2648420304 assets/modelscope-logo.svg
|
|
|
|
| 26 |
cddaec9f528f9ebf5ac627850eefcb3f14ee55e168776a1b650f91353ce8293e assets/demo.mp4
|
| 27 |
3c282238bb1598093c078e57dcc1db4b3ce8fb1f39db6c09ca90e0686f1043a2 assets/demo-poster.jpg
|
| 28 |
e0f0bbfa420324807403cfffe5ce664a33675c4e569de71b82cac7fb3b750f3e assets/fig1-teaser.png
|
| 29 |
+
9088c88e417deb94a0d9bbc627e00dd30d044bbaa57f4cf42510686b6f178111 README.md
|
| 30 |
5ef0abc7d34eca644c1cdac26dd9a3b9c0204f03137827c6475afa2648420304 assets/modelscope-logo.svg
|