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
Present the full English film and 20-slide English deck
Browse files- .gitattributes +3 -0
- README.md +2 -4
- assets/presentation/Spatial-Interactor-English-Presentation.pptx +3 -0
- assets/presentation/presentation-en-poster.webp +0 -0
- assets/presentation/spatial-interactor-intro-en-poster.webp +0 -0
- assets/presentation/spatial-interactor-intro-en.mp4 +3 -0
- assets/presentation/spatial-interactor-presentation-en.mp4 +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
assets/presentation/spatial-interactor-intro-en.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
assets/presentation/spatial-interactor-presentation-en.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
assets/presentation/Spatial-Interactor-English-Presentation.pptx filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -46,13 +46,11 @@ 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://
|
| 50 |
|
| 51 |
## Presentation
|
| 52 |
|
| 53 |
-
<
|
| 54 |
-
<img src="https://raw.githubusercontent.com/ZJU-OmniAI/Spatial-Interactor/main/assets/readme/presentation-preview.webp?v=20260916" width="100%" alt="Spatial-Interactor 20-page presentation">
|
| 55 |
-
</p>
|
| 56 |
|
| 57 |
## Load
|
| 58 |
|
|
|
|
| 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 |
|
| 53 |
+
<video src="https://huggingface.co/kagakouko/Spatial-Interactor-Qwen2.5-VL-3B/resolve/main/assets/presentation/spatial-interactor-presentation-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/presentation-en-poster.webp?v=20260924" width="100%"></video>
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Load
|
| 56 |
|
assets/presentation/Spatial-Interactor-English-Presentation.pptx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3766b26fb9b93a80b06167f7ef749e61687df4f801cc277c15d09fe565a38cff
|
| 3 |
+
size 36113505
|
assets/presentation/presentation-en-poster.webp
ADDED
|
assets/presentation/spatial-interactor-intro-en-poster.webp
ADDED
|
assets/presentation/spatial-interactor-intro-en.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9aa4dce47f113edf98bead2f16c94747e29878fb8424f6db3b5a44d23c08123c
|
| 3 |
+
size 12449685
|
assets/presentation/spatial-interactor-presentation-en.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f2c4033402dae7ceb3004286b8b026b96d72b9c1660ef4190db66c29410e81e
|
| 3 |
+
size 4272138
|