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
12 days ago
-
Add October 3 GitHub code release to model card
Verified signature2a34906 -
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
13 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
15 days ago
-
initial commit
Verified signature0078ab6