Skip to content

Commit

Permalink
Add SQfp16 support to ARM Architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <[email protected]>
Signed-off-by: EC2 Default User <[email protected]>
  • Loading branch information
EC2 Default User committed Dec 4, 2023
1 parent bb66831 commit 288491b
Show file tree
Hide file tree
Showing 9 changed files with 955 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"index": {
"knn": true,
"number_of_shards": 24,
"number_of_replicas": 1
"number_of_replicas": 0
}
},
"mappings": {
Expand All @@ -24,4 +24,4 @@
}
}
}
}
}
11 changes: 6 additions & 5 deletions benchmarks/perf-tool/release-configs/faiss-hnsw-sqfp16/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@ endpoint: "localhost"
test_name: "Faiss HNSW SQfp16 Test"
test_id: "Faiss HNSW SQfp16 Test"
num_runs: 10
show_runs: false
timeout: 600
show_runs: true
steps:
- name: delete_index
index_name: target_index
- name: create_index
index_name: target_index
index_spec: /home/ec2-user/[PATH]/index.json
index_spec: /home/ec2-user/k-NN/benchmarks/perf-tool/release-configs/faiss-hnsw-sqfp16/index.json
- name: ingest
index_name: target_index
field_name: target_field
bulk_size: 500
dataset_format: hdf5
dataset_path: [DATASET_PATH]/sift-128-euclidean.hdf5
dataset_path: /home/ec2-user/data/sift-128-euclidean.hdf5
- name: refresh_index
index_name: target_index
- name: force_merge
Expand All @@ -29,6 +30,6 @@ steps:
index_name: target_index
field_name: target_field
dataset_format: hdf5
dataset_path: [DATASET_PATH]/sift-128-euclidean.hdf5
dataset_path: /home/ec2-user/data/sift-128-euclidean.hdf5
neighbors_format: hdf5
neighbors_path: [DATASET_PATH]/sift-128-euclidean.hdf5
neighbors_path: /home/ec2-user/data/sift-128-euclidean.hdf5
12 changes: 12 additions & 0 deletions faiss-patches/CMakeLists.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/faiss/CMakeLists.txt b/faiss/CMakeLists.txt
index 5e635a53..46434056 100644
--- a/faiss/CMakeLists.txt
+++ b/faiss/CMakeLists.txt
@@ -184,6 +184,7 @@ set(FAISS_HEADERS
utils/extra_distances-inl.h
utils/extra_distances.h
utils/fp16-fp16c.h
+ utils/fp16-fp16.h
utils/fp16-inl.h
utils/fp16.h
utils/hamming-inl.h
Loading

0 comments on commit 288491b

Please sign in to comment.