Skip to content
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

Issue 942 #979

Merged
merged 5 commits into from
Mar 3, 2021
Merged

Issue 942 #979

merged 5 commits into from
Mar 3, 2021

Conversation

lxning
Copy link
Collaborator

@lxning lxning commented Feb 24, 2021

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)

Type of change

Please delete options that are not relevant.

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

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
    test case1

  • define max_request_size=10000 in config.properties

  • run client: python torchserve_grpc_client.py infer vgg11_v2 ~/serve/examples/image_classifier/kitten.jpg

  • result: io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 10000: 110993

test case2

  • define max_request_size=1000000 in config.properties

  • run client: python torchserve_grpc_client.py infer vgg11_v2 ~/serve/examples/image_classifier/kitten.jpg

  • result:
    {
    "tiger_cat": 0.5501413941383362,
    "tabby": 0.3231857717037201,
    "Egyptian_cat": 0.11440018564462662,
    "lynx": 0.006006317213177681,
    "tiger": 0.004394156392663717
    }

  • Logs

Checklist:

  • Have you added tests that prove your fix is effective or that this feature works?
  • New and existing unit tests pass locally with these changes?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

@sagemaker-neo-ci-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: torch-serve-build-cpu
  • Commit ID: 1f1ffbe
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-neo-ci-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: torch-serve-build-win
  • Commit ID: 1f1ffbe
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@sagemaker-neo-ci-bot
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: torch-serve-build-gpu
  • Commit ID: 1f1ffbe
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@lxning lxning linked an issue Feb 24, 2021 that may be closed by this pull request
@lxning lxning self-assigned this Feb 24, 2021
@maaquib maaquib requested review from dhanainme and removed request for dhaniram-kshirsagar February 24, 2021 17:04
Copy link
Collaborator

@maaquib maaquib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can we also add a unit test for this

@maaquib maaquib added this to the v0.4.0 milestone Feb 24, 2021
@lxning
Copy link
Collaborator Author

lxning commented Feb 24, 2021

@maaquib The unit test for entire gRPC feature is missing. I filed a separate issue 980 for this task in next release.

@lxning lxning merged commit a14992e into master Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gRPC throws error on large input size
4 participants