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: 8,610 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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | ---
license: apache-2.0
base_model: Qwen/Qwen2.5-VL-7B-Instruct
base_model_relation: finetune
library_name: transformers
pipeline_tag: image-text-to-text
language:
- en
datasets:
- MLL-Lab/ViewSuite-ScanNet
tags:
- viewsuite
- view-planning
- active-perception
- camera-control
- embodied-ai
- vision-language-model
- reinforcement-learning
- qwen2_5_vl
---
# VGD-Qwen2.5-VL-7B-ScanNet
Qwen2.5-VL-7B-Instruct trained with **View Graph Distillation (VGD)** for camera control in ViewSuite (ScanNet). Given a target view, a start view and a top-down view of a scene, the model moves a camera with discrete actions, sees the new view after every turn, and finally submits the 6-DoF pose of the target view (Interactive View Planning, IVP). The model was trained and evaluated for the paper [*Planning with the Views*](https://arxiv.org/abs/2605.29563).
## Results
These results come from the updated experiments (Habitat-Sim renders, horizontal-plane action space) and differ from the numbers in arXiv v1.
Test split of ViewSuite (ScanNet), 530 instances per task, success rate (%). Short / Long: unified view distance between the start and target views d < 3 / d >= 3 (187 / 343 instances).
| Model | IVP Short | IVP Long | IVP All | IVP No-Submit | P2V | V2P |
|---|---|---|---|---|---|---|
| Qwen2.5-VL-7B-Instruct (base) | 1.1 | 0.0 | 0.4 | 4.5 | 28.5 | 27.9 |
| **This model** | 66.3 | 50.1 | **55.8** | 67.4 | 27.0 | 33.0 |
- **IVP**: success when the submitted pose is within the position and rotation thresholds of the target. **No-Submit** credits an episode once an observed camera pose is within the thresholds, whatever is submitted.
- **P2V** (Path-to-View) and **V2P** (View-to-Path) are four-way multiple-choice questions about one action sequence (chance 25%).
- Gemini 3.1 Pro, the strongest zero-shot model evaluated in the same setting, reaches 24.0% IVP.
- With 3D Gaussian-splatting renders of the same test scenes (SceneSplat-7K reconstructions) instead of mesh renders, IVP All is 46.6%.
- Every request used temperature 0, top-p 1, repetition penalty 1.0 and at most 1,024 new tokens; the checkpoint was served with SGLang 0.5.13 in bfloat16 (PyTorch 2.11, Transformers 5.8.1). Batched serving is not bit-deterministic even at temperature 0, so a re-run can differ slightly.
## Task and environment
ScanNet indoor scenes, rendered from the ScanNet meshes with Habitat-Sim at 256 x 256 pixels. Ten camera actions: move forward / backward / left / right in the horizontal plane (0.5 m), move up / down along the world vertical axis (0.5 m), turn left / right (30 deg yaw) and look up / down (30 deg pitch, limited to +-60 deg); no roll. Up to four actions per turn, ten turns including the final answer. Success: submitted pose within 0.5 m and 30 deg of the target.
The system prompt, the observation messages and the action syntax are produced by the environment code (https://github.com/mll-lab-nu/viewagent). Replies have the form `<think>...</think><action>a1|a2|...</action>`, and the final turn calls `answer(tx, ty, tz, rx, ry, rz)` with the camera-to-world position in meters and Euler XYZ angles in degrees. Complete example conversations of this model are in the evaluation trajectories dataset (MLL-Lab/ViewSuite-Eval-Trajectories).
## How to use
Evaluation with the released code (one SGLang server per GPU; it needs the corpus with its images and the environment's render service, see the code release and the dataset card):
```bash
hf download MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet --local-dir models/VGD-Qwen2.5-VL-7B-ScanNet
SCANNET_CORPUS=<corpus dir> bash examples/eval_checkpoint/run.sh models/VGD-Qwen2.5-VL-7B-ScanNet --corpus scannet
```
Serving (OpenAI-compatible API) as in our evaluation:
```bash
python -m sglang.launch_server --model-path models/VGD-Qwen2.5-VL-7B-ScanNet --dtype bfloat16 \
--context-length 32768 --port 30000
```
We evaluated with SGLang only; other servers (for example vLLM) have not been tested with this checkpoint.
Transformers 5 (tested with 5.8.1, which wrote the configuration; Transformers 4.x does not read the rotary-embedding settings stored under `rope_parameters`):
```python
import torch
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
model_id = "MLL-Lab/VGD-Qwen2.5-VL-7B-ScanNet"
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)
# One turn: a system prompt and a user message with the images, as produced by the environment.
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": [{"type": "image", "image": target_view},
{"type": "image", "image": initial_view},
{"type": "image", "image": top_down_view},
{"type": "text", "text": FIRST_OBSERVATION_TEXT}]},
]
inputs = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False, repetition_penalty=1.0)
print(processor.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
```
In the environment the three images are placed where the prompt text has `<image>`; use the code release for the exact message construction. `generation_config.json` is the one saved with the checkpoint; pass the decoding settings above explicitly.
## Training
- Base model: [Qwen/Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct) (revision `cc594898`).
- Data: the ViewSuite ScanNet training split: 3,419 instances over 193 scenes; checkpoint selection on 100 of the 378 dev instances.
- View Graph Distillation, three rounds. In each round the current policy explores the training scenes with PPO (60 steps of 128 episodes, 7,680 recorded episodes); the visited views and the actions between them are merged into a view graph that grows over the rounds; shortest-path plans, view-difference estimates and multiple-choice questions are distilled from the graph; and the model is fine-tuned on them (3 epochs).
- Final RL stage: PPO for up to 1,000 steps, validated every 20 steps on 100 dev instances, stopped after 200 steps without improvement. This checkpoint is step 400 (dev success 0.57); training stopped after step 600.
- Hardware: 1 node with 8 H200 GPUs (about 36 hours). One training run per configuration.
## Files
- `model.safetensors`: the evaluated weights, unchanged: one file, 33.2 GB, 729 tensors, 8,292,166,656 parameters, stored in **float32** (the training export). The evaluation served them in bfloat16 (`--dtype bfloat16`); `config.json` declares `dtype: bfloat16`, so `dtype="auto"` also loads bfloat16.
- `config.json`, `generation_config.json`, `tokenizer.json`, `tokenizer_config.json`, `processor_config.json`, `chat_template.jinja`: as saved with the checkpoint (in `config.json` a local file path stored under `text_config._name_or_path` was removed; it has no effect on loading).
- `MANIFEST.json` and `SHA256SUMS`: size and SHA-256 of every file.
## Limitations
- Trained for one rendering style, one camera model and one discrete action space; other renderers, fields of view or action sets reduce success.
- The model plans camera viewpoints; it was not trained or tested for physical navigation, collision avoidance or robot control.
- Training targets IVP. The single-step multiple-choice tasks do not improve consistently: P2V 27.0 vs 28.5 for the base model, V2P 33.0 vs 27.9.
- One training run per configuration; differences of a few points between models are within run-to-run variation.
## Training data and license
The training views are renders of ScanNet scenes. ScanNet is available under the ScanNet Terms of Use (non-commercial research and education); the renders are not part of this repository.
Released under the Apache License 2.0 (`LICENSE`), the license of the base model [Qwen2.5-VL-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct). The weights are a modified (fine-tuned) version of the base model; see `NOTICE`.
## Citation
```bibtex
@article{wang2026viewagent,
title = {Planning with the Views},
author = {Wang, Kangrui and Li, Linjie and Yang, Zhengyuan and Chen, Shiqi and
Wang, Zihan and Fei-Fei, Li and Wu, Jiajun and Guibas, Leonidas and
Wang, Lijuan and Li, Manling},
journal = {arXiv preprint arXiv:2605.29563},
year = {2026}
}
```
|