Image-Text-to-Text
Transformers
Safetensors
English
qwen2_5_vl
viewsuite
view-planning
active-perception
camera-control
embodied-ai
vision-language-model
reinforcement-learning
conversational
text-generation-inference
Instructions to use MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR") 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 AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR") model = AutoModelForMultimodalLM.from_pretrained("MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR", device_map="auto") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR", "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/MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR
- SGLang
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR 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 "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR" \ --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": "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR", "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 "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR" \ --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": "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR", "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 MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR with Docker Model Runner:
docker model run hf.co/MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR
Download MANIFEST.json from MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR/resolve/main/MANIFEST.json
- Command line
-
hf download hf://MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR/MANIFEST.json
-
curl -L -o MANIFEST.json https://huggingface.co/MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR/resolve/main/MANIFEST.json
1.53 kB
| { | |
| "package": "VGD-Qwen2.5-VL-7B-AI2-THOR", | |
| "generated_utc": "2026-11-20T11:13:19Z", | |
| "files": [ | |
| { | |
| "path": "LICENSE", | |
| "bytes": 11358, | |
| "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30" | |
| }, | |
| { | |
| "path": "NOTICE", | |
| "bytes": 510, | |
| "sha256": "b201a42ac8b0ef745dd18a74420bf140e12c5acb3549616f4e91aca6a81dcc02" | |
| }, | |
| { | |
| "path": "README.md", | |
| "bytes": 8034, | |
| "sha256": "21215ecdba646954896d55be9b43cd181b9ed3254388a5cff430c66a51ded1f6" | |
| }, | |
| { | |
| "path": "chat_template.jinja", | |
| "bytes": 1017, | |
| "sha256": "a0bc6f6fc7a29a80017a433e8f03a1cc1236e838a944a2d034295a60c4f2fddb" | |
| }, | |
| { | |
| "path": "config.json", | |
| "bytes": 2458, | |
| "sha256": "3bcb078aacd66e2907e9fb2229055483153a5abd95e9d874dec66a4a0b8a39eb" | |
| }, | |
| { | |
| "path": "generation_config.json", | |
| "bytes": 199, | |
| "sha256": "e4b406f60b64436de305260277240e5522b48ffb07b3f7c0fdcd05747533a967" | |
| }, | |
| { | |
| "path": "model.safetensors", | |
| "bytes": 33168748432, | |
| "sha256": "ca56d10199d91d3ce381cf611e0e227bfc398323a9d494e072b50d60ef1839f3" | |
| }, | |
| { | |
| "path": "processor_config.json", | |
| "bytes": 1262, | |
| "sha256": "2ac992d7378f02aa5ceea8ce294d5d26e10836a2aa113d6685c66839bceb558a" | |
| }, | |
| { | |
| "path": "tokenizer.json", | |
| "bytes": 11421892, | |
| "sha256": "3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8" | |
| }, | |
| { | |
| "path": "tokenizer_config.json", | |
| "bytes": 763, | |
| "sha256": "45f564d68e45b915c3022f0b99114d90936fcb9c74369bf6d8116b35ceeeeaaa" | |
| } | |
| ], | |
| "totals": { | |
| "files": 10, | |
| "bytes": 33180195925 | |
| } | |
| } | |