-
Notifications
You must be signed in to change notification settings - Fork 63
test: add REST and gRPC test suite for Seldon MLServer runtime #328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a32144a
test: add REST and gRPC test cases for Sklearn framework with MLServe…
Snomaan6846 e525cac
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1693501
test: add REST and gRPC test cases for XGBoost framework with MLServe…
Snomaan6846 1c80043
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a4017be
test: add REST and gRPC test cases for LightGBM framework with MLServ…
Snomaan6846 a166237
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5563b1f
test: add REST and gRPC test cases for CatBoost framework with MLServ…
Snomaan6846 455da19
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 218c4bb
test: add REST and gRPC test cases for MLFlow framework with MLServer…
Snomaan6846 3f8e622
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] c8fceb3
downgrade: Seldon MLServer from 1.7.1 to 1.6.1 due to HuggingFace run…
Snomaan6846 3ddcf61
test: add REST and gRPC test cases for HuggingFace framework with MLS…
Snomaan6846 5ef3faf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2f24f21
test(mlserver): remove unnecessary sleep before inferencing
Snomaan6846 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Empty file.
Empty file.
24 changes: 24 additions & 0 deletions
24
...oyment/TestCatBoostModel.test_catboost_model_inference[catboost-raw-grpc-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "modelName": "catboost", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "int64Contents": [ | ||
| "0" | ||
| ] | ||
| }, | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "1" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
22 changes: 22 additions & 0 deletions
22
...oyment/TestCatBoostModel.test_catboost_model_inference[catboost-raw-rest-deployment].json
This file contains hidden or 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,22 @@ | ||
| { | ||
| "id": "catboost", | ||
| "model_name": "catboost", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 0 | ||
| ], | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 1 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": {} | ||
| } |
24 changes: 24 additions & 0 deletions
24
...TestCatBoostModel.test_catboost_model_inference[catboost-serverless-grpc-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "modelName": "catboost", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "int64Contents": [ | ||
| "0" | ||
| ] | ||
| }, | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "1" | ||
| ] | ||
| } | ||
| ] | ||
| } |
22 changes: 22 additions & 0 deletions
22
...TestCatBoostModel.test_catboost_model_inference[catboost-serverless-rest-deployment].json
This file contains hidden or 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,22 @@ | ||
| { | ||
| "id": "catboost", | ||
| "model_name": "catboost", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 0 | ||
| ], | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 1 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": {} | ||
| } |
26 changes: 26 additions & 0 deletions
26
...t/TestLightGBMModel.test_lightgbm_model_inference[lightgbm-iris-raw-grpc-deployment].json
This file contains hidden or 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,26 @@ | ||
| { | ||
| "modelName": "lightgbm-iris", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "fp64Contents": [ | ||
| 1.5461848371087045e-05, | ||
| 0.00019280402569017216, | ||
| 0.9997917341259387 | ||
| ] | ||
| }, | ||
| "datatype": "FP64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "3" | ||
| ] | ||
| } | ||
| ] | ||
| } |
24 changes: 24 additions & 0 deletions
24
...t/TestLightGBMModel.test_lightgbm_model_inference[lightgbm-iris-raw-rest-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "id": "lightgbm-iris", | ||
| "model_name": "lightgbm-iris", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 1.5461848371087045e-05, | ||
| 0.00019280402569017216, | ||
| 0.9997917341259387 | ||
| ], | ||
| "datatype": "FP64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 3 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": {} | ||
| } |
26 changes: 26 additions & 0 deletions
26
...ightGBMModel.test_lightgbm_model_inference[lightgbm-iris-serverless-grpc-deployment].json
This file contains hidden or 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,26 @@ | ||
| { | ||
| "modelName": "lightgbm-iris", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "fp64Contents": [ | ||
| 1.5461848371087045e-05, | ||
| 0.00019280402569017216, | ||
| 0.9997917341259387 | ||
| ] | ||
| }, | ||
| "datatype": "FP64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "3" | ||
| ] | ||
| } | ||
| ] | ||
| } |
24 changes: 24 additions & 0 deletions
24
...ightGBMModel.test_lightgbm_model_inference[lightgbm-iris-serverless-rest-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "id": "lightgbm-iris", | ||
| "model_name": "lightgbm-iris", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 1.5461848371087045e-05, | ||
| 0.00019280402569017216, | ||
| 0.9997917341259387 | ||
| ], | ||
| "datatype": "FP64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 3 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": {} | ||
| } |
29 changes: 29 additions & 0 deletions
29
...l_deployment/TestMLflowModel.test_mlflow_model_inference[mlflow-raw-grpc-deployment].json
This file contains hidden or 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,29 @@ | ||
| { | ||
| "modelName": "mlflow-wine-classifier", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "fp64Contents": [ | ||
| 5.576883936610762 | ||
| ] | ||
| }, | ||
| "datatype": "FP64", | ||
| "name": "output-1", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "1" | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
...l_deployment/TestMLflowModel.test_mlflow_model_inference[mlflow-raw-rest-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "id": "mlflow-wine-classifier", | ||
| "model_name": "mlflow-wine-classifier", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 5.576883936610762 | ||
| ], | ||
| "datatype": "FP64", | ||
| "name": "output-1", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 1 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": { | ||
| "content_type": "np" | ||
| } | ||
| } |
29 changes: 29 additions & 0 deletions
29
...yment/TestMLflowModel.test_mlflow_model_inference[mlflow-serverless-grpc-deployment].json
This file contains hidden or 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,29 @@ | ||
| { | ||
| "modelName": "mlflow-wine-classifier", | ||
| "modelVersion": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "fp64Contents": [ | ||
| 5.576883936610762 | ||
| ] | ||
| }, | ||
| "datatype": "FP64", | ||
| "name": "output-1", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "1", | ||
| "1" | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| } | ||
| } |
24 changes: 24 additions & 0 deletions
24
...yment/TestMLflowModel.test_mlflow_model_inference[mlflow-serverless-rest-deployment].json
This file contains hidden or 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,24 @@ | ||
| { | ||
| "id": "mlflow-wine-classifier", | ||
| "model_name": "mlflow-wine-classifier", | ||
| "model_version": "v0.1.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 5.576883936610762 | ||
| ], | ||
| "datatype": "FP64", | ||
| "name": "output-1", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 1, | ||
| 1 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": { | ||
| "content_type": "np" | ||
| } | ||
| } |
25 changes: 25 additions & 0 deletions
25
...ment/TestSkLearnModel.test_sklearn_model_inference[sklearn-iris-raw-grpc-deployment].json
This file contains hidden or 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,25 @@ | ||
| { | ||
| "modelName": "sklearn-iris", | ||
| "modelVersion": "v1.0.0", | ||
| "outputs": [ | ||
| { | ||
| "contents": { | ||
| "int64Contents": [ | ||
| "1", | ||
| "1" | ||
| ] | ||
| }, | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": { | ||
| "stringParam": "np" | ||
| } | ||
| }, | ||
| "shape": [ | ||
| "2", | ||
| "1" | ||
| ] | ||
| } | ||
| ] | ||
| } |
23 changes: 23 additions & 0 deletions
23
...ment/TestSkLearnModel.test_sklearn_model_inference[sklearn-iris-raw-rest-deployment].json
This file contains hidden or 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,23 @@ | ||
| { | ||
| "id": "sklearn-iris", | ||
| "model_name": "sklearn-iris", | ||
| "model_version": "v1.0.0", | ||
| "outputs": [ | ||
| { | ||
| "data": [ | ||
| 1, | ||
| 1 | ||
| ], | ||
| "datatype": "INT64", | ||
| "name": "predict", | ||
| "parameters": { | ||
| "content_type": "np" | ||
| }, | ||
| "shape": [ | ||
| 2, | ||
| 1 | ||
| ] | ||
| } | ||
| ], | ||
| "parameters": {} | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.