Repository navigation
Conversation
…-30M at nprobe 650
dcondrey
marked this pull request as ready for review
November 12, 2026 23:26
…M at nprobe 925, keep NumPy 1.x after the wheel install
Author
|
Repinned WARM to the v0.7.4 tag ( |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
false
561f9fe
Adds
neurips23/streaming/warm(algorithm keywarm). Source: https://github.com/writerslogic/warm (Apache-2.0), pinned to WARM main commit1cdeab8dac2949922725fe9664aa5953e6add40bby the singleARG WARM_COMMITinneurips23/streaming/warm/Dockerfile. The wheel is built with--features python,experimentalon a pinned Rust 1.99.0 toolchain.Files:
Dockerfile,config.yaml,warm.py(Warm(BaseStreamingANN)),streaming_io.py, and the CI entry (warmonrandom-xs).Algorithm
For msturing-30M-clustered,
config.yamlselects"mode": "partition", which useswriterslogic_warm.PartitionIndex:nprobeis multiplied by a factor from 1.4 at 2M live rows or fewer down to 0.6 at 10M or more). It scans the 4-bit codes with the threshold test fused into the kernel; on AVX-512 VBMI+VNNI CPUs eight queries share each code block. It then reorders the top 1,000 candidates exactly in f32.config.yamldoes not set them.Deletes and storage
PartitionIndex.deletedoes not tombstone (src/core/qgraph/partition.rsat the pinned commit,delete, lines 1076-1109). For each deleted id it removes the row's entries from its lists by swap-remove (remove, lines 788-816): the last code of the list is moved into the vacated position, the list shrinks, and the code block is truncated when it empties. The row's slot is pushed on a free list (line 1106) and reused by a later insert (line 993). The full-precision row array is not shrunk: it is sized to the peak number of simultaneously live rows, and freed slots are reused rather than returned to the allocator. The lists, and therefore the scan cost, cover only live points. The structure is not sized to the full set of 30M points.Configuration
config.yamlfor msturing-30M-clustered has one build configuration and one search configuration:{"mode":"partition", "lists":5000, "train_at":1000000, "reorder":1000, "T":8}{"nprobe":925}The graph mode (
R/L/alpha,UpdatableIndex) stays available for the other datasets inconfig.yaml; their entries are unchanged.Dataset override: importing
warm.pyreplaces the harness'smsturing-10M-clusteredandmsturing-30M-clustereddataset classes with subclasses whoseget_data_in_rangereads only the requested rows of the.fbin(after strict header and size checks). The organisers may dropstreaming_io.pyand theDATASETS.updatecall without affecting the index.Measured results (not the organisers' evaluation)
Three Docker-mode runs of the final runbook on msturing-30M-clustered, nprobe 925, reorder 1000 (this PR's
config.yaml), on GCP n2-custom-8-16384 (Intel Xeon Ice Lake @ 2.60 GHz, 8 vCPU, AVX-512), us-east4, 8 GiB container memory limit. This is Google Cloud, not the organisers' Azure Standard_D8lds_v5 VM, so the numbers are not official and are not a leaderboard placement.Harness: this branch at
561f9fewithconfig.yamlat nprobe 925 and two local edits tobenchmark/runner.pyfor measurement only (container memory limit forced to 8 GiB; container wait timeout raised from 1 h to 3 h so an overrun would be recorded instead of killed). All 1,280 steps completed with exit 0 in every run.5e2893f0(WARMperf/stream-nphead)5e2893f01cdeab8d(ARG WARM_COMMITin this PR's Dockerfile)Notes:
install.pyfrom this PR's Dockerfile at this head (build log confirms the checkout of1cdeab8d; numpy 1.26.4, scipy 1.10.1 in the image). WARM1cdeab8dis the commit on WARM main that merged theperf/stream-npchange (perf: Run the streaming partition tier's gemm on AVX-512 and select probes and candidates on packed integer keys writerslogic/warm#463); r1b and r2b used the pre-merge branch head.compute_metrics_all_runsmean over the 640 search steps, recomputed from the saved result files.0f81061b, nprobe 830) in Docker mode on the same host class: 3,563.1 s step-time total, one run, recall not exported. The Azure E8bds_v5 Docker runs reported earlier in this PR (e176d557, nprobe 830: 3,238.3 s and 3,242.7 s at 0.998038) are unchanged; nprobe 925 and the newer pin were not run on Azure.numpy>=1.26, which replaced the harness image's pinned NumPy 1.24.2 and broke scipy 1.10.1 at import in the first attempts; the Dockerfile now ends withpip3 install "numpy>=1.26,<2"(comment in the file).neurips23/README.mdquotes DiskANN at 0.883 on this runbook.benchmarks/results/bigann_streaming_final_runbook_icelake_v2.json(r1b, r2b; perf: Run the streaming partition tier's gemm on AVX-512 and select probes and candidates on packed integer keys writerslogic/warm#463).CI
Fork CI on an earlier head (https://github.com/dcondrey/big-ann-benchmarks/actions/runs/42456893463):
neurips23-streaming-warmimage builds andWarminstantiates.FileNotFoundError: 'neurips23/streaming/simple_runbook.yaml', the harness's default runbook path inbenchmark/runner.py.Not checked