File size: 5,244 Bytes
dc8fa2f 04bf4f5 dc8fa2f 04bf4f5 dc8fa2f 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 8cb01c3 19ab2a3 74e3530 04bf4f5 74e3530 04bf4f5 74e3530 04bf4f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | ---
language:
- en
license: cc-by-nc-sa-4.0
library_name: pytorch
base_model: lch01/StreamVGGT
tags:
- quantstream3d
- streaming-3d
- visual-geometry
- kv-cache
- quantization
- depth-estimation
- arxiv:2611.27901
---
# QuantStream3D–StreamVGGT
**Streaming 3D perception with predominantly 2-bit KV memory.**
Official StreamVGGT checkpoint for
[QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers](https://arxiv.org/abs/2611.27901).
QuantStream3D preserves sensitive cross-view evidence and aligns geometric computation with quantized history, making low-bit memory useful for streaming depth, camera pose, and 3D reconstruction.
**[GitHub](https://github.com/ZunhaiSu/QuantStream3D) · [Paper](https://arxiv.org/abs/2611.27901) · [STream3R checkpoint](https://huggingface.co/zunhai/QuantStream3D-STream3R)**

## Method
- **Geometry-Guided Mixed-Precision KV Quantization** combines per-channel K/V quantization with paired Q/K Hadamard rotation. Ordinary historical global-attention states use 2 bits; writes from the first frame **or** global attention in layer 14 use 4 bits.
- **Geometry-Aligned Quantization-Aware Distillation** jointly adapts transformer blocks and geometry heads on student-generated quantized history. This checkpoint uses 2,000 updates with chronological ten-view clips from MVS-Synth and PointOdyssey-TRAIN.
**The 2/4-bit setting describes the runtime KV cache. Model weights retain their native precision.** This release contains the complete adapted model in five safetensors shards, totaling approximately 5.03 GB.
## Quick start
Install a CUDA-compatible PyTorch build, then set up the code and upstream backbone:
```bash
git clone https://github.com/ZunhaiSu/QuantStream3D.git
cd QuantStream3D
python -m pip install -e '.[cuda,weights]'
git clone https://github.com/wzzheng/StreamVGGT.git third_party/StreamVGGT
git -C third_party/StreamVGGT checkout 05682bcb05683c4c71522e9cb618fc8ca349063c
# Install the upstream dependencies following its README.
python scripts/download_checkpoint.py --model streamvggt
python examples/infer.py \
--upstream third_party/StreamVGGT \
--checkpoint checkpoints/quantstream3d_streamvggt \
--images data/my_sequence/rgb --backend triton \
--output outputs/my_sequence.npz
```
Use a directory of chronologically named RGB images. The result contains camera, depth, confidence, and 3D point predictions. Export a colored point cloud with:
```bash
python examples/export_pointcloud.py \
--predictions outputs/my_sequence.npz --images data/my_sequence/rgb \
--output outputs/my_sequence.ply
```
Triton requires Linux and an NVIDIA CUDA GPU; `--backend torch` selects the packed reference implementation. See [compatibility](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/COMPATIBILITY.md) for supported workflows and [evaluation](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/EVALUATION.md) for benchmark preprocessing.
The download helper verifies pinned revisions and SHA256 digests; see the
[checkpoint guide](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/CHECKPOINTS.md) for download and loading details.
## Representative results
The paper evaluates two backbones across five benchmarks. Selected results for **StreamVGGT** are shown below; lower is better and distances are in meters.
| Method | TUM ATE ↓ | NeuralRGBD accuracy ↓ | NeuralRGBD completeness ↓ |
|:--|--:|--:|--:|
| Original | 0.0269 | 0.084 | 0.079 |
| KIVI | 0.0493 | 0.096 | 0.089 |
| QuaRot | 0.0509 | 0.091 | 0.083 |
| **QuantStream3D** | **0.0264** | **0.074** | **0.066** |
KIVI and QuaRot use their 2-bit KV-quantization components; QuantStream3D uses the mixed 2/4-bit policy and adapted weights. See the [paper](https://arxiv.org/abs/2611.27901) for full results, baseline settings, and post-pruning compression.
The optimized StreamVGGT backend achieves **5.05× physical KV compression** and **23.1% lower complete-inference time at batch size 1** in the paper’s H20 setup. Efficiency is measured separately with matched pretrained weights; see the [profiling protocol](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/PROFILING.md) for timing and memory boundaries.
## License and attribution
These adapted weights are distributed under **CC BY-NC-SA 4.0**. They are based on [StreamVGGT](https://huggingface.co/lch01/StreamVGGT); applicable upstream model and component terms remain in effect. See the [full license](https://huggingface.co/zunhai/QuantStream3D-StreamVGGT/blob/main/LICENSE.txt).
Code and component-specific terms are documented in [third-party notices](https://github.com/ZunhaiSu/QuantStream3D/blob/main/THIRD_PARTY_NOTICES.md).
## Citation
```bibtex
@article{su2026quantstream3d,
title={QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers},
author={Su, Zunhai and Fan, Keyu and Guo, Ruishan and Zhou, Zhongzhu and Xu, Jingzehua and Sun, Bohan and Feng, Hansen and Hu, Ruihan and Wu, Yik-Chung and Wong, Ngai},
journal={arXiv preprint arXiv:2611.27901},
year={2026}
}
```
|