forked from opendatahub-io/modelmesh
-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Make it possible to attach a PayloadProcessor to process model predictions #1
Closed
Conversation
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
netty 4.1.85.Final grpc-java 1.51.0 jackson-databind 2.14.1 Signed-off-by: Nick Hill <nickhill@us.ibm.com>
- protobuf 3.21.10 Signed-off-by: Nick Hill <nickhill@us.ibm.com> Signed-off-by: Nick Hill <nickhill@us.ibm.com>
#### Motivation `fq_names` is a boolean sub-parameters that can be used to alter the metrics exposed by model-mesh. Unfortunately however its value is inverted, so setting it to "true" actually disables fully qualified method names (which is already the default). #### Modification Change to interpret anything other than false as enabling (default is still disabled). #### Result Metrics configuration behaves as expected. Signed-off-by: Nick Hill <nickhill@us.ibm.com>
#### Motivation Follow up to PR #75, use short names (by default) unless `fq_names` is set to `true` #### Modifications Correct the boolean expression that sets `shortNames` based on the negated `fq_names` parameter value. #### Result Brief example to illustrate the behavior after this code change: ```Java String[] fq_names_values = {"true", "True", "TRUE", "false", "False", "FALSE", "", "off", "on", "N/A"}; for (String fq_names_value: fq_names_values) { boolean shortNames = !"true".equalsIgnoreCase(fq_names_value); System.out.println("fq_names='%s' => shortNames=%s".formatted(fq_names_value, shortNames)); } ``` ``` fq_names='true' => shortNames=false fq_names='True' => shortNames=false fq_names='TRUE' => shortNames=false fq_names='false' => shortNames=true fq_names='False' => shortNames=true fq_names='FALSE' => shortNames=true fq_names='' => shortNames=true fq_names='off' => shortNames=true fq_names='on' => shortNames=true fq_names='N/A' => shortNames=true ``` /cc @njhill Signed-off-by: Christian Kadner <ckadner@us.ibm.com>
#### Motivation Some issues have been observed in production where the cache appears to get into a broken state, including a cascading eviction of all models. #### Modifications - Fix cache accounting in loading failure + unload case - Eagerly remove expired failure records from cache - Correct misworded log message - Log some internal cache values along with published instance records, to facilitate further diagnoses - Increase load failure expiry times #### Result Hopefully fixed cache accounting issue Signed-off-by: Nick Hill <nickhill@us.ibm.com>
grpc, netty, protobuf, thrift Signed-off-by: Nick Hill <nickhill@us.ibm.com>
Signed-off-by: ddelange <14880945+ddelange@users.noreply.github.com>
This reverts commit d9892e3. These changes actually broke our main image build. Unfortunately the actions that run on the PR don't actually build the image. @ckadner is addressing that and then we can reopen this if needed post 0.10 release. @ddelange it probably only makes sense anyhow if we do this for all the modelmesh images i.e. also including `modelmesh-serving` and `modelmesh-runtime-adapter` Signed-off-by: Nick Hill <nickhill@us.ibm.com>
* Exclude 32bit arm and s390x builds * Use single workflow definition for pull-request and push event * Delete pull-request-validation.yml * Add layer caching * Add TARGETARCH arg to Dockerfile Signed-off-by: ddelange <14880945+ddelange@users.noreply.github.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
…eq/resp separately Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
…ayload processor Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
…'t throw exceptions Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
grpc `1.53.0`, netty `4.1.89.Final`, protobuf `3.22.0`, jackson-databind `2.14.2`, gson `2.10.1`, thrift `0.18.0`, logg4j `2.20.0`, junit `5.9.2` Signed-off-by: Nick Hill <nickhill@us.ibm.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
…rd against already released buffers Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
…licate Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
… refactoring, synchronized on async queue#offer Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
tteofili
changed the title
Fai 948
feat: Make it possible to attach a PayloadProcessor to process model predictions
Mar 9, 2023
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Signed-off-by: Tommaso Teofili <tteofili@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
This PR seeks to address the model-mesh side of kserve/modelmesh-serving#284.
Modifications
It provides a PayloadProcessor interface. PayloadProcessors are picked by ModelMesh instances at startup and predictions (Payloads) are processed asynchronously at fixed timing.
A first logger implementation allows to log Payloads (at info level).
Result
A SPI for post processing model predictions.