Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
vision-language
video
spatial-reasoning
embodied-ai
qwen
conversational
text-generation-inference
Instructions to use kagakouko/Spatial-Interactor-Qwen2.5-VL-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kagakouko/Spatial-Interactor-Qwen2.5-VL-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="kagakouko/Spatial-Interactor-Qwen2.5-VL-3B") 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("kagakouko/Spatial-Interactor-Qwen2.5-VL-3B") model = AutoModelForMultimodalLM.from_pretrained("kagakouko/Spatial-Interactor-Qwen2.5-VL-3B", 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 kagakouko/Spatial-Interactor-Qwen2.5-VL-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B", "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/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B
- SGLang
How to use kagakouko/Spatial-Interactor-Qwen2.5-VL-3B 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 "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B" \ --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": "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B", "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 "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B" \ --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": "kagakouko/Spatial-Interactor-Qwen2.5-VL-3B", "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 kagakouko/Spatial-Interactor-Qwen2.5-VL-3B with Docker Model Runner:
docker model run hf.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B
Align the English introduction with the original film
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ trajectories.
|
|
| 46 |
<img src="https://raw.githubusercontent.com/ZJU-OmniAI/Spatial-Interactor/main/assets/readme/overview.webp?v=20260917" width="100%" alt="Spatial-Interactor overview: interaction trajectories, three-level curriculum, SFT and OPD, and spatial reasoning results">
|
| 47 |
</p>
|
| 48 |
|
| 49 |
-
<video src="https://huggingface.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B/resolve/main/assets/presentation/spatial-interactor-intro-en.mp4?v=20260924" controls autoplay muted loop playsinline preload="metadata" poster="https://huggingface.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B/resolve/main/assets/presentation/spatial-interactor-intro-en-poster.webp?v=20260924" width="100%"></video>
|
| 50 |
|
| 51 |
## Presentation
|
| 52 |
|
|
|
|
| 46 |
<img src="https://raw.githubusercontent.com/ZJU-OmniAI/Spatial-Interactor/main/assets/readme/overview.webp?v=20260917" width="100%" alt="Spatial-Interactor overview: interaction trajectories, three-level curriculum, SFT and OPD, and spatial reasoning results">
|
| 47 |
</p>
|
| 48 |
|
| 49 |
+
<video src="https://huggingface.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B/resolve/main/assets/presentation/spatial-interactor-intro-en.mp4?v=20260924-faithful" controls autoplay muted loop playsinline preload="metadata" poster="https://huggingface.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B/resolve/main/assets/presentation/spatial-interactor-intro-en-poster.webp?v=20260924-faithful" width="100%"></video>
|
| 50 |
|
| 51 |
## Presentation
|
| 52 |
|
assets/presentation/spatial-interactor-intro-en-poster.webp
CHANGED
|
|
assets/presentation/spatial-interactor-intro-en.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9aed63ab74d106d4aa868f0a3b7a72ad75e91e8aa0ca18653dfce6bf21546841
|
| 3 |
+
size 16869686
|