Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ and skips any stage that already completed:
| `select` | `qbench select` | Per method and k, the fastest dev point with ANN Recall@k ≥ 0.95 and nDCG@10 within 0.01 of exact float32; frozen to `selected.yaml` before any test query is read |
| `selected` | `selected.yaml` | Held-out evaluation of the frozen points; misses are reported, never retuned |
| `datatype` | `configs/datatype.yaml` | `turbo4` stored datatype versus float32 plus TurboQuant search copies |
| `datatype-binary` | `configs/datatype-binary.yaml` | Binary retrieval rescored against `turbo4` storage versus against float32 originals |
| `ablation` | `configs/ablation.yaml` | Fixed-effort rescoring/oversampling ablation plus the extended set: binary 1.5/2-bit, scalar-8 query encoding, TurboQuant 2/1.5/1-bit, product16 |

Repeat for `scifact`, `nfcorpus`, `quora` and for `bge`, or run every step in
Expand Down
25 changes: 25 additions & 0 deletions configs/datatype-binary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Binary retrieval rescored against turbo4 stored vectors, next to the same
# binary retrieval rescored against float32 originals. Oversampling 8 is the
# point binary needed in development selection; 2 matches the primary run.
expected_qdrant_version: "1.19.2"
datasets: [fiqa, scifact, nfcorpus, quora]
models: [cohere, bge]
builds: 3
seed: 42
hnsw:
m: 16
ef_construct: 100
max_indexing_threads: 8
search:
ks: [10, 100]
hnsw_ef: [256]
rescoring: [false, true]
oversampling: [2, 8]
split: test
max_queries: 150
warmup_queries: 50
repeats: 5
methods:
- {name: binary1, quantizer: binary, query_encoding: binary}
- {name: datatype_turbo4_binary1, datatype: turbo4, quantizer: binary, query_encoding: binary}
- {name: datatype_turbo4_turbo4, datatype: turbo4, quantizer: turbo, bits: 4}
5 changes: 4 additions & 1 deletion docs/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ modern-quantization-bench reference: binary 1.5-bit and 2-bit encodings, binary
1-bit with an 8-bit scalar query, TurboQuant bits2, bits1_5, bits1, and
product16. `configs/datatype.yaml` compares float32 without
quantization, float32 plus TurboQuant bits4 with and without rescoring, the
`turbo4` datatype without a search copy, and the bits1 pairing. Rescoring
`turbo4` datatype without a search copy, and the bits1 pairing.
`configs/datatype-binary.yaml` adds binary retrieval rescored against `turbo4`
storage next to binary retrieval rescored against float32 originals, plus a
`turbo4` search copy over `turbo4` storage, at oversampling 2 and 8. Rescoring
against `turbo4` storage cannot restore float32 precision, and changing the
stored datatype can affect index construction.

Expand Down
2 changes: 2 additions & 0 deletions scripts/run-workload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# select freeze the fastest eligible point per method and k
# selected held-out test evaluation of the frozen settings
# datatype turbo4 stored-datatype comparison (configs/datatype.yaml)
# datatype-binary binary retrieval rescored against turbo4 storage
# ablation fixed-effort rescoring/oversampling ablation (configs/ablation.yaml)
#
# Source scripts/vm-env.sh first so telemetry targets are exported.
Expand Down Expand Up @@ -57,5 +58,6 @@ if [ ! -f "$out/selected.yaml" ]; then
fi
run_stage selected "$out/selected.yaml"
run_stage datatype configs/datatype.yaml
run_stage datatype-binary configs/datatype-binary.yaml
run_stage ablation configs/ablation.yaml
echo "[$dataset/$model] workload complete under $out"
Loading