PyNNDescent 0.8 and RINND 0.5 ship quantized search, up to 16x faster index builds
leland_mcinnes · x · 2026-12-07
Leland McInnes (author of UMAP) released PyNNDescent 0.8 and RINND 0.5. RINND began as an AI-assisted Rust port of PyNNDescent and became a testbed for optimizations, many ported back; it ships compiled wheels and is faster, and UMAP 0.6's new pipeline uses it when installed.
New features
- Quantized search: vectors stored as 8- or 4-bit codes scored with integer dot products (AVX-512 VNNI where available); best candidates are reranked with full-precision data, so returned neighbors are exact.
- Maximum inner product search (metric="mips") for unnormalized vectors like attention keys; fastest on 3 of 4 VIBE inner-product datasets, and 3.4x/6.5x faster than the next best on high-dimensional cqadupstack.
- Query adaptation: pass expected queries to prepare() and the index rebuilds a tree over the sample; 2x the best of the rest on out-of-distribution laion queries.
- Faster builds: early NN-descent rounds run on 8-bit codes before exact refinement — nearly 3x faster than the next fastest method across 11 datasets (5-16x vs the rest); msmarco under an hour.
Benchmarks (author's own VIBE runs, k=100, single-threaded CPU): RINND is fastest on all 11 VIBE datasets at 95% recall, PyNNDescent close behind. Install: pip install -U pynndescent rinnd.
More from Infra
- PyNNDescent 0.8 and RINND 0.5 top VIBE benchmark: fastest search at 95% recall on all 11 datasets — leland_mcinnes · 2026-12-07
- Congress probes Nvidia's undisclosed Megaspeed sales — disclosure could expose China chip export violations — GaryMarcus · 2026-12-07
- Future major outages will be blamed on AI hackers but caused by PQC upgrades, predicts mattjay — whurley · 2026-12-07
- From-scratch 33MB C++/CUDA SDXL engine runs 1024×1024 on a 4GB GPU where A1111 OOMs — checkthisout1123 · 2026-12-07
- 3-bit beats 4-bit on 4 of 6 tasks: Qwen4-35B-A3B quant tests reveal non-linear MoE degradation — SmokeAI · 2026-12-07
- Gemini preview API now preserves prompt cache when instructions or tools change mid-session — petrusenko_max · 2026-12-07