Refine model overview, reproducible quick start, results, and attribution
Browse files15 unmodified lines16171819202122232425262728293031323334353637383940414243444546474849501 unmodified line525354555657585960616263646566676869707172737475767778798081828384858615 unmodified lines# QuantStream3D–StreamVGGT**Geometry-aligned streaming geometry with predominantly 2-bit KV memory.**Adapted StreamVGGT parameters for[QuantStream3D: Geometry-Aligned Low-Bit KV Cache Quantization for Streaming Visual Geometry Transformers](https://arxiv.org/abs/2611.27901).**[Code and installation](https://github.com/ZunhaiSu/QuantStream3D) ·[Paper](https://arxiv.org/abs/2611.27901) ·[Checkpoint guide](https://github.com/ZunhaiSu/QuantStream3D/blob/main/docs/CHECKPOINTS.md)**## MethodQuantStream3D combines **Geometry-Guided Mixed-Precision KV Quantization** with**Geometry-Aligned Quantization-Aware Distillation**. Per-channel K/Vquantization and paired Q/K H64 rotation compress historical global-attentionstates. Ordinary history uses 2 bits; the first frame or global attention inlayer 14 uses 4 bits. Joint distillation aligns transformer blocks and geometryheads with student-generated quantized history.This checkpoint contains **native-precision model weights after 2,000 QADupdates**. The 2/4-bit setting applies to the inference KV cache, not to thestored model weights. Optimizer state, RNG snapshots, and training logs areexcluded. Export preserves every tensor value and dtype.## UseInstall QuantStream3D and the StreamVGGT dependencies following the code README.Download this repository into a local checkpoint directory, then run:```bashpython examples/infer.py \--upstream third_party/StreamVGGT \--checkpoint checkpoints/quantstream3d_streamvggt \1 unmodified line--output outputs/my_sequence.npz```Use `--backend torch` for the packed reference implementation. Triton requiresLinux and an NVIDIA GPU. The folder example is a demonstration loader; papermetrics require the benchmark-specific preprocessing and evaluation protocol.## Files and integrity- Five safetensors shards and `model.safetensors.index.json`.- `recipe.json`: fixed runtime precision and rotation policy.- `quantstream3d.json`: model identity, export checks, and per-shard hashes.- `SHA256SUMS`: file-integrity manifest.```bashshasum -a 256 -c SHA256SUMS```## Training and evaluationAdaptation uses chronological ten-view clips from MVS-Synth andPointOdyssey-TRAIN, with a frozen original-precision teacher. The paperevaluates depth, camera pose, and reconstruction across five benchmarks andtwo backbones. Please see the paper and code for complete results and metricdefinitions; the checkpoint is not a Transformers AutoModel or hosted pipeline.## License and attributionThis model derives from [StreamVGGT](https://huggingface.co/lch01/StreamVGGT) andretains the applicable upstream model and component terms in `LICENSE.txt`.QuantStream3D code and its StreamVGGT-derived components use CC BY-NC-SA 4.0.See the code repository's third-party notices for attribution.## Citation15 unmodified lines161718192021222324252627282930313233343536373839404142434445464748495051521 unmodified line5455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010115 unmodified lines# 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 startInstall a CUDA-compatible PyTorch build, then set up the code and upstream backbone:```bashgit clone https://github.com/ZunhaiSu/QuantStream3D.gitcd QuantStream3Dpython -m pip install -e '.[cuda,weights]'git clone https://github.com/wzzheng/StreamVGGT.git third_party/StreamVGGTgit -C third_party/StreamVGGT checkout 05682bcb05683c4c71522e9cb618fc8ca349063c# Install the upstream dependencies following its README.python scripts/download_checkpoint.py --model streamvggtpython examples/infer.py \--upstream third_party/StreamVGGT \--checkpoint checkpoints/quantstream3d_streamvggt \1 unmodified line--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:```bashpython 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.## Representative resultsThe 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.## Files and verificationThe download helper pins a verified model revision and checks file sizes and SHA256 digests. The release includes:- Five safetensors shards and `model.safetensors.index.json`.- `recipe.json` and `quantstream3d.json` for the runtime policy and model metadata.- `SHA256SUMS` for manual integrity verification.```bashcd checkpoints/quantstream3d_streamvggtshasum -a 256 -c SHA256SUMS```## License and attributionThese 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
README.md+52-37