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
VGD-Qwen2.5-VL-7B-AI2-THOR
Qwen2.5-VL-7B-Instruct trained with View Graph Distillation (VGD) for camera control in AI2-THOR. 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.
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 AI2-THOR, 252 instances per task, success rate (%). Short / Long: ground-truth path of at most 2 / more than 2 actions (28 / 224 instances).
| Model | IVP Short | IVP Long | IVP All | IVP No-Submit | P2V | V2P |
|---|---|---|---|---|---|---|
| Qwen2.5-VL-7B-Instruct (base) | 3.6 | 0.0 | 0.4 | 8.3 | 28.6 | 22.2 |
| This model | 85.7 | 75.4 | 76.6 | 86.9 | 19.8 | 30.6 |
- 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 38.9% IVP.
- Stopping after the three distillation rounds, without the final RL stage, gives 56.7% IVP All.
- 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
The 120 iTHOR floor plans of AI2-THOR 5.0.0, rendered at 256 x 256 pixels, with the same ten camera actions, turn budget and success thresholds as ViewSuite (0.5 m, 30 deg).
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):
hf download MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR --local-dir models/VGD-Qwen2.5-VL-7B-AI2-THOR
AI2THOR_CORPUS=<corpus dir> bash examples/eval_checkpoint/run.sh models/VGD-Qwen2.5-VL-7B-AI2-THOR --corpus ai2thor
Serving (OpenAI-compatible API) as in our evaluation:
python -m sglang.launch_server --model-path models/VGD-Qwen2.5-VL-7B-AI2-THOR --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):
import torch
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
model_id = "MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR"
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 (revision
cc594898). - Data: the AI2-THOR training split: 1,176 instances over 84 scenes (scene split 84 / 18 / 18); checkpoint selection on 100 of the 252 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 260 (dev success 0.76); training stopped after step 460.
- Hardware: 2 nodes with 8 H100 GPUs each. 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.jsondeclaresdtype: bfloat16, sodtype="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.MANIFEST.jsonandSHA256SUMS: 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 19.8 vs 28.6 for the base model, V2P 30.6 vs 22.2.
- 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 AI2-THOR scenes (AI2-THOR is released under Apache-2.0).
Released under the Apache License 2.0 (LICENSE), the license of the base model Qwen2.5-VL-7B-Instruct. The weights are a modified (fine-tuned) version of the base model; see NOTICE.
Citation
@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}
}
- Downloads last month
- -
Model tree for MLL-Lab/VGD-Qwen2.5-VL-7B-AI2-THOR
Base model
Qwen/Qwen2.5-VL-7B-Instruct