-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
- Loading branch information
1 parent
b8d8b7f
commit c5e5a29
Showing
4 changed files
with
59 additions
and
9 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
21 changes: 21 additions & 0 deletions
21
src/test/resources/processor/SparseEncodingPipelineConfigurationWithPrune.json
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 @@ | ||
{ | ||
"description": "An example sparse Encoding pipeline", | ||
"processors" : [ | ||
{ | ||
"sparse_encoding": { | ||
"model_id": "%s", | ||
"batch_size": "%d", | ||
"prune_type": "max_ratio", | ||
"prune_ratio": 0.8, | ||
"field_map": { | ||
"title": "title_sparse", | ||
"favor_list": "favor_list_sparse", | ||
"favorites": { | ||
"game": "game_sparse", | ||
"movie": "movie_sparse" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
10 changes: 3 additions & 7 deletions
10
src/test/resources/processor/UploadSparseEncodingModelRequestBody.json
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"name": "tokenize-idf-0915", | ||
"version": "1.0.0", | ||
"function_name": "SPARSE_TOKENIZE", | ||
"description": "test model", | ||
"model_format": "TORCH_SCRIPT", | ||
"name": "amazon/neural-sparse/opensearch-neural-sparse-tokenizer-v1", | ||
"version": "1.0.1", | ||
"model_group_id": "%s", | ||
"model_content_hash_value": "b345e9e943b62c405a8dd227ef2c46c84c5ff0a0b71b584be9132b37bce91a9a", | ||
"url": "https://github.com/opensearch-project/ml-commons/raw/main/ml-algorithms/src/test/resources/org/opensearch/ml/engine/algorithms/sparse_encoding/sparse_demo.zip" | ||
"model_format": "TORCH_SCRIPT" | ||
} |
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