---
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 `...a1|a2|...`, 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= 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 ``; 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}
}
```