11import json
22
33threads = [16 ]
4- ws_constructs = [100 ]
5- ws_search = [32 , 40 , 48 , 64 ]
4+ ws_constructs = [200 ]
5+ ws_search = [177 ]
66#ws_search = [48]
77graph_degree = [32 ]
8- #quantization = ["NO_COMPRESSION ", "LVQ4x4", " LVQ4x8", "LVQ4", " LVQ8", "LeanVec4x8", "LeanVec8x8 "]
9- quantization = ["LVQ4x8 " ]
10- topKs = [10 ]
11- data_types = ["FLOAT32" ]
8+ #quantization = ["LVQ4X4 ", "LVQ4x8", "LVQ8", "LVQ4 "]
9+ quantization = ["LVQ4X4 " ]
10+ topKs = [100 ]
11+ data_types = ["FLOAT16" , " FLOAT32" ]
1212
1313for algo in ["svs-vamana" ]:
1414 for data_type in data_types :
1818 configs = []
1919 for thread in threads :
2020 config = {
21- "name" : f"svs-test-algo- { algo } -graph- { graph_d } -ws-con- { ws_construct } - quant-{ quant } -threads- { thread } -dt-{ data_type } " ,
21+ "name" : f"svs-{ algo } -quant-{ quant } -dt-{ data_type } " ,
2222 "engine" : "redis" ,
2323 "connection_params" : {},
2424 "collection_params" : {
2525 "algorithm" : algo ,
2626 "data_type" : data_type ,
27- f"{ algo } _config" : {"NUM_THREADS" : thread , "GRAPH_MAX_DEGREE" : graph_d , "CONSTRUCTION_WINDOW_SIZE" : ws_construct , "COMPRESSION " : quant },
27+ f"{ algo } _config" : {"NUM_THREADS" : thread , "GRAPH_MAX_DEGREE" : graph_d , "CONSTRUCTION_WINDOW_SIZE" : ws_construct , "compression " : quant },
2828 },
2929 "search_params" : [],
3030 "upload_params" : {
31- "parallel" : 128 ,
31+ "parallel" : 100 ,
3232 "data_type" : data_type ,
3333 "algorithm" : algo ,
3434 },
3535 }
36- for client in [1 , 8 , 16 , 32 , 64 , 128 ]:
36+ for client in [100 ]:
3737 for ws_s in ws_search :
3838 for top in topKs :
3939 test_config = {
4040 "algorithm" : algo ,
4141 "parallel" : client ,
4242 "top" : top ,
43- "search_params" : {"SEARCH_WINDOW_SIZE " : ws_s , "data_type" : data_type },
43+ "search_params" : {"WS_SEARCH " : ws_s , "data_type" : data_type },
4444 }
4545 config ["search_params" ].append (test_config )
4646 configs .append (config )
4747
48- fname = f"svs-test-algo- { algo } -graph- { graph_d } -ws-con- { ws_construct } - quant-{ quant } -threads- { thread } -dt-{ data_type } .json"
48+ fname = f"svs-{ algo } -quant-{ quant } -dt-{ data_type } .json"
4949 with open (fname , "w" ) as json_fd :
5050 json .dump (configs , json_fd , indent = 2 )
51- print (f"Created { len (configs )} configs for { fname } ." )
51+ print (f"Created { len (configs )} configs for { fname } ." )
0 commit comments