-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add vectorsearch training workload * Addressed Vijay feedback and ignores error if model DNE * Added documentation to VS readme --------- (cherry picked from commit 29d9715) Signed-off-by: Finn Roblin <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c893ef7
commit 7dc61ad
Showing
10 changed files
with
444 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"settings": { | ||
"index": { | ||
{%- if train_index_primary_shards is defined and train_index_primary_shards %} | ||
"number_of_shards": {{ train_index_primary_shards }} | ||
{%- endif %} | ||
{%- if train_index_replica_shards is defined %} | ||
,"number_of_replicas": {{ train_index_replica_shards }} | ||
{%- endif %} | ||
} | ||
}, | ||
"mappings": { | ||
"properties": { | ||
"{{ train_field_name }}": { | ||
"type": "knn_vector", | ||
"dimension": {{ target_index_dimension }} | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"target_index_name": "target_index", | ||
"target_field_name": "target_field", | ||
"target_index_body": "indices/faiss-index.json", | ||
"target_index_primary_shards": 1, | ||
"target_index_dimension": 128, | ||
"target_index_space_type": "l2", | ||
"target_index_bulk_size": 100, | ||
"target_index_bulk_index_data_set_format": "hdf5", | ||
"target_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean.hdf5", | ||
"target_index_bulk_indexing_clients": 10, | ||
|
||
"train_index_name": "train_index", | ||
"train_field_name": "train_field", | ||
"train_method_engine": "faiss", | ||
"train_index_body": "indices/train-index.json", | ||
"train_index_primary_shards": 1, | ||
"train_index_replica_shards": 1, | ||
|
||
"train_index_bulk_size": 100, | ||
"train_index_bulk_index_data_set_format": "hdf5", | ||
"train_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean.hdf5", | ||
"train_index_bulk_indexing_clients": 10, | ||
"train_index_num_vectors": 1000, | ||
|
||
"train_model_id": "test-model", | ||
"train_operation_retries": 100, | ||
"train_operation_poll_period": 0.5, | ||
"train_search_size": 10000, | ||
|
||
"encoder": "pq", | ||
"faiss_encoder_code_size": 2, | ||
"faiss_encoder_m": 4, | ||
|
||
"target_index_max_num_segments": 1, | ||
"target_index_force_merge_timeout": 300, | ||
"hnsw_ef_search": 100, | ||
"hnsw_ef_construction": 100, | ||
"query_k": 100, | ||
"query_body": { | ||
"docvalue_fields" : ["_id"], | ||
"stored_fields" : "_none_" | ||
}, | ||
|
||
"query_data_set_format": "hdf5", | ||
"query_data_set_path":"/tmp/sift-128-euclidean.hdf5", | ||
"query_count": 100 | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"target_index_name": "target_index", | ||
"target_field_name": "target_field", | ||
"target_index_body": "indices/faiss-index.json", | ||
"target_index_primary_shards": 1, | ||
"target_index_dimension": 128, | ||
"target_index_space_type": "l2", | ||
"target_index_bulk_size": 100, | ||
"target_index_bulk_index_data_set_format": "hdf5", | ||
"target_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean.hdf5", | ||
"target_index_bulk_indexing_clients": 10, | ||
|
||
"train_index_name": "train_index", | ||
"train_field_name": "train_field", | ||
"train_method_engine": "faiss", | ||
"train_index_body": "indices/train-index.json", | ||
"train_index_primary_shards": 1, | ||
"train_index_replica_shards": 1, | ||
|
||
"train_index_bulk_size": 100, | ||
"train_index_bulk_index_data_set_format": "hdf5", | ||
"train_index_bulk_index_data_set_path": "/tmp/sift-128-euclidean.hdf5", | ||
"train_index_bulk_indexing_clients": 10, | ||
"train_index_num_vectors": 1000, | ||
|
||
"train_model_id": "test-model", | ||
"train_operation_retries": 100, | ||
"train_operation_poll_period": 0.5, | ||
"train_search_size": 10000, | ||
|
||
"encoder": "sq", | ||
"faiss_encoder_type": "fp16", | ||
"faiss_encoder_clip": false, | ||
|
||
"target_index_max_num_segments": 1, | ||
"target_index_force_merge_timeout": 300, | ||
"hnsw_ef_search": 100, | ||
"hnsw_ef_construction": 100, | ||
"query_k": 100, | ||
"query_body": { | ||
"docvalue_fields" : ["_id"], | ||
"stored_fields" : "_none_" | ||
}, | ||
|
||
"query_data_set_format": "hdf5", | ||
"query_data_set_path":"/tmp/sift-128-euclidean.hdf5", | ||
"query_count": 100 | ||
} |
Oops, something went wrong.