-
Notifications
You must be signed in to change notification settings - Fork 868
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
extend describeAPI to support customized metadata #1421
Conversation
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lxning I could successfully try it, by adding the desribe_handle() to the HF_bert_handler(). output looks like this.
The steps to test would be
- adding the describe_handler to the your handler.
- setting customized =True when querying describe API.
curl http://localhost:8081/models/my_tc/?customized=true
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
docs/management_api.md
Outdated
return output_describe | ||
``` | ||
|
||
* Implement function _is_describe if handler is inherited from BaseHandler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lxning , I think it should be if handler is NOT inherited from BaseHandler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make sure we have documented that, it is recommended for custom handlers to extend the BaseHandler
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Description
Please include a summary of the feature or issue being fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #(issue)
#1406
Type of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Please describe the tests [UT/IT] that you ran to verify your changes and relevent result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.
Test A
Test B
UT/IT execution results
Positive and negative tests are added in ModelServerTest.java. All tests pass frontend build.
Logs
Test on noop-customized.mar
curl "http://localhost:8081/models/noop-customized/1.0?customized=true"
[
{
"modelName": "noop-customized",
"modelVersion": "1.0",
"modelUrl": "noop-customized.mar",
"runtime": "python",
"minWorkers": 12,
"maxWorkers": 12,
"batchSize": 1,
"maxBatchDelay": 100,
"loadedAtStartup": true,
"workers": [
{
"id": "9000",
"startTime": "2022-02-08T17:12:54.764Z",
"status": "READY",
"memoryUsage": 123383808,
"pid": 25916,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9001",
"startTime": "2022-02-08T17:12:54.765Z",
"status": "READY",
"memoryUsage": 122703872,
"pid": 25915,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9002",
"startTime": "2022-02-08T17:12:54.765Z",
"status": "READY",
"memoryUsage": 122970112,
"pid": 25923,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9003",
"startTime": "2022-02-08T17:12:54.766Z",
"status": "READY",
"memoryUsage": 122798080,
"pid": 25920,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9004",
"startTime": "2022-02-08T17:12:54.766Z",
"status": "READY",
"memoryUsage": 122564608,
"pid": 25917,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9005",
"startTime": "2022-02-08T17:12:54.766Z",
"status": "READY",
"memoryUsage": 122920960,
"pid": 25921,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9006",
"startTime": "2022-02-08T17:12:54.766Z",
"status": "READY",
"memoryUsage": 123609088,
"pid": 25924,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9007",
"startTime": "2022-02-08T17:12:54.767Z",
"status": "READY",
"memoryUsage": 123834368,
"pid": 25919,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9008",
"startTime": "2022-02-08T17:12:54.767Z",
"status": "READY",
"memoryUsage": 123125760,
"pid": 25918,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9009",
"startTime": "2022-02-08T17:12:54.767Z",
"status": "READY",
"memoryUsage": 122621952,
"pid": 25922,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9010",
"startTime": "2022-02-08T17:12:54.767Z",
"status": "READY",
"memoryUsage": 123154432,
"pid": 25926,
"gpu": false,
"gpuUsage": "N/A"
},
{
"id": "9011",
"startTime": "2022-02-08T17:12:54.768Z",
"status": "READY",
"memoryUsage": 124149760,
"pid": 25925,
"gpu": false,
"gpuUsage": "N/A"
}
],
"customizedMetadata": "{\n "data1": "1",\n "data2": "2"\n}"
}
]
Checklist: