Instructions to use fzzsl/QuatRoPE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fzzsl/QuatRoPE with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="fzzsl/QuatRoPE")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("fzzsl/QuatRoPE", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use fzzsl/QuatRoPE with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fzzsl/QuatRoPE" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fzzsl/QuatRoPE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fzzsl/QuatRoPE
- SGLang
How to use fzzsl/QuatRoPE 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 "fzzsl/QuatRoPE" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fzzsl/QuatRoPE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "fzzsl/QuatRoPE" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fzzsl/QuatRoPE", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fzzsl/QuatRoPE with Docker Model Runner:
docker model run hf.co/fzzsl/QuatRoPE
QuatRoPE
This repository contains the official checkpoints for the paper:
Shengli Zhou, Minghang Zheng, Feng Zheng, and Yang Liu. 2026. Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026.
Overview
Spatial reasoning focuses on locating target objects based on spatial relations in 3D scenes, which plays a crucial role in developing intelligent embodied agents. Due to the limited availability of 3D scene-language paired data, it is challenging to train models with strong reasoning ability from scratch. Previous approaches have attempted to inject 3D scene representations into the input space of Large Language Models (LLMs) and leverage the pretrained comprehension and reasoning abilities for spatial reasoning. However, models encoding absolute positions struggle to extract spatial relations from prematurely fused features, while methods explicitly encoding all spatial relations (which is quadratic in the number of objects) as input tokens suffer from poor scalability. To address these limitations, we propose QuatRoPE, a novel positional embedding method with an input length that is linear to the number of objects, and explicitly calculates pairwise spatial relations through the dot product in attention layers. QuatRoPE's holistic vector encoding of 3D coordinates guarantees a high degree of spatial consistency, maintaining fidelity to the scene's geometric integrity. Additionally, we introduce the Isolated Gated RoPE Extension (IGRE), which effectively limits QuatRoPE's influence to object-related tokens, thereby minimizing interference with the LLM's existing positional embeddings and maintaining the LLM's original capabilities. Extensive experiments demonstrate the effectiveness of our approaches.
Usage
Please refer to the official GitHub repository for installation and inference instructions.
Models
| ScanRefer | Multi3DRefer | SQA3D | |||
|---|---|---|---|---|---|
| Model | Acc.@0.25 | Acc.@0.5 | F1@0.25 | F1@0.5 | EM@1 |
| Chat-Scene + QuatRoPE | 57.8 | 52.2 | 59.5 | 54.8 | 54.7 |
| 3DGraphLLM + QuatRoPE | 58.2 | 52.5 | 60.6 | 56.0 | 55.2 |
Note: The checkpoints are based on Vicuna-7B-v1.5, trained by GT segmentation, and fine-tuned using the Mask3D segmentation.
Acknowledgement
We would like to thank the open-source code base of 3DGraphLLM and the anonymous reviewers for their constructive feedback.
Citation
If you find this project useful in your research, please consider citing:
@misc{zhou2026scalableobjectrelationencoding,
title={Scalable Object Relation Encoding for Better 3D Spatial Reasoning in Large Language Models},
author={Shengli Zhou and Minghang Zheng and Feng Zheng and Yang Liu},
year={2026},
eprint={2603.24721},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2603.24721},
}
docker model run hf.co/fzzsl/QuatRoPE