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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("jankin123/3DThinker-Mindcube") model = AutoModelForImageTextToText.from_pretrained("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?"} ] }, ] 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
- 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
Improve model card: add library name, paper link, and code link
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,14 +1,31 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: image-text-to-text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
## Introduction
|
| 6 |
-
* The model was trained on Mindcube_Train and tested on MindCube-Tiny.
|
| 7 |
-
* This model corresponds to stage 1 training of Qwen2.5-3B-VL.
|
| 8 |
-
* Note that Tab. 2 is trained on a different training data.
|
| 9 |
|
| 10 |
## Bibtex
|
| 11 |
-
If you find 3DThinker helpful for your work, please cite
|
| 12 |
|
| 13 |
```
|
| 14 |
@article{chen2025think,
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
+
library_name: transformers
|
| 5 |
+
base_model: Qwen/Qwen2.5-VL-3B-Instruct
|
| 6 |
+
tags:
|
| 7 |
+
- 3d
|
| 8 |
+
- spatial-reasoning
|
| 9 |
+
- vlm
|
| 10 |
+
- qwen2.5-vl
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# 3DThinker-Mindcube
|
| 14 |
+
|
| 15 |
+
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](https://huggingface.co/papers/2510.18632).
|
| 16 |
+
|
| 17 |
+
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.
|
| 18 |
+
|
| 19 |
+
- **Paper:** [Think with 3D: Geometric Imagination Grounded Spatial Reasoning from Limited Views](https://huggingface.co/papers/2510.18632)
|
| 20 |
+
- **Code:** [GitHub - zhangquanchen/3DThinker](https://github.com/zhangquanchen/3DThinker)
|
| 21 |
+
|
| 22 |
## Introduction
|
| 23 |
+
* The model was trained on **Mindcube_Train** and tested on **MindCube-Tiny**.
|
| 24 |
+
* This model corresponds to **stage 1** training (supervised alignment of 3D latents) of Qwen2.5-3B-VL.
|
| 25 |
+
* Note that Tab. 2 in the paper is trained on a different training data configuration.
|
| 26 |
|
| 27 |
## Bibtex
|
| 28 |
+
If you find 3DThinker helpful for your work, please cite:
|
| 29 |
|
| 30 |
```
|
| 31 |
@article{chen2025think,
|