Skip to content
Open
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
12 changes: 12 additions & 0 deletions ann_benchmarks/algorithms/qpg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ann-benchmarks

# 更新包列表并安装基础依赖
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git cmake g++ python3 python3-setuptools python3-pip libblas-dev liblapack-dev libopenblas-dev
# 安装 Python 依赖
RUN pip3 --default-timeout=3000 install pybind11 numpy
RUN git clone -b main "https://github.com/wangziying1004/qpg.git"
RUN ldconfig
RUN pip3 install qpg/qpgbuild-1.0-cp310-cp310-linux_x86_64.whl
RUN pip3 install qpg/qpgsearch-1.0-cp310-cp310-linux_x86_64.whl

222 changes: 222 additions & 0 deletions ann_benchmarks/algorithms/qpg/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
float:
any:
- base_args: ['@metric',Float]
constructor: QPG
disabled: false
docker_tag: ann-benchmarks-qpg
module: ann_benchmarks.algorithms.qpg
name: qpg
run_groups:
a1:
args: [{data_path: './test.fvecs', K: 128, smp: 36, iter: 15, alpha: 1.1,
M0: 64, M: 32, occ: 3, recallN: 10, rvsN: 8, out_path: './graph.hnsw',
reranker: 'sq16', quantizer: 'sq8',
qdim: 0, rdim: 0
}]
query_args: [[
[10,1.0],
[11,1.0],
[12,1.0],
[13,1.0],
[15,1.0],
[18,1.0],
[22,1.0],
[26,1.0],
[28,1.0],
[30,1.0],
[35,1.0],
[40,1.0],
[45,1.0],
[50,1.0],
[55,1.0],
[60,1.0],
[65,1.0],
[70,1.0],
[80,1.0],
[90,1.0],
[100,1.0],
[110,1.0],
[120,1.0],
[130,1.0],
[140,1.0],
[150,1.0],
[160,1.0],
[170,1.0],
[180,1.0],
[190,1.0],
[200,1.0],
[300,1.0],
[400,1.0],
[500,1.0],
[600,1.0]

]]
a2:
args: [{data_path: './test.fvecs', K: 128, smp: 36, iter: 15, alpha: 1.1,
M0: 64, M: 32, occ: 3, recallN: 10, rvsN: 8, out_path: './graph.hnsw',
reranker: 'sq16', quantizer: 'sq8',
qdim: 128, rdim: 0
}]
query_args: [[
[10,1.0],
[11,1.0],
[12,1.0],
[13,1.0],
[15,1.0],
[18,1.0],
[22,1.0],
[26,1.0],
[28,1.0],
[30,1.0],
[35,1.0],
[40,1.0],
[45,1.0],
[50,1.0],
[55,1.0],
[60,1.0],
[65,1.0],
[70,1.0],
[75,1.0],
[80,1.0],
[85,1.0],
[90,1.0],
[95,1.0],
[100,1.0],
[105,1.0],
[110,1.0],
[115,1.0],
[120,1.0],
[125,1.0],
[130,1.0],
[135,1.0],
[140,1.0]
]]
a3:
args: [{data_path: './test.fvecs', K: 128, smp: 36, iter: 15, alpha: 1.1,
M0: 32, M: 16, occ: 3, recallN: 10, rvsN: 8, out_path: './graph.hnsw',
reranker: 'sq16', quantizer: 'sq8',
qdim: 128, rdim: 0
}]
query_args: [[
[10,1.0],
[11,1.0],
[12,1.0],
[13,1.0],
[15,1.0],
[18,1.0],
[22,1.0],
[26,1.0],
[28,1.0],
[30,1.0],
[35,1.0],
[40,1.0],
[45,1.0],
[50,1.0],
[55,1.0],
[60,1.0],
[65,1.0],
[70,1.0],
[75,1.0],
[80,1.0],
[85,1.0],
[90,1.0],
[95,1.0],
[100,1.0],
[105,1.0],
[110,1.0],
[115,1.0],
[120,1.0],
[125,1.0],
[130,1.0],
[135,1.0],
[140,1.0]
]]
a4:
args: [{data_path: './test.fvecs', K: 128, smp: 36, iter: 15, alpha: 1.1,
M0: 32, M: 16, occ: 3, recallN: 10, rvsN: 8, out_path: './graph.hnsw',
reranker: 'sq16', quantizer: 'sq8',
qdim: 64, rdim: 0
}]
query_args: [[
[10,1.0],
[11,1.0],
[12,1.0],
[13,1.0],
[15,1.0],
[18,1.0],
[22,1.0],
[26,1.0],
[28,1.0],
[30,1.0],
[35,1.0],
[40,1.0],
[45,1.0],
[50,1.0],
[55,1.0],
[60,1.0],
[65,1.0],
[70,1.0],
[75,1.0],
[80,1.0],
[85,1.0],
[90,1.0],
[95,1.0],
[100,1.0],
[105,1.0],
[110,1.0],
[115,1.0],
[120,1.0],
[125,1.0],
[130,1.0],
[135,1.0],
[140,1.0]
]]
a5:
args: [{data_path: './test.fvecs', K: 128, smp: 36, iter: 15, alpha: 1.1,
M0: 32, M: 16, occ: 3, recallN: 10, rvsN: 8, out_path: './graph.hnsw',
reranker: 'tc8', quantizer: 'sq8',
qdim: 0, rdim: 0
}]
query_args: [[
[10,1.0],
[11,1.0],
[12,1.0],
[13,1.0],
[15,1.0],
[18,1.0],
[22,1.0],
[26,1.0],
[28,1.0],
[30,1.0],
[35,1.0],
[40,1.0],
[45,1.0],
[50,1.0],
[55,1.0],
[60,1.0],
[65,1.0],
[70,1.0],
[75,1.0],
[80,1.0],
[85,1.0],
[90,1.0],
[95,1.0],
[100,1.0],
[105,1.0],
[110,1.0],
[115,1.0],
[120,1.0],
[125,1.0],
[130,1.0],
[135,1.0],
[140,1.0],
[160,1.0],
[180,1.0],
[200,1.0],
[220,1.0],
[240,1.0],
[260,1.0],
[280,1.0],
[300,1.0],
[320,1.0],
]]
Loading