Skip to content

AI model

G²VLM

By Intern Robotics, Shanghai AI Laboratory, from github.com/InternRobotics/G2VLM (opens in a new tab)

  • Perception
  • Apache-2.0 (code)
  • Apache-2.0 (weights)

G²VLM is a vision-language model that predicts 3D geometry from images and answers spatial reasoning questions, combining a 3D reconstruction expert with a multimodal understanding expert.

Facts

Code last updated
19 Apr 2026Newest commit on main
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Advanced

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit a45f2f4 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Performs 3D reconstruction from a folder of images and exports a point cloud as a .ply file.
  • Answers spatial reasoning questions about images, using interleaved reasoning over predicted geometry.
  • Uses a unified transformer where geometry and semantic tokens share multimodal self-attention.
  • Provides command-line inference scripts for both 3D reconstruction and spatial question answering.
  • Includes pre-training and joint-training scripts, with configurable datasets for fine-tuning.
  • Pretrained checkpoint G2VLM-2B-MoT is downloadable from Hugging Face; a spatial reasoning checkpoint is announced as forthcoming.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses this model yet.
Licence
Apache-2.0 (code); Apache-2.0 (weights). Commercial use: Yes. Where it was read
Load it
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 19 Apr 2026.

Use it

How to load it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit a45f2f4

Robotheca never hosts the code or the weights: each link goes to the creator's own page.

The README and the model card

The creator's own README, copied as written: README.md by Intern Robotics, Shanghai AI Laboratory, at commit a45f2f4, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

G2VLM: Geometry Grounded Vision Language Model with Unified 3D Reconstruction and Spatial Reasoning

1Shanghai AI Lab, 2UCLA, 3SJTU, 4FDU, 5ZJU, 6USTC, 7HKU, 8CUHK

*Equal Contribution    †Corresponding Author

🏠 About

Dialogue_Teaser

We present <b>G<sup>2</sup>VLM</b>, a geometry grounded vision-language model proficient in both spatial 3D reconstruction and spatial
understanding tasks. For spatial reasoning questions, G<sup>2</sup>VLM can natively predict 3D geometry and employ interleaved reasoning for an answer.
📢 News
  • [2026-04-18] 📝 We release our training code in the train folder (opens in a new tab). Please refer to our training instructions below.
  • [2026-02-20] 🔥 Our work is accepted by CVPR 2026!
  • [2026-01-14] We release the evaluation code for 3D reconstruction. Please refer to the eval readme here (opens in a new tab).
  • [Coming!] 📝 We will release the checkpoint of G2VLM-SR, a strong spatial reasoning model. Stay tuned!
  • [2025-11-27] 🔥 We release the example training data preprocessing code in the data folder (opens in a new tab).
  • [2025-11-27] 🔥 We release the inference code and the checkpoint of G2VLM.
  • [2025-11-27] 🔥 We release the paper (opens in a new tab) of G2VLM.
Model

Picture: method.png

G2VLM is a unified model that integrates both a geometric perception expert for 3D reconstruction and a semantic perception expert for multimodal understanding and spatial reasoning tasks. All tokens can do shared multi-modal self attention in each transformer block.

🚀 Quick Start

1️⃣ Set up environment

git clone https://github.com/InternRobotics/G2VLM
cd G2VLM
conda create -n g2vlm python=3.10 -y
conda activate g2vlm

pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt

Optional: For training

pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

2️⃣ Download pretrained checkpoint

from huggingface_hub import snapshot_download

save_dir = "models/G2VLM-2B-MoT"
repo_id = "InternRobotics/G2VLM-2B-MoT"
cache_dir = save_dir + "/cache"

snapshot_download(cache_dir=cache_dir,
  local_dir=save_dir,
  repo_id=repo_id,
  local_dir_use_symlinks=False,
  resume_download=True,
  allow_patterns=["*.json", "*.safetensors", "*.bin", "*.py", "*.md", "*.txt"],
)

3️⃣ Run Inference from Command Line

Try our example inference script. Here is the script for 3D recontruction.

# Run with default example images
python inference_recon.py

# Run on your own data (image folder)
python inference_recon.py --image_folder <path/to/your/images_dir>

Here is the script for spatial reasoning task. We encourage to try spatial reasoning with G2VLM-SR which will be released soon!

# Run with default example images and default question
python inference_chat.py

# Run on your own data (image folder) and question
python inference_chat.py --image_path <path/to/your/images> --question "user question"

Optional Arguments:

  • --model_path: Path to a custom model checkpoint file.
  • --image_folder: Path to the input image directory. (Default: examples/dl3dv)
  • --image_path: Path to the image, if you want to specify the image. (Default: examples/25_0.jpg)
  • --question: Input question. (Default: If the table (red point) is positioned at 2.6 meters, estimate the depth of the clothes (blue point).)
  • --save_path: Path to save the output .ply point cloud. (Default: examples/result.ply)
🔥 Training

We provide pre-train and joint-train scripts in scripts folder (opens in a new tab)

# For pre-train of visual geometry expert only 
bash scripts/pretrain.sh

# For joint-train of semantic perception expert and optionally (freeze or train) visual geometry expert
bash scripts/joint_train.sh

For finetuning or joint training, please edit the config file here data/configs/joint_train.yaml (opens in a new tab). The actual data config is in this file data/dataset_info.py (opens in a new tab) where you can edit the path to your dataset.

🔗 Citation

If you find our work and this codebase helpful, please consider starring this repo 🌟 and cite:

@article{hu2025g2vlmgeometrygroundedvision,
      title={G$^2$VLM: Geometry Grounded Vision Language Model with Unified 3D Reconstruction and Spatial Reasoning}, 
      author={Wenbo Hu and Jingli Lin and Yilin Long and Yunlong Ran and Lihan Jiang and Yifan Wang and Chenming Zhu and Runsen Xu and Tai Wang and Jiangmiao Pang},
      year={2025},
      journal={arXiv preprint arXiv:2511.21688},
      url={https://arxiv.org/abs/2511.21688}, 
}
📄 License

G2VLM is licensed under the Apache 2.0.

👏 Acknowledgements

Read the model card on Hugging Face (opens in a new tab)

Robotheca lists AI models as a reference: nothing is hosted or run here, and every fact links to where it was read.