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
Commit History
9 days ago
-
Update model links, paper badges, and release news
Verified signatureUse the ModelScope logo with the official model links. Add GroundingPI report coverage and its Daily Paper award, and show live paper upvotes for the GroundAnything models. Update both language versions and release news.be43c2c -
Add ModelScope weights and release news (#9)
- Add ModelScope weights and release news (83cb1976faa4a90713e56576b091676f1f9947f5) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>d8273a4
19 days ago
-
Add Chinese model card and language navigation (#8)
- Add Chinese model card and language navigation (b0e1f1ee7a9bfdc8876452a8661e2c3fc1cdb795) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>b77314a -
Add October 4 project webpage release to model card (#7)
- Add October 4 project webpage release to model card (d16236795fd9764e5b1f20ed3132215c5de4cf56) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>b765d31
20 days ago
-
Add October 3 GitHub code release to model card (#6)
- Add October 3 GitHub code release to model card (2a34906fb97ad9e025daecf20dcf1ca2d69da24b) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>bb86bbe -
Replace teaser with updated ICLR artwork (#5)
- Replace teaser with updated ICLR artwork (df01c8f55a4599fde5975164e968656aa56d556d) - Point model card to the new teaser (9433ab8cf4a273323ed8ab83118568fb3fd6a5fd) - Respect PDF crop box to remove teaser white margins (85a00446bf2c61dcd682864af35de476d787d306) - Remove teaser spacing and pin tightly cropped artwork (0c9e66a7775eeaddbf45153437b735f0490edde2) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>1bbc10b -
Update main demo video and prepared cover (#4)
- Update main demo video and prepared cover (61cf85b86dc3926b258ea9a045504b2752b896fd) - Publish demo and project links, revised citations, and simplified quick links (fec9737ebf7827001ea377f700312bb70a7ef218) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>8bf4186
21 days ago
-
Keep inline title logos compact without image margins (#3)
- Keep inline title logos compact without image margins (d92841cea4228ab4508dfc9bae9e6e99c69685d5) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>da7d6cd -
Simplify model card layout and evaluation; clarify license scope (#2)
- Simplify model card layout and evaluation; clarify license scope (97e19667f0949a2154bb6320b8f153d3fd41df79) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>40af09a -
Publish model weights, paper figures, and complete model card (#1)
- Add model card title and related repository links (f14f10d9061e50415d8b0a1ec2c06a52e69a4295) - Upload model files with empty README (c547b2097fba505624ae4e119eb3d50db9153981) - Add paper figures, logos, and updated demonstration videos (b23fec7b82e2205b8cb56c48bf05fd75388fdbec) - Preserve original embedded demo cover (c367acf62cc8255782e3d19bd8c312f9b7ab35db) - Document architecture, inference, evaluation, and paper results (ca15e4cfa8854b6c42b2e355faf19fe951e64dae) - Document architecture, inference, evaluation, and paper results (e0a1aad22a71952ba7e98dbe901f3033248d3e55) - Align model card and license metadata with retained Kimi K3 terms (719af50dac827c6571533029e46e4bc6d55c99e7) Co-authored-by: Qize Yu <Skywalker0410@users.noreply.huggingface.co>d603a32
23 days ago
-
initial commit
Verified signature0078ab6