Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
3d
spatial-reasoning
vlm
qwen2.5-vl
conversational
text-generation-inference
Instructions to use jankin123/3DThinker-Mindcube with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jankin123/3DThinker-Mindcube with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jankin123/3DThinker-Mindcube") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("jankin123/3DThinker-Mindcube") model = AutoModelForMultimodalLM.from_pretrained("jankin123/3DThinker-Mindcube", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jankin123/3DThinker-Mindcube with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jankin123/3DThinker-Mindcube" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jankin123/3DThinker-Mindcube", "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/jankin123/3DThinker-Mindcube
- SGLang
How to use jankin123/3DThinker-Mindcube 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 "jankin123/3DThinker-Mindcube" \ --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": "jankin123/3DThinker-Mindcube", "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 "jankin123/3DThinker-Mindcube" \ --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": "jankin123/3DThinker-Mindcube", "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 jankin123/3DThinker-Mindcube with Docker Model Runner:
docker model run hf.co/jankin123/3DThinker-Mindcube
metadata
license: apache-2.0
pipeline_tag: image-text-to-text
library_name: transformers
base_model: Qwen/Qwen2.5-VL-3B-Instruct
tags:
- 3d
- spatial-reasoning
- vlm
- qwen2.5-vl
3DThinker-Mindcube
This repository contains the stage 1 model checkpoint for 3DThinker, as presented in the paper Think with 3D: Geometric Imagination Grounded Spatial Reasoning from Limited Views.
3DThinker is a framework that enables Vision-Language Models (VLMs) to exploit geometric information within images for 3D spatial reasoning, simulating human-like spatial imagination without requiring explicit 3D prior inputs or labeled 3D training data.
- Paper: Think with 3D: Geometric Imagination Grounded Spatial Reasoning from Limited Views
- Code: GitHub - zhangquanchen/3DThinker
Introduction
- The model was trained on Mindcube_Train and tested on MindCube-Tiny.
- This model corresponds to stage 1 training (supervised alignment of 3D latents) of Qwen2.5-3B-VL.
- Note that Tab. 2 in the paper is trained on a different training data configuration.
Bibtex
If you find 3DThinker helpful for your work, please cite:
@article{chen2025think,
title={Think with 3D: Geometric Imagination Grounded Spatial Reasoning from Limited Views},
author={Chen, Zhangquan and Zhang, Manyuan and Yu, Xinlei and Luo, Xufang and Sun, Mingze and Pan, Zihao and Feng, Yan and Pei, Peng and Cai, Xunliang and Huang, Ruqi},
journal={arXiv preprint arXiv:2510.18632},
year={2025}
}