-
Notifications
You must be signed in to change notification settings - Fork 863
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
Bert base batch test #1272
Merged
Merged
Bert base batch test #1272
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
523c243
added bert batch test handler
3068a49
updated param dict
a4932b6
added torchserve start setup
1e5b901
simplified content decoding
7e751c5
added concurrency batch aggregator fix
2664f6c
removed asyncio and mp
cd0aa8e
formatted java
a42988a
Merge branch 'master' into pythonbatchtest
msaroufim 6529750
changed client id for second curl request
msaroufim 971f43e
test_handler
msaroufim 66fe2ec
upadted to torchserve bucket url
msaroufim d152bfa
Merge branch 'master' into pythonbatchtest
msaroufim 554d626
addressed li feedback
msaroufim b4a6f8c
Merge branch 'pythonbatchtest' of https://github.com/pytorch/serve in…
msaroufim 1c7ab03
gradelew formatjva
f713d49
fixed casing
msaroufim cfae393
trigger-build
3c4ccdc
Merge branch 'pythonbatchtest' of https://github.com/pytorch/serve in…
e79d9a2
fixed syntax error
c78bddb
removed batch inference test but kept registration in java
fff83ab
removed java test
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 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
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
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.
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.
@msaroufim do we have any test to repro the batch aggregator issue?
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.
Hi @HamidShojanazeri yeah it's in the above description at the end of the repro section
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.
Hi @msaroufim, this test case only covers status code=200. Can you add test case for "else part" (ie. original jobs.remove() part)?
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.
That's right, we already have tests to test batch failures https://github.com/pytorch/serve/blame/master/frontend/server/src/test/java/org/pytorch/serve/ModelServerTest.java#L1071
We just didn't have one for batch successes
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.
@msaroufim ModelServerTest.java#L1071 is a frontend integration test case which is called during frontend build.
Test test_huggingface_bert_batch_inference is an end 2 end integration which is called by regression test.
So they are different level test. Usually, a java test case should be added into dir frontend/server/src/test if there are frontend source code changes. Currently frontend misses a batch positive test case.
It is fine if you prefer adding batch end2end test cases in regression test. Then, I suggest you add both positive and negative test cases at here. Otherwise, the problem at regression for batch use case is as same as current Java frontend test (ie. miss a test case).