forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied suggestions from code review.
Signed-off-by: Nathalie Jonathan <[email protected]>
- Loading branch information
1 parent
33aab02
commit 5b083a0
Showing
9 changed files
with
225 additions
and
224 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,41 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test deprecated meta API for model creation. | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
prologues: | ||
- path: /_cluster/settings | ||
method: PUT | ||
request: | ||
payload: | ||
persistent: | ||
plugins.ml_commons.allow_registering_model_via_local_file: true | ||
epilogues: | ||
- path: /_plugins/_ml/models/{model_id} | ||
parameters: | ||
model_id: ${model_metadata.model_id} | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create model metadata. | ||
id: model_metadata | ||
path: /_plugins/_ml/models/meta | ||
method: POST | ||
request: | ||
payload: | ||
name: huggingface/sentence-transformers/msmarco-distilbert-base-tas-b | ||
version: 1.0.1 | ||
model_format: TORCH_SCRIPT | ||
model_content_hash_value: 123abc | ||
total_chunks: 3 | ||
model_config: | ||
all_config: path | ||
model_type: bert | ||
embedding_dimension: 384 | ||
framework_type: sentence_transformers | ||
response: | ||
status: 200 | ||
output: | ||
model_id: payload.model_id |
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,42 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the creation of model metadata. | ||
distributions: | ||
excluded: | ||
- amazon-managed | ||
- amazon-serverless | ||
version: '>= 2.11' | ||
prologues: | ||
- path: /_cluster/settings | ||
method: PUT | ||
request: | ||
payload: | ||
persistent: | ||
plugins.ml_commons.allow_registering_model_via_local_file: true | ||
epilogues: | ||
- path: /_plugins/_ml/models/{model_id} | ||
parameters: | ||
model_id: ${model_metadata.model_id} | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Register model metadata. | ||
id: model_metadata | ||
path: /_plugins/_ml/models/_register_meta | ||
method: POST | ||
request: | ||
payload: | ||
name: huggingface/sentence-transformers/msmarco-distilbert-base-tas-b | ||
version: 1.0.1 | ||
model_format: TORCH_SCRIPT | ||
model_content_hash_value: 123abc | ||
total_chunks: 3 | ||
model_config: | ||
all_config: path | ||
model_type: bert | ||
embedding_dimension: 384 | ||
framework_type: sentence_transformers | ||
response: | ||
status: 200 | ||
output: | ||
model_id: payload.model_id |
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
Oops, something went wrong.