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-ScanNet 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-ScanNet 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-ScanNet") 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-ScanNet") model = AutoModelForMultimodalLM.from_pretrained("MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet", 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-ScanNet 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-ScanNet" # 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-ScanNet", "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-ScanNet
- SGLang
How to use MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet 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-ScanNet" \ --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-ScanNet", "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-ScanNet" \ --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-ScanNet", "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-ScanNet with Docker Model Runner:
docker model run hf.co/MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet
File size: 1,532 Bytes
dba930b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | {
"package": "VGD-Qwen2.5-VL-7B-ScanNet",
"generated_utc": "2026-11-20T11:13:19Z",
"files": [
{
"path": "LICENSE",
"bytes": 11358,
"sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
},
{
"path": "NOTICE",
"bytes": 509,
"sha256": "b7f7076e360aa10ef2847202dfa7d556487a4caec10cb53ae1b7e472f73e80c9"
},
{
"path": "README.md",
"bytes": 8610,
"sha256": "8e411ac8729d5b784c84ef9d29fc0681d8c547fbade3dac880228cda663afd82"
},
{
"path": "chat_template.jinja",
"bytes": 1017,
"sha256": "a0bc6f6fc7a29a80017a433e8f03a1cc1236e838a944a2d034295a60c4f2fddb"
},
{
"path": "config.json",
"bytes": 2566,
"sha256": "abd219fb7c9a6ec3e78c1c334d0691f3a522fcdc7d86df1be0326949d591e69d"
},
{
"path": "generation_config.json",
"bytes": 187,
"sha256": "80a2a196300d8ee59c3759d424a30cec4f2e9ab8d126881b5f856b706ab220e6"
},
{
"path": "model.safetensors",
"bytes": 33168748432,
"sha256": "69c522eee127dc142b77750cb7e803dcf4d6f6a7cb34832b3527461fc97d035c"
},
{
"path": "processor_config.json",
"bytes": 1330,
"sha256": "1928ac3837a6e791fc368608aa1bc0d6b8dabf2f6fdfc5fa52e16531af2a16d5"
},
{
"path": "tokenizer.json",
"bytes": 11422166,
"sha256": "6b4360dd6a184650ffc48056c2569bc603f896c5adfe94b10f1c79f809638aa5"
},
{
"path": "tokenizer_config.json",
"bytes": 447,
"sha256": "10545495962f944c18cefbe79c4c6e1542589a42e3285acdd92313358e72117d"
}
],
"totals": {
"files": 10,
"bytes": 33180196622
}
}
|